CI: pull requests never compile the libraries on Linux, so non-Windows branches merge unbuilt #28168
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 LeandroLP23 on 2026-11-28T23:17:45Z.
Problem
On a pull request, CI builds the prx libraries only on Windows. In
.github/workflows/build.ymlthe fulllinuxjob runs on a push tomainor on a dispatch, never onpull_request. No workflow builds the libraries on macOS. So code under#if defined(__linux__),__APPLE__or the#elseof_WIN32reachesmainwithout having been compiled.It happened on #26699. A rebase moved a check out of a
StorageTexturemember into a namespace-scope function. Its non-Windows branch kept reading two private members, so Linux and macOS no longer built. Every check passed, because the Windows branch of the same function does not read them. CodeRabbit spotted it; nothing in CI would have.On
mainsuch a break shows up the next morning at the earliest. Push runs ofbuild.ymlare almost all cancelled before thelinuxjob runs (993 of the last 1,000), so the first build that catches it is the nightly sanitizer job. That job compiles everything onubuntu-latest, and by then other PRs have merged on top.Proposal
A
linux-compilejob onpull_request, onubuntu-latest, that only compiles:sanitizers.ymldoes them, and the same build dependencies;tools/check_compile.py --jobs 4on the changed translation units. That is a syntax-only compile with the real compile commands, and it already maps changed headers to their dependents through Ninja.It runs no tests and needs no GPU or self-hosted runner. It would run only when C or C++ files change. It would not replace the full Linux build on
main; it only catches a branch that does not compile before it merges.macOS stays uncovered: the libraries are not released for it, and a hosted macOS job costs more. I would leave that out unless you want it.
@oneandonlydean, would you take a PR for this? If yes, I will write it and test it on my fork first, with a branch that breaks the non-Windows build as a negative control.
AI-assisted: yes (Claude Code)