Closed Bug 2073826 Opened 2 months ago Closed 2 months ago

Move the mozharness files that are really build actions, Perfherder data and CI scripts

Categories

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

Tracking

(firefox158 fixed)

RESOLVED FIXED
Tracking Status
firefox158 --- fixed

People

(Reporter: ahochheiden, Assigned: ahochheiden)

References

(Blocks 1 open bug)

Details

Attachments

(4 external files, 4 obsolete files)

Files kept under testing/mozharness that other components own. They move to where their consumers live, unchanged where possible, and the startup test script becomes a plain script on the way.

The script has nothing to do with mozharness. It runs dump_syms over a library and zips the result for the openh264 plugin build, which is a build action like the other symbol packaging scripts in mozbuild/action. The file is unchanged and build.sh keeps running it with the image python3, since the openh264 task has no mach environment to bootstrap.

The schema describes the PERFHERDER_DATA payload and belongs with the Perfherder producer in mozperftest, next to its other schemas. mozperftest reads it relative to its own package. Test tasks still run mozharness from mozharness.zip, so the archive carries the schema at its tree relative path and perfherder_schema_path resolves it from either a checkout or the zip. Raptor takes the path from PERFHERDER_SCHEMA_PATH in its environment, since the tests archive does not contain it. The docker-image sparse profile entry goes because no Dockerfile includes the schema.

The extension is CI infrastructure. run-task loads it, the decision task uploads it as an artifact next to run-task and fetch-content, and the base Docker images copy it into /usr/local/mercurial. None of that involves mozharness. The file is byte identical, so it keeps the ruff exclusion it had under external_tools. The docker-image sparse profile entry goes because the profile already includes all of taskcluster/.

The startup test is pure CI glue with no local use. It already ran under mach python, imported mozinstall and mozprocess directly and used mozharness only for option parsing and logging, so it becomes an argparse script that exits 1 when the binary does not survive the run and still prints the TEST-UNEXPECTED-FAIL line Treeherder keys on. The startup-test sparse profile no longer needs testing/mozharness.

The script has nothing to do with mozharness. It runs dump_syms over a
library and zips the result for the openh264 plugin build, which is a
build action like the other symbol packaging scripts in
mozbuild/action. The file is unchanged and build.sh keeps running it
with the image python3, since the openh264 task has no mach
environment to bootstrap.

The schema describes the PERFHERDER_DATA payload and belongs with the
Perfherder producer in mozperftest, next to its other schemas.
mozperftest reads it relative to its own package. Test tasks still run
mozharness from mozharness.zip, so the archive carries the schema at
its tree relative path and perfherder_schema_path resolves it from
either a checkout or the zip. Raptor takes the path from
PERFHERDER_SCHEMA_PATH in its environment, since the tests archive
does not contain it. The docker-image sparse profile entry goes
because no Dockerfile includes the schema.

The extension is CI infrastructure. run-task loads it, the decision
task uploads it as an artifact next to run-task and fetch-content,
and the base Docker images copy it into /usr/local/mercurial. None of
that involves mozharness. The file is byte identical, so it keeps the
ruff exclusion it had under external_tools. The docker-image sparse
profile entry goes because the profile already includes all of
taskcluster/.

The startup test is pure CI glue with no local use. It already ran under
mach python, imported mozinstall and mozprocess directly and used
mozharness only for option parsing and logging, so it becomes an
argparse script that exits 1 when the binary does not survive the run
and still prints the TEST-UNEXPECTED-FAIL line Treeherder keys on. The
startup-test sparse profile no longer needs testing/mozharness.

Attachment #9645507 - Attachment is obsolete: true
Attachment #9645508 - Attachment is obsolete: true
Attachment #9645509 - Attachment is obsolete: true
Attachment #9645516 - Attachment is obsolete: true
Attachment #9645532 - Attachment description: Bug 2073826 - Move the Perfherder artifact schema from mozharness `external_tools` to mozperftest. r?ahal → Bug 2073826 - Move the Perfherder artifact schema out of mozharness `external_tools` into `testing/performance`. r?ahal
Pushed by ahochheiden@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/df339cb36fe7 https://hg.mozilla.org/integration/autoland/rev/0e3e09d4b0bf Move `packagesymbols.py` from mozharness `external_tools` to the mozbuild actions. r=ahal,taskgraph-reviewers,releng-reviewers https://github.com/mozilla-firefox/firefox/commit/b66b4535f4eb https://hg.mozilla.org/integration/autoland/rev/b8cb76418323 Move the Perfherder artifact schema out of mozharness `external_tools` into `testing/performance`. r=ahal,perftest-reviewers,mozperftest-reviewers,sparky https://github.com/mozilla-firefox/firefox/commit/f5b77e2ed343 https://hg.mozilla.org/integration/autoland/rev/57efd5f9c277 Move `robustcheckout.py` from mozharness `external_tools` to `taskcluster/scripts`. r=ahal,taskgraph-reviewers
Pushed by ahochheiden@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9fd335717fa3 https://hg.mozilla.org/integration/autoland/rev/e011e2307d43 Move `does_it_crash.py` to `taskcluster/scripts/tests` and drop `BaseScript`. r=taskgraph-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/ec56a6e97ff4 https://hg.mozilla.org/integration/autoland/rev/cdc74fa4766c Move `does_it_crash.py` to `taskcluster/scripts/tests` and drop `BaseScript`. r=taskgraph-reviewers,jcristau
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: