feat(tools): require the same configuration on both perf summary lines #14036

Closed
klosixgaming-arch wants to merge 2 commits from upstream-pr/14036 into main
klosixgaming-arch commented 2026-10-31 16:50:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by klosixgaming-arch on 2026-10-31T16:50:43Z.


What

A perf pull request now keeps perf numbers missing until its description holds two valid summary lines with different commits and the same recorded configuration: GPU, driver, OS, resolution, window and APS5_* switches. This uses the comparison performance_compare.py already 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:

  • that neither summary commit is on main, so the baseline should be a main capture. This is checked with compare/<commit>...main, and only for hex commit IDs.
  • any trace named in the lines that isn't attached, meaning its file name doesn't appear outside the summary lines.

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 or APS5_* switches, picking a matching pair out of three lines, repeated captures of one commit in any order, main ancestry, attached and missing traces, a non-hash commit never being looked up, the reminder being posted once, and dry run.
  • tools/check_conventions.py passes.
  • Replayed against the current perf-titled pull requests, using gh pr list data:
    • Open: 91 had two summary lines. 6 of them would gain perf numbers missing because their two lines differ in window.first_present, APS5_* switches or memory_mib.
    • Merged: 4 of 81 would have.
    • Among the open ones, 39 had neither commit on main and about 61 had no trace link. Those cases only get the reminder, and only on their next pull request event.
  • Not tested: the live workflow.

Checklist

  • Based on current main; no other open PR implements the same functions. #12768 and #11064 also touch tools/pr_labels.py, but for different features.
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes. Written with AI assistance and reviewed by me.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5099574599 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14036). Originally posted by [klosixgaming-arch](https://github.com/klosixgaming-arch) on 2026-10-31T16:50:43Z. --- ### What A `perf` pull request now keeps `perf numbers missing` until its description holds two valid summary lines with different commits **and the same recorded configuration**: GPU, driver, OS, resolution, window and `APS5_*` switches. This uses the comparison `performance_compare.py` already 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: - that neither summary commit is on `main`, so the baseline should be a `main` capture. This is checked with `compare/<commit>...main`, and only for hex commit IDs. - any trace named in the lines that isn't attached, meaning its file name doesn't appear outside the summary lines. 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 or `APS5_*` switches, picking a matching pair out of three lines, repeated captures of one commit in any order, `main` ancestry, attached and missing traces, a non-hash commit never being looked up, the reminder being posted once, and dry run. - `tools/check_conventions.py` passes. - Replayed against the current perf-titled pull requests, using `gh pr list` data: - Open: 91 had two summary lines. 6 of them would gain `perf numbers missing` because their two lines differ in `window.first_present`, `APS5_*` switches or `memory_mib`. - Merged: 4 of 81 would have. - Among the open ones, 39 had neither commit on `main` and about 61 had no trace link. Those cases only get the reminder, and only on their next pull request event. - Not tested: the live workflow. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions. #12768 and #11064 also touch `tools/pr_labels.py`, but for different features. - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes. Written with AI assistance and reviewed by me.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!14036
No description provided.