ci: the Windows pull request job times out at 45 minutes when a pull request changes one header under core/libs #15049

Closed
opened 2026-11-02 12:23:34 +00:00 by LeandroLP23 · 0 comments
LeandroLP23 commented 2026-11-02 12:23:34 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-11-02T12:23:34Z.


What happens

In the 200 build.yml runs created between 10:27 and 12:15 UTC today, 59 windows pull request jobs ran to an end:

Outcome Jobs
Succeeded 20 (12 to 43 min, 9 of them above 36 min)
Cancelled at the 45-minute timeout-minutes 24
Cancelled earlier (superseded or queued) 15

That is about 18 runner-hours spent on jobs that report nothing. All 24 timed-out jobs belong to pull requests that tools/build_changed_guest_tests.py and tools/build_mingw_host_only_tests.py treat as a broad change. In 19 of them the broad path is a header or a CMakeLists.txt of a single library, for example libSceNKWebKit/include/InventoryExports.hpp (#15011, #14999), libSceVideoOut/include/FrameTimingLog.hpp (#14982) or libSceShellUIUtil/CMakeLists.txt (#15026). The other five change .github/workflows/build.yml (#14399) or a header that most targets do include (libc/include/*.hpp, four jobs).

A broad change selects every host-only and every guest test executable. In the timed-out jobs Link changed host-only core/libs test executables takes 18 to 26 minutes, and Build and run changed guest core/libs tests is still building when the timeout cancels it (jobs 125210515803, 125236328669, 125241099075).

Why

Both scripts decide breadth by path alone: any .h/.hpp/.hh/.inl or CMakeLists.txt under core/libs/, or the root CMakeLists.txt/build.yml, selects everything. They cannot tell which targets include a header.

The same job already restores test-graph.json (test-graph-${{ runner.os }}-…, built from ninja -t deps on main). tools/select_tests.py select uses it to map a changed header to the tests whose objects depend on it, but only when inputs.select is set; the pull request path never reads it.

Proposal

On the pull request path, when test-graph.json was restored, resolve changed headers through the graph in both scripts. Each header then selects only the host-only and guest test targets whose objects depend on it, and a library's CMakeLists.txt selects the targets defined in that directory and those linking its library target. The current select-everything rule stays as the fallback when the graph is missing or a header is new and not yet in it. A header under libc/include will still select almost everything, which is correct.

If that is too large for now, a smaller stopgap is a higher timeout-minutes for the pull request case only. That makes broad changes finish instead of timing out, but it does not reduce their cost.

This interacts with #14315 and #14317, which make more paths broad (.cmake fragments, core/CMakeLists.txt, cmake/, 3rdparty/, .gitmodules). Those are right about the selection being empty today, but each one adds to the set that hits the timeout. With graph-based selection, .cmake fragments could map to their tests' backtraces, as #14315 notes.

Before writing anything: is graph-based selection on the pull request path the direction you want, or would you rather raise the timeout?

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6162478909 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/15049). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-11-02T12:23:34Z. --- ### What happens In the 200 `build.yml` runs created between 10:27 and 12:15 UTC today, 59 `windows` pull request jobs ran to an end: | Outcome | Jobs | |---|---| | Succeeded | 20 (12 to 43 min, 9 of them above 36 min) | | Cancelled at the 45-minute `timeout-minutes` | 24 | | Cancelled earlier (superseded or queued) | 15 | That is about 18 runner-hours spent on jobs that report nothing. All 24 timed-out jobs belong to pull requests that `tools/build_changed_guest_tests.py` and `tools/build_mingw_host_only_tests.py` treat as a broad change. In 19 of them the broad path is a header or a `CMakeLists.txt` of a single library, for example `libSceNKWebKit/include/InventoryExports.hpp` (#15011, #14999), `libSceVideoOut/include/FrameTimingLog.hpp` (#14982) or `libSceShellUIUtil/CMakeLists.txt` (#15026). The other five change `.github/workflows/build.yml` (#14399) or a header that most targets do include (`libc/include/*.hpp`, four jobs). A broad change selects every host-only and every guest test executable. In the timed-out jobs `Link changed host-only core/libs test executables` takes 18 to 26 minutes, and `Build and run changed guest core/libs tests` is still building when the timeout cancels it (jobs 125210515803, 125236328669, 125241099075). ### Why Both scripts decide breadth by path alone: any `.h`/`.hpp`/`.hh`/`.inl` or `CMakeLists.txt` under `core/libs/`, or the root `CMakeLists.txt`/`build.yml`, selects everything. They cannot tell which targets include a header. The same job already restores `test-graph.json` (`test-graph-${{ runner.os }}-…`, built from `ninja -t deps` on `main`). `tools/select_tests.py select` uses it to map a changed header to the tests whose objects depend on it, but only when `inputs.select` is set; the pull request path never reads it. ### Proposal On the pull request path, when `test-graph.json` was restored, resolve changed headers through the graph in both scripts. Each header then selects only the host-only and guest test targets whose objects depend on it, and a library's `CMakeLists.txt` selects the targets defined in that directory and those linking its library target. The current select-everything rule stays as the fallback when the graph is missing or a header is new and not yet in it. A header under `libc/include` will still select almost everything, which is correct. If that is too large for now, a smaller stopgap is a higher `timeout-minutes` for the pull request case only. That makes broad changes finish instead of timing out, but it does not reduce their cost. This interacts with #14315 and #14317, which make more paths broad (`.cmake` fragments, `core/CMakeLists.txt`, `cmake/`, `3rdparty/`, `.gitmodules`). Those are right about the selection being empty today, but each one adds to the set that hits the timeout. With graph-based selection, `.cmake` fragments could map to their tests' backtraces, as #14315 notes. Before writing anything: is graph-based selection on the pull request path the direction you want, or would you rather raise the timeout? 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#15049
No description provided.