fix(ci): select the tests build-wide inputs reach on the Windows pull request path #14317
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14317"
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-11-01T09:56:19Z.
What
.github/workflows/build.ymlstarts the Windows host-only job for changes tocore/CMakeLists.txt,cmake/,3rdparty/and.gitmodules: that is themingwHostTestslist in the gate. The two selection tools did not treat those paths as reaching any test.tools/build_changed_guest_tests.pyprintedNo changed guest core/libs tests require a runand returned, andtools/build_mingw_host_only_tests.pyselected no host-only test. The job therefore started and ran nothing for a change to one of those paths, for example a submodule bump.This branch is stacked on #14315, so its first two commits,
7b9094a8c7andf7cb408e0e, are that PR's and are not part of this change.The fix makes those four path prefixes build-wide in both tools, so a change to any of them selects every guest test and every host-only test, the same as a change to
CMakeLists.txtor a header does. It is in two commits:b3f6e97523:BUILD_WIDE_PREFIXESintools/build_mingw_host_only_tests.py, used by both tools.691882c4f1:test_a_build_wide_input_selects_every_guest_test_and_reaches_the_libsandtest_build_wide_inputs_check_all_host_targets.Cost: a change to one of these paths runs every guest and host-only test on the Windows path, which is the behaviour the gate already expects.
Tested
Linux, Python 3.11.2, on
upstream/main5c9837bfe7plus these commits. No build was run; both modules test selection logic against fixture targets.python3 tools/tests/test_build_changed_guest_tests.py: 21 tests, OK.python3 tools/tests/test_mingw_host_only_test_targets.py: 18 tests, OK.upstream/main's tools fail. The guest test fails on all four paths, and the host-only test fails.python3 tools/check_conventions.py --base upstream/mainandgit diff --check upstream/main: clean.test_gnu_exact_file_linker_argument_links_a_product_libraryandtest_gnu_exact_file_linker_argument_through_wl_links_a_product_library). They are heuristic output, not a finding against the new tests.Not run: the Windows workflow on GitHub, and the guest and host-only tests that the selection would run.
Checklist
mainNotImplemented_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 BunnyFl on 2026-11-02T03:24:19Z.
Review: APPROVED
Windows 11, Python 3.14.7. Head merged into upstream/main
93dbd0f82a:tools/tests/test_build_changed_guest_tests.py: 21 tests OK (1 skipped);tools/tests/test_mingw_host_only_test_targets.py: 18 tests OK.build_changed_guest_tests.pyandbuild_mingw_host_only_tests.py, the newtest_a_build_wide_input_selects_every_guest_test_and_reaches_the_libsandtest_build_wide_inputs_check_all_host_targetsfail (as does #14315's fragment test, which this branch includes).check_test_registration.py --scriptspasses, and this merges cleanly on top of #14315.Sharing
BUILD_WIDE_PREFIXESbetween the two tools keeps them in step with themingwHostTestsgate.Non-blocking:
core/CMakeLists.txtdoesn't exist on main. It's in the gate inbuild.yml(~:143) as well, so the tool matches the gate as intended, but that entry is stale in both places and could be dropped in a follow-up.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T04:58:31Z.
Review: COMMENTED
Replies checked — stale core/CMakeLists.txt note confirmed, no blocking findings
BunnyFl's only open point is that a
core/CMakeLists.txtentry matches nothing on main, and that is true at this head too.What I ran
Live head
691882c4f164ea6e272f749268dd8d1e68e65070(matches the batch file, state OPEN). Read-only:gh pr view --json headRefOid,state,statusCheckRollup;gh apiGET on issue comments, review comments and reviews;git cat-fileandgit show <head>:<path>forcore/CMakeLists.txt,.github/workflows/build.yml,tools/build_mingw_host_only_tests.py,tools/build_changed_guest_tests.py, and the two test files. Nothing built or run.Results
core/CMakeLists.txton main and headgit cat-fileBUILD_WIDE_PREFIXEScore/CMakeLists.txttools/build_mingw_host_only_tests.py:8build.ymlgatecore/CMakeLists.txt.github/workflows/build.yml:143Findings
core/CMakeLists.txtis absent on main and is in themingwHostTestsgate and inBUILD_WIDE_PREFIXES. Confirmed.tools/build_changed_guest_tests.py:23and:48reuse the same prefixes, so the tool matches the gate as the reviewer said. Dropping the entry is a follow-up, and it must change both places.test_build_changed_guest_tests.py:97,test_mingw_host_only_test_targets.py:156). The pass and fail results are not verified.Sources
github.com/boykopovar/AnyPS5@691882c4f1/.github/workflows/build.yml (L143)github.com/boykopovar/AnyPS5@691882c4f1/tools/build_mingw_host_only_tests.py (L8)github.com/boykopovar/AnyPS5@691882c4f1/tools/build_changed_guest_tests.py (L23)github.com/boykopovar/AnyPS5@691882c4f1/tools/tests/test_build_changed_guest_tests.py (L97)Not verified
The reviewer's local unittest runs and negative controls were not repeated. Nothing was executed. The #14315 merge was not checked.