client: fix warnings in tests#1498
Draft
jcristau wants to merge 1 commit into
Draft
firefoxci-taskcluster / tox-client-314
succeeded
Mar 5, 2026 in 5m 17s
FirefoxCI (pull_request)
test the tooltool client with python314
Details
View task in Taskcluster | View logs in Taskcluster | View task group in Taskcluster
Task Status
Started: 2026-03-05T13:03:41.415Z
Resolved: 2026-03-05T13:05:48.874Z
Task Execution Time: 2 minutes, 7 seconds, 459 milliseconds
Task Status: completed
Reason Resolved: completed
TaskId: R15xAaCYTxiTZAM3FghsCA
RunId: 0
Artifacts
- public/logs/live_backing.log
- public/logs/live.log
[taskcluster 2026-03-05T13:03:41.480Z] Worker Type (releng-t/linux-docker) settings:
[taskcluster 2026-03-05T13:03:41.480Z] {
[taskcluster 2026-03-05T13:03:41.480Z] "config": {
[taskcluster 2026-03-05T13:03:41.480Z] "deploymentId": ""
[taskcluster 2026-03-05T13:03:41.480Z] },
[taskcluster 2026-03-05T13:03:41.480Z] "generic-worker": {
[taskcluster 2026-03-05T13:03:41.480Z] "config": {
[taskcluster 2026-03-05T13:03:41.480Z] "headlessTasks": true
[taskcluster 2026-03-05T13:03:41.480Z] },
[taskcluster 2026-03-05T13:03:41.480Z] "engine": "multiuser",
[taskcluster 2026-03-05T13:03:41.480Z] "go-arch": "amd64",
[taskcluster 2026-03-05T13:03:41.480Z] "go-os": "linux",
[taskcluster 2026-03-05T13:03:41.480Z] "go-version": "go1.25.5",
[taskcluster 2026-03-05T13:03:41.480Z] "release": "https://github.com/taskcluster/taskcluster/releases/tag/v95.1.3",
[taskcluster 2026-03-05T13:03:41.480Z] "revision": "300ac23a15bb11e577f3a3d116a570fde948337e",
[taskcluster 2026-03-05T13:03:41.480Z] "source": "https://github.com/taskcluster/taskcluster/commits/300ac23a15bb11e577f3a3d116a570fde948337e",
[taskcluster 2026-03-05T13:03:41.480Z] "version": "95.1.3"
[taskcluster 2026-03-05T13:03:41.480Z] },
[taskcluster 2026-03-05T13:03:41.480Z] "image": "projects/taskcluster-imaging/global/images/gw-fxci-gcp-l1-2404-amd64-headless-googlecompute-2026-01-14",
[taskcluster 2026-03-05T13:03:41.480Z] "instance-id": "2437329201213521977",
[taskcluster 2026-03-05T13:03:41.480Z] "instance-type": "projects/887720501152/machineTypes/c2-standard-4",
[taskcluster 2026-03-05T13:03:41.480Z] "local-ipv4": "10.128.3.199",
[taskcluster 2026-03-05T13:03:41.480Z] "project-id": "fxci-production-level1-workers",
[taskcluster 2026-03-05T13:03:41.480Z] "public-hostname": "releng-t-linux-docker-h352pgoussmx41ytkijcvg.c.fxci-production-level1-workers.internal",
[taskcluster 2026-03-05T13:03:41.480Z] "public-ipv4": "34.61.225.36",
[taskcluster 2026-03-05T13:03:41.480Z] "region": "us-central1",
[taskcluster 2026-03-05T13:03:41.480Z] "zone": "us-central1-a"
[taskcluster 2026-03-05T13:03:41.480Z] }
[taskcluster 2026-03-05T13:03:41.480Z] Task ID: R15xAaCYTxiTZAM3FghsCA
[taskcluster 2026-03-05T13:03:41.480Z] === Task Starting ===
[taskcluster 2026-03-05T13:03:42.667Z] [mounts] No existing writable directory cache 'releng-level-1-checkouts-v3-cbbaf5380474618f5c43-IHMR0U-ZRiajMP96Xj6Xtw' - creating /home/generic-worker/caches/H4FE_98oTEKTMyhcqu9rmQ
[taskcluster 2026-03-05T13:03:42.667Z] [mounts] Creating directory /home/task_177271582070315/cache0
[taskcluster 2026-03-05T13:03:42.678Z] [mounts] Successfully mounted writable directory cache '/home/task_177271582070315/cache0'
[taskcluster 2026-03-05T13:03:42.678Z] [mounts] Downloading task IHMR0U-ZRiajMP96Xj6Xtw artifact public/image.tar.zst to /home/generic-worker/downloads/GX_vl7njSbyXJEOWPRZchg
[taskcluster 2026-03-05T13:03:48.635Z] [mounts] Downloaded 369635293 bytes with SHA256 44eec721914ef9e5529bc375d44dd374742957ab1fb0b92306675520aca97968 from task IHMR0U-ZRiajMP96Xj6Xtw artifact public/image.tar.zst to /home/generic-worker/downloads/GX_vl7njSbyXJEOWPRZchg
[taskcluster:warn 2026-03-05T13:03:48.635Z] [mounts] Download /home/generic-worker/downloads/GX_vl7njSbyXJEOWPRZchg of task IHMR0U-ZRiajMP96Xj6Xtw artifact public/image.tar.zst has SHA256 44eec721914ef9e5529bc375d44dd374742957ab1fb0b92306675520aca97968 but task payload does not declare a required value, so content authenticity cannot be verified
[taskcluster 2026-03-05T13:03:48.635Z] [mounts] Creating directory /home/task_177271582070315
[taskcluster 2026-03-05T13:03:48.655Z] [mounts] Copying /home/generic-worker/downloads/GX_vl7njSbyXJEOWPRZchg to /home/task_177271582070315/dockerimage
[taskcluster 2026-03-05T13:03:49.819Z] [mounts] Granting task_177271582070315 full control of file '/home/task_177271582070315/dockerimage'
[taskcluster 2026-03-05T13:03:50.731Z] [d2g] Loading docker image
[taskcluster 2026-03-05T13:04:05.411Z] [d2g] Loaded docker image "client-tox-py314:latest"
[taskcluster 2026-03-05T13:04:05.411Z] Executing command 0: docker run -t --name taskcontainer_QNkEFLNyQMWin3JBfiwnrg --memory-swap -1 --pids-limit -1 '--add-host=localhost.localdomain:127.0.0.1' -v /home/task_177271582070315/cache0:/builds/worker/checkouts --add-host=taskcluster:host-gateway --env-file 'env.list' d523a6760d773229ca0e38d07fe659da4b058d20f89755e7f7c0d61fefb14687 /usr/local/bin/run-task --tooltool-checkout=/builds/worker/checkouts/vcs/ --task-cwd /builds/worker/checkouts/vcs -- bash -cx 'set +x && export CODECOV_TOKEN=$(wget -qO- $SECRET_URL | jq -r '\''.["secret"]["codecov"]["token"]'\'') && set -x && tox -e tooltool_client-py314'
[setup 2026-03-05T13:04:08.777+00:00] run-task started in /
[setup 2026-03-05T13:04:08.777+00:00] Invoked by command: --tooltool-checkout=/builds/worker/checkouts/vcs/ --task-cwd /builds/worker/checkouts/vcs -- bash -cx set +x && export CODECOV_TOKEN=$(wget -qO- $SECRET_URL | jq -r '.["secret"]["codecov"]["token"]') && set -x && tox -e tooltool_client-py314
[setup 2026-03-05T13:04:08.777+00:00] Python version: 3.14.3
[setup 2026-03-05T13:04:08.777+00:00] Subprocess python version:
cpython-3.14.3-linux-x86_64-gnu /usr/local/bin/python3.14
cpython-3.14.3-linux-x86_64-gnu /usr/local/bin/python3 -> python3.14
cpython-3.14.3-linux-x86_64-gnu /usr/local/bin/python -> python3
cpython-3.13.5-linux-x86_64-gnu /usr/bin/python3.13
cpython-3.13.5-linux-x86_64-gnu /usr/bin/python3 -> python3.13
[cache 2026-03-05T13:04:09.060+00:00] cache /builds/worker/checkouts is empty; writing requirements: gid=1000 uid=1000 version=1
[volume 2026-03-05T13:04:09.061+00:00] changing ownership of volume /builds/worker/.cache to 1000:1000
[volume 2026-03-05T13:04:09.061+00:00] volume /builds/worker/checkouts is a cache
[setup 2026-03-05T13:04:09.061+00:00] running as worker:worker
[vcs 2026-03-05T13:04:09.061+00:00] executing ['git', 'config', '--global', '--add', 'safe.directory', '/builds/worker/checkouts/vcs']
[vcs 2026-03-05T13:04:09.064+00:00] executing ['git', 'clone', 'https://github.com/mozilla-releng/tooltool', '/builds/worker/checkouts/vcs']
[vcs 2026-03-05T13:04:09.065+00:00] Cloning into '/builds/worker/checkouts/vcs'...
[vcs 2026-03-05T13:04:09.581+00:00] executing ['git', 'fetch', 'https://github.com/jcristau/tooltool', 'no-more-warnings']
[vcs 2026-03-05T13:04:09.801+00:00] From https://github.com/jcristau/tooltool
[vcs 2026-03-05T13:04:09.801+00:00] * branch no-more-warnings -> FETCH_HEAD
[vcs 2026-03-05T13:04:09.804+00:00] executing ['git', 'checkout', '-f', '-B', 'no-more-warnings', '8866390ccaa68f29b867bb105d3b07e8c405e8f4']
[vcs 2026-03-05T13:04:09.818+00:00] Switched to a new branch 'no-more-warnings'
[vcs 2026-03-05T13:04:09.818+00:00] cleaning git checkout...
[vcs 2026-03-05T13:04:09.818+00:00] executing ['git', 'clean', '-nxdff']
[vcs 2026-03-05T13:04:09.820+00:00] removing []
[vcs 2026-03-05T13:04:09.820+00:00] successfully cleaned git checkout!
[vcs 2026-03-05T13:04:09.822+00:00] TinderboxPrint:<a href='https://github.com/jcristau/tooltool/commit/8866390ccaa68f29b867bb105d3b07e8c405e8f4' title='Built from tooltool commit 8866390ccaa68f29b867bb105d3b07e8c405e8f4'>8866390ccaa68f29b867bb105d3b07e8c405e8f4</a>
[task 2026-03-05T13:04:09.822+00:00] executing ['bash', '-cx', 'set +x && export CODECOV_TOKEN=$(wget -qO- $SECRET_URL | jq -r \'.["secret"]["codecov"]["token"]\') && set -x && tox -e tooltool_client-py314']
[task 2026-03-05T13:04:09.823+00:00] + set +x
[task 2026-03-05T13:04:10.097+00:00] + tox -e tooltool_client-py314
[task 2026-03-05T13:04:10.434+00:00] tooltool_client-py314: venv> /usr/local/bin/uv venv -p /usr/local/bin/python3.14 --allow-existing --python-preference system /builds/worker/checkouts/vcs/.tox/tooltool_client-py314
[task 2026-03-05T13:04:10.527+00:00] tooltool_client-py314: install_deps> /usr/local/bin/uv pip install tox tox-uv
[task 2026-03-05T13:04:11.134+00:00] tooltool_client-py314: commands[0] /builds/worker/checkouts/vcs/client> tox -e py314
[task 2026-03-05T13:04:11.746+00:00] py314: venv> /builds/worker/checkouts/vcs/.tox/tooltool_client-py314/bin/uv venv -p /builds/worker/checkouts/vcs/.tox/tooltool_client-py314/bin/python3 --allow-existing '--prompt=client[py314]' --python-preference system /builds/worker/checkouts/vcs/.tox/py314
[task 2026-03-05T13:04:11.803+00:00] py314: install_deps> /builds/worker/checkouts/vcs/.tox/tooltool_client-py314/bin/uv pip install -r requirements/test.txt
[task 2026-03-05T13:05:38.085+00:00] py314: commands[0]> ./validate.sh
[task 2026-03-05T13:05:38.089+00:00] -- running pyflakes --
[task 2026-03-05T13:05:38.405+00:00] -- running tests (under coverage) --
[task 2026-03-05T13:05:38.870+00:00] /builds/worker/checkouts/vcs/.tox/py314/lib/python3.14/site-packages/pluggy/_callers.py:141: SyntaxWarning: 'return' in a 'finally' block
[task 2026-03-05T13:05:38.870+00:00] return result
[task 2026-03-05T13:05:38.870+00:00] /builds/worker/checkouts/vcs/.tox/py314/lib/python3.14/site-packages/pluggy/_callers.py:182: SyntaxWarning: 'return' in a 'finally' block
[task 2026-03-05T13:05:38.870+00:00] return outcome.get_result()
[task 2026-03-05T13:05:39.626+00:00] ============================= test session starts ==============================
[task 2026-03-05T13:05:39.627+00:00] platform linux -- Python 3.14.3, pytest-8.3.5, pluggy-1.5.0
[task 2026-03-05T13:05:39.627+00:00] cachedir: /builds/worker/checkouts/vcs/.tox/py314/.pytest_cache
[task 2026-03-05T13:05:39.627+00:00] rootdir: /builds/worker/checkouts/vcs/client
[task 2026-03-05T13:05:39.627+00:00] collected 153 items
[task 2026-03-05T13:05:39.627+00:00]
[task 2026-03-05T13:05:39.729+00:00] test_tooltool.py ....................................................... [ 35%]
[task 2026-03-05T13:05:45.595+00:00] ........................................................................ [ 83%]
[task 2026-03-05T13:05:45.669+00:00] .......................... [100%]
[task 2026-03-05T13:05:45.669+00:00]
[task 2026-03-05T13:05:45.669+00:00] ============================= 153 passed in 6.27s ==============================
[task 2026-03-05T13:05:45.727+00:00] -- checking coverage --
[task 2026-03-05T13:05:46.260+00:00] Wrote XML report to coverage.xml
[task 2026-03-05T13:05:46.643+00:00] Wrote HTML report to .coverage-html/index.html
[task 2026-03-05T13:05:46.670+00:00] Name Stmts Miss Cover
[task 2026-03-05T13:05:46.670+00:00] ---------------------------------
[task 2026-03-05T13:05:46.671+00:00] TOTAL 844 75 91%
[task 2026-03-05T13:05:46.671+00:00]
[task 2026-03-05T13:05:46.671+00:00] GOOD!
[task 2026-03-05T13:05:46.672+00:00] py314: commands[1]> sed -i -e 's|filename="|filename="client/|' coverage.xml
[task 2026-03-05T13:05:46.675+00:00] py314: OK (94.93=setup[86.34]+cmd[8.59,0.00] seconds)
[task 2026-03-05T13:05:46.675+00:00] congratulations :) (94.98 seconds)
[task 2026-03-05T13:05:46.720+00:00] tooltool_client-py314: commands[1] /builds/worker/checkouts/vcs/client> tox -e codecov
[task 2026-03-05T13:05:47.050+00:00] codecov: venv> /builds/worker/checkouts/vcs/.tox/tooltool_client-py314/bin/uv venv -p /builds/worker/checkouts/vcs/.tox/tooltool_client-py314/bin/python3 --allow-existing '--prompt=client[codecov]' --python-preference system /builds/worker/checkouts/vcs/.tox/codecov
[task 2026-03-05T13:05:47.094+00:00] codecov: install_deps> /builds/worker/checkouts/vcs/.tox/tooltool_client-py314/bin/uv pip install codecov
[task 2026-03-05T13:05:47.405+00:00] codecov: commands[0]> codecov --disable pycov --commit=8866390ccaa68f29b867bb105d3b07e8c405e8f4 --branch= --pr=1498
[task 2026-03-05T13:05:47.430+00:00] /builds/worker/checkouts/vcs/.tox/codecov/lib/python3.14/site-packages/codecov/__init__.py:167: SyntaxWarning: "\ " is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\ "? A raw string is also an option.
[task 2026-03-05T13:05:47.430+00:00] | | / _ \ / _ |/ _ \/ __/ _ \ \ / /
[task 2026-03-05T13:05:47.938+00:00]
[task 2026-03-05T13:05:47.938+00:00] _____ _
[task 2026-03-05T13:05:47.938+00:00] / ____| | |
[task 2026-03-05T13:05:47.938+00:00] | | ___ __| | ___ ___ _____ __
[task 2026-03-05T13:05:47.938+00:00] | | / _ \ / _ |/ _ \/ __/ _ \ \ / /
[task 2026-03-05T13:05:47.938+00:00] | |___| (_) | (_| | __/ (_| (_) \ V /
[task 2026-03-05T13:05:47.938+00:00] \_____\___/ \____|\___|\___\___/ \_/
[task 2026-03-05T13:05:47.938+00:00] v2.1.13
[task 2026-03-05T13:05:47.938+00:00]
[task 2026-03-05T13:05:47.938+00:00] ==> Detecting CI provider
[task 2026-03-05T13:05:47.938+00:00] -> Got branch from git/hg
[task 2026-03-05T13:05:47.938+00:00] -> Got sha from git/hg
[task 2026-03-05T13:05:47.938+00:00] ==> Preparing upload
[task 2026-03-05T13:05:47.938+00:00] ==> Processing gcov (disable by -X gcov)
[task 2026-03-05T13:05:47.938+00:00] ==> Collecting reports
[task 2026-03-05T13:05:47.938+00:00] + /builds/worker/checkouts/vcs/client/coverage.xml bytes=31471
[task 2026-03-05T13:05:47.938+00:00] + /builds/worker/checkouts/vcs/client/coveragerc bytes=535
[task 2026-03-05T13:05:47.938+00:00] ==> Uploading
[task 2026-03-05T13:05:47.938+00:00] .url https://codecov.io
[task 2026-03-05T13:05:47.938+00:00] .query commit=8866390ccaa68f29b867bb105d3b07e8c405e8f4&branch=no-more-warnings&pr=1498&token=<secret>&package=py2.1.13
[task 2026-03-05T13:05:47.938+00:00] Gzipping contents..
[task 2026-03-05T13:05:47.938+00:00] Compressed contents to 3495 bytes
[task 2026-03-05T13:05:47.938+00:00] Pinging Codecov...
[task 2026-03-05T13:05:47.938+00:00] Uploading to S3...
[task 2026-03-05T13:05:47.938+00:00] Uploading to S3 took 0:00:00.100647
[task 2026-03-05T13:05:47.938+00:00] https://app.codecov.io/github/mozilla-releng/tooltool/commit/8866390ccaa68f29b867bb105d3b07e8c405e8f4
[task 2026-03-05T13:05:47.965+00:00] codecov: OK (0.92=setup[0.36]+cmd[0.56] seconds)
[task 2026-03-05T13:05:47.965+00:00] congratulations :) (0.95 seconds)
[task 2026-03-05T13:05:48.007+00:00] tooltool_client-py314: OK (97.58=setup[0.71]+cmd[95.58,1.29] seconds)
[task 2026-03-05T13:05:48.007+00:00] congratulations :) (97.61 seconds)
[taskcluster 2026-03-05T13:05:48.221Z] Exit Code: 0
[taskcluster 2026-03-05T13:05:48.221Z] User Time: 9.333ms
[taskcluster 2026-03-05T13:05:48.221Z] Kernel Time: 18.667ms
[taskcluster 2026-03-05T13:05:48.221Z] Wall Time: 1m42.809160298s
[taskcluster 2026-03-05T13:05:48.221Z] Average Available System Memory: 14.52 GiB
[taskcluster 2026-03-05T13:05:48.221Z] Average System Memory Used: 1.10 GiB
[taskcluster 2026-03-05T13:05:48.221Z] Peak System Memory Used: 1.33 GiB
[taskcluster 2026-03-05T13:05:48.221Z] Total System Memory: 15.62 GiB
[taskcluster 2026-03-05T13:05:48.221Z] Result: SUCCEEDED
[taskcluster 2026-03-05T13:05:48.221Z] === Task Finished ===
[taskcluster 2026-03-05T13:05:48.221Z] Task Duration: 1m42.809612029s
[taskcluster 2026-03-05T13:05:48.280Z] [mounts] Preserving cache: Moving "/home/task_177271582070315/cache0" to "/home/generic-worker/caches/H4FE_98oTEKTMyhcqu9rmQ"
Loading