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
# the compile step is in sccache's cacheable pattern. CC: sccache ${{ matrix.cc }} SCCACHE_GHA_ENABLED: "true" # Room for the slow GHA-backed server startup (default ~10s); keep it # alive across steps. See the pre-start step below. SCCACHE_STARTUP_TIMEOUT: "30" SCCACHE_IDLE_TIMEOUT: "0" steps: - uses: actions/checkout@v6 - name: Set up sccache # Start the server once here so `make -j` clients don't race to start it. - name: Pre-start sccache server run: sccache --start-server - name: Set up Ruby uses: ruby/setup-ruby@v1 with: