ci: check the CTest the Linux build tree uses #28689
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/28689"
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 oneandonlydean on 2026-12-02T21:59:43Z.
What
Linux jobs on some runners build and then fail to run any test:
/opt/anyps5-cmake/bin/ctest: error while loading shared libraries: librhash.so.0(exit 127), for example main runs 46938767145 and 46968839905. The check added by #28615 passed there because it probed thecmakeon PATH (3.28.3), not the CTest the build tree records.After configure, this reads
CMAKE_CTEST_COMMANDfrombuild/CMakeCache.txt. If that CTest cannot start, it downloads the same pinned Kitware bundle, reconfigures the tree with it and puts it on PATH. Otherwise the step does nothing.Tested
Linux, the step's script alone: a working CTest in the cache exits at once; a CTest that exits 127 takes the download branch. The download and reconfigure were not run, and not on an affected runner.
Checklist
main; no other open PR implements the same functionsSummary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T23:07:23Z.
Review: APPROVED
Reviewed — looks good
The Linux workflow checks the CTest recorded in the build cache and falls back to a checksum-verified Kitware bundle if it cannot start; I found no defect in the inspected change.
What I ran
Reviewed head
5bca1a64a3f61c031a45db1404bd122fa1c117c6in the read-only review environment; no runtime toolchain was used.The reader displayed the requested lines, then exited while attempting to write its read log in the read-only workspace.
Results
Negative control
Not run; no test or execution environment was used to inject a failing CTest.
Findings
Blocking
None.
Non-blocking
None.
Sources
Not verified
The fallback download, checksum verification, reconfiguration, and subsequent CI steps were not executed. The author-reported script checks were not rerun. The only changed file,
.github/workflows/build.yml, was inspected in the changed section and its surrounding setup;files.jsonlists no excluded files.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T00:27:36Z.
Review: COMMENTED
I ran the added Bash step from
5bca1a64a3f6against a small Ninja build on Debian 13. With the working cached CTest 3.31.6, the step exited without writing toGITHUB_PATH. With the cached CTest replaced by a stub that returned 127 and printed the reportedlibrhash.so.0error, the step verified and unpacked the pinned Kitware 4.2.3 archive, reconfigured the same tree, updatedCMAKE_CTEST_COMMAND, and wrote the bundle's bin directory toGITHUB_PATH. The new CTest ran the test that the original configure flag enabled.I pre-fetched the real Kitware archive and supplied it from disk inside the isolated test. This covers the reconfigure and CTest handoff. The affected runner and the full AnyPS5 build were outside this test.
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-12-03T04:51:27Z.
Review: APPROVED
I read the diff at
5bca1a64a3and ran the new step on Linux (WSL Ubuntu 24.04, cmake and ctest 3.28.3) with the samebash -e -o pipefail. I did not run the workflow itself.Why it is needed: I looked at 10
mainruns since 2026-11-27. The Linux job ends with/opt/anyps5-cmake/bin/ctest: error while loading shared libraries: librhash.so.0(exit 127), so no Linux test runs. The check from #28615 passes there, because it starts ctest from inside cmake.I reproduced that with a
cmakewrapper that sets a variable itsctestneeds to start, then configured a small project:main's checkctest version 3.28.3), then the test step fails with exit 127GITHUB_PATHpoint at the bundle, the generator and build type are kept andctest --test-dir buildpassesGITHUB_PATHunchangedGITHUB_PATHunchangedI replaced the download with a local archive of cmake 3.28.3, so the real 4.2.3 bundle is not covered. Its version and checksum are the ones
mainalready uses in the step above.AI-assisted: yes (Claude Code)