feat(tools): compare pinned CTest result bundles #22505

Merged
mjnhbg3 merged 2 commits from upstream-pr/22505 into main 2026-12-04 12:41:19 +00:00
mjnhbg3 commented 2026-11-17 18:14:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mjnhbg3 on 2026-11-17T18:14:42Z.


What

Compare two version 1 CTest bundles using pinned provenance, retained report hashes, testcase outcomes, and recorded coverage limits. Malformed, tampered, or incorrectly pinned input exits with status 2. Observed failures, skips, and coverage gaps are reported without changing the original test verdicts.

The separate test commit shares paired bundle setup. It keeps every test case and the real CTest integration. #22004 provides the artifact format.

Tested

Nine focused CTest groups passed on Windows, including all 43 Python test methods. Ran the exact producer and reader against two real 10-case bundles, an archived 5,006-case CI artifact, and matched historical 49-case GPU JUnit reports. Original and final CTest registrations match.

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: #22004
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5362459310 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/22505). Originally posted by [mjnhbg3](https://github.com/mjnhbg3) on 2026-11-17T18:14:42Z. --- ### What Compare two version 1 CTest bundles using pinned provenance, retained report hashes, testcase outcomes, and recorded coverage limits. Malformed, tampered, or incorrectly pinned input exits with status 2. Observed failures, skips, and coverage gaps are reported without changing the original test verdicts. The separate test commit shares paired bundle setup. It keeps every test case and the real CTest integration. #22004 provides the artifact format. ### 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. --> Nine focused CTest groups passed on Windows, including all 43 Python test methods. Ran the exact producer and reader against two real 10-case bundles, an archived 5,006-case CI artifact, and matched historical 49-case GPU JUnit reports. Original and final CTest registrations match. ### 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 --> #22004 - [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 11:27:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T11:27:27Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this; the points below are optional.

What I ran

Reviewed head 0d2cbd65a2765e95d48349b90b087c6c74310ca6. Inspected the prepared diff and changed-file inventory; did not run commands. The description reports Windows CTest and Python test runs, which I did not independently run.

Results

Check Result Note
Diff and source review passed Four changed files inspected
Tests in this review not run Windows runs reported by author
Excluded files not applicable files.json was unavailable

Findings

Blocking

None.

Non-blocking

None.

Not verified

The prepared manifest lists CMakeLists.txt, docs/dev/BUILD.md, tools/ctest_bundle_compare.py, and tools/tests/test_ctest_bundle_compare.py as included. I reviewed the diff for all four, but did not read the full files from review/files/ or inspect callers and repository context through repo_read.py. I could not verify the excluded-file list because files.json was unavailable. Tests and Windows behavior were not independently verified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6004905845 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/22505#pullrequestreview-6004905845). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T11:27:27Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this; the points below are optional. ## What I ran Reviewed head `0d2cbd65a2765e95d48349b90b087c6c74310ca6`. Inspected the prepared diff and changed-file inventory; did not run commands. The description reports Windows CTest and Python test runs, which I did not independently run. ## Results | Check | Result | Note | |---|---|---| | Diff and source review | passed | Four changed files inspected | | Tests in this review | not run | Windows runs reported by author | | Excluded files | not applicable | `files.json` was unavailable | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The prepared manifest lists `CMakeLists.txt`, `docs/dev/BUILD.md`, `tools/ctest_bundle_compare.py`, and `tools/tests/test_ctest_bundle_compare.py` as included. I reviewed the diff for all four, but did not read the full files from `review/files/` or inspect callers and repository context through `repo_read.py`. I could not verify the excluded-file list because `files.json` was unavailable. Tests and Windows behavior were not independently verified. ## To get this to a good state Nothing is required.
ligmaSec commented 2026-12-03 11:08:16 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Ran the submitted CTest bundle comparison suite on Linux. All 43 passed. I checked the distinctions exercised by the tests for verified report contents, tampered reports, physically missing reports, and reports declared missing.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6168548317 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/22505#pullrequestreview-6168548317). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T11:08:16Z. **Review:** COMMENTED --- Ran the submitted CTest bundle comparison suite on Linux. All 43 passed. I checked the distinctions exercised by the tests for verified report contents, tampered reports, physically missing reports, and reports declared missing. AI-assisted: yes.
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!22505
No description provided.