Skip to content

ci: skip sccache startup cache check and pin sccache version - #798

Merged
bug-ops merged 1 commit into
mainfrom
fix/ci-sccache-startup-timeout
Nov 23, 2026
Merged

bug-ops merged 1 commit into
mainfrom
fix/ci-sccache-startup-timeout

Conversation

@bug-ops

@bug-ops bug-ops commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes widespread CI failures (sccache: error: Timed out waiting for server startup) affecting Build (windows-latest, *), Doctests (*), and Code Coverage on PR #797 (run 45262487627) and main (run 45262004876).

Root Cause

  • mozilla/sccache released v0.20.0 on 2026-11-23, which mozilla-actions/sccache-action began pulling automatically because version was unpinned.
  • v0.20.0 (mozilla/sccache#2911) added an OpenDAL RetryLayer (up to 6 retries, 8s max delay) to the GHA cache backend.
  • During daemon startup, sccache probes .sccache_check via RemoteStorage::check() before signalling SCCACHE_STARTUP_NOTIFY. Under parallel CI bursts, GitHub Actions Cache 429 rate limits now trigger retries inside check() that exceed sccache's 10s client startup timeout (whereas v0.19.0 surfaced RateLimited immediately and tolerated it).

Changes

  • Set SCCACHE_SKIP_CACHE_CHECK: "true" in .github/workflows/ci.yml top-level env: so sccache skips the startup .sccache_check read/write probe and starts immediately while keeping GHA cache retries active during compilation reads/writes.
  • Pin SCCACHE_VERSION: v0.20.0 in .github/workflows/ci.yml and pass version: ${{ env.SCCACHE_VERSION }} to all 5 mozilla-actions/sccache-action steps.
  • Update specs/tooling/078-ci-pipeline/spec.md to document SCCACHE_SKIP_CACHE_CHECK and SCCACHE_VERSION.

Follow-up

Once merged into main, rebase/re-run PR #797 so it picks up the fixed workflow.

sccache v0.20.0 (mozilla/sccache#2911) added OpenDAL RetryLayer (up to 6 retries, 8s max backoff) to the GHA cache backend. During parallel CI bursts, 429 rate limits on the startup .sccache_check read/write probe now block daemon startup past sccache's hardcoded 10s client startup timeout, failing builds, doctests, and coverage jobs with 'Timed out waiting for server startup'.

Set SCCACHE_SKIP_CACHE_CHECK=true in the CI workflow env so the daemon starts immediately without probing .sccache_check, and pin SCCACHE_VERSION=v0.20.0 across all mozilla-actions/sccache-action steps alongside the other CI tool pins.
@github-actions github-actions Bot added documentation Documentation updates, README, guides ci/cd CI/CD pipeline changes, GitHub Actions workflows labels Nov 23, 2026
@github-actions

Copy link
Copy Markdown

WASM Bundle Size Report

Target Raw (KB) Gzipped (KB) Status
web 291 115 WARNING
nodejs 291 115 WARNING
bundler 291 115 WARNING

@bug-ops
bug-ops enabled auto-merge (squash) November 23, 2026 21:09
@bug-ops
bug-ops merged commit 6ab475e into main Nov 23, 2026
62 checks passed
@bug-ops
bug-ops deleted the fix/ci-sccache-startup-timeout branch November 23, 2026 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd CI/CD pipeline changes, GitHub Actions workflows documentation Documentation updates, README, guides

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant