Build fails on Python 3.12; the vendored pip 23.0.1 uses obsolete pkgutil.ImpImporter
Categories
(Firefox Build System :: General, defect, P3)
Tracking
(firefox120 fixed, firefox121 fixed, firefox122 wontfix, firefox123 wontfix, firefox124 wontfix, firefox125 wontfix, firefox128 fixed)
People
(Reporter: saschanaz, Assigned: ahochheiden)
References
(Blocks 1 open bug)
Details
Attachments
(7 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
Updating pip should fix the issue.
Reporter | ||
Comment 1•1 year ago
|
||
Reporter | ||
Comment 2•1 year ago
|
||
Depends on D190284
Updated•1 year ago
|
Reporter | ||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Comment 4•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/2d95b8f16d39
https://hg.mozilla.org/mozilla-central/rev/2f6d9a971e18
Updated•10 months ago
|
Reporter | ||
Comment 6•10 months ago
|
||
How can we confirm this has no issue when landing this again?
Comment 7•10 months ago
|
||
One can run this query after the tasks completed and the change in CPU time spent will be obvious for the area with the higher values.
For testing, needinfo sheriffs@ and it can be added to a central-as-beta simulation and it can be compared manually afterwards with this query - works also between any two Try pushes with the same set of tasks,
Comment 8•10 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/3289f416aab7
https://hg.mozilla.org/mozilla-central/rev/d87f65ca5a6f
Updated•10 months ago
|
Updated•10 months ago
|
Comment hidden (Intermittent Failures Robot) |
Comment 11•9 months ago
|
||
Pasting a comment from bug 1868690 over here for more visibility:
I'm not surprised that adding pyproject.toml didn't fix things. We still need to build the wheels regardless.
From pip install --help:
Use PEP 517 for building source distributions (use --no-use-pep517 to force legacy behaviour).
So our options are to either:
- Pass --no-use-pep517 into our pip install command (unsure if this will be removed in the future or not)
- Have the build tasks build the wheels as part of the package-tests step
Given this is blocking Python 3.12 support, I proposed we do 1 and file a follow-up for 2.
Lmk if you need any help with this!
Comment 12•9 months ago
|
||
Given this is blocking Python 3.12 support
Is it, though? With bug 1869690 a bootstrap + a full build can go through. I don't know about other commands, I haven't tried, but I don't think pip is blocking anything at the moment, really.
Reporter | ||
Comment 13•9 months ago
|
||
I can confirm that this doesn't block build on Py3.12 anymore.
Comment 14•9 months ago
|
||
Ah, I see. It looks like we directly edited the vendored pip though, so this is still pretty high priority as that will get blown away next time we need to update Python packages.
Aside: I wonder if it's worth supporting a .patch
mechanism in ./mach vendor
like updatebot has.
Comment 15•8 months ago
|
||
A similar failure seems to have been re-introduced: Bug 1876121
Assignee | ||
Comment 16•8 months ago
|
||
(In reply to Jim Blandy :jimb from comment #15)
A similar failure seems to have been re-introduced: Bug 1876121
As :ahal mentioned in the previous comment, the hack to fix it got blown away by an unrelated dependency update. I don't mind re-approving the hack, but what's the timeline on the actual fix? I'm not keen on doing this again and again long term. We could add it to the excluded packages list and the hack won't get blown away again, but that's sounds like a recipe for this being forgotten about indefinitely, so I'm not keen on this either, but it might be the lesser of two evils.
Reporter | ||
Comment 17•8 months ago
•
|
||
Perhaps we can do the option 1 of your this previous comment: https://bugzilla.mozilla.org/show_bug.cgi?id=1868690#c3
This is not on my radar right now, perhaps some build team member can take a look?
Edit: Oh wait you are not Andrew, modified the comment
Assignee | ||
Updated•8 months ago
|
Updated•7 months ago
|
Updated•7 months ago
|
Comment 18•5 months ago
|
||
Build seems to work on python 3.12 here at least... Was this fixed elsewhere?
Assignee | ||
Comment 19•5 months ago
|
||
D200106 and D199369 combined are the hacks that are enabling Python 3.12 for now. I haven't gotten around to figuring out a proper solution yet. This hack will probably stick around for a while longer.
Assignee | ||
Updated•5 months ago
|
Assignee | ||
Comment 20•5 months ago
|
||
I think D201231 resolved the blocker, and we should just be able to upgrade pip/setuptools now. I'll get a patch up.
Assignee | ||
Comment 21•5 months ago
|
||
Assignee | ||
Comment 22•5 months ago
|
||
While nothing explicitly prompted updating this, letting pip
and
pip-tools
diverage too greatly in version release dates seems like
a bad idea, especially with the various deprecations in
pip
and python3.12
.
Assignee | ||
Comment 23•5 months ago
|
||
Assignee | ||
Comment 24•4 months ago
|
||
We need to use wheel
in mozharness to use --no-use-pep517
(so we can
use a modern pip
). We don't explicitly need to upgrade wheel
, but it
seems sensible to upgrade it to a similar baseline as both pip
and
setuptools
(which we also need are are upgrading with this stack).
Assignee | ||
Comment 25•4 months ago
|
||
Same rationale as vendoring of a recent version of wheel
. We need it
in mozharness for --no-use-pep517
so that we can use a recent pip
,
so we'll update to a similar baseline to minimize issues.
Updated•4 months ago
|
Comment 26•4 months ago
|
||
Comment 27•4 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/734408c526ab
https://hg.mozilla.org/mozilla-central/rev/be779cd3d824
https://hg.mozilla.org/mozilla-central/rev/25aa13608af7
https://hg.mozilla.org/mozilla-central/rev/8eed3936a087
https://hg.mozilla.org/mozilla-central/rev/6a6614edc627
Updated•4 months ago
|
Description
•