Closed Bug 2082602 Opened 1 month ago Closed 3 days ago

Make ./mach perftest <alert> use the CI options by default and start the emulator for Android tests

Categories

(Testing :: mozperftest, enhancement, P1)

enhancement

Tracking

(firefox163 fixed)

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: aglavic, Assigned: aglavic)

References

Details

(Whiteboard: [fxp])

Attachments

(1 external file)

./mach perftest <alert> only reproduces alerts correctly with --alert-exact. Without it:

  • mozperftest alerts never run (the alert layer requires the CI options for them).
  • Raptor/browsertime alerts from Android devices run on desktop Firefox, because the plain command is just ./mach raptor -t <suite> with no --app.
  • Raptor alerts on variants (e.g. no-nova) lose the prefs that define the variant.
  • Talos alerts lose the CI prefs and variant flags.

The regression bugs tell people to run ./mach perftest <alert>, so the default should be the command that reproduces the alert.

Proposed changes:

  • Use the options of the CI task that produced the alert by default, so --alert-exact becomes a no-op kept for compatibility.
  • Add --alert-basic to run the plain command instead. Raptor tests keep the --app from the CI task so Android alerts still run on the device; mozperftest tests always use the CI options since they cannot run without them.
  • When an Android test is about to run and no device is connected, start the Mozilla test emulator (prompting when interactive). This has to happen in the alert layer, because the child mach commands pipe their output and would hide the emulator prompt.

The KeyError: 'task_id' crash when the alerting push has no task is handled separately in bug 2079947.

Without the CI options, mozperftest alerts could not run and raptor alerts ran
desktop Firefox or dropped variant prefs. --alert-basic runs the plain command
instead, keeping the app for raptor tests. --alert-exact is now a no-op.

Severity: -- → S2
Priority: -- → P1
Whiteboard: [fxp]
Pushed by aglavic@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9983c480a741 https://hg.mozilla.org/integration/autoland/rev/d901fccb2c29 Use the CI options by default in mach perftest <alert> and start the emulator for Android tests. r=mozperftest-reviewers,perftest-reviewers,sparky
Status: NEW → RESOLVED
Closed: 3 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: