Repository navigation
feat(zcc): pass source-hash sidecar via zccache --input-file (closes zackees/zccache#654) - #2758
Conversation
Bumps zccache pin >=1.11.12 -> >=1.11.13 and feeds FastLED's SourceHashes (src/test/source globs) into the configure-cache wrapper's key via the new --input-file flag (forge-ci/zccache#655, closes forge-ci/zccache#654). Previously the wrapper bypassed itself whenever FastLED's metadata-cache layer triggered --reconfigure, because the wrapper hashed only meson.build files and would have served a stale-target tree on a source-only change. With --input-file we extend the cache key with a sidecar that holds (src_hash, test_hash, source_hash). The wrapper key now correctly invalidates on a source-trigger reconfigure, so the wrapper engages on EVERY path (not just non-reconfigure). Sidecar layout: written to <build_dir.parent>/.zccache-meson-inputs-<build_mode>.hash so it survives 'bash test --clean' (which wipes the inner build_dir) but stays per-build-mode unique. Path is recorded verbatim in the cache key (the wrapper's documented behaviour); FastLED's path is deterministic so cache lookups remain stable across invocations. Measured on Windows host (clang 21.1.5, zccache 1.11.13, --setup-only): * Cold first-time (fresh cache): ~22.0s (was 19.1s; +2.9s for v1->v2 cache-tag bump + slightly larger key) * Cold with cache restore: ~8.1s (was 9.2s; ~12% better, ~30% vs no-wrapper baseline) * Warm reconfigure-triggered: ~7.4s (was ~9-11s on the bypass path) Net: the reconfigure path now benefits from cache restoration instead of always re-running real meson; cold first-time pays a one-time penalty for the v1->v2 tag rotation.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR extends the zccache meson configure wrapper to support Changeszccache meson configure --input-file support
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Bumps zccache pin >=1.11.12 -> >=1.11.13 and feeds FastLED's SourceHashes into the configure-cache wrapper's key via the new --input-file flag (forge-ci/zccache#655, closes forge-ci/zccache#654).
Previously the wrapper bypassed itself whenever FastLED's metadata-cache layer triggered --reconfigure, because the wrapper hashed only meson.build files and would have served a stale-target tree on a source-only change. With --input-file we extend the cache key with a sidecar that holds (src_hash, test_hash, source_hash). The wrapper now engages on EVERY path.
Sidecar lives in <build_dir.parent>/.zccache-meson-inputs-<build_mode>.hash so it survives
bash test --clean.Measured (Windows host, --setup-only):
Cold first-time: ~22.0s (was 19.1s; v1->v2 tag bump cost)
Cold with cache restore: ~8.1s (was 9.2s; ~30 percent vs baseline)
Warm reconfigure-trigger: ~7.4s (was 9-11s on the bypass path)
Generated with Claude Code.
Summary by CodeRabbit