Closed Bug 2072866 Opened 2 months ago Closed 1 month ago

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)

RESOLVED FIXED

People

(Reporter: intermittent-bug-filer, Assigned: gerard-majax)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

    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 

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.zst
  • Downloading 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 ?

Most likely dupe of bug 2066119

See Also: → 2066119
Attached file GitHub Pull Request —
Assignee: nobody → lissyx+mozillians
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: