Repository navigation
refactor(ci): drop full artifact wipe on zccache version delta (#3129 A3) - #3201
Conversation
…A3) build_config.py used to call cleanup_build_artifacts(...) on every zccache version change. That is overkill: zccache is a cache layer, not a codegen layer. A version bump that does not change the cache key just forces a miss-and-recompile, which is exactly what the adjacent force_reconfigure already does. Keeps: - force_reconfigure = True - skip_meson_setup = False - the reconfigure-reason logging - the compiler-version wipe at line 275 (codegen CAN change there) Drops only the cleanup_build_artifacts call for zccache-only deltas. A routine zccache patch-level bump (e.g. via uv sync) no longer nukes every .obj/.a/.exe/.pch/.lib/.dll/.so/.dylib. Part of #3129 (Section A3). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughIn Changeszccache version-change handling
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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
ci/meson/build_config.pycallscleanup_build_artifacts(...)on every detected zccache version change. That is overkill: zccache is a cache layer, not a codegen layer. A version bump that does not change the cache key just forces a miss-and-recompile — which is exactly what the adjacentforce_reconfigure = True+ meson reconfigure already does.What this change keeps
force_reconfigure = Trueskip_meson_setup = FalseWhat this change drops
cleanup_build_artifacts(build_dir, "zccache version changed")callEffect
A routine zccache patch-level bump (e.g. via
uv syncpulling a new>=1.12.7release) no longer nukes every.obj/.a/.exe/.pch/.lib/.dll/.so/.dyliband forces a full rebuild. Meson reconfigure + ninja's normal staleness graph does the right thing — and any compile units whose cache keys actually changed will miss in zccache and recompile naturally.1 file changed, 5 insertions(+), 1 deletion(-) (net +4 lines of explanatory comment).
Validation
bash lintcleanPart of #3129 (Section A3).
🤖 Generated with Claude Code
Summary by CodeRabbit