Closed Bug 1621452 Opened 5 years ago Closed 5 years ago

xpidllex.py / xpidlyacc.py are generated inconsistently

Categories

(Firefox Build System :: General, task, P3)

task

Tracking

(firefox76 fixed)

RESOLVED FIXED
mozilla76
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.

Actually, it looks like these files are written out by ply, so we'll need to update that library first and re-verify.

Depends on: 1621359
See Also: → 1621157
Keywords: in-triage

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?

Blocks: 1623490

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.

Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/7a2a069c8641 Generate xpidllex.py and xpidlyacc.py with python2. r=rstewart
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: