ci(windows): link host-only tests on pull requests #11343
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11343"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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/libstest 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
a059a925cbon currentmain204c6747d0:python3 tools/tests/test_mingw_host_only_test_targets.py: 9/9 pass.build-host-linkfrom the rebased source, thenctest --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/mainandgit 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 rootCMakeLists.txtconflict is with #8161's separateab_splittest 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
6ffc3c37a5passed 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
#8161root CMake insertion is a distinct test registration (ab_split); preserve both it and this PR'smingw_host_only_test_targetsregistration when integrating. The other reported conflicts are outside this PR's changed paths.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repositoryImported 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.