Skip to content

client: fix warnings in tests#1498

Draft
jcristau wants to merge 1 commit into
mozilla-releng:masterfrom
jcristau:no-more-warnings
Draft

client: fix warnings in tests#1498
jcristau wants to merge 1 commit into
mozilla-releng:masterfrom
jcristau:no-more-warnings

client: fix some warnings when running tests

8866390
Select commit
Loading
Failed to load commit list.
firefoxci-taskcluster / tox-client-312 succeeded Mar 5, 2026 in 3m 42s

FirefoxCI (pull_request)

test the tooltool client with python312

Details

View task in Taskcluster | View logs in Taskcluster | View task group in Taskcluster

Task Status

Started: 2026-03-05T13:03:32.062Z
Resolved: 2026-03-05T13:04:14.534Z
Task Execution Time: 42 seconds, 472 milliseconds
Task Status: completed
Reason Resolved: completed
TaskId: FGa3Kw6NQoW5dS4EJZzk0w
RunId: 0

Artifacts

- public/logs/live_backing.log
- public/logs/live.log


[taskcluster 2026-03-05T13:03:32.095Z] Worker Type (releng-t/linux-docker) settings:
[taskcluster 2026-03-05T13:03:32.095Z]   {
[taskcluster 2026-03-05T13:03:32.095Z]     "config": {
[taskcluster 2026-03-05T13:03:32.095Z]       "deploymentId": ""
[taskcluster 2026-03-05T13:03:32.095Z]     },
[taskcluster 2026-03-05T13:03:32.095Z]     "generic-worker": {
[taskcluster 2026-03-05T13:03:32.095Z]       "config": {
[taskcluster 2026-03-05T13:03:32.095Z]         "headlessTasks": true
[taskcluster 2026-03-05T13:03:32.095Z]       },
[taskcluster 2026-03-05T13:03:32.095Z]       "engine": "multiuser",
[taskcluster 2026-03-05T13:03:32.095Z]       "go-arch": "amd64",
[taskcluster 2026-03-05T13:03:32.095Z]       "go-os": "linux",
[taskcluster 2026-03-05T13:03:32.095Z]       "go-version": "go1.25.5",
[taskcluster 2026-03-05T13:03:32.095Z]       "release": "https://github.com/taskcluster/taskcluster/releases/tag/v95.1.3",
[taskcluster 2026-03-05T13:03:32.095Z]       "revision": "300ac23a15bb11e577f3a3d116a570fde948337e",
[taskcluster 2026-03-05T13:03:32.095Z]       "source": "https://github.com/taskcluster/taskcluster/commits/300ac23a15bb11e577f3a3d116a570fde948337e",
[taskcluster 2026-03-05T13:03:32.095Z]       "version": "95.1.3"
[taskcluster 2026-03-05T13:03:32.095Z]     },
[taskcluster 2026-03-05T13:03:32.095Z]     "image": "projects/taskcluster-imaging/global/images/gw-fxci-gcp-l1-2404-amd64-headless-googlecompute-2026-01-14",
[taskcluster 2026-03-05T13:03:32.095Z]     "instance-id": "3125630485292957753",
[taskcluster 2026-03-05T13:03:32.095Z]     "instance-type": "projects/887720501152/machineTypes/c2-standard-4",
[taskcluster 2026-03-05T13:03:32.095Z]     "local-ipv4": "10.138.0.96",
[taskcluster 2026-03-05T13:03:32.095Z]     "project-id": "fxci-production-level1-workers",
[taskcluster 2026-03-05T13:03:32.095Z]     "public-hostname": "releng-t-linux-docker-ix-zi5ibtp-xrnmja-pcda.c.fxci-production-level1-workers.internal",
[taskcluster 2026-03-05T13:03:32.095Z]     "public-ipv4": "35.233.153.197",
[taskcluster 2026-03-05T13:03:32.095Z]     "region": "us-west1",
[taskcluster 2026-03-05T13:03:32.095Z]     "zone": "us-west1-c"
[taskcluster 2026-03-05T13:03:32.095Z]   }
[taskcluster 2026-03-05T13:03:32.095Z] Task ID: FGa3Kw6NQoW5dS4EJZzk0w
[taskcluster 2026-03-05T13:03:32.095Z] === Task Starting ===
[taskcluster 2026-03-05T13:03:32.648Z] [mounts] No existing writable directory cache 'releng-level-1-checkouts-v3-cbbaf5380474618f5c43-IQn81AxTSpGRWqO8LlfSuA' - creating /home/generic-worker/caches/NSeIKK3nRcOj-sS_xfhBKQ
[taskcluster 2026-03-05T13:03:32.648Z] [mounts] Creating directory /home/task_177271581172444/cache0
[taskcluster 2026-03-05T13:03:32.658Z] [mounts] Successfully mounted writable directory cache '/home/task_177271581172444/cache0'
[taskcluster 2026-03-05T13:03:32.658Z] [mounts] Downloading task IQn81AxTSpGRWqO8LlfSuA artifact public/image.tar.zst to /home/generic-worker/downloads/Uashn9LuTZK13VlMvQfmaw
[taskcluster 2026-03-05T13:03:40.120Z] [mounts] Downloaded 366586887 bytes with SHA256 3fb8646c93680ad1e80b00163f264b2713003aed980a8e58411725888ee0b0c4 from task IQn81AxTSpGRWqO8LlfSuA artifact public/image.tar.zst to /home/generic-worker/downloads/Uashn9LuTZK13VlMvQfmaw
[taskcluster:warn 2026-03-05T13:03:40.120Z] [mounts] Download /home/generic-worker/downloads/Uashn9LuTZK13VlMvQfmaw of task IQn81AxTSpGRWqO8LlfSuA artifact public/image.tar.zst has SHA256 3fb8646c93680ad1e80b00163f264b2713003aed980a8e58411725888ee0b0c4 but task payload does not declare a required value, so content authenticity cannot be verified
[taskcluster 2026-03-05T13:03:40.120Z] [mounts] Creating directory /home/task_177271581172444
[taskcluster 2026-03-05T13:03:40.141Z] [mounts] Copying /home/generic-worker/downloads/Uashn9LuTZK13VlMvQfmaw to /home/task_177271581172444/dockerimage
[taskcluster 2026-03-05T13:03:41.154Z] [mounts] Granting task_177271581172444 full control of file '/home/task_177271581172444/dockerimage'
[taskcluster 2026-03-05T13:03:42.053Z] [d2g] Loading docker image
[taskcluster 2026-03-05T13:03:56.222Z] [d2g] Loaded docker image "client-tox-py312:latest"
[taskcluster 2026-03-05T13:03:56.222Z] Executing command 0: docker run -t --name taskcontainer_CflepBnKTpSeZsFD62ynHg --memory-swap -1 --pids-limit -1 '--add-host=localhost.localdomain:127.0.0.1' -v /home/task_177271581172444/cache0:/builds/worker/checkouts --add-host=taskcluster:host-gateway --env-file 'env.list' 0b70ed33635b7b37663b8d619fe3d313237909cb90024259558f8356446994ba /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-py312'
[setup 2026-03-05T13:03:58.904+00:00] run-task started in /
[setup 2026-03-05T13:03:58.904+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-py312
[setup 2026-03-05T13:03:58.905+00:00] Python version: 3.12.12
[setup 2026-03-05T13:03:58.905+00:00] Subprocess python version: 
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
cpython-3.12.12-linux-x86_64-gnu    /usr/local/bin/python3.12
cpython-3.12.12-linux-x86_64-gnu    /usr/local/bin/python3 -> python3.12
cpython-3.12.12-linux-x86_64-gnu    /usr/local/bin/python -> python3
[cache 2026-03-05T13:03:59.160+00:00] cache /builds/worker/checkouts is empty; writing requirements: gid=1000 uid=1000 version=1
[volume 2026-03-05T13:03:59.160+00:00] changing ownership of volume /builds/worker/.cache to 1000:1000
[volume 2026-03-05T13:03:59.160+00:00] volume /builds/worker/checkouts is a cache
[setup 2026-03-05T13:03:59.160+00:00] running as worker:worker
[vcs 2026-03-05T13:03:59.160+00:00] executing ['git', 'config', '--global', '--add', 'safe.directory', '/builds/worker/checkouts/vcs']
[vcs 2026-03-05T13:03:59.164+00:00] executing ['git', 'clone', 'https://github.com/mozilla-releng/tooltool', '/builds/worker/checkouts/vcs']
[vcs 2026-03-05T13:03:59.165+00:00] Cloning into '/builds/worker/checkouts/vcs'...
[vcs 2026-03-05T13:04:00.388+00:00] executing ['git', 'fetch', 'https://github.com/jcristau/tooltool', 'no-more-warnings']
[vcs 2026-03-05T13:04:00.766+00:00] From https://github.com/jcristau/tooltool
[vcs 2026-03-05T13:04:00.766+00:00]  * branch            no-more-warnings -> FETCH_HEAD
[vcs 2026-03-05T13:04:00.768+00:00] executing ['git', 'checkout', '-f', '-B', 'no-more-warnings', '8866390ccaa68f29b867bb105d3b07e8c405e8f4']
[vcs 2026-03-05T13:04:00.782+00:00] Switched to a new branch 'no-more-warnings'
[vcs 2026-03-05T13:04:00.783+00:00] cleaning git checkout...
[vcs 2026-03-05T13:04:00.783+00:00] executing ['git', 'clean', '-nxdff']
[vcs 2026-03-05T13:04:00.785+00:00] removing []
[vcs 2026-03-05T13:04:00.785+00:00] successfully cleaned git checkout!
[vcs 2026-03-05T13:04:00.786+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:00.786+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-py312']
[task 2026-03-05T13:04:00.788+00:00] + set +x
[task 2026-03-05T13:04:00.904+00:00] + tox -e tooltool_client-py312
[task 2026-03-05T13:04:01.224+00:00] tooltool_client-py312: venv> /usr/local/bin/uv venv -p /usr/local/bin/python3.12 --allow-existing --python-preference system /builds/worker/checkouts/vcs/.tox/tooltool_client-py312
[task 2026-03-05T13:04:01.310+00:00] tooltool_client-py312: install_deps> /usr/local/bin/uv pip install tox tox-uv
[task 2026-03-05T13:04:01.809+00:00] tooltool_client-py312: commands[0] /builds/worker/checkouts/vcs/client> tox -e py312
[task 2026-03-05T13:04:02.358+00:00] py312: venv> /builds/worker/checkouts/vcs/.tox/tooltool_client-py312/bin/uv venv -p /builds/worker/checkouts/vcs/.tox/tooltool_client-py312/bin/python3 --allow-existing '--prompt=client[py312]' --python-preference system /builds/worker/checkouts/vcs/.tox/py312
[task 2026-03-05T13:04:02.415+00:00] py312: install_deps> /builds/worker/checkouts/vcs/.tox/tooltool_client-py312/bin/uv pip install -r requirements/test.txt
[task 2026-03-05T13:04:02.717+00:00] py312: commands[0]> ./validate.sh
[task 2026-03-05T13:04:02.722+00:00] -- running pyflakes --
[task 2026-03-05T13:04:02.898+00:00] -- running tests (under coverage) --
[task 2026-03-05T13:04:04.348+00:00] ============================= test session starts ==============================
[task 2026-03-05T13:04:04.348+00:00] platform linux -- Python 3.12.12, pytest-8.3.5, pluggy-1.5.0
[task 2026-03-05T13:04:04.348+00:00] cachedir: /builds/worker/checkouts/vcs/.tox/py312/.pytest_cache
[task 2026-03-05T13:04:04.348+00:00] rootdir: /builds/worker/checkouts/vcs/client
[task 2026-03-05T13:04:04.348+00:00] collected 153 items
[task 2026-03-05T13:04:04.348+00:00] 
[task 2026-03-05T13:04:04.440+00:00] test_tooltool.py ....................................................... [ 35%]
[task 2026-03-05T13:04:11.357+00:00] ........................................................................ [ 83%]
[task 2026-03-05T13:04:11.425+00:00] ..........................                                               [100%]
[task 2026-03-05T13:04:11.425+00:00] 
[task 2026-03-05T13:04:11.425+00:00] =============================== warnings summary ===============================
[task 2026-03-05T13:04:11.425+00:00] test_tooltool.py: 10 warnings
[task 2026-03-05T13:04:11.425+00:00]   /builds/worker/checkouts/vcs/client/tooltool.py:1016: DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior.
[task 2026-03-05T13:04:11.425+00:00]     super(TarFile, self).extractall(*args, **kwargs)
[task 2026-03-05T13:04:11.425+00:00] 
[task 2026-03-05T13:04:11.425+00:00] -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
[task 2026-03-05T13:04:11.425+00:00] ======================= 153 passed, 10 warnings in 7.71s =======================
[task 2026-03-05T13:04:11.465+00:00] -- checking coverage --
[task 2026-03-05T13:04:11.958+00:00] Wrote XML report to coverage.xml
[task 2026-03-05T13:04:12.317+00:00] Wrote HTML report to .coverage-html/index.html
[task 2026-03-05T13:04:12.339+00:00] Name          Stmts   Miss  Cover
[task 2026-03-05T13:04:12.339+00:00] ---------------------------------
[task 2026-03-05T13:04:12.340+00:00] TOTAL           844     67    92%
[task 2026-03-05T13:04:12.341+00:00] 
[task 2026-03-05T13:04:12.341+00:00] GOOD!
[task 2026-03-05T13:04:12.342+00:00] py312: commands[1]> sed -i -e 's|filename="|filename="client/|' coverage.xml
[task 2026-03-05T13:04:12.345+00:00]   py312: OK (9.99=setup[0.36]+cmd[9.62,0.00] seconds)
[task 2026-03-05T13:04:12.345+00:00]   congratulations :) (10.03 seconds)
[task 2026-03-05T13:04:12.378+00:00] tooltool_client-py312: commands[1] /builds/worker/checkouts/vcs/client> tox -e codecov
[task 2026-03-05T13:04:12.697+00:00] codecov: venv> /builds/worker/checkouts/vcs/.tox/tooltool_client-py312/bin/uv venv -p /builds/worker/checkouts/vcs/.tox/tooltool_client-py312/bin/python3 --allow-existing '--prompt=client[codecov]' --python-preference system /builds/worker/checkouts/vcs/.tox/codecov
[task 2026-03-05T13:04:12.742+00:00] codecov: install_deps> /builds/worker/checkouts/vcs/.tox/tooltool_client-py312/bin/uv pip install codecov
[task 2026-03-05T13:04:12.955+00:00] codecov: commands[0]> codecov --disable pycov --commit=8866390ccaa68f29b867bb105d3b07e8c405e8f4 --branch= --pr=1498
[task 2026-03-05T13:04:12.969+00:00] /builds/worker/checkouts/vcs/.tox/codecov/lib/python3.12/site-packages/codecov/__init__.py:167: SyntaxWarning: invalid escape sequence '\ '
[task 2026-03-05T13:04:12.969+00:00]   | |    / _ \ / _  |/ _ \/ __/ _ \ \ / /
[task 2026-03-05T13:04:13.902+00:00] 
[task 2026-03-05T13:04:13.902+00:00]       _____          _
[task 2026-03-05T13:04:13.902+00:00]      / ____|        | |
[task 2026-03-05T13:04:13.902+00:00]     | |     ___   __| | ___  ___ _____   __
[task 2026-03-05T13:04:13.902+00:00]     | |    / _ \ / _  |/ _ \/ __/ _ \ \ / /
[task 2026-03-05T13:04:13.902+00:00]     | |___| (_) | (_| |  __/ (_| (_) \ V /
[task 2026-03-05T13:04:13.902+00:00]      \_____\___/ \____|\___|\___\___/ \_/
[task 2026-03-05T13:04:13.902+00:00]                                     v2.1.13
[task 2026-03-05T13:04:13.902+00:00] 
[task 2026-03-05T13:04:13.902+00:00] ==> Detecting CI provider
[task 2026-03-05T13:04:13.902+00:00]   -> Got branch from git/hg
[task 2026-03-05T13:04:13.902+00:00]   -> Got sha from git/hg
[task 2026-03-05T13:04:13.902+00:00] ==> Preparing upload
[task 2026-03-05T13:04:13.902+00:00] ==> Processing gcov (disable by -X gcov)
[task 2026-03-05T13:04:13.902+00:00] ==> Collecting reports
[task 2026-03-05T13:04:13.902+00:00]     + /builds/worker/checkouts/vcs/client/coveragerc bytes=535
[task 2026-03-05T13:04:13.902+00:00]     + /builds/worker/checkouts/vcs/client/coverage.xml bytes=31471
[task 2026-03-05T13:04:13.902+00:00] ==> Uploading
[task 2026-03-05T13:04:13.902+00:00]     .url https://codecov.io
[task 2026-03-05T13:04:13.902+00:00]     .query commit=8866390ccaa68f29b867bb105d3b07e8c405e8f4&branch=no-more-warnings&pr=1498&token=<secret>&package=py2.1.13
[task 2026-03-05T13:04:13.902+00:00]     Gzipping contents..
[task 2026-03-05T13:04:13.902+00:00]     Compressed contents to 3489 bytes
[task 2026-03-05T13:04:13.902+00:00]     Pinging Codecov...
[task 2026-03-05T13:04:13.902+00:00]     Uploading to S3...
[task 2026-03-05T13:04:13.902+00:00]     Uploading to S3 took 0:00:00.452664
[task 2026-03-05T13:04:13.902+00:00]     https://app.codecov.io/github/mozilla-releng/tooltool/commit/8866390ccaa68f29b867bb105d3b07e8c405e8f4
[task 2026-03-05T13:04:13.923+00:00]   codecov: OK (1.23=setup[0.26]+cmd[0.97] seconds)
[task 2026-03-05T13:04:13.923+00:00]   congratulations :) (1.25 seconds)
[task 2026-03-05T13:04:13.955+00:00]   tooltool_client-py312: OK (12.73=setup[0.59]+cmd[10.57,1.58] seconds)
[task 2026-03-05T13:04:13.955+00:00]   congratulations :) (12.76 seconds)
[taskcluster 2026-03-05T13:04:14.100Z]                        Exit Code: 0
[taskcluster 2026-03-05T13:04:14.100Z]                        User Time: 9.987ms
[taskcluster 2026-03-05T13:04:14.100Z]                      Kernel Time: 17.756ms
[taskcluster 2026-03-05T13:04:14.100Z]                        Wall Time: 17.877879268s
[taskcluster 2026-03-05T13:04:14.100Z]  Average Available System Memory: 14.85 GiB
[taskcluster 2026-03-05T13:04:14.100Z]       Average System Memory Used: 782.65 MiB
[taskcluster 2026-03-05T13:04:14.100Z]          Peak System Memory Used: 849.96 MiB
[taskcluster 2026-03-05T13:04:14.100Z]              Total System Memory: 15.62 GiB
[taskcluster 2026-03-05T13:04:14.100Z]                           Result: SUCCEEDED
[taskcluster 2026-03-05T13:04:14.100Z] === Task Finished ===
[taskcluster 2026-03-05T13:04:14.100Z] Task Duration: 17.878404114s
[taskcluster 2026-03-05T13:04:14.121Z] [mounts] Preserving cache: Moving "/home/task_177271581172444/cache0" to "/home/generic-worker/caches/NSeIKK3nRcOj-sS_xfhBKQ"