ci(windows): link host-only tests on pull requests #11343

Merged
MarcZX10 merged 6 commits from upstream-pr/11343 into main 2026-10-27 08:23:21 +00:00
MarcZX10 commented 2026-10-26 05:14:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T05:14:12Z.


What

Add a focused Windows PR check that links changed core/libs test executables which do not depend on guest libc or in-tree product libraries. For header or CMake changes, the check falls back to the standalone host-only test targets. This catches host-only MinGW link failures without building unrelated targets.

Tested

Linux, AnyPS5 CMake/Ninja configuration, exact rebased head a059a925cb on current main 204c6747d0:

  • python3 tools/tests/test_mingw_host_only_test_targets.py: 9/9 pass.
  • Reconfigured build-host-link from the rebased source, then ctest --test-dir build-host-link -R '^mingw_host_only_test_targets$' --output-on-failure: 1/1 pass.
  • python3 tools/check_test_registration.py build-host-link: 1,379 test executables, no unregistered targets.
  • python3 tools/check_conventions.py --base upstream/main and git diff --check upstream/main...HEAD: pass.
  • python3 tools/pr_overlap.py --branch marc/ci-mingw-host-only-tests: completed. It reports this PR's own two new files and discloses comparisons it cannot complete for old open branches; manual current-head checks found no duplicate implementation. The only root CMakeLists.txt conflict is with #8161's separate ab_split test registration; both registrations can be retained.

The branch is six commits ahead and zero behind current main, with a clean merge preview. Windows MinGW was not run locally. The previous hosted run on pre-refresh head 6ffc3c37a5 passed the changed Windows host-only link step, all four relinker variants, ASan, and the applicable register-context/write-watch jobs; the Linux product job was skipped by path policy. A fresh hosted run is now pending on this exact rebased head.

Overlap

The overlap scan reports no other implementation of this functionality. Its self-entry refers to the two files added by this PR. It could not compare some old open PRs that already conflict with current main. Manual two-head previews confirm the #8161 root CMake insertion is a distinct test registration (ab_split); preserve both it and this PR's mingw_host_only_test_targets registration when integrating. The other reported conflicts are outside this PR's changed paths.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-up work goes in a new PR
  • No comments in code except technical debt
  • 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
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: #11287
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5012416998 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11343). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-26T05:14:12Z. --- ### What Add a focused Windows PR check that links changed `core/libs` test executables which do not depend on guest libc or in-tree product libraries. For header or CMake changes, the check falls back to the standalone host-only test targets. This catches host-only MinGW link failures without building unrelated targets. ### Tested Linux, AnyPS5 CMake/Ninja configuration, exact rebased head `a059a925cb` on current `main` `204c6747d0`: - `python3 tools/tests/test_mingw_host_only_test_targets.py`: 9/9 pass. - Reconfigured `build-host-link` from the rebased source, then `ctest --test-dir build-host-link -R '^mingw_host_only_test_targets$' --output-on-failure`: 1/1 pass. - `python3 tools/check_test_registration.py build-host-link`: 1,379 test executables, no unregistered targets. - `python3 tools/check_conventions.py --base upstream/main` and `git diff --check upstream/main...HEAD`: pass. - `python3 tools/pr_overlap.py --branch marc/ci-mingw-host-only-tests`: completed. It reports this PR's own two new files and discloses comparisons it cannot complete for old open branches; manual current-head checks found no duplicate implementation. The only root `CMakeLists.txt` conflict is with #8161's separate `ab_split` test registration; both registrations can be retained. The branch is six commits ahead and zero behind current main, with a clean merge preview. Windows MinGW was not run locally. The previous hosted run on pre-refresh head `6ffc3c37a5` passed the changed Windows host-only link step, all four relinker variants, ASan, and the applicable register-context/write-watch jobs; the Linux product job was skipped by path policy. A fresh hosted run is now pending on this exact rebased head. ### Overlap The overlap scan reports no other implementation of this functionality. Its self-entry refers to the two files added by this PR. It could not compare some old open PRs that already conflict with current main. Manual two-head previews confirm the `#8161` root CMake insertion is a distinct test registration (`ab_split`); preserve both it and this PR's `mingw_host_only_test_targets` registration when integrating. The other reported conflicts are outside this PR's changed paths. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-up work goes in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical debt file - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: #11287 - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
THEMANnt commented 2026-10-26 19:17:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-26T19:17:46Z.

Review: APPROVED


Reviewed a059a925cb987b828114c4676d8d79d75ca85b6e. Approve; no actionable finding in this focused review.

The File API selector distinguishes host-only test executables from guest/product-linked targets and selects changed sources conservatively. PR Windows jobs link those targets while the normal full-build/test paths remain for push/manual runs.

Validation: Local selector fixtures pass 9/9. I also inspected Windows job 121460349051: it pins PR_HEAD a059a925cb, merges that head, and successfully links the listed 23 host-only targets with WinLibs GCC 15.2.

Scope / next step: The hosted PR path proves linking, not execution of those 23 binaries. Product-library build work pulled in as dependencies is not counted as a full runtime test suite.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5657693996 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11343#pullrequestreview-5657693996). Originally posted by [THEMANnt](https://github.com/THEMANnt) on 2026-10-26T19:17:46Z. **Review:** APPROVED --- Reviewed `a059a925cb987b828114c4676d8d79d75ca85b6e`. Approve; no actionable finding in this focused review. The File API selector distinguishes host-only test executables from guest/product-linked targets and selects changed sources conservatively. PR Windows jobs link those targets while the normal full-build/test paths remain for push/manual runs. **Validation:** Local selector fixtures pass 9/9. I also inspected Windows job 121460349051: it pins PR_HEAD a059a925cb987b828114c4676d8d79d75ca85b6e, merges that head, and successfully links the listed 23 host-only targets with WinLibs GCC 15.2. **Scope / next step:** The hosted PR path proves linking, not execution of those 23 binaries. Product-library build work pulled in as dependencies is not counted as a full runtime test suite.
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!11343
No description provided.