fix(ci): build owners of wrappers around selected guest tests #15375
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15375"
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 JJenkx on 2026-11-03T04:06:18Z.
What
A Windows job for #14794 selected
avplayer_http_patched_modulesbut failed inAvPlayerHttpModules.cmake:155: itsavplayer_http_patched_modules_tests.exehad not been built (failed job). The guest-test runner matched a selected client executable passed to the wrapper and treated that client as the owner. The wrapper itself does not link guest libc, so it was absent from the guest build targets.Resolve test owners against all executable targets, honor the wrapper's
-- <owner>argument, and retain wrappers that reference a selected guest executable. Build their additional owner targets before running CTest. The HTTP wrapper remains selected and its CMake dependencies build with it. No production code or test timeouts change.Tested
Linux x86-64, Python 3.14.8. Tests use CMake file-API/CTest fixtures with the Windows command shape from the failing job, including its patcher option, owner and guest client arguments. The new regression requires both retaining all three selected CTest cases and building the actual wrapper owner. Additional owner-resolution cases cover Windows
.exepaths and extensionless paths.Commands:
python3 -m unittest discover -s tools/tests -p test_build_changed_guest_tests.py, then the same command withtest_mingw_host_only_test_targets.pyandtest_select_tests.py.Hosted Windows CI on this head completed 3,032 selected CTest cases: 2,073 passed, 959 skipped and zero failed, including
avplayer_http_patched_modulesin 8.53 s. Its formerly missing wrapper executable was built and the test ran. Hosted relinker jobs also passed on Ubuntu, Windows, macOS arm64 and macOS x86_64, together with relinker ASan (workflow). No title run or separate Windows GPU qualification. This establishes the reproduced missing-build-target selection fix; it does not establish that unrelated failures in other PRs are resolved.Overlap check fetched 1,756 open PR heads and reported existing base conflicts for #13486 and #15153. Their patches were reviewed manually: #13486's current PR patch does not change these tools; #15153 changes graph-based narrowing, not wrapped-test ownership. #14315's CMake-fragment selection change is separate. This branch depends on none of them; shared files may need rebasing after another lands.
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 repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-03T04:14:39Z.
Review: COMMENTED
Reviewed — no blocking findings
I reviewed head
69943649b58d9a55f56ab515c109b377843e5a37; the regression coverage and owner-target selection look correct, but I am withholding approval until the pending Windows and macOS jobs finish.What I ran
Reviewed all changed files at head
69943649b58d9a55f56ab515c109b377843e5a37against basef6232fcfda70644495273f6b8dd88cf0603463d6. The no-build precheck's current-main merge preview was clean. Environment: Debian Linux x86-64, Python 3.11.2, Git 2.39.5. No local project build or actual CTest run was performed; the Python unit suite uses CMake/CTest fixtures and mocks.The precheck inspected the exact head and base and confirmed neither moved during the run. Its optional test-quality invocation could not start because that helper is not present in the isolated PR snapshot. I separately ran the heuristic against the exact changed test file downloaded from the reviewed head; it returned no findings.
Results
Commands and raw check output
The optional precheck helper invocation returned this raw error; the direct exact-file heuristic run above succeeded:
The precheck's base-revision run produced these raw assertion failures, as expected for the negative control:
Negative control
--nid_patcherwas selected).Nonewas returned).All three new regressions failed by assertion on base; the 25-case suite passed on the PR head.
Findings
Blocking
None found in the two changed files.
Non-blocking
No additional source changes requested. Approval is pending completion of the hosted Windows and macOS relinker jobs.
Sources
Not verified
The hosted Windows build/CTest and both macOS relinker jobs were pending. Linux and specialized workflow jobs were skipped. I did not run a local build, actual CTest, a Windows/macOS environment, a title run, or console behavior checks.
To get this to a good state
No code change is requested. Let the pending Windows and macOS jobs finish; I will recheck this exact head and update the review if their results change the conclusion.