Closed Bug 1571589 Opened 5 years ago Closed 5 years ago

Misc improvements for fetch-content

Categories

(Firefox Build System :: Task Configuration, task)

task
Not set
normal

Tracking

(firefox70 fixed)

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(4 files)

Some of what's coming supersede bug 1479533.

And use that in git_checkout_archive.

Bug 1479533 was proposing to add a similar functionality, but this
iteration avoids actually unpacking anything, and ensures
reproducibility by relying on the reproducible bits from the original
archives: file ordering, flags, etc. (since they are checksummed, those
are never going to change for a given archive).

Another notable difference is that this applies the repack on the fetch
task itself, rather than create a separate task to apply the repack. The
latter has advantages, in that it allows to change the repacking without
redownloading the original file from a third-party server, but in
practice, most changes to the repacking would trigger the download tasks
anyways.

This patch only takes care of changing the archive type (zip->tar), and
the compression type (anything->zstandard).

Namely:

  • adding a prefix,
  • stripping path components.
Blocks: 1571596
Blocks: 1571597
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/mozilla-inbound/rev/95f15f6c8fb9 Use urlparse rather relying on just splitting on / being enough. r=tomprince https://hg.mozilla.org/integration/mozilla-inbound/rev/44f285f40796 Abstract opening a temporary file and renaming it after close. r=tomprince https://hg.mozilla.org/integration/mozilla-inbound/rev/a801d59b70a5 Allow to repack downloaded archives "on the fly". r=tomprince https://hg.mozilla.org/integration/mozilla-inbound/rev/dc8f0af3a4d6 Allow simple manipulation of file paths in fetched archives. r=tomprince
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: