fix(ci): select the tests build-wide inputs reach on the Windows pull request path #14317

Merged
MarcZX10 merged 4 commits from upstream-pr/14317 into main 2026-11-02 19:48:06 +00:00
MarcZX10 commented 2026-11-01 09:56:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T09:56:19Z.


What

.github/workflows/build.yml starts the Windows host-only job for changes to core/CMakeLists.txt, cmake/, 3rdparty/ and .gitmodules: that is the mingwHostTests list in the gate. The two selection tools did not treat those paths as reaching any test. tools/build_changed_guest_tests.py printed No changed guest core/libs tests require a run and returned, and tools/build_mingw_host_only_tests.py selected 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, 7b9094a8c7 and f7cb408e0e, 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.txt or a header does. It is in two commits:

  • b3f6e97523: BUILD_WIDE_PREFIXES in tools/build_mingw_host_only_tests.py, used by both tools.
  • 691882c4f1: test_a_build_wide_input_selects_every_guest_test_and_reaches_the_libs and test_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/main 5c9837bfe7 plus 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.
  • Negative control: the two new tests run against 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/main and git diff --check upstream/main: clean.
  • Test-quality helper, run by hand on both changed test files: 2 findings, both on existing tests this PR does not change (test_gnu_exact_file_linker_argument_links_a_product_library and test_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

  • Based on current main
  • One topic per PR; follow-ups go 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 (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: #14315
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5105898193 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14317). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T09:56:19Z. --- ### What `.github/workflows/build.yml` starts the Windows host-only job for changes to `core/CMakeLists.txt`, `cmake/`, `3rdparty/` and `.gitmodules`: that is the `mingwHostTests` list in the gate. The two selection tools did not treat those paths as reaching any test. `tools/build_changed_guest_tests.py` printed `No changed guest core/libs tests require a run` and returned, and `tools/build_mingw_host_only_tests.py` selected 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, `7b9094a8c7` and `f7cb408e0e`, 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.txt` or a header does. It is in two commits: - `b3f6e97523`: `BUILD_WIDE_PREFIXES` in `tools/build_mingw_host_only_tests.py`, used by both tools. - `691882c4f1`: `test_a_build_wide_input_selects_every_guest_test_and_reaches_the_libs` and `test_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/main` `5c9837bfe7` plus 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. - Negative control: the two new tests run against `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/main` and `git diff --check upstream/main`: clean. - Test-quality helper, run by hand on both changed test files: 2 findings, both on existing tests this PR does not change (`test_gnu_exact_file_linker_argument_links_a_product_library` and `test_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 - [x] Based on current `main` - [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) - [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: #14315 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
BunnyFl commented 2026-11-02 03:24:19 +00:00 (Migrated from github.com)

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.
  • Negative control: with main's build_changed_guest_tests.py and build_mingw_host_only_tests.py, the new test_a_build_wide_input_selects_every_guest_test_and_reaches_the_libs and test_build_wide_inputs_check_all_host_targets fail (as does #14315's fragment test, which this branch includes).
  • check_test_registration.py --scripts passes, and this merges cleanly on top of #14315.

Sharing BUILD_WIDE_PREFIXES between the two tools keeps them in step with the mingwHostTests gate.

Non-blocking: core/CMakeLists.txt doesn't exist on main. It's in the gate in build.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.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5731776966 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14317#pullrequestreview-5731776966). Originally posted by [BunnyFl](https://github.com/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. - Negative control: with main's `build_changed_guest_tests.py` and `build_mingw_host_only_tests.py`, the new `test_a_build_wide_input_selects_every_guest_test_and_reaches_the_libs` and `test_build_wide_inputs_check_all_host_targets` fail (as does #14315's fragment test, which this branch includes). - `check_test_registration.py --scripts` passes, and this merges cleanly on top of #14315. Sharing `BUILD_WIDE_PREFIXES` between the two tools keeps them in step with the `mingwHostTests` gate. Non-blocking: `core/CMakeLists.txt` doesn't exist on main. It's in the gate in `build.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.
MarcZX10 commented 2026-11-02 04:58:31 +00:00 (Migrated from github.com)

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.txt entry 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 api GET on issue comments, review comments and reviews; git cat-file and git show <head>:<path> for core/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

Check Result Note
conventions, eligibility, intake, labels SUCCESS hosted, at this head
core/CMakeLists.txt on main and head absent in both git cat-file
BUILD_WIDE_PREFIXES lists core/CMakeLists.txt tools/build_mingw_host_only_tests.py:8
build.yml gate lists core/CMakeLists.txt .github/workflows/build.yml:143

Findings

  • BunnyFl (review, 2026-11-02T03:24:19Z), non-blocking: core/CMakeLists.txt is absent on main and is in the mingwHostTests gate and in BUILD_WIDE_PREFIXES. Confirmed. tools/build_changed_guest_tests.py:23 and :48 reuse 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.
  • BunnyFl's test counts and negative-control results (21 and 18 tests; the named tests fail on main): the test names exist at this head (test_build_changed_guest_tests.py:97, test_mingw_host_only_test_targets.py:156). The pass and fail results are not verified.
  • "Merges cleanly on top of #14315": not verified.

Sources

Not verified

The reviewer's local unittest runs and negative controls were not repeated. Nothing was executed. The #14315 merge was not checked.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5732255649 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14317#pullrequestreview-5732255649). Originally posted by [MarcZX10](https://github.com/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.txt` entry 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 api` GET on issue comments, review comments and reviews; `git cat-file` and `git show <head>:<path>` for `core/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 | Check | Result | Note | |---|---|---| | conventions, eligibility, intake, labels | SUCCESS | hosted, at this head | | `core/CMakeLists.txt` on main and head | absent in both | `git cat-file` | | `BUILD_WIDE_PREFIXES` | lists `core/CMakeLists.txt` | `tools/build_mingw_host_only_tests.py:8` | | `build.yml` gate | lists `core/CMakeLists.txt` | `.github/workflows/build.yml:143` | ## Findings - BunnyFl (review, 2026-11-02T03:24:19Z), non-blocking: `core/CMakeLists.txt` is absent on main and is in the `mingwHostTests` gate and in `BUILD_WIDE_PREFIXES`. Confirmed. `tools/build_changed_guest_tests.py:23` and `:48` reuse 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. - BunnyFl's test counts and negative-control results (21 and 18 tests; the named tests fail on main): the test names exist at this head (`test_build_changed_guest_tests.py:97`, `test_mingw_host_only_test_targets.py:156`). The pass and fail results are not verified. - "Merges cleanly on top of #14315": not verified. ## Sources - https://github.com/boykopovar/AnyPS5/blob/691882c4f164ea6e272f749268dd8d1e68e65070/.github/workflows/build.yml#L143 - https://github.com/boykopovar/AnyPS5/blob/691882c4f164ea6e272f749268dd8d1e68e65070/tools/build_mingw_host_only_tests.py#L8 - https://github.com/boykopovar/AnyPS5/blob/691882c4f164ea6e272f749268dd8d1e68e65070/tools/build_changed_guest_tests.py#L23 - https://github.com/boykopovar/AnyPS5/blob/691882c4f164ea6e272f749268dd8d1e68e65070/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.
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!14317
No description provided.