fix(tools): stop asking perf(tools), perf(ci) and perf(build) pull requests for title captures #11064
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11064"
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 MarcZX10 on 2026-10-25T16:31:16Z.
What
tools/pr_labels.pylabels every pull request titledperf(...)orperf:withperf numbers missinguntil its description holds twoaps5-summary.jsonllines from different commits, and posts a comment asking for two title captures and their traces. Those lines come from running a title withAPS5_TRACE_FRAMESorAPS5_TRACE_SUMMARY_EVERY, so a pull request that speeds up a repository tool, a workflow or the build can never satisfy the check. #9966 (perf(tools)) and #10995 (perf(tools)) both carry the label and the comment for that reason; their before and after timings are in their descriptions instead.Pull requests whose scope is
tools,ciorbuild(case and surrounding spaces ignored) are now labeledperfonly. Every otherperftitle, includingperf:,perf!:and runtime scopes such asperf(agc)andperf(libc), still needs the two summary lines, and a scope that merely starts withtools(for exampleperf(toolsy)) is not exempt. Sincelabels_forremoves managed labels that are no longer wanted, the hourly run ofpr-labels.ymldropsperf numbers missingfrom existing tooling pull requests once this is merged. CONTRIBUTING.md and GAME_TESTING.md name the exempt scopes.Tested
Linux x86-64, Python 3.11:
tools/tests/test_pr_labels.pypasses, including three new tests:perf(tools),perf(ci),perf(build),perf(Tools)andperf( tools )labeledperfonly;perf:,perf!:,perf(agc),perf(libc)andperf(toolsy)still labeledperf numbers missing; and a tooling pull request that already carries the label gets it removed. The new tests fail before the fix (6 failures) and pass after it.python3 tools/check_conventions.py --base upstream/mainandgit diff --check upstream/mainpass, andtools/pr_overlap.py --branchreports no overlap with open pull requests. Windows and macOS were not run.Checklist
main; no other open PR implements the same functionsNotImplemented_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)Imported from boykopovar/AnyPS5. Originally posted by thepoppfish on 2026-10-25T17:34:51Z.
Review: APPROVED
Reviewed exact head
8da632a873145a7a8dc6924cf0f7ed984762859dagainst main2e1c72239b23cf9b9e8ceb2d04fab25296374d92. Approve; no actionable findings.The exemption uses the complete normalized scope, so
tools,ciandbuildare exempt while runtime, mixed and similarly prefixed scopes still require captures. The managed-label removal also feeds the existingprocess()comment predicate: a tooling PR carrying an oldperf numbers missinglabel loses it without a new capture-comment lookup/post. The hourly--allpath continues to avoid comments, and unrelated labels/title-unblocking behavior is preserved. The CONTRIBUTING/GAME_TESTING wording matches the code.Independent Windows 11 build26200 / Python3.14.7 checks:
python tools/tests/test_pr_labels.py -v: 20/20 pass, zero skips, 0.008s. Conventions againstorigin/mainand whitespace pass; checkout is clean.main()calls across head and unchanged main, with the GitHubghboundary mocked. The head matches all expectations; main mismatches11 tooling-exemption cases. Cases cover fresh tooling PRs, removal of stale labels, mixed-case/space/breaking scopes, runtime/mixed-scope controls, valid runtime captures, an existing bot comment, preservedother/unblocks titlelabels, closed PRs, dry-run and hourly paginated backfill. Repeated processing produces no additional writes. Tooling cases avoid the capture-comment lookup/post; runtime cases retain it, and the hourly run makes no comment calls.I reviewed the workflow's individual-PR and hourly invocation paths. Relevant
pr_labels.py,performance_compare.py, test and workflow inputs are unchanged between the PR base and the main commit above. The fixture runs exercised production argument parsing, JSON ingestion and processing with an emulated GitHub boundary; they were not external CLI/API integration tests and made no real label/comment changes. No hosted workflow or product/game test is claimed.AI-assisted review and fixture checks; the stated local runs were actually executed.
Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-26T18:44:52Z.
Review: APPROVED
Reviewed
8da632a873145a7a8dc6924cf0f7ed984762859d. Approve; no actionable finding in this focused review.The label decision exempts the explicit tools, ci and build performance scopes from title captures while preserving the perf label and the normal capture requirement for runtime scopes. The contributing and testing guidance matches that distinction.
Validation: Windows, Python 3.11: 20 passed; base 17 passed. The old-production control fails six assertions for tooling performance titles. Exact-head hosted Build and Conventions are checked again before submission; skipped product jobs are not counted as native execution.
Scope: The label and comment API calls in the suite are mocked; no label mutations or title benchmark were performed.