feat(tools): add pinned CTest result bundle CLI #22004

Open
mjnhbg3 wants to merge 2 commits from upstream-pr/22004 into main
mjnhbg3 commented 2026-11-17 01:18:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mjnhbg3 on 2026-11-17T01:18:20Z.


What

Add the standalone tools/ctest_bundle.py prepare and finish commands and document the version 1 manifest. Preserve the checked-out commit and tree, the original report bytes and hashes, and explicit states for unavailable reports. The CLI leaves the CTest exit status with the caller.

This is the collector slice of #22004. The dependent #22594 contains workflow uploads and selected-test wiring. The retry fixture allows one second for Python startup and retains its intentional timeout and assertions.

Tested

Windows Release relinker-only configuration, all six original collector groups, and real CTest exit, retry, zero-selection, and stale-output fixtures. Compared all 44 original acceptance registrations with the split stack. The collector schema and production source are unchanged from the full proposal.

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • 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
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5348478482 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/22004). Originally posted by [mjnhbg3](https://github.com/mjnhbg3) on 2026-11-17T01:18:20Z. --- ### What Add the standalone `tools/ctest_bundle.py prepare` and `finish` commands and document the version 1 manifest. Preserve the checked-out commit and tree, the original report bytes and hashes, and explicit states for unavailable reports. The CLI leaves the CTest exit status with the caller. This is the collector slice of #22004. The dependent #22594 contains workflow uploads and selected-test wiring. The retry fixture allows one second for Python startup and retains its intentional timeout and assertions. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Windows Release relinker-only configuration, all six original collector groups, and real CTest exit, retry, zero-selection, and stale-output fixtures. Compared all 44 original acceptance registrations with the split stack. The collector schema and production source are unchanged from the full proposal. ### 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) and the licence notice of code adapted from upstream (see AGENTS.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: <!-- #PR, or none --> none - [x] Fixes: <!-- issue it closes as Fixes #N, or none --> none - [x] Unblocks: <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> none - [x] GPUs tested: <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> n/a - [x] AI-assisted: <!-- yes / no --> yes
MarcZX10 commented 2026-11-21 08:43:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T08:43:07Z.

Review: APPROVED


Reviewed — looks good

The reviewed change at head bae602095b6def41a894094018d02022613ed179 adds a pinned CTest report collector, and the code inspected supports its stated provenance and report-preservation behavior.

What I ran

No commands were run. I read the prepared diff and the changed files through repo_read.py; the author reports Windows Release and fixture checks, which I did not run.

Results

Check Result Note
Source review passed All changed files reviewed
Automated checks not run Author reports Windows fixture checks

Negative control

Not run; no command execution was available.

Findings

Blocking

None.

Non-blocking

None.

Sources

Behavior claims are based on the pinned diff and changed source at bae602095b6def41a894094018d02022613ed179.

Not verified

No runtime tests, workflow integration, or behavior on Windows or a physical console were verified. The author describes this as the collector slice, with workflow uploads and selected-test wiring deferred to #22594. All changed files listed in the manifest were read: CMakeLists.txt, docs/dev/BUILD.md, tools/ctest_bundle.py, and tools/tests/test_ctest_bundle.py. No changed files were excluded.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6004203901 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/22004#pullrequestreview-6004203901). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T08:43:07Z. **Review:** APPROVED --- # Reviewed — looks good The reviewed change at head `bae602095b6def41a894094018d02022613ed179` adds a pinned CTest report collector, and the code inspected supports its stated provenance and report-preservation behavior. ## What I ran No commands were run. I read the prepared diff and the changed files through `repo_read.py`; the author reports Windows Release and fixture checks, which I did not run. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | All changed files reviewed | | Automated checks | not run | Author reports Windows fixture checks | ## Negative control Not run; no command execution was available. ## Findings ### Blocking None. ### Non-blocking None. ## Sources Behavior claims are based on the pinned diff and changed source at `bae602095b6def41a894094018d02022613ed179`. ## Not verified No runtime tests, workflow integration, or behavior on Windows or a physical console were verified. The author describes this as the collector slice, with workflow uploads and selected-test wiring deferred to #22594. All changed files listed in the manifest were read: `CMakeLists.txt`, `docs/dev/BUILD.md`, `tools/ctest_bundle.py`, and `tools/tests/test_ctest_bundle.py`. No changed files were excluded. ## To get this to a good state Nothing is required.
ligmaSec commented 2026-12-03 11:08:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T11:08:12Z.

Review: COMMENTED


Ran the submitted CTest bundle suite on Linux. All 33 cases passed. The new tests exercise actual Git commit and tree identity, ordered pins, and distinct treatment of tracked edits, untracked files, and unknown collection context.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6168547473 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/22004#pullrequestreview-6168547473). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T11:08:12Z. **Review:** COMMENTED --- Ran the submitted CTest bundle suite on Linux. All 33 cases passed. The new tests exercise actual Git commit and tree identity, ordered pins, and distinct treatment of tracked edits, untracked files, and unknown collection context. AI-assisted: yes.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/22004:upstream-pr/22004'
git switch 'upstream-pr/22004'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/22004'
git switch 'upstream-pr/22004'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/22004'
git switch 'upstream-pr/22004'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/22004'
git switch 'main'
git merge --squash 'upstream-pr/22004'
git switch 'main'
git merge --ff-only 'upstream-pr/22004'
git switch 'main'
git merge 'upstream-pr/22004'
git push origin 'main'
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!22004
No description provided.