Closed Bug 1694901 Opened 4 years ago Closed 4 years ago

Differences in headers generated from ipdl depending on python version

Categories

(Core :: IPC, defect)

defect

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(2 files)

Attached file diff.txt

(filing as a defect because it's making it more difficult for me to attest whether my build environment changes on automation are affecting the resulting binaries or not)

For some reason, there are differences in PNeckoChild.h and PNeckoParent.h (and only those) when running the ipdl generator with python 3.6 vs. 3.7. Diffoscope output attached.

It looks like the friends declarations are generated as part of this iteration in lower.py: for friend in friends:. I saw something about how dicts are insertion ordered starting in 3.7, but I guess sets still aren't, so the iteration order is not specified? I guess the fix here is to turn the set into a list and sort it, or something. (I didn't notice that you'd already assigned yourself before I started looking at this, so I'll just leave this here.)

Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/19890824a703 Generate ipdl headers more deterministically. r=mccr8
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: