Simpler controls for mercurial local clone #2235
Merged
Community-TC Integration / Code Review Integration checks: unit tests
succeeded
Jul 22, 2024 in 26s
Community-TC (push)
Check python code with pytest
Details
View task in Taskcluster
View logs in Taskcluster
[taskcluster 2024-07-22T15:37:12.663Z] Worker Type (proj-relman/generic-worker-ubuntu-24-04) settings:
[taskcluster 2024-07-22T15:37:12.663Z] {
[taskcluster 2024-07-22T15:37:12.663Z] "config": {
[taskcluster 2024-07-22T15:37:12.663Z] "deploymentId": "8741b21d2b2e3bf8"
[taskcluster 2024-07-22T15:37:12.663Z] },
[taskcluster 2024-07-22T15:37:12.663Z] "generic-worker": {
[taskcluster 2024-07-22T15:37:12.663Z] "engine": "multiuser",
[taskcluster 2024-07-22T15:37:12.663Z] "go-arch": "amd64",
[taskcluster 2024-07-22T15:37:12.663Z] "go-os": "linux",
[taskcluster 2024-07-22T15:37:12.663Z] "go-version": "go1.22.4",
[taskcluster 2024-07-22T15:37:12.663Z] "release": "https://github.com/taskcluster/taskcluster/releases/tag/v67.0.0",
[taskcluster 2024-07-22T15:37:12.663Z] "revision": "0bb0d401d2dd512520a55de040488fe003e17242",
[taskcluster 2024-07-22T15:37:12.663Z] "source": "https://github.com/taskcluster/taskcluster/commits/0bb0d401d2dd512520a55de040488fe003e17242",
[taskcluster 2024-07-22T15:37:12.663Z] "version": "67.0.0"
[taskcluster 2024-07-22T15:37:12.663Z] },
[taskcluster 2024-07-22T15:37:12.663Z] "image": "projects/community-tc-workers/global/images/generic-worker-ubuntu-24-04-z8mru78btvt8mwyp33uq",
[taskcluster 2024-07-22T15:37:12.663Z] "instance-id": "8852913325205606317",
[taskcluster 2024-07-22T15:37:12.663Z] "instance-type": "projects/757942385826/machineTypes/n2-standard-4",
[taskcluster 2024-07-22T15:37:12.663Z] "local-ipv4": "10.150.0.137",
[taskcluster 2024-07-22T15:37:12.663Z] "machine-setup": {
[taskcluster 2024-07-22T15:37:12.663Z] "maintainer": "taskcluster-notifications+workers@mozilla.com",
[taskcluster 2024-07-22T15:37:12.663Z] "script": "https://github.com/taskcluster/community-tc-config/blob/2f54e59824e95b468047acc7ed3fb4af0af75626/imagesets/generic-worker-ubuntu-24-04/bootstrap.sh"
[taskcluster 2024-07-22T15:37:12.663Z] },
[taskcluster 2024-07-22T15:37:12.663Z] "project-id": "community-tc-workers",
[taskcluster 2024-07-22T15:37:12.663Z] "public-hostname": "proj-relman-generic-worker-ubuntu-24-0-msi8bmidrl6r-5m-ijemtg.c.community-tc-workers.internal",
[taskcluster 2024-07-22T15:37:12.663Z] "public-ipv4": "35.186.173.22",
[taskcluster 2024-07-22T15:37:12.663Z] "region": "us-east4",
[taskcluster 2024-07-22T15:37:12.663Z] "zone": "us-east4-b"
[taskcluster 2024-07-22T15:37:12.663Z] }
[taskcluster 2024-07-22T15:37:12.663Z] Task ID: GEOVSNSvTfKiK0AnsUk7cA
[taskcluster 2024-07-22T15:37:12.663Z] === Task Starting ===
[taskcluster:warn 2024-07-22T15:37:12.665Z] This task was designed to run under Docker Worker. Docker Worker is no longer maintained.
[taskcluster:warn 2024-07-22T15:37:12.665Z] In order to execute this task, it is being converted to a Generic Worker task, using the D2G
[taskcluster:warn 2024-07-22T15:37:12.665Z] utility (Docker Worker 2 Generic Worker):
[taskcluster:warn 2024-07-22T15:37:12.665Z] https://github.com/taskcluster/taskcluster/tree/main/clients/client-shell#translating-docker-worker-task-definitionpayload-to-generic-worker-task-definitionpayload
[taskcluster:warn 2024-07-22T15:37:12.665Z]
[taskcluster:warn 2024-07-22T15:37:12.665Z] We recommend that you convert all your Docker Worker tasks to Generic Worker tasks, to ensure
[taskcluster:warn 2024-07-22T15:37:12.665Z] continued support. For this task, see the converted payload below. If you have many tasks that
[taskcluster:warn 2024-07-22T15:37:12.665Z] require conversion, consider using the d2g tool (above) directly. It simply takes a Docker
[taskcluster:warn 2024-07-22T15:37:12.665Z] Worker task payload as input, and outputs a Generic Worker task payload. It can also convert
[taskcluster:warn 2024-07-22T15:37:12.665Z] Docker Worker scopes to equivalent Generic Worker scopes.
[taskcluster:warn 2024-07-22T15:37:12.665Z]
[taskcluster:warn 2024-07-22T15:37:12.665Z] Converted task definition (conversion performed by d2g):
[taskcluster:warn 2024-07-22T15:37:12.665Z] ---
[taskcluster:warn 2024-07-22T15:37:12.665Z] created: "2024-07-22T15:37:10.294Z"
[taskcluster:warn 2024-07-22T15:37:12.665Z] deadline: "2024-07-22T16:37:10.294Z"
[taskcluster:warn 2024-07-22T15:37:12.665Z] dependencies: []
[taskcluster:warn 2024-07-22T15:37:12.665Z] expires: "2025-07-22T16:37:10.294Z"
[taskcluster:warn 2024-07-22T15:37:12.665Z] extra: {}
[taskcluster:warn 2024-07-22T15:37:12.665Z] metadata:
[taskcluster:warn 2024-07-22T15:37:12.665Z] description: Check python code with pytest
[taskcluster:warn 2024-07-22T15:37:12.665Z] name: 'Code Review Integration checks: unit tests'
[taskcluster:warn 2024-07-22T15:37:12.665Z] owner: bastien@mozilla.com
[taskcluster:warn 2024-07-22T15:37:12.665Z] source: https://github.com/mozilla/code-review
[taskcluster:warn 2024-07-22T15:37:12.665Z] payload:
[taskcluster:warn 2024-07-22T15:37:12.665Z] command:
[taskcluster:warn 2024-07-22T15:37:12.665Z] - - bash
[taskcluster:warn 2024-07-22T15:37:12.665Z] - -cx
[taskcluster:warn 2024-07-22T15:37:12.665Z] - podman run -t --rm --memory-swap -1 --pids-limit -1 --ulimit host -e RUN_ID
[taskcluster:warn 2024-07-22T15:37:12.665Z] -e TASKCLUSTER_INSTANCE_TYPE -e TASKCLUSTER_ROOT_URL -e TASKCLUSTER_WORKER_LOCATION
[taskcluster:warn 2024-07-22T15:37:12.665Z] -e TASK_ID 'python:3.9' sh -lxce 'git clone --quiet https://github.com/mozilla/code-review
[taskcluster:warn 2024-07-22T15:37:12.665Z] /src && cd /src && git checkout 4b342e5856444da9c2b109b15a231237d622a11c -b
[taskcluster:warn 2024-07-22T15:37:12.665Z] checks && cd /src/tools && pip install --disable-pip-version-check --no-cache-dir
[taskcluster:warn 2024-07-22T15:37:12.665Z] --quiet . && cd /src/integration && pip install --disable-pip-version-check
[taskcluster:warn 2024-07-22T15:37:12.665Z] --no-cache-dir --quiet -r requirements.txt -r requirements-dev.txt && pytest
[taskcluster:warn 2024-07-22T15:37:12.665Z] -v'
[taskcluster:warn 2024-07-22T15:37:12.665Z] features:
[taskcluster:warn 2024-07-22T15:37:12.665Z] backingLog: true
[taskcluster:warn 2024-07-22T15:37:12.665Z] liveLog: true
[taskcluster:warn 2024-07-22T15:37:12.665Z] logs:
[taskcluster:warn 2024-07-22T15:37:12.665Z] backing: public/logs/live_backing.log
[taskcluster:warn 2024-07-22T15:37:12.665Z] live: public/logs/live.log
[taskcluster:warn 2024-07-22T15:37:12.665Z] maxRunTime: 3600
[taskcluster:warn 2024-07-22T15:37:12.665Z] onExitStatus:
[taskcluster:warn 2024-07-22T15:37:12.665Z] retry:
[taskcluster:warn 2024-07-22T15:37:12.665Z] - 125
[taskcluster:warn 2024-07-22T15:37:12.665Z] - 128
[taskcluster:warn 2024-07-22T15:37:12.665Z] priority: lowest
[taskcluster:warn 2024-07-22T15:37:12.665Z] projectId: none
[taskcluster:warn 2024-07-22T15:37:12.665Z] provisionerId: proj-relman
[taskcluster:warn 2024-07-22T15:37:12.665Z] requires: all-completed
[taskcluster:warn 2024-07-22T15:37:12.665Z] retries: 5
[taskcluster:warn 2024-07-22T15:37:12.665Z] routes:
[taskcluster:warn 2024-07-22T15:37:12.665Z] - checks
[taskcluster:warn 2024-07-22T15:37:12.665Z] schedulerId: taskcluster-github
[taskcluster:warn 2024-07-22T15:37:12.665Z] scopes: []
[taskcluster:warn 2024-07-22T15:37:12.665Z] tags: {}
[taskcluster:warn 2024-07-22T15:37:12.665Z] taskGroupId: Y_b6JXEaTsmhKK5h7lOvIg
[taskcluster:warn 2024-07-22T15:37:12.665Z] taskQueueId: proj-relman/generic-worker-ubuntu-24-04
[taskcluster:warn 2024-07-22T15:37:12.665Z] workerType: generic-worker-ubuntu-24-04
[taskcluster:warn 2024-07-22T15:37:12.665Z]
[taskcluster 2024-07-22T15:37:13.301Z] Uploading redirect artifact public/logs/live.log to URL https://community-websocktunnel.services.mozilla.com/us-east4-b.8852913325205606317.60099/log/M3Sq-BwzQimJkjgAOBN4GQ with mime type "text/plain; charset=utf-8" and expiry 2024-07-22T16:52:13.214Z
[taskcluster 2024-07-22T15:37:13.365Z] Executing command 0: bash -cx 'podman run -t --rm --memory-swap -1 --pids-limit -1 --ulimit host -e RUN_ID -e TASKCLUSTER_INSTANCE_TYPE -e TASKCLUSTER_ROOT_URL -e TASKCLUSTER_WORKER_LOCATION -e TASK_ID '\''python:3.9'\'' sh -lxce '\''git clone --quiet https://github.com/mozilla/code-review /src && cd /src && git checkout 4b342e5856444da9c2b109b15a231237d622a11c -b checks && cd /src/tools && pip install --disable-pip-version-check --no-cache-dir --quiet . && cd /src/integration && pip install --disable-pip-version-check --no-cache-dir --quiet -r requirements.txt -r requirements-dev.txt && pytest -v'\'
+ podman run -t --rm --memory-swap -1 --pids-limit -1 --ulimit host -e RUN_ID -e TASKCLUSTER_INSTANCE_TYPE -e TASKCLUSTER_ROOT_URL -e TASKCLUSTER_WORKER_LOCATION -e TASK_ID python:3.9 sh -lxce 'git clone --quiet https://github.com/mozilla/code-review /src && cd /src && git checkout 4b342e5856444da9c2b109b15a231237d622a11c -b checks && cd /src/tools && pip install --disable-pip-version-check --no-cache-dir --quiet . && cd /src/integration && pip install --disable-pip-version-check --no-cache-dir --quiet -r requirements.txt -r requirements-dev.txt && pytest -v'
Resolved "python" as an alias (/etc/containers/registries.conf.d/shortnames.conf)
Trying to pull docker.io/library/python:3.9...
Getting image source signatures
Copying blob sha256:f6797bd9eb3e59148434ebff244bacd963f8075532ee1840c8daf97962303be4
Copying blob sha256:58b365fa3e8dc16e70d89fab0e91f5242feb38ae3cfeb6655e654209ea109333
Copying blob sha256:e9aef93137af6e967e7242f3b3c8ecd8e6f571d1e6fdd9e72db0befeeae3cf13
Copying blob sha256:ae70830af8b64968596022cd9041ce522f0c77eab5419b19e169b53582c69e3f
Copying blob sha256:3dbed71fc5444cf6889a21b002de3e7805e810aa88f91a9ca941b4e3880246d1
Copying blob sha256:59bdc9f67ba756824bf84d442f27f7fb0d90010d6719f48bf353aadc7b33754b
Copying blob sha256:67ce276b8fb4f31cb64d5378982ba8c83ddd77b45ef03c4ab336648d897d6a1b
Copying blob sha256:57578c07ffaf1ae5c6eb3d53621f1431a2b8bc7694818b7185fd20184992d2d0
Copying config sha256:6613495eb4efcc54744555ff4221aa8bf07e63eeec62664e567f6bfbf540a902
Writing manifest to image destination
+ id -u
+ [ 0 -eq 0 ]
+ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ export PATH
+ [ # ]
+ [ ]
+ id -u
+ [ 0 -eq 0 ]
+ PS1=#
+ [ -d /etc/profile.d ]
+ [ -r /etc/profile.d/*.sh ]
+ unset i
+ [ ]
+ mesg n
+ true
+ git clone --quiet https://github.com/mozilla/code-review /src
+ cd /src
+ git checkout 4b342e5856444da9c2b109b15a231237d622a11c -b checks
Switched to a new branch 'checks'
+ cd /src/tools
+ pip install --disable-pip-version-check --no-cache-dir --quiet .
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
+ cd /src/integration
+ pip install --disable-pip-version-check --no-cache-dir --quiet -r requirements.txt -r requirements-dev.txt
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
+ pytest -v
============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-8.2.2, pluggy-1.5.0 -- /usr/local/bin/python
cachedir: .pytest_cache
rootdir: /src/integration
collecting ...
collected 2 items
tests/test_hooks.py::test_jsone_validates PASSED [ 50%]
tests/test_workflow.py::test_publish PASSED [100%]
============================== 2 passed in 0.26s ===============================
[taskcluster 2024-07-22T15:37:37.811Z] Exit Code: 0
[taskcluster 2024-07-22T15:37:37.811Z] User Time: 24.153501s
[taskcluster 2024-07-22T15:37:37.811Z] Kernel Time: 3.957743s
[taskcluster 2024-07-22T15:37:37.811Z] Wall Time: 24.445909489s
[taskcluster 2024-07-22T15:37:37.811Z] Result: SUCCEEDED
[taskcluster 2024-07-22T15:37:37.812Z] === Task Finished ===
[taskcluster 2024-07-22T15:37:37.812Z] Task Duration: 24.446241253s
[taskcluster 2024-07-22T15:37:37.921Z] Uploading link artifact public/logs/live.log to artifact public/logs/live_backing.log with expiry 2025-07-22T16:37:10.294Z
Loading