refactor: switch from black to ruff-format #3718
Draft
firefoxci-taskcluster / test-lint-backend
failed
Mar 16, 2026 in 2m 58s
FirefoxCI (pull_request)
balrog backend lints
Details
View task in Taskcluster | View logs in Taskcluster | View task group in Taskcluster
Task Status
Started: 2026-03-16T20:42:44.340Z
Resolved: 2026-03-16T20:43:49.359Z
Task Execution Time: 1 minute, 5 seconds, 19 milliseconds
Task Status: failed
Reason Resolved: failed
TaskId: QoccJ0K7RsGokruBy--_Sw
RunId: 0
Artifacts
- public/logs/live_backing.log
- public/logs/live.log
[taskcluster 2026-03-16T20:42:44.415Z] Worker Type (releng-t/linux-docker) settings:
[taskcluster 2026-03-16T20:42:44.415Z] {
[taskcluster 2026-03-16T20:42:44.415Z] "generic-worker": {
[taskcluster 2026-03-16T20:42:44.415Z] "config": {
[taskcluster 2026-03-16T20:42:44.415Z] "headlessTasks": true
[taskcluster 2026-03-16T20:42:44.415Z] },
[taskcluster 2026-03-16T20:42:44.415Z] "engine": "multiuser",
[taskcluster 2026-03-16T20:42:44.415Z] "go-arch": "amd64",
[taskcluster 2026-03-16T20:42:44.415Z] "go-os": "linux",
[taskcluster 2026-03-16T20:42:44.415Z] "go-version": "go1.26.0",
[taskcluster 2026-03-16T20:42:44.415Z] "release": "https://github.com/taskcluster/taskcluster/releases/tag/v97.0.1",
[taskcluster 2026-03-16T20:42:44.415Z] "revision": "6519c127aad40a47b1412136d9a5797a76eca200",
[taskcluster 2026-03-16T20:42:44.415Z] "source": "https://github.com/taskcluster/taskcluster/commits/6519c127aad40a47b1412136d9a5797a76eca200",
[taskcluster 2026-03-16T20:42:44.415Z] "version": "97.0.1"
[taskcluster 2026-03-16T20:42:44.415Z] },
[taskcluster 2026-03-16T20:42:44.415Z] "image": "projects/taskcluster-imaging/global/images/gw-fxci-gcp-l1-2404-amd64-headless-googlecompute-2026-03-05",
[taskcluster 2026-03-16T20:42:44.415Z] "instance-id": "8205752957310194696",
[taskcluster 2026-03-16T20:42:44.415Z] "instance-type": "projects/887720501152/machineTypes/c2-standard-4",
[taskcluster 2026-03-16T20:42:44.415Z] "local-ipv4": "10.128.0.76",
[taskcluster 2026-03-16T20:42:44.415Z] "project-id": "fxci-production-level1-workers",
[taskcluster 2026-03-16T20:42:44.415Z] "public-hostname": "releng-t-linux-docker-dox3y1zgty6zx3kflbq3ww.c.fxci-production-level1-workers.internal",
[taskcluster 2026-03-16T20:42:44.415Z] "public-ipv4": "34.66.204.179",
[taskcluster 2026-03-16T20:42:44.415Z] "region": "us-central1",
[taskcluster 2026-03-16T20:42:44.415Z] "zone": "us-central1-f"
[taskcluster 2026-03-16T20:42:44.415Z] }
[taskcluster 2026-03-16T20:42:44.415Z] Task ID: QoccJ0K7RsGokruBy--_Sw
[taskcluster 2026-03-16T20:42:44.415Z] === Task Starting ===
[taskcluster 2026-03-16T20:42:47.152Z] [mounts] No existing writable directory cache 'releng-level-1-checkouts-v3-cbbaf5380474618f5c43-TD-6ok12TIKsK9aYZN4Tsg' - creating /home/generic-worker/caches/Bb78GcZSRveSs36WjeaeYg
[taskcluster 2026-03-16T20:42:47.152Z] [mounts] Creating directory /home/task_177369376303946/cache0
[taskcluster 2026-03-16T20:42:47.162Z] [mounts] Successfully mounted writable directory cache '/home/task_177369376303946/cache0'
[taskcluster 2026-03-16T20:42:47.162Z] [mounts] Downloading task TD-6ok12TIKsK9aYZN4Tsg artifact public/image.tar.zst to /home/generic-worker/downloads/eS1-5_W6RsCs8Cy8hEMDUQ
[taskcluster 2026-03-16T20:42:54.070Z] [mounts] Downloaded 306132492 bytes with SHA256 ac8c6c34320e94796771a74833cb3976f3e9d1e658728c6c6bbd5ad47267c55d from task TD-6ok12TIKsK9aYZN4Tsg artifact public/image.tar.zst to /home/generic-worker/downloads/eS1-5_W6RsCs8Cy8hEMDUQ
[taskcluster:warn 2026-03-16T20:42:54.070Z] [mounts] Download /home/generic-worker/downloads/eS1-5_W6RsCs8Cy8hEMDUQ of task TD-6ok12TIKsK9aYZN4Tsg artifact public/image.tar.zst has SHA256 ac8c6c34320e94796771a74833cb3976f3e9d1e658728c6c6bbd5ad47267c55d but task payload does not declare a required value, so content authenticity cannot be verified
[taskcluster 2026-03-16T20:42:54.070Z] [mounts] File mount "dockerimage" handled by registered handler (cache: /home/generic-worker/downloads/eS1-5_W6RsCs8Cy8hEMDUQ, SHA256: ac8c6c34320e94796771a74833cb3976f3e9d1e658728c6c6bbd5ad47267c55d)
[taskcluster 2026-03-16T20:42:54.070Z] [d2g] Loading docker image
[taskcluster 2026-03-16T20:43:07.995Z] [d2g] Loaded docker image "python3.13:latest"
[taskcluster 2026-03-16T20:43:07.996Z] Executing command 0: docker run -t --name taskcontainer_K2VI4QPaRFih4pngNeCq0g --memory-swap -1 --pids-limit -1 '--add-host=localhost.localdomain:127.0.0.1' -v /home/task_177369376303946/cache0:/builds/worker/checkouts --add-host=taskcluster:host-gateway --env-file 'env.list' 9c2d9c390d7b42d0416e57b28e4301b1786dfec2492bae3cc018a3229503023a /usr/local/bin/run-task --balrog-checkout=/builds/worker/checkouts/vcs/ --task-cwd /builds/worker/checkouts/vcs -- uv run tox
[setup 2026-03-16T20:43:11.489+00:00] run-task started in /
[setup 2026-03-16T20:43:11.489+00:00] Invoked by command: --balrog-checkout=/builds/worker/checkouts/vcs/ --task-cwd /builds/worker/checkouts/vcs -- uv run tox
[setup 2026-03-16T20:43:11.489+00:00] Python version: 3.13.11
[setup 2026-03-16T20:43:11.489+00:00] Subprocess python version:
cpython-3.13.11-linux-x86_64-gnu /usr/local/bin/python3.13
cpython-3.13.11-linux-x86_64-gnu /usr/local/bin/python3 -> python3.13
cpython-3.13.11-linux-x86_64-gnu /usr/local/bin/python -> python3
cpython-3.11.2-linux-x86_64-gnu /usr/bin/python3.11
cpython-3.11.2-linux-x86_64-gnu /usr/bin/python3 -> python3.11
[cache 2026-03-16T20:43:11.766+00:00] cache /builds/worker/checkouts is empty; writing requirements: gid=1000 uid=1000 version=1
[volume 2026-03-16T20:43:11.766+00:00] changing ownership of volume /builds/worker/.cache to 1000:1000
[volume 2026-03-16T20:43:11.766+00:00] volume /builds/worker/checkouts is a cache
[setup 2026-03-16T20:43:11.766+00:00] running as worker:worker
[vcs 2026-03-16T20:43:11.766+00:00] executing ['git', 'config', '--global', '--add', 'safe.directory', '/builds/worker/checkouts/vcs']
[vcs 2026-03-16T20:43:11.769+00:00] executing ['git', 'clone', 'https://github.com/mozilla-releng/balrog', '/builds/worker/checkouts/vcs']
[vcs 2026-03-16T20:43:11.770+00:00] Cloning into '/builds/worker/checkouts/vcs'...
[vcs 2026-03-16T20:43:14.993+00:00] executing ['git', 'fetch', 'https://github.com/ahal/balrog', 'ahal/push-zmlxunxllrrs']
[vcs 2026-03-16T20:43:15.307+00:00] From https://github.com/ahal/balrog
[vcs 2026-03-16T20:43:15.307+00:00] * branch ahal/push-zmlxunxllrrs -> FETCH_HEAD
[vcs 2026-03-16T20:43:15.309+00:00] executing ['git', 'checkout', '-f', '-B', 'ahal/push-zmlxunxllrrs', '710c78287dacbeb133991685f4ad9ac4dfc6860f']
[vcs 2026-03-16T20:43:15.416+00:00] Switched to a new branch 'ahal/push-zmlxunxllrrs'
[vcs 2026-03-16T20:43:15.417+00:00] cleaning git checkout...
[vcs 2026-03-16T20:43:15.417+00:00] executing ['git', 'clean', '-nxdff']
[vcs 2026-03-16T20:43:15.425+00:00] removing []
[vcs 2026-03-16T20:43:15.425+00:00] successfully cleaned git checkout!
[vcs 2026-03-16T20:43:15.427+00:00] TinderboxPrint:<a href='https://github.com/ahal/balrog/commit/710c78287dacbeb133991685f4ad9ac4dfc6860f' title='Built from balrog commit 710c78287dacbeb133991685f4ad9ac4dfc6860f'>710c78287dacbeb133991685f4ad9ac4dfc6860f</a>
[task 2026-03-16T20:43:15.427+00:00] executing ['uv', 'run', 'tox']
[task 2026-03-16T20:43:15.519+00:00] Using CPython 3.13.11 interpreter at: /usr/local/bin/python3
[task 2026-03-16T20:43:15.519+00:00] Creating virtual environment at: .venv
[task 2026-03-16T20:43:15.538+00:00] Building balrog @ file:///builds/worker/checkouts/vcs
[task 2026-03-16T20:43:15.610+00:00] Downloading aiohttp (1.7MiB)
[task 2026-03-16T20:43:15.613+00:00] Downloading cryptography (4.3MiB)
[task 2026-03-16T20:43:15.613+00:00] Downloading virtualenv (5.6MiB)
[task 2026-03-16T20:43:15.614+00:00] Downloading uv (22.4MiB)
[task 2026-03-16T20:43:15.614+00:00] Downloading ruff (10.8MiB)
[task 2026-03-16T20:43:15.617+00:00] Downloading pygments (1.2MiB)
[task 2026-03-16T20:43:15.617+00:00] Downloading auth0-python (1.9MiB)
[task 2026-03-16T20:43:15.618+00:00] Downloading pydantic-core (2.0MiB)
[task 2026-03-16T20:43:15.618+00:00] Downloading setuptools (1.0MiB)
[task 2026-03-16T20:43:16.358+00:00] Downloaded pydantic-core
[task 2026-03-16T20:43:16.476+00:00] Downloaded aiohttp
[task 2026-03-16T20:43:16.515+00:00] Building mysqlclient==2.2.8
[task 2026-03-16T20:43:16.768+00:00] Downloaded pygments
[task 2026-03-16T20:43:16.787+00:00] Downloaded cryptography
[task 2026-03-16T20:43:16.855+00:00] Downloaded virtualenv
[task 2026-03-16T20:43:17.043+00:00] Downloaded setuptools
[task 2026-03-16T20:43:17.190+00:00] Downloaded ruff
[task 2026-03-16T20:43:17.211+00:00] Built balrog @ file:///builds/worker/checkouts/vcs
[task 2026-03-16T20:43:17.363+00:00] Downloaded uv
[task 2026-03-16T20:43:17.504+00:00] Building uwsgi==2.0.31
[task 2026-03-16T20:43:17.631+00:00] Building sqlalchemy==1.4.54
[task 2026-03-16T20:43:18.112+00:00] Downloaded auth0-python
[task 2026-03-16T20:43:22.089+00:00] Built mysqlclient==2.2.8
[task 2026-03-16T20:43:22.762+00:00] Built sqlalchemy==1.4.54
[task 2026-03-16T20:43:38.230+00:00] Built uwsgi==2.0.31
[task 2026-03-16T20:43:38.237+00:00] warning: Failed to hardlink files; falling back to full copy. This may lead to degraded performance.
[task 2026-03-16T20:43:38.238+00:00] If the cache and target directories are on different filesystems, hardlinking may not be supported.
[task 2026-03-16T20:43:38.238+00:00] If this is intentional, set `export UV_LINK_MODE=copy` or use `--link-mode=copy` to suppress this warning.
[task 2026-03-16T20:43:38.502+00:00] Installed 134 packages in 266ms
[task 2026-03-16T20:43:39.260+00:00] check: venv> .venv/bin/uv venv -p /builds/worker/checkouts/vcs/.venv/bin/python --allow-existing '--prompt=vcs[check]' --python-preference system /builds/worker/checkouts/vcs/.tox/check
[task 2026-03-16T20:43:39.370+00:00] check: uv-sync> .venv/bin/uv sync --locked --python-preference system -p /builds/worker/checkouts/vcs/.venv/bin/python
[task 2026-03-16T20:43:41.930+00:00] check: commands[0]> ruff format --diff scripts src taskcluster tests uwsgi
[task 2026-03-16T20:43:42.017+00:00] 152 files already formatted
[task 2026-03-16T20:43:42.019+00:00] check: commands[1]> isort --check --diff scripts src taskcluster tests uwsgi
[task 2026-03-16T20:43:42.756+00:00] check: commands[2]> flake8 scripts src taskcluster tests uwsgi
[task 2026-03-16T20:43:45.648+00:00] scripts/manage-db.py:70:28: E203 whitespace before ':'
[task 2026-03-16T20:43:45.648+00:00] yield list_object[i : i + n]
[task 2026-03-16T20:43:45.648+00:00] ^
[task 2026-03-16T20:43:45.648+00:00] taskcluster/balrog_taskgraph/target_tasks.py:16:45: E203 whitespace before ':'
[task 2026-03-16T20:43:45.648+00:00] tag = tag[len(_GIT_REFS_TAGS_PREFIX) :]
[task 2026-03-16T20:43:45.648+00:00] ^
[task 2026-03-16T20:43:45.649+00:00] taskcluster/balrog_taskgraph/target_tasks.py:31:55: E203 whitespace before ':'
[task 2026-03-16T20:43:45.649+00:00] head_tag = head_tag[len(_GIT_REFS_TAGS_PREFIX) :]
[task 2026-03-16T20:43:45.649+00:00] ^
[task 2026-03-16T20:43:45.678+00:00] check: exit 1 (2.92 seconds) /builds/worker/checkouts/vcs> flake8 scripts src taskcluster tests uwsgi pid=795
[task 2026-03-16T20:43:45.679+00:00] check: FAIL code 1 (6.42=setup[2.68]+cmd[0.09,0.74,2.92] seconds)
[task 2026-03-16T20:43:45.679+00:00] evaluation failed :( (6.49 seconds)
[taskcluster 2026-03-16T20:43:48.631Z] Exit Code: 1
[taskcluster 2026-03-16T20:43:48.631Z] User Time: 13.837ms
[taskcluster 2026-03-16T20:43:48.631Z] Kernel Time: 14.702ms
[taskcluster 2026-03-16T20:43:48.631Z] Wall Time: 40.63441698s
[taskcluster 2026-03-16T20:43:48.631Z] Average Available System Memory: 14.08 GiB
[taskcluster 2026-03-16T20:43:48.631Z] Average System Memory Used: 1.53 GiB
[taskcluster 2026-03-16T20:43:48.631Z] Peak System Memory Used: 1.76 GiB
[taskcluster 2026-03-16T20:43:48.631Z] Total System Memory: 15.61 GiB
[taskcluster 2026-03-16T20:43:48.631Z] Result: FAILED
[taskcluster 2026-03-16T20:43:48.631Z] === Task Finished ===
[taskcluster 2026-03-16T20:43:48.631Z] Task Duration: 40.634959515s
[taskcluster 2026-03-16T20:43:48.661Z] [mounts] Preserving cache: Moving "/home/task_177369376303946/cache0" to "/home/generic-worker/caches/Bb78GcZSRveSs36WjeaeYg"
[taskcluster:error] exit status 1
Loading