Virtualenv "up-to-date" logic is not resilient to setup failures
Categories
(Firefox Build System :: Mach Core, defect)
Tracking
(firefox92 fixed)
Tracking | Status | |
---|---|---|
firefox92 | --- | fixed |
People
(Reporter: mhentges, Assigned: mhentges)
References
Details
Attachments
(3 files)
In Gijs' bug here, a failure setting up pth
files caused an original failure, but follow-up ./mach
invocations happily used the broken virtualenv.
The virtualenv "up-to-date" logic should more intelligently handle failures with the venv.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
This simplifies consumer logic, since they get the parsed list of pypi
and pth requirements, as well as the list of input files that were
parsed.
One benefit of this simplification is that we no longer
recursively create VirtualenvManagers.
Note that mach_bootstrap cannot (yet) take advantage
of ParseMachEnvRequirements
because of a dependency cycle:
mach_bootstrap
must set up thesys.path
to import
ParseMachEnvRequirements
.mach_bootstrap
would wantParseMachEnvRequirements
to
determine which paths to add to thesys.path
.
Assignee | ||
Comment 2•3 years ago
|
||
It's possible for a virtualenv to have an incorrect list of directories
to add to the sys.path, such as the following cases:
- Its creation got cancelled halfway through
- The list of pths changed in a new revision
- It got modified by an external tool
By validating the list of provided pths against the list of required
pths, we can ensure that the virtualenv is more dependably up-to-date.
Depends on D119685
Assignee | ||
Comment 3•3 years ago
|
||
Python 3.6 doesn't support the capture_output
option, so use
stdout=subprocess.PIPE
instead.
Depends on D119686
Comment 7•3 years ago
|
||
Backed out for causing win debug build bustages
Backout link: https://hg.mozilla.org/integration/autoland/rev/d716918916ac1a4993a616f07d501f9b64be467d
Assignee | ||
Updated•3 years ago
|
Comment 9•3 years ago
|
||
Backed out per glandium's request, 7 changesets (Bug 1720215, Bug 1717645, Bug 1717051) for causing build bustage and conflicting backout
Log: https://treeherder.mozilla.org/logviewer?job_id=346816196&repo=autoland&lineNumber=987
Backout: https://hg.mozilla.org/integration/autoland/rev/791ec1c34fb986a24cfcda7c4d98af416299a024
Assignee | ||
Comment 10•3 years ago
|
||
Changes from my Windows machine weren't synchronized to my Linux one before I re-attempted landing :(
Thanks for the backout 👍
Comment 12•3 years ago
|
||
Comment 13•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/13d016bcc12c
https://hg.mozilla.org/mozilla-central/rev/719348d541d8
https://hg.mozilla.org/mozilla-central/rev/3a844a148590
Description
•