fix(ci): run every guest test when a CMake fragment under core/libs changes #14315
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14315"
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:47:39Z.
What
tools/build_changed_guest_tests.pydecides which guest tests a pull request runs on the Windows path. A change to a header, or to aCMakeLists.txt, undercore/libs/selects every guest test. A change to a.cmakefragment undercore/libs/, for examplecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_flip_tests.cmake, matches neither rule and is not the source of any target. The selection is therefore empty, although those fragments define guest tests and theiradd_testcalls. A pull request that changes only such a fragment runs no guest test.The fix adds
.cmaketo the suffixes that count as a broad change, so a fragment change selects every guest test, as a header change does. It is in two commits:7b9094a8c7: the broad-change suffixes intools/build_changed_guest_tests.py.f7cb408e0e:test_a_cmake_fragment_change_selects_every_guest_testintools/tests/test_build_changed_guest_tests.py.e4cbe53c36: merges currentmain(26fa1212b8) into the branch so the macOS x86_64 relinker job uses the Rosetta guard from #14332. No other change.Cost: every
.cmakechange undercore/libs/now runs every guest test on the Windows path, as a header change already does. The narrower option, mapping a fragment to the targets whosectestbacktrace names it, is not implemented here.Tested
Linux, Python 3.11.2, on
upstream/main5c9837bfe7plus these commits. No build was run; this module tests selection logic against fixture targets.python3 tools/tests/test_build_changed_guest_tests.py: 20 tests, OK.GuestTestTargets.test_a_cmake_fragment_change_selects_every_guest_testrun againstupstream/main'stools/build_changed_guest_tests.pyfails with[] != ['guest_a_tests', 'guest_b_tests'].python3 tools/check_conventions.py --base upstream/mainandgit diff --check upstream/main: clean.Not run: the Windows workflow on GitHub, and the guest tests 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-02T01:20:34Z.
Review: APPROVED
Windows 11, Python 3.14.7. Head e4cbe53c36 merged into upstream/main
93dbd0f82a:tools/tests/test_build_changed_guest_tests.py: 20 tests OK (1 skipped).tools/build_changed_guest_tests.py,test_a_cmake_fragment_change_selects_every_guest_testfails.Treating a
.cmakefragment undercore/libs/as a broad change, like a header, is the conservative choice, given that the AGC fragments hold both executable andadd_testdefinitions.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T06:24:11Z.
Review: COMMENTED
Reviewed — no blocking findings
A change to a
.cmakefragment undercore/libs/now selects every guest test to build, the same as a change to a header or aCMakeLists.txtalready does. The one-line change and its new test are right as far as they go. The hosted ubuntu CTest run passedbuild_changed_guest_tests.What I ran
e4cbe53c36a9c54ba531f7b9ac098dfadcb91698; base26fa1212b82f76dd49cf12d65e445d6ff3e0844c. 2 files:tools/build_changed_guest_tests.py(adds.cmaketo the extensions that make acore/libs/change broad) andtools/tests/test_build_changed_guest_tests.py(+6: one new test with a fragment path undercore/libs/prx/libSceAgcDriver/tests/cmake/).broad_changetest on line 48.build_changed_guest_tests(Test #8, passed, 0.24 s)..pyfiles.Results
.cmakeundercore/libs/makes the change broadtest_a_cmake_fragment_change_selects_every_guest_test)build_changed_guest_testson the ubuntu CTest run.cmakepaths outsidecore/libs/core/libs/prefixRead-only check output
Precheck was not run: no PR-head code is run here, and the PR changes
.pyfiles. Diff check: passed. Conventions: passed. ABI audit: not applicable. Stack check: passed. Hosted:gh api repos/boykopovar/AnyPS5/commits/e4cbe53c36a9c54ba531f7b9ac098dfadcb91698/check-runs, and the ubuntu relinker job log.Negative control
Not run here. A negative control needs a local run of the Python tests, and the PR's Python code is not run here.
Findings
Blocking
None.
Non-blocking
None.
Sources
github.com/boykopovar/AnyPS5@e4cbe53c36/tools/build_changed_guest_tests.pygithub.com/boykopovar/AnyPS5@e4cbe53c36/tools/tests/test_build_changed_guest_tests.pyNot verified
To get this to a good state
Pull request closed