Closed Bug 1907926 Opened 1 year ago Closed 1 year ago

Build a tool/command that can run all the tests that alerted locally

Categories

(Testing :: Performance, task, P2)

task

Tracking

(firefox132 fixed)

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: sparky, Assigned: sparky)

References

Details

(Whiteboard: [fxp])

Attachments

(2 files)

It would be really useful to developers to have a single command that they could run locally to run all the tests that alerted in an alert summary. This would be something similar to ./mach try perf --alert <NUM>. Maybe we could use mozperftest for it.

This patch adds a new layer to mozperftest that allows people to run all the tests that produced an alert locally.

It does this by querying Treeherder for the alert information, and determining the tests to run from there. A --alert-exact option is added to enable users to run the exact same command as was run in CI as well. This is done by querying the task information of the alerting task, and parsing the options from it in a framework-specific manner.

All harnesses have option parsing implemented for them, however some of them, such as AWSY are more manual due to how the argument parser is implemented in that harness.

Depends on D219964

Assignee: nobody → gmierz2
Status: NEW → ASSIGNED

This patch adds tests, and mock test data for the alert layer.

Depends on D219965

Pushed by gmierz2@outlook.com: https://hg.mozilla.org/integration/autoland/rev/b37a84f28d80 Add an local alert test run layer to mozperftest. r=perftest-reviewers,aglavic https://hg.mozilla.org/integration/autoland/rev/4be97f09160b Add tests for the alert layer. r=perftest-reviewers,aglavic
Flags: needinfo?(gmierz2)
Pushed by gmierz2@outlook.com: https://hg.mozilla.org/integration/autoland/rev/6c3f81917e34 Add an local alert test run layer to mozperftest. r=perftest-reviewers,aglavic DONTBUILD https://hg.mozilla.org/integration/autoland/rev/6147c7929945 Add tests for the alert layer. r=perftest-reviewers,aglavic DONTBUILD
Flags: needinfo?(gmierz2)
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
Blocks: 1916538
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: