Closed Bug 1659539 Opened 4 years ago Closed 4 years ago

Stop using pipenv to manage |mach python-test|

Categories

(Testing :: Python Test, task, P3)

Default
task

Tracking

(firefox-esr78 fixed, firefox82 fixed)

RESOLVED FIXED
82 Branch
Tracking Status
firefox-esr78 --- fixed
firefox82 --- fixed

People

(Reporter: ahal, Assigned: ahal)

References

Details

Attachments

(1 file)

No description provided.
Blocks: 1659542

Pipenv is heavy weight and overkill for the purposes it is being used. We'd
like to remove it from the tree and |mach python-test| was one of the last
remanining use cases.

Rather than re-implementing the ability to specify a Python version via the
'--python' flag, this simply runs |mach python-test| with whatever Python
mach is running with.

This means that |mach python-test| will now use Python 3 by default. If
py2 tests are needed, then |python2 mach python-test| can be used instead.

Depends on: 1661790
Blocks: 1662115
No longer blocks: 1662115
Attachment #9172185 - Attachment description: Bug 1659539 - [python-test] Remove '--python' and stop using pipenv to manage virtualenvs, r?rstewart → Bug 1659539 - [python-test] Remove '--python' and stop using pipenv to manage virtualenvs
Pushed by rstewart@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fffa3fcb1881 [python-test] Remove '--python' and stop using pipenv to manage virtualenvs r=ahal
Regressions: 1662856
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch

Comment on attachment 9172185 [details]
Bug 1659539 - [python-test] Remove '--python' and stop using pipenv to manage virtualenvs

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Needed to uplift https://phabricator.services.mozilla.com/D92173.
    Otherwise, there's "sitecustomize" errors (and potentially other problems) because pipenv doesn't play nice with the new virtualenv version.
  • User impact if declined: None
  • Fix Landed on Version: 82
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): It's a build-only patch
  • String or UUID changes made by this patch:
Attachment #9172185 - Flags: approval-mozilla-esr78?

Comment on attachment 9172185 [details]
Bug 1659539 - [python-test] Remove '--python' and stop using pipenv to manage virtualenvs

Needed to better support running mach on newer macOS releases. Approved for 78.8esr.

Attachment #9172185 - Flags: approval-mozilla-esr78? → approval-mozilla-esr78+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: