feat(tools): require the same configuration on both perf summary lines #14036
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14036"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by klosixgaming-arch on 2026-10-31T16:50:43Z.
What
A
perfpull request now keepsperf numbers missinguntil its description holds two valid summary lines with different commits and the same recorded configuration: GPU, driver, OS, resolution, window andAPS5_*switches. This uses the comparisonperformance_compare.pyalready makes. A pair with different settings doesn't isolate the code change, so it no longer counts.When the lines do match, a one-time reminder comment notes:
main, so the baseline should be amaincapture. This is checked withcompare/<commit>...main, and only for hex commit IDs.The reminder only adds a comment and never a label. It is posted from the per-pull-request run and not from the hourly backfill, so existing pull requests aren't flooded.
I left out a check that the candidate commit equals the head commit. Any rebase breaks it: most merged perf pull requests would have failed it.
Tested
tools/tests/test_pr_labels.py: 31 tests, all passing (11 new). The new tests cover mismatched GPU orAPS5_*switches, picking a matching pair out of three lines, repeated captures of one commit in any order,mainancestry, attached and missing traces, a non-hash commit never being looked up, the reminder being posted once, and dry run.tools/check_conventions.pypasses.gh pr listdata:perf numbers missingbecause their two lines differ inwindow.first_present,APS5_*switches ormemory_mib.mainand about 61 had no trace link. Those cases only get the reminder, and only on their next pull request event.Checklist
main; no other open PR implements the same functions. #12768 and #11064 also touchtools/pr_labels.py, but for different features.NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Pull request closed