Perftest patch review and pre-submit check
This skill covers the perftest side of a patch: tasks, schedules, harness code, perfherder output and perfdocs. The component’s reviewers own the feature semantics.
1. Pre-submit: run the covering python tests
Some perftest backouts came from python unit tests outside the perftest directories. A try push of perf tasks doesn’t run these tests, so run them locally first.
List the changed files with
git diff --name-only <base>(orjj diff --name-only).Find each changed file in the table below. Collect all the commands from the matching rows.
Run each command. Write the output to
artifacts/<name>.log, then read the log.Make sure mach reports more than 0 tests for each command.
If a command fails, fix the failure and run the command again until it passes.
If a changed file has no matching row, run
./mach lint --outgoingand say so in the report.
This step is done when each command passes, or when a failure also happens on the base revision.
Changed path |
Run |
|---|---|
|
|
|
|
|
the row above, plus |
any other |
the same commands as the first taskcluster row |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
any |
|
Use these commands as written. Before you suggest a mach command that isn’t in this table, make sure it exists with ./mach help.
Notes:
The perfdocs unit tests are in
python/mozperftest/mozperftest/tests/. They moved fromtools/lint/test/in bug 1868773.The
--subsuitecommands are the same tests that thesource-test-python-{raptor,talos,condprof}CI tasks run.
2. Review the patch
Read references/checklist.md. Compare each item with the diff, and give each item one mark:
satisfied, with the file or link that shows it
violated, with the file and the fix
not applicable
Before r+ or submit, make sure the patch has this evidence:
A try push that runs the changed tasks on each touched platform. If the patch touches android, the push needs
--no-artifact, because android tasks don’t run in artifact mode.A PerfCompare link against a try base without the patch, if the numbers can change.
A check of the results for 0 values, missing subtests and large shifts.
This step is done when each checklist item has a mark. Each violated item also needs a fix or a follow-up bug.
3. Report
Give the pre-submit commands with their results, the checklist violations by severity, and the missing evidence to ask for.