ci: the Windows pull request job times out at 45 minutes when a pull request changes one header under core/libs #15049
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-02T12:23:34Z.
What happens
In the 200
build.ymlruns created between 10:27 and 12:15 UTC today, 59windowspull request jobs ran to an end:timeout-minutesThat 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.pyandtools/build_mingw_host_only_tests.pytreat as a broad change. In 19 of them the broad path is a header or aCMakeLists.txtof a single library, for examplelibSceNKWebKit/include/InventoryExports.hpp(#15011, #14999),libSceVideoOut/include/FrameTimingLog.hpp(#14982) orlibSceShellUIUtil/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 executablestakes 18 to 26 minutes, andBuild and run changed guest core/libs testsis still building when the timeout cancels it (jobs 125210515803, 125236328669, 125241099075).Why
Both scripts decide breadth by path alone: any
.h/.hpp/.hh/.inlorCMakeLists.txtundercore/libs/, or the rootCMakeLists.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 fromninja -t depsonmain).tools/select_tests.py selectuses it to map a changed header to the tests whose objects depend on it, but only wheninputs.selectis set; the pull request path never reads it.Proposal
On the pull request path, when
test-graph.jsonwas 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'sCMakeLists.txtselects 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 underlibc/includewill still select almost everything, which is correct.If that is too large for now, a smaller stopgap is a higher
timeout-minutesfor 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 (
.cmakefragments,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,.cmakefragments 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)