xpidllex.py / xpidlyacc.py are generated inconsistently
Categories
(Firefox Build System :: General, task, P3)
Tracking
(firefox76 fixed)
Tracking | Status | |
---|---|---|
firefox76 | --- | fixed |
People
(Reporter: mshal, Assigned: glandium)
References
Details
(Keywords: in-triage)
Attachments
(1 file)
This is fallout from the python3 conversion. The output from header.py is inconsistently ordered in python3.5, and should be sorted. Note this doesn't appear to affect sccache stats, since I believe the source files that are generated from these python scripts still have a consistent output; it is only the python scripts themselves that are inconsistent.
Reporter | ||
Comment 1•5 years ago
|
||
Actually, it looks like these files are written out by ply, so we'll need to update that library first and re-verify.
Assignee | ||
Comment 2•5 years ago
|
||
There is something confusing here. Ply doesn't actually support python3. If you run xpcom/idl-parser/xpidl/runtests.py
with python3, it fails in ply. So I'm confused how the generated files work with python3... but they seem to. There is actually no currently released version of ply that supports python3, only a beta...
Anyways, it seems we haven't switched the other things that use ply (if I'm to believe the bug graph) to python 3, how about we "just" switch xpidl back to python 2 for now?
Assignee | ||
Comment 3•5 years ago
|
||
Ply doesn't actually support python3. The generation of the files seems
to work with python3 for some reason, but running the corresponding
tests doesn't. The only version of ply that supports python3 is
currently in beta, so upgrading ply is probably not an option at the
moment.
Other commands that do use ply (mach webidl-parser-test and
ipc/ipdl/Makefile.in) have not switched to python3 (probably because
they don't work). Let's go with the simpler thing for now: switch back
to python 2 for xpidllex.py and xpidlyacc.py, which will make them
deterministically created again.
Updated•5 years ago
|
Comment 5•5 years ago
|
||
bugherder |
Comment hidden (Intermittent Failures Robot) |
Description
•