Commit 1f73ebcb

1f73ebcb7064Merged

Ryan Seys <[email protected]> · 5 months ago · 1 file · ~1 modified

Description

fix(ci): pre-start sccache server and raise startup timeout

CI intermittently failed the gcc and macos jobs with sccache: error: Timed out waiting for server startup. Maybe the remote service is unreachable? while compiling the first parallel objects (e.g. build/prism/node.o), even though the same commit passed on ubuntu/clang and built fine locally.

Two compounding factors: the sccache server contacts the GitHub Actions cache service at startup (slow during the cache-service brownouts), and make -j launches many sccache <cc> clients at once that all race to auto-start the single server, blowing past the default ~10s startup timeout.

Pre-start the server in a dedicated step so its slow GHA-backed startup happens once, serially, before the parallel build; raise SCCACHE_STARTUP_TIMEOUT to give that startup room; and set SCCACHE_IDLE_TIMEOUT=0 so the server stays up across steps. Subsequent compiles just connect to the running server.

Co-Authored-By: Claude Opus 4.8 (1M context) [email protected]

Details

Commit
1f73ebcb7064
Parent
d40bc31b97a3

.github/workflows/ci.ymlmodifiedView file

@@ -30,12 +30,20 @@
3030 # the compile step is in sccache's cacheable pattern.
3131 CC: sccache ${{ matrix.cc }}
3232 SCCACHE_GHA_ENABLED: "true"
33+ # Room for the slow GHA-backed server startup (default ~10s); keep it
34+ # alive across steps. See the pre-start step below.
35+ SCCACHE_STARTUP_TIMEOUT: "30"
36+ SCCACHE_IDLE_TIMEOUT: "0"
3337 steps:
3438 - uses: actions/checkout@v6
3539
3640 - name: Set up sccache
3741 uses: mozilla-actions/[email protected]
3842
43+ # Start the server once here so `make -j` clients don't race to start it.
44+ - name: Pre-start sccache server
45+ run: sccache --start-server
46+
3947 - name: Set up Ruby
4048 uses: ruby/setup-ruby@v1
4149 with: