fix(ci): recover Linux tests when the runner CTest cannot start #28615

Merged
RuiRDA merged 1 commit from upstream-pr/28615 into main 2026-12-02 06:13:54 +00:00
RuiRDA commented 2026-12-02 03:16:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by RuiRDA on 2026-12-02T03:16:46Z.


What

Probe the CTest executable selected by CMake before the Linux build. If the pair cannot start, verify and unpack the pinned Kitware bundle in the runner’s temporary directory and use both tools from that bundle.

Tested

Linux: exercised the workflow step with a working pair, simulated the reported CTest exit 127, and tested checksum rejection. With the recovered pair, configured and built a Ninja fixture, ran it through the repository’s CTest wrapper, validated nonempty JUnit, and produced the test graph. Self-hosted upstream runner pending.

The conventions checker and git diff --check passed. I searched relevant open PRs for the affected behavior and checked related patches where found. The complete overlap scan requires CLI authentication.

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: Fixes #28555
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

Summary by CodeRabbit

  • Chores
    • The Linux build workflow now checks that its available build and test tools can start. When they cannot, it retrieves and verifies a compatible tool bundle before continuing. The workflow stops with an error if the bundle cannot be downloaded, verified, extracted, or started.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5599124275 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/28615). Originally posted by [RuiRDA](https://github.com/RuiRDA) on 2026-12-02T03:16:46Z. --- ### What Probe the CTest executable selected by CMake before the Linux build. If the pair cannot start, verify and unpack the pinned Kitware bundle in the runner’s temporary directory and use both tools from that bundle. ### 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. --> Linux: exercised the workflow step with a working pair, simulated the reported CTest exit 127, and tested checksum rejection. With the recovered pair, configured and built a Ninja fixture, ran it through the repository’s CTest wrapper, validated nonempty JUnit, and produced the test graph. Self-hosted upstream runner pending. The conventions checker and `git diff --check` passed. I searched relevant open PRs for the affected behavior and checked related patches where found. The complete overlap scan requires CLI authentication. ### 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: none <!-- #PR, or none --> - [x] Fixes: Fixes #28555 <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: n/a <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes <!-- yes / no --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Chores** * The Linux build workflow now checks that its available build and test tools can start. When they cannot, it retrieves and verifies a compatible tool bundle before continuing. The workflow stops with an error if the bundle cannot be downloaded, verified, extracted, or started. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
MarcZX10 commented 2026-12-02 04:12:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T04:12:59Z.

Review: APPROVED


Reviewed — looks good

The fallback checks the runner’s CTest and, if it cannot start, verifies and selects the pinned Kitware CMake/CTest bundle for subsequent workflow steps.

What I ran

Inspected PR head b1040a24436604322946edc7359e0c7612a502df. No merged-preview check or executable checks were run. I read the changed workflow hunk and its surrounding setup and build/test steps; no toolchain was used.

ls -la
cat description.md commits.md manifest.json diff.patch files.json
sed -n '590,660p' files/.github/workflows/build.yml
python3 repo_read.py cat .github/workflows/build.yml 660 780

Results

Check Result Note
Workflow logic review passed Probe, checksum, extraction, and PATH flow are coherent.
Workflow execution not run Author-reported checks were not independently run.
Negative control not run No workflow runner was available for this review.

Negative control

Not run; the workflow was not executed in this review.

Findings

Blocking

None.

Non-blocking

None.

Sources

Not verified

The PR description reports exercising the working-pair path, simulated CTest failure, checksum rejection, and a Ninja fixture. Those runs were not independently verified here. Read .github/workflows/build.yml in the changed hunk and relevant surrounding context; files.json lists no excluded files.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6144642258 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/28615#pullrequestreview-6144642258). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-12-02T04:12:59Z. **Review:** APPROVED --- # Reviewed — looks good The fallback checks the runner’s CTest and, if it cannot start, verifies and selects the pinned Kitware CMake/CTest bundle for subsequent workflow steps. ## What I ran Inspected PR head `b1040a24436604322946edc7359e0c7612a502df`. No merged-preview check or executable checks were run. I read the changed workflow hunk and its surrounding setup and build/test steps; no toolchain was used. ```text ls -la cat description.md commits.md manifest.json diff.patch files.json sed -n '590,660p' files/.github/workflows/build.yml python3 repo_read.py cat .github/workflows/build.yml 660 780 ``` ## Results | Check | Result | Note | |---|---|---| | Workflow logic review | passed | Probe, checksum, extraction, and PATH flow are coherent. | | Workflow execution | not run | Author-reported checks were not independently run. | | Negative control | not run | No workflow runner was available for this review. | ## Negative control Not run; the workflow was not executed in this review. ## Findings ### Blocking None. ### Non-blocking None. ## Sources - [Changed Linux workflow step at the reviewed commit](https://github.com/boykopovar/AnyPS5/blob/b1040a24436604322946edc7359e0c7612a502df/.github/workflows/build.yml#L615-L636) - [Subsequent configure and test steps at the reviewed commit](https://github.com/boykopovar/AnyPS5/blob/b1040a24436604322946edc7359e0c7612a502df/.github/workflows/build.yml#L704-L745) ## Not verified The PR description reports exercising the working-pair path, simulated CTest failure, checksum rejection, and a Ninja fixture. Those runs were not independently verified here. Read `.github/workflows/build.yml` in the changed hunk and relevant surrounding context; `files.json` lists no excluded files. ## To get this to a good state Nothing is required.
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!28615
No description provided.