Closed Bug 1735396 Opened 3 years ago Closed 3 years ago

Update test_archive.py expected file hashes when running on Python 3.9 or newer

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(firefox-esr91 fixed, firefox95 fixed)

RESOLVED FIXED
95 Branch
Tracking Status
firefox-esr91 --- fixed
firefox95 --- fixed

People

(Reporter: masterwayz, Assigned: masterwayz)

References

Details

Attachments

(1 file)

Python 3.9 has changes in its tar library that we use for this test that changes the file hash we expect.

Assignee: nobody → michelle
Status: NEW → ASSIGNED

this is a result of:
https://github.com/python/cpython/pull/18080

specifically in py 3.9, we have this code:
has_device_fields = info.get("type") in (CHRTYPE, BLKTYPE)
if has_device_fields:
devmajor = itn(info.get("devmajor", 0), 8, format)
devminor = itn(info.get("devminor", 0), 8, format)
else:
devmajor = stn("", 8, encoding, errors)
devminor = stn("", 8, encoding, errors)

and prior to this we just had:
devmajor = itn(info.get("devmajor", 0), 8, format)
devminor = itn(info.get("devminor", 0), 8, format)

in our test, we set:
tarinfo.type = REGTYPE

so now we are changing these fields in the header and this is causing our tarfile tobe different.

Pushed by michelle@masterwayz.nl:
https://hg.mozilla.org/integration/autoland/rev/d644badc7844
Update test_archive.py expected file hashes when running on Python 3.9 or newer r=jmaher
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: