docs: add a performance report issue form and ask for summary lines #4590

Merged
AlxcBTW merged 1 commit from upstream-pr/4590 into main 2026-10-12 21:11:54 +00:00
AlxcBTW commented 2026-10-12 16:24:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by AlxcBTW on 2026-10-12T16:24:56Z.


Step 4 of #4477. A performance report issue form, and a line in the pull request template and CONTRIBUTING that asks for the same capture. Perf reports and perf pull requests then come with numbers measured the same way.

What

  • .github/ISSUE_TEMPLATE/performance.yml (issue form, no label, so it needs no new label). It asks for:

    • the title ID and the scene;
    • what is slow or what changed;
    • the summary lines (required, rendered as JSON);
    • the traces as attachments (required);
    • the output of tools/trace_digest.py;
    • optionally, the worker's collapsed stacks.

    A short text at the top states the capture protocol from #4477: warm caches (run the scene once and restart), the same scene, window and settings, no other APS5_TRACE_* / APS5_PROFILE_* switch and no log redirection, and the base and the change from the same machine and session. It also says what a trace contains. Three checkboxes confirm the protocol; the first two are required.

  • Pull request template: the Tested hint adds that a performance change shows the summary lines of main and of the PR from the same machine and scene, with the traces attached.

  • CONTRIBUTING (Branches and pull requests): one bullet with the same rule, linking the issue form.

It fits #4411: that pull request changes the silent-stubs line of the pull request template and other parts of CONTRIBUTING, and this one changes only the Tested hint and adds one bullet, so the two do not touch the same lines. No blank-issue or config.yml change, so the other kinds of issues stay as they are.

Tested

  • The form validates against SchemaStore's github-issue-forms.json schema (ajv) and parses as YAML.
  • tools/check_conventions.py --base origin/main passes, including doc-link for the new CONTRIBUTING link.
  • Not rendered on GitHub yet; the form shows up in the issue chooser once it is on main.

Checklist

  • Based on current main; no other open PR implements the same functions
  • 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 in TechnicalDebt
  • 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: #4526, #4581 (the form links the performance trace docs of #4526 and the digest tool)
  • Unblocks: none
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4832181069 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4590). Originally posted by [AlxcBTW](https://github.com/AlxcBTW) on 2026-10-12T16:24:56Z. --- Step 4 of #4477. A performance report issue form, and a line in the pull request template and CONTRIBUTING that asks for the same capture. Perf reports and perf pull requests then come with numbers measured the same way. ### What - **`.github/ISSUE_TEMPLATE/performance.yml`** (issue form, no label, so it needs no new label). It asks for: - the title ID and the scene; - what is slow or what changed; - the summary lines (required, rendered as JSON); - the traces as attachments (required); - the output of `tools/trace_digest.py`; - optionally, the worker's collapsed stacks. A short text at the top states the capture protocol from #4477: warm caches (run the scene once and restart), the same scene, window and settings, no other `APS5_TRACE_*` / `APS5_PROFILE_*` switch and no log redirection, and the base and the change from the same machine and session. It also says what a trace contains. Three checkboxes confirm the protocol; the first two are required. - **Pull request template:** the `Tested` hint adds that a performance change shows the summary lines of `main` and of the PR from the same machine and scene, with the traces attached. - **CONTRIBUTING** (Branches and pull requests): one bullet with the same rule, linking the issue form. It fits #4411: that pull request changes the silent-stubs line of the pull request template and other parts of CONTRIBUTING, and this one changes only the `Tested` hint and adds one bullet, so the two do not touch the same lines. No blank-issue or `config.yml` change, so the other kinds of issues stay as they are. ### Tested - The form validates against SchemaStore's `github-issue-forms.json` schema (ajv) and parses as YAML. - `tools/check_conventions.py --base origin/main` passes, including `doc-link` for the new CONTRIBUTING link. - Not rendered on GitHub yet; the form shows up in the issue chooser once it is on `main`. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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: #4526, #4581 (the form links the performance trace docs of #4526 and the digest tool) - [x] Unblocks: none - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-12 16:41:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T16:41:27Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#4459 CONTRIBUTING.md L61
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6128545947 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4590#issuecomment-6128545947). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-12T16:41:27Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #4459 | `CONTRIBUTING.md` [L61](https://github.com/boykopovar/AnyPS5/blob/5f01c808219237ba9bdcbf02f6e1db5075fd61a9/CONTRIBUTING.md#L61) | | |
adriadam10 commented 2026-10-12 19:37:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-12T19:37:58Z.


Reviewed against the rest of the #4477 series, now merged (#4570, #4526, #4632 and #4581):

  • The form matches what the code writes: aps5-trace-<commit>-<pid>.json.gz and aps5-summary.jsonl (#4526), tools/trace_digest.py <trace> --stacks <file stem>.collapsed.txt (#4581), and the <file stem>.collapsed.txt that APS5_SAMPLE_WORKER writes (#4570).
  • The form says to set no APS5_PROFILE_* switch, which leaves out APS5_PROFILE_GPU=1 and the per-class ranges #4632 adds to the gpu track. That's the right default for numbers that will be compared, since the batch track is there without it. If someone wants the class ranges, they can add them in a second capture.
  • It merges cleanly with main. The BUILD.md anchor and tools/trace_digest.py only exist once #4526 and #4581 are in.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6131306099 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4590#issuecomment-6131306099). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-12T19:37:58Z. --- Reviewed against the rest of the #4477 series, now merged (#4570, #4526, #4632 and #4581): - The form matches what the code writes: `aps5-trace-<commit>-<pid>.json.gz` and `aps5-summary.jsonl` (#4526), `tools/trace_digest.py <trace> --stacks <file stem>.collapsed.txt` (#4581), and the `<file stem>.collapsed.txt` that `APS5_SAMPLE_WORKER` writes (#4570). - The form says to set no `APS5_PROFILE_*` switch, which leaves out `APS5_PROFILE_GPU=1` and the per-class ranges #4632 adds to the `gpu` track. That's the right default for numbers that will be compared, since the batch track is there without it. If someone wants the class ranges, they can add them in a second capture. - It merges cleanly with `main`. The BUILD.md anchor and `tools/trace_digest.py` only exist once #4526 and #4581 are in.
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!4590
No description provided.