CI: pull requests never compile the libraries on Linux, so non-Windows branches merge unbuilt #28168

Open
opened 2026-11-28 23:17:45 +00:00 by LeandroLP23 · 0 comments
LeandroLP23 commented 2026-11-28 23:17:45 +00:00 (Migrated from github.com)
Contributor

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.yml the full linux job runs on a push to main or on a dispatch, never on pull_request. No workflow builds the libraries on macOS. So code under #if defined(__linux__), __APPLE__ or the #else of _WIN32 reaches main without having been compiled.

It happened on #26699. A rebase moved a check out of a StorageTexture member 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 main such a break shows up the next morning at the earliest. Push runs of build.yml are almost all cancelled before the linux job runs (993 of the last 1,000), so the first build that catches it is the nightly sanitizer job. That job compiles everything on ubuntu-latest, and by then other PRs have merged on top.

Proposal

A linux-compile job on pull_request, on ubuntu-latest, that only compiles:

  • checkout and the submodule cache as sanitizers.yml does them, and the same build dependencies;
  • configure (under a minute in the nightly sanitizer run);
  • tools/check_compile.py --jobs 4 on 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)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6672344524 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/28168). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-11-28T23:17:45Z. --- ### Problem On a pull request, CI builds the prx libraries only on Windows. In `.github/workflows/build.yml` the full `linux` job runs on a push to `main` or on a dispatch, never on `pull_request`. No workflow builds the libraries on macOS. So code under `#if defined(__linux__)`, `__APPLE__` or the `#else` of `_WIN32` reaches `main` without having been compiled. It happened on #26699. A rebase moved a check out of a `StorageTexture` member 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 `main` such a break shows up the next morning at the earliest. Push runs of `build.yml` are almost all cancelled before the `linux` job runs (993 of the last 1,000), so the first build that catches it is the nightly sanitizer job. That job compiles everything on `ubuntu-latest`, and by then other PRs have merged on top. ### Proposal A `linux-compile` job on `pull_request`, on `ubuntu-latest`, that only compiles: - checkout and the submodule cache as `sanitizers.yml` does them, and the same build dependencies; - configure (under a minute in the nightly sanitizer run); - `tools/check_compile.py --jobs 4` on 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)
Sign in to join this conversation.
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#28168
No description provided.