python/mach/mach/test/test_site.py::test_requirements_txt_install_requires_hashes TEST-UNEXPECTED-FAIL
Categories
(Enterprise Products :: Firefox, defect, P5)
Tracking
(Not tracked)
People
(Reporter: intermittent-bug-filer, Assigned: gerard-majax)
References
(Blocks 1 open bug)
Details
Attachments
(1 external file)
Filed by: alissy [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=593316635&repo=enterprise-firefox-try&task=D2F3qrgkRKOIQT3l3wjATQ.0
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/D2F3qrgkRKOIQT3l3wjATQ/runs/0/artifacts/public/logs/live_backing.log
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
python/mach/mach/test/test_site.py::test_requirements_txt_install_requires_hashes TEST-UNEXPECTED-FAIL
python/mach/mach/test/test_site.py::test_requirements_txt_installs_with_hashes TEST-UNEXPECTED-FAIL
python/mach/mach/test/test_site_compatibility.py::test_sites_compatible TEST-UNEXPECTED-FAIL
| Assignee | ||
Comment 2•2 months ago
|
||
Comparing a successful run on m-c: https://treeherder.mozilla.org/logviewer?job_id=593358536&repo=mozilla-central&task=Cxse4r1WTDaBaePiHnGFxQ.0
With a failed run on e-m (try): https://treeherder.mozilla.org/jobs?repo=enterprise-firefox-try&revision=0a1157b2e1a9c7b586b8cb044e24271658226284&selectedTaskRun=D2F3qrgkRKOIQT3l3wjATQ.0
Both fetches our toolchain for python:
Downloading https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/OtAg-VmkTXWFaWaBhZ-dBg/artifacts/public/build/python.tar.zstDownloading https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/NnYO_rv3S1q5vDfqpzLRCw/artifacts/public/build/python.tar.zst
However, on the passing run one can see:
[setup 2026-09-16T20:26:44.459+00:00] Setting up local python environment
[setup 2026-09-16T20:26:44.459+00:00] updated PATH with python artifact: /builds/worker/fetches/python/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[setup 2026-09-16T20:26:44.459+00:00] Adding uv to PATH
[setup 2026-09-16T20:26:44.459+00:00] updated PATH with uv artifact: /builds/worker/fetches/uv:/builds/worker/fetches/python/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
This is not visible on the failing run.
As a result, failing tests are running Python 3.13.5 whereas passing tests are running Python 3.10.11
Failing tests shows:
[task 2026-09-16T17:50:20.482+00:00] python/mach/mach/test/test_site.py:145: in test_requirements_txt_install_requires_hashes
[task 2026-09-16T17:50:20.482+00:00] assert "hash" in error_output.lower(), (
[task 2026-09-16T17:50:20.482+00:00] E AssertionError: Expected hash error in stderr, got: /tmp/pytest-of-worker/pytest-0/test_requirements_txt_install_0/venv/bin/python: No module named pip
[task 2026-09-16T17:50:20.482+00:00] E
[task 2026-09-16T17:50:20.482+00:00] E assert 'hash' in '/tmp/pytest-of-worker/pytest-0/test_requirements_txt_install_0/venv/bin/python: no module named pip\n'
[task 2026-09-16T17:50:20.482+00:00] E + where '/tmp/pytest-of-worker/pytest-0/test_requirements_txt_install_0/venv/bin/python: no module named pip\n' = <built-in method lower of str object at 0x7f4c087033f0>()
[task 2026-09-16T17:50:20.482+00:00] E + where <built-in method lower of str object at 0x7f4c087033f0> = '/tmp/pytest-of-worker/pytest-0/test_requirements_txt_install_0/venv/bin/python: No module named pip\n'.lower
[task 2026-09-16T17:50:20.482+00:00] ----------------------------- Captured stderr call -----------------------------
[task 2026-09-16T17:50:20.482+00:00] /tmp/pytest-of-worker/pytest-0/test_requirements_txt_install_0/venv/bin/python: No module named pip
Which is likely because of using the wrong python toolchain ?
| Assignee | ||
Comment 3•2 months ago
|
||
In-tree run-task handles pushing the fetched python into PATH: https://searchfox.org/enterprise-main/rev/92d3ca38baf8879c1bdeaed6399224b04d789bbb/taskcluster/scripts/run-task#1115-1167
This is not done by https://github.com/taskcluster/taskgraph/blob/baf16dc8cf55419ede323a5fb5bf1f51770e07fe/src/taskgraph/run-task/run-task#L1687-L1688 which we use on our trees.
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Comment 6•1 month ago
|
||
| Assignee | ||
Comment 7•1 month ago
|
||
Updated•1 month ago
|
Description
•