Repository navigation
feat(meson): wrap meson setup with zccache configure-cache - #2754
Conversation
Bumps zccache pin from >=1.11.11 to >=1.11.12. 1.11.12 ships PR #649 (the configure-cache wrapper, closes forge-ci/zccache#627). Routes build_meson_setup_cmd through 'zccache m e s o n configure' on the non-reconfigure path so a cached miss capture lets a later build_dir-gone invocation restore the configured tree instead of re-running real configure. Detection is cheap: we probe whether 'zccache m e s o n configure --help' prints the wrapper's docstring (1.11.12+) vs passing through to real configure (older binaries that predate #649). Reconfigure path bypasses the wrapper because FastLED's metadata-cache layer flagged a source/test/example file change — the wrapper hashes only configure-input files and would otherwise serve a stale-state hit. Measured on Windows host (clang 21.1.5, zccache 1.11.12): * cold no-cache: 11.6s baseline -> 19.1s (wrapper miss adds ~7.5s capture overhead) * cold with cache restore: n/a -> 9.2s (~20% better than baseline cold) * warm (build_dir intact): unchanged on both paths -- bash test's own skip-if-unchanged logic short-circuits before invoking the wrapper Drive-by: suppress DCT002 dict-type lint on _resolve_test_name_candidates so bash lint clears.
|
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 integrates zccache's meson configure wrapper to cache Meson configure phase outputs and skip reconfiguration when build inputs are unchanged. It adds runtime probing for wrapper support, conditionally routes meson setup through the wrapper on non-reconfigure builds, bumps zccache to 1.11.12, and applies a minor linting configuration. Changeszccache Meson Configure Caching
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 |
Summary
Bumps
zccache>=1.11.11->>=1.11.12and routesbuild_meson_setup_cmdthrough the newzccache meson configurewrapper (forge-ci/zccache#649, closes forge-ci/zccache#627) on the non-reconfigure path.PR #649 merged to zccache main on 2026-06-04, after the 1.11.11 release was tagged 2026-06-03. So a previous
>=1.11.11pin silently fell through to a binary that just passed meson through unmodified — the cache-wrapper subcommand was effectively dead. Minting 1.11.12 (forge-ci/zccache#653, merged earlier today) closes that gap.Measured impact
The interesting cell is the middle row:
bash test --clean/ branch switch / nuke.build/used to take 11.6s; now 9.2s.Why reconfigure bypasses the wrapper
The wrapper hashes only configure-input files, not project sources. When FastLED's metadata-cache layer triggers
--reconfigure, the wrapper's key still matches OLD state and a hit would restore stale targets. Soreconfigure=True-> bypass wrapper.Detection is cheap
_get_zccache_meson_configure_path()probes whetherzccache meson configure --helpprints the wrapper's docstring vs passing through to real meson. Handles the upgrade window correctly.Drive-by
Suppresses pre-existing DCT002 lint on
ci/meson/runner.py:_resolve_test_name_candidates.Test plan
bash test --cpp --setup-onlycold + warm measuredbash lintclean(Generated with Claude Code)
Summary by CodeRabbit
New Features
Chores