Update mar file generation scripts for lzma and sha384

RESOLVED FIXED

Status

enhancement
RESOLVED FIXED
2 years ago
a year ago

People

(Reporter: rstrong, Assigned: rstrong)

Tracking

unspecified
Dependency tree / graph

Firefox Tracking Flags

(firefox-esr52 wontfix, firefox54 wontfix, firefox55 wontfix, firefox56 fixed)

Details

Attachments

(4 attachments)

Since they have to land after mar files are generated I am splitting out the scripts used by release engineering into its own bug.
This patch received r+ from bhearsum and rail. Carrying forward r+
Assignee: nobody → robert.strong.bugs
Status: NEW → ASSIGNED
Attachment #8891899 - Flags: review+
This changes unwrap_full_update.pl so it detects the type of compression used by the mar and then uses the appropriate app to decompress the files automatically.
Attachment #8891900 - Flags: review?(bhearsum)
I cleaned up the perl script I used for converting the test mar files.

The script will detect if the files contained in the mar are compressed using bzip2 and if not it assumes they are compressed with lzma. It could also detect if lzma was used but bzip2 should be enough. It will convert the mar file specified to the other compression method.

As long as the script is run on Linux or Mac the permissions for the files contained in the mar file are retained.

The MAR channel id is set to the same value as the original mar file.

The MAR product version is set to the same value as the original mar file.

bzip2, xz, and the mar binary must either be in the path or the associated name in uppercase needs to be in the environment with the value set to the path for binary.

The script accepts an optional arg of -r to replace the original mar file with the new mar file. If that is not specified then the mar file name will have .xz appended to it when the mar file is converted to lzma and it will have .bz appended to it when the mar file is converted to bzip2.
Attachment #8891901 - Flags: review?(bhearsum)
This was already verified to work on oak with complete mar files.
Attachment #8891903 - Flags: review?(bhearsum)
Attachment #8891900 - Flags: review?(bhearsum) → review+
Attachment #8891901 - Flags: review?(bhearsum) → review+
Attachment #8891903 - Flags: review?(bhearsum) → review+

Comment 5

2 years ago
Pushed by rstrong@mozilla.com:
https://hg.mozilla.org/mozilla-central/rev/f632eede0f19
Update mar file generation scripts for lzma. r=bhearsum, r=rail, a=app_update_lzma
https://hg.mozilla.org/mozilla-central/rev/bbd46c077793
Update mar file generation scripts for lzma. r=bhearsum
https://hg.mozilla.org/mozilla-central/rev/7f9ed540c827
New mar convertor script to convert a mar file from bzip2 to lzma and from lzma to bzip2. r=bhearsum, a=app_update_lzma
https://hg.mozilla.org/mozilla-central/rev/87824406b9fe
sign mar files using the sha384 certificate. r=bhearsum, a=app_update_sha384
Status: ASSIGNED → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED

Updated

2 years ago
See Also: → 1395697
Blocks: 1405068
Depends on: 1441484
You need to log in before you can comment on or make changes to this bug.