Closed Bug 2073828 Opened 2 months ago Closed 2 months ago

Move the release scripts out of mozharness into mozrelease

Categories

(Release Engineering :: Applications: MozharnessCore, task, P3)

Tracking

(firefox159 fixed)

RESOLVED FIXED
Tracking Status
firefox159 --- fixed

People

(Reporter: ahochheiden, Assigned: ahochheiden)

References

(Blocks 1 open bug)

Details

Attachments

(4 external files, 7 obsolete files)

Release scripts that already run under ./mach python and use mozharness only as a script framework. They become plain scripts in python/mozrelease with their configs as data. comm-central shares some of these kinds and will need matching changes.

bouncer_check.py used mozharness only for option parsing, logging and the layered config. The argparse script in python/mozrelease does the same check. It HEADs each URL with three retries, requires an https result on an allowed CDN host and exits 1 when any URL fails. The five product dictionaries from configs/releases become YAML data next to it, and the bouncer prefix, locales and CDN hosts that came through EXTRA_MOZHARNESS_CONFIG are command line arguments.

The transform builds the command from run fields the kinds now carry, the config path, bouncer prefix, locales, CDN hosts, product field and products URL, instead of EXTRA_MOZHARNESS_CONFIG. Both kinds check out with the mach sparse profile since nothing under testing/mozharness is needed anymore.

The script already ran under mach python and imported mozrelease for every release path helper, so it becomes a plain argparse script next to them. Option parsing, logging and the retrying download are the only mozharness pieces it used. The retry keeps the same exception list and attempt counts, hg fallback to GitHub included, and the config it writes is unchanged.

merkle.py and checksums.py are release tooling with no mozharness dependency. They move unchanged together with the Merkle unit test, whose vectors BTVerificationTest.cpp cites. The checksum generator imports them from the new place so the task keeps working at this commit.

generate-checksums.py used mozharness for option parsing, logging and a virtualenv whose only purpose was boto3. The bucket is read unsigned through the S3 compatible XML listing and plain object fetches, so requests from the common site covers it and no virtualenv step remains. The kind runs the script under mach with the build image and writes the SUMS and SUMMARY files to the artifact directory. The output for 155.0.1 build1 is byte identical to the published files.

bouncer_check.py used mozharness only for option parsing, logging and
the layered config. The argparse script in python/mozrelease does the
same check. It HEADs each URL with three retries, requires an https
result on an allowed CDN host and exits 1 when any URL fails. The five
product dictionaries from configs/releases become YAML data next to
it, and the bouncer prefix, locales and CDN hosts that came through
EXTRA_MOZHARNESS_CONFIG are command line arguments.

The transform builds the command from run fields the kinds now carry,
the config path, bouncer prefix, locales, CDN hosts, product field and
products URL, instead of EXTRA_MOZHARNESS_CONFIG. Both kinds check out
with the mach sparse profile since nothing under testing/mozharness
is needed anymore.

The script already ran under mach python and imported mozrelease for
every release path helper, so it becomes a plain argparse script next to
them. Option parsing, logging and the retrying download are the only
mozharness pieces it used. The retry keeps the same exception list and
attempt counts, hg fallback to GitHub included, and the config it writes
is unchanged.

merkle.py and checksums.py are release tooling with no mozharness
dependency. They move unchanged together with the Merkle unit test,
whose vectors BTVerificationTest.cpp cites. The checksum generator
imports them from the new place so the task keeps working at this
commit.

generate-checksums.py used mozharness for option parsing, logging and
a virtualenv whose only purpose was boto3. The bucket is read unsigned
through the S3 compatible XML listing and plain object fetches, so
requests from the common site covers it and no virtualenv step
remains. The kind runs the script under mach with the build image and
writes the SUMS and SUMMARY files to the artifact directory. The output
for 155.0.1 build1 is byte identical to the published files.

Attachment #9645510 - Attachment is obsolete: true
Attachment #9645511 - Attachment is obsolete: true
Attachment #9645512 - Attachment is obsolete: true
Attachment #9645513 - Attachment is obsolete: true
Attachment #9645514 - Attachment is obsolete: true
Attachment #9645535 - Attachment is obsolete: true
Attachment #9645534 - Attachment description: Bug 2073828 - Add the bouncer check to mozrelease as a plain script with its product lists as YAML. r?ahal → Bug 2073828 - Run the bouncer check from a mozrelease script and delete the mozharness one. r?ahal
Pushed by ahochheiden@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/d7c01fb67706 https://hg.mozilla.org/integration/autoland/rev/cec02ee161d3 Run the bouncer check from a mozrelease script and delete the mozharness one. r=ahal,taskgraph-reviewers,releng-reviewers,jcristau https://github.com/mozilla-firefox/firefox/commit/982955c55b3c https://hg.mozilla.org/integration/autoland/rev/d8e13aed4551 Move the update verify config creator to mozrelease and drop `BaseScript`. r=taskgraph-reviewers,releng-reviewers,jcristau https://github.com/mozilla-firefox/firefox/commit/fd9a379b5881 https://hg.mozilla.org/integration/autoland/rev/8fd64af323a6 Move the Merkle tree and checksums file helpers to mozrelease. r=ahal https://github.com/mozilla-firefox/firefox/commit/4dd6afacd4f9 https://hg.mozilla.org/integration/autoland/rev/16659775eba6 Generate the release checksums from mozrelease without mozharness or boto3. r=taskgraph-reviewers,releng-reviewers,jcristau

Backed out for causing Gecko Decision bustage

Backout link

Push with failures

Failure log

Flags: needinfo?(ahochheiden)
Flags: needinfo?(ahochheiden)
Pushed by ahochheiden@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/7efe8660b9ec https://hg.mozilla.org/integration/autoland/rev/b75279e5a4da Run the bouncer check from a mozrelease script and delete the mozharness one. r=ahal,taskgraph-reviewers,releng-reviewers,jcristau https://github.com/mozilla-firefox/firefox/commit/805369e69e31 https://hg.mozilla.org/integration/autoland/rev/23aa8f3d1cdc Move the update verify config creator to mozrelease and drop `BaseScript`. r=taskgraph-reviewers,releng-reviewers,jcristau https://github.com/mozilla-firefox/firefox/commit/e94148981c89 https://hg.mozilla.org/integration/autoland/rev/33b23aa93883 Move the Merkle tree and checksums file helpers to mozrelease. r=ahal https://github.com/mozilla-firefox/firefox/commit/72d39204930a https://hg.mozilla.org/integration/autoland/rev/2576f8f8b6ce Generate the release checksums from mozrelease without mozharness or boto3. r=taskgraph-reviewers,releng-reviewers,jcristau
Pushed by sking@thunderbird.net: https://hg.mozilla.org/comm-central/rev/9adaea471068 Port Bug 2073828: Move the release-bouncer-check and release-generate-checksums scripts out of mozharness into mozrelease r=sking
Attachment #9648236 - Attachment description: Port Bug 2073828: Move the release-bouncer-check and release-generate-checksums scripts out of mozharness into mozrelease r=#thunderbuild → Bug 2075394 - Port Bug 2073828: Move the release-bouncer-check and release-generate-checksums scripts out of mozharness into mozrelease r=#thunderbuild

Comment on attachment 9648236 [details]
Bug 2075394 - Port Bug 2073828: Move the release-bouncer-check and release-generate-checksums scripts out of mozharness into mozrelease r=#thunderbuild

Revision D329044 was moved to bug 2075394. Setting attachment 9648236 [details] to obsolete.

Attachment #9648236 - Attachment is obsolete: true
Pushed by daniel@thunderbird.net: https://hg.mozilla.org/comm-central/rev/a037b8ee7a02 Revert "Port Bug 2073828: Move the release-bouncer-check and release-generate-checksums scripts out of mozharness into mozrelease" r=dandarnell
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: