feat(cot): Bug 2034520 improve json download and parsing error handling#791
Open
hneiva wants to merge 2 commits into
Open
feat(cot): Bug 2034520 improve json download and parsing error handling#791hneiva wants to merge 2 commits into
hneiva wants to merge 2 commits into
firefoxci-taskcluster / tox-py312-cot
succeeded
Apr 23, 2026 in 3m 47s
FirefoxCI (pull_request)
py312-cot tox-py312-cot
Details
View task in Taskcluster | View logs in Taskcluster | View task group in Taskcluster
Task Status
Started: 2026-04-23T22:08:40.753Z
Resolved: 2026-04-23T22:10:49.195Z
Task Execution Time: 2 minutes, 8 seconds, 442 milliseconds
Task Status: completed
Reason Resolved: completed
TaskId: FGoQ-tKuTXabEH7tS3eSkA
RunId: 0
Artifacts
- public/logs/live_backing.log
- public/logs/live.log
[taskcluster 2026-04-23T22:08:40.803Z] Worker Type (scriptworker-1/images) settings:
[taskcluster 2026-04-23T22:08:40.803Z] {
[taskcluster 2026-04-23T22:08:40.803Z] "generic-worker": {
[taskcluster 2026-04-23T22:08:40.803Z] "config": {
[taskcluster 2026-04-23T22:08:40.803Z] "headlessTasks": true
[taskcluster 2026-04-23T22:08:40.803Z] },
[taskcluster 2026-04-23T22:08:40.803Z] "engine": "multiuser",
[taskcluster 2026-04-23T22:08:40.803Z] "go-arch": "amd64",
[taskcluster 2026-04-23T22:08:40.803Z] "go-os": "linux",
[taskcluster 2026-04-23T22:08:40.803Z] "go-version": "go1.26.0",
[taskcluster 2026-04-23T22:08:40.803Z] "release": "https://github.com/taskcluster/taskcluster/releases/tag/v97.0.1",
[taskcluster 2026-04-23T22:08:40.803Z] "revision": "6519c127aad40a47b1412136d9a5797a76eca200",
[taskcluster 2026-04-23T22:08:40.803Z] "source": "https://github.com/taskcluster/taskcluster/commits/6519c127aad40a47b1412136d9a5797a76eca200",
[taskcluster 2026-04-23T22:08:40.803Z] "version": "97.0.1"
[taskcluster 2026-04-23T22:08:40.803Z] },
[taskcluster 2026-04-23T22:08:40.803Z] "image": "projects/taskcluster-imaging/global/images/gw-fxci-gcp-l1-2404-amd64-headless-googlecompute-2026-03-05",
[taskcluster 2026-04-23T22:08:40.803Z] "instance-id": "6542573721440691937",
[taskcluster 2026-04-23T22:08:40.803Z] "instance-type": "projects/887720501152/machineTypes/c2-standard-4",
[taskcluster 2026-04-23T22:08:40.803Z] "local-ipv4": "10.128.1.91",
[taskcluster 2026-04-23T22:08:40.803Z] "project-id": "fxci-production-level1-workers",
[taskcluster 2026-04-23T22:08:40.803Z] "public-hostname": "scriptworker-1-images-xu-vzyx1qeif2vchozp-ra.c.fxci-production-level1-workers.internal",
[taskcluster 2026-04-23T22:08:40.803Z] "public-ipv4": "34.58.6.74",
[taskcluster 2026-04-23T22:08:40.803Z] "region": "us-central1",
[taskcluster 2026-04-23T22:08:40.803Z] "zone": "us-central1-c"
[taskcluster 2026-04-23T22:08:40.803Z] }
[taskcluster 2026-04-23T22:08:40.803Z] Task ID: FGoQ-tKuTXabEH7tS3eSkA
[taskcluster 2026-04-23T22:08:40.803Z] === Task Starting ===
[taskcluster 2026-04-23T22:08:42.154Z] [mounts] No existing writable directory cache 'scriptworker-level-1-checkouts-v3-aeb56a8acbdc7df6c7d5-UcTPNqD_RjiGvuDtuGarLw' - creating /home/generic-worker/caches/SZCDu9-vRsCfWW-C4JZvag
[taskcluster 2026-04-23T22:08:42.154Z] [mounts] Creating directory /home/task_177698211990245/cache0
[taskcluster 2026-04-23T22:08:42.164Z] [mounts] Successfully mounted writable directory cache '/home/task_177698211990245/cache0'
[taskcluster 2026-04-23T22:08:42.165Z] [mounts] No existing writable directory cache 'scriptworker-level-1-uv-v3-aeb56a8acbdc7df6c7d5-UcTPNqD_RjiGvuDtuGarLw' - creating /home/generic-worker/caches/WY3QFZJaSz2jdl-BF6fKDw
[taskcluster 2026-04-23T22:08:42.165Z] [mounts] Creating directory /home/task_177698211990245/cache1
[taskcluster 2026-04-23T22:08:42.175Z] [mounts] Successfully mounted writable directory cache '/home/task_177698211990245/cache1'
[taskcluster 2026-04-23T22:08:42.175Z] [mounts] Downloading task UcTPNqD_RjiGvuDtuGarLw artifact public/image.tar.zst to /home/generic-worker/downloads/Xlxw97FjSjOxEePyDqoUgg
[taskcluster 2026-04-23T22:08:43.980Z] [mounts] Downloaded 98796055 bytes with SHA256 afdd0496c420e8a7d949a596b601128f2433a66a05b15334b2df542fd13494f5 from task UcTPNqD_RjiGvuDtuGarLw artifact public/image.tar.zst to /home/generic-worker/downloads/Xlxw97FjSjOxEePyDqoUgg
[taskcluster:warn 2026-04-23T22:08:43.980Z] [mounts] Download /home/generic-worker/downloads/Xlxw97FjSjOxEePyDqoUgg of task UcTPNqD_RjiGvuDtuGarLw artifact public/image.tar.zst has SHA256 afdd0496c420e8a7d949a596b601128f2433a66a05b15334b2df542fd13494f5 but task payload does not declare a required value, so content authenticity cannot be verified
[taskcluster 2026-04-23T22:08:43.980Z] [mounts] File mount "dockerimage" handled by registered handler (cache: /home/generic-worker/downloads/Xlxw97FjSjOxEePyDqoUgg, SHA256: afdd0496c420e8a7d949a596b601128f2433a66a05b15334b2df542fd13494f5)
[taskcluster 2026-04-23T22:08:43.980Z] [d2g] Loading docker image
[taskcluster 2026-04-23T22:08:48.968Z] [d2g] Loaded docker image "python3.12:latest"
[taskcluster 2026-04-23T22:08:48.969Z] Executing command 0: docker run -t --name taskcontainer_JP8h_fD6QPKWsduvPyGDKw --memory-swap -1 --pids-limit -1 '--add-host=localhost.localdomain:127.0.0.1' -v /home/task_177698211990245/cache0:/builds/worker/checkouts -v '/home/task_177698211990245/cache1:/builds/worker/.task-cache/uv' --add-host=taskcluster:host-gateway --env-file 'env.list' 10e8f9842af2017760827e75a533b916a58696f7a61bf54d3a729cf4b825e3aa /usr/local/bin/run-task --scriptworker-checkout=/builds/worker/checkouts/vcs/ --task-cwd /builds/worker/checkouts/vcs -- sh -lxce 'uv run tox -e py312-cot'
[setup 2026-04-23T22:08:51.442+00:00] run-task started in /
[setup 2026-04-23T22:08:51.442+00:00] Invoked by command: --scriptworker-checkout=/builds/worker/checkouts/vcs/ --task-cwd /builds/worker/checkouts/vcs -- sh -lxce uv run tox -e py312-cot
[setup 2026-04-23T22:08:51.442+00:00] Python version: 3.12.12
[setup 2026-04-23T22:08:51.442+00:00] Subprocess python version:
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-04-23T22:08:51.615+00:00] cache /builds/worker/.task-cache/uv is empty; writing requirements: gid=1000 uid=1000 version=1
[cache 2026-04-23T22:08:51.615+00:00] cache /builds/worker/checkouts is empty; writing requirements: gid=1000 uid=1000 version=1
[volume 2026-04-23T22:08:51.615+00:00] volume /builds/worker/.task-cache/uv is a cache
[volume 2026-04-23T22:08:51.615+00:00] volume /builds/worker/checkouts is a cache
[setup 2026-04-23T22:08:51.615+00:00] running as worker:worker
[vcs 2026-04-23T22:08:51.616+00:00] executing ['git', 'config', '--global', '--add', 'safe.directory', '/builds/worker/checkouts/vcs']
[vcs 2026-04-23T22:08:51.619+00:00] executing ['git', 'clone', 'https://github.com/mozilla-releng/scriptworker', '/builds/worker/checkouts/vcs']
[vcs 2026-04-23T22:08:51.621+00:00] Cloning into '/builds/worker/checkouts/vcs'...
[vcs 2026-04-23T22:08:53.164+00:00] executing ['git', 'fetch', '--tags', '--force', 'https://github.com/mozilla-releng/scriptworker', 'hneiva/json-error']
[vcs 2026-04-23T22:08:53.383+00:00] From https://github.com/mozilla-releng/scriptworker
[vcs 2026-04-23T22:08:53.383+00:00] * branch hneiva/json-error -> FETCH_HEAD
[vcs 2026-04-23T22:08:53.392+00:00] executing ['git', 'checkout', '-f', '-B', 'hneiva/json-error', 'c5ca4ceb2f5a9dea3e789cae0e2cfc23228ae917']
[vcs 2026-04-23T22:08:53.465+00:00] Switched to a new branch 'hneiva/json-error'
[vcs 2026-04-23T22:08:53.466+00:00] cleaning git checkout...
[vcs 2026-04-23T22:08:53.466+00:00] executing ['git', 'clean', '-nxdff']
[vcs 2026-04-23T22:08:53.468+00:00] removing []
[vcs 2026-04-23T22:08:53.468+00:00] successfully cleaned git checkout!
[vcs 2026-04-23T22:08:53.470+00:00] TinderboxPrint:<a href='https://github.com/mozilla-releng/scriptworker/commit/c5ca4ceb2f5a9dea3e789cae0e2cfc23228ae917' title='Built from scriptworker commit c5ca4ceb2f5a9dea3e789cae0e2cfc23228ae917'>c5ca4ceb2f5a9dea3e789cae0e2cfc23228ae917</a>
[setup 2026-04-23T22:08:53.470+00:00] UV_CACHE_DIR is /builds/worker/.task-cache/uv
[task 2026-04-23T22:08:53.470+00:00] executing ['sh', '-lxce', 'uv run tox -e py312-cot']
[task 2026-04-23T22:08:53.471+00:00] + id -u
[task 2026-04-23T22:08:53.472+00:00] + [ 1000 -eq 0 ]
[task 2026-04-23T22:08:53.472+00:00] + PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
[task 2026-04-23T22:08:53.472+00:00] + export PATH
[task 2026-04-23T22:08:53.472+00:00] + [ $ ]
[task 2026-04-23T22:08:53.472+00:00] + [ ]
[task 2026-04-23T22:08:53.472+00:00] + id -u
[task 2026-04-23T22:08:53.473+00:00] + [ 1000 -eq 0 ]
[task 2026-04-23T22:08:53.474+00:00] + PS1=$
[task 2026-04-23T22:08:53.474+00:00] + [ -d /etc/profile.d ]
[task 2026-04-23T22:08:53.474+00:00] + [ -r /etc/profile.d/*.sh ]
[task 2026-04-23T22:08:53.474+00:00] + unset i
[task 2026-04-23T22:08:53.474+00:00] + uv run tox -e py312-cot
[task 2026-04-23T22:08:53.553+00:00] Using CPython 3.12.12 interpreter at: /usr/local/bin/python3
[task 2026-04-23T22:08:53.553+00:00] Creating virtual environment at: .venv
[task 2026-04-23T22:08:54.332+00:00] Building scriptworker @ file:///builds/worker/checkouts/vcs
[task 2026-04-23T22:08:54.396+00:00] Downloading aiohttp (1.7MiB)
[task 2026-04-23T22:08:54.400+00:00] Downloading pygments (1.2MiB)
[task 2026-04-23T22:08:54.401+00:00] Downloading cryptography (4.3MiB)
[task 2026-04-23T22:08:54.402+00:00] Downloading black (1.7MiB)
[task 2026-04-23T22:08:54.407+00:00] Downloading mypy (14.1MiB)
[task 2026-04-23T22:08:54.409+00:00] Downloading uv (23.8MiB)
[task 2026-04-23T22:08:54.409+00:00] Downloading virtualenv (5.6MiB)
[task 2026-04-23T22:08:54.920+00:00] Downloaded aiohttp
[task 2026-04-23T22:08:54.934+00:00] Downloaded black
[task 2026-04-23T22:08:54.977+00:00] Downloaded pygments
[task 2026-04-23T22:08:55.379+00:00] Downloaded virtualenv
[task 2026-04-23T22:08:55.446+00:00] Downloaded cryptography
[task 2026-04-23T22:08:55.653+00:00] Built scriptworker @ file:///builds/worker/checkouts/vcs
[task 2026-04-23T22:08:55.779+00:00] Downloaded uv
[task 2026-04-23T22:08:55.848+00:00] Downloaded mypy
[task 2026-04-23T22:08:55.850+00:00] warning: Failed to hardlink files; falling back to full copy. This may lead to degraded performance.
[task 2026-04-23T22:08:55.850+00:00] If the cache and target directories are on different filesystems, hardlinking may not be supported.
[task 2026-04-23T22:08:55.850+00:00] If this is intentional, set `export UV_LINK_MODE=copy` or use `--link-mode=copy` to suppress this warning.
[task 2026-04-23T22:08:56.045+00:00] Installed 108 packages in 195ms
[task 2026-04-23T22:08:56.723+00:00] py312-cot: venv> .venv/bin/uv venv -p cpython3.12 --allow-existing '--prompt=vcs[py312-cot]' --python-preference system /builds/worker/checkouts/vcs/.tox/py312-cot
[task 2026-04-23T22:08:56.965+00:00] .pkg: venv> .venv/bin/uv venv -p /builds/worker/checkouts/vcs/.venv/bin/python --allow-existing '--prompt=vcs[.pkg]' --python-preference system /builds/worker/checkouts/vcs/.tox/.pkg
[task 2026-04-23T22:08:57.014+00:00] .pkg: install_requires> .venv/bin/uv pip install hatchling
[task 2026-04-23T22:08:57.499+00:00] .pkg: _optional_hooks> python /builds/worker/checkouts/vcs/.venv/lib/python3.12/site-packages/pyproject_api/_backend.py True hatchling.build
[task 2026-04-23T22:08:57.545+00:00] .pkg: get_requires_for_build_editable> python /builds/worker/checkouts/vcs/.venv/lib/python3.12/site-packages/pyproject_api/_backend.py True hatchling.build
[task 2026-04-23T22:08:57.665+00:00] .pkg: install_requires_for_build_editable> .venv/bin/uv pip install 'editables~=0.3'
[task 2026-04-23T22:08:57.805+00:00] .pkg: build_editable> python /builds/worker/checkouts/vcs/.venv/lib/python3.12/site-packages/pyproject_api/_backend.py True hatchling.build
[task 2026-04-23T22:08:57.958+00:00] py312-cot: install_package_deps> .venv/bin/uv pip install PyYAML 'aiohttp>=3' 'arrow>=1.0' 'cryptography>=2.6.1' dictdiffer github3.py 'immutabledict>=1.3.0' 'json-e>=2.5.0' 'jsonschema[format-nongpl]' taskcluster-taskgraph 'taskcluster>=40'
[task 2026-04-23T22:08:59.061+00:00] py312-cot: install_package> .venv/bin/uv pip install --reinstall --no-deps scriptworker@/builds/worker/checkouts/vcs/.tox/.tmp/package/1/scriptworker-63.0.0-py3-none-any.whl
[task 2026-04-23T22:08:59.130+00:00] py312-cot: commands[0]> py.test -k test_verify_production_cot --random-order-bucket=none
[task 2026-04-23T22:09:02.748+00:00] ============================= test session starts ==============================
[task 2026-04-23T22:09:02.748+00:00] platform linux -- Python 3.12.12, pytest-9.0.3, pluggy-1.6.0
[task 2026-04-23T22:09:02.748+00:00] cachedir: .tox/py312-cot/.pytest_cache
[task 2026-04-23T22:09:02.748+00:00] Using --random-order-bucket=none
[task 2026-04-23T22:09:02.748+00:00] Using --random-order-seed=478246
[task 2026-04-23T22:09:02.748+00:00]
[task 2026-04-23T22:09:02.748+00:00] rootdir: /builds/worker/checkouts/vcs
[task 2026-04-23T22:09:02.748+00:00] configfile: pyproject.toml (WARNING: ignoring pytest config in tox.ini!)
[task 2026-04-23T22:09:02.748+00:00] plugins: asyncio-1.3.0, mock-3.15.1, random-order-1.2.0
[task 2026-04-23T22:09:02.748+00:00] asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
[task 2026-04-23T22:09:02.748+00:00] collected 690 items / 679 deselected / 11 selected
[task 2026-04-23T22:09:02.749+00:00]
[task 2026-04-23T22:10:48.024+00:00] tests/test_production.py ........... [100%]
[task 2026-04-23T22:10:48.024+00:00]
[task 2026-04-23T22:10:48.024+00:00] ================ 11 passed, 679 deselected in 107.09s (0:01:47) ================
[task 2026-04-23T22:10:48.393+00:00] .pkg: _exit> python /builds/worker/checkouts/vcs/.venv/lib/python3.12/site-packages/pyproject_api/_backend.py True hatchling.build
[task 2026-04-23T22:10:48.431+00:00] py312-cot: OK (111.71=setup[2.45]+cmd[109.26] seconds)
[task 2026-04-23T22:10:48.431+00:00] congratulations :) (111.79 seconds)
[taskcluster 2026-04-23T22:10:48.576Z] Exit Code: 0
[taskcluster 2026-04-23T22:10:48.576Z] User Time: 8.571ms
[taskcluster 2026-04-23T22:10:48.576Z] Kernel Time: 20ms
[taskcluster 2026-04-23T22:10:48.576Z] Wall Time: 1m59.607720018s
[taskcluster 2026-04-23T22:10:48.576Z] Average Available System Memory: 14.00 GiB
[taskcluster 2026-04-23T22:10:48.576Z] Average System Memory Used: 1.61 GiB
[taskcluster 2026-04-23T22:10:48.576Z] Peak System Memory Used: 1.86 GiB
[taskcluster 2026-04-23T22:10:48.576Z] Total System Memory: 15.61 GiB
[taskcluster 2026-04-23T22:10:48.576Z] Result: SUCCEEDED
[taskcluster 2026-04-23T22:10:48.577Z] === Task Finished ===
[taskcluster 2026-04-23T22:10:48.577Z] Task Duration: 1m59.608173474s
[taskcluster 2026-04-23T22:10:48.598Z] [mounts] Preserving cache: Moving "/home/task_177698211990245/cache0" to "/home/generic-worker/caches/SZCDu9-vRsCfWW-C4JZvag"
[taskcluster 2026-04-23T22:10:48.598Z] [mounts] Preserving cache: Moving "/home/task_177698211990245/cache1" to "/home/generic-worker/caches/WY3QFZJaSz2jdl-BF6fKDw"
Loading