Repository navigation
ci(meson): opt in to ZCCACHE_PROBE_BYPASS=1 for configure-phase probes (#2739) - #2877
Conversation
#2739) Add os.environ.setdefault("ZCCACHE_PROBE_BYPASS", "1") next to the existing ZCCACHE_STRICT_PATHS opt-in in _start_zccache_session(). This opts FastLED in to zccache's CLI-side fast-path for meson configure-phase try-compile probes. Bench from forge-ci/zccache#636 (unique-probe workload, 0% cache hit): Mode Cold Warm/probe vs bare bare 0.96s 47ms baseline zccache cache (default) 4.92s 102ms 2.2x slower zccache PROBE_BYPASS=1 1.34s 60ms 1.3x slower With ~200 probes per FastLED meson configure run, expected saving is ~7-10s per configure. Not a disable. Per-call routing decision: only single-source < 4 KiB no-PCH no-@rsp invocations bypass; production .cpp TUs continue to use the cache normally. setdefault preserves any user override. Older zccache that doesn't recognise the env var ignores it. Issue noted the canonical location as ci/meson/runner.py line ~406, but that file was already refactored — the actual home is ci/meson/runner_helpers.py::_start_zccache_session (422 lines, well under any LOC guard). Closes #2739 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)
📝 WalkthroughWalkthroughThe PR adds environment variable opt-in Changeszccache probe-bypass fast-path opt-in
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 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
Closes #2739. Adds
os.environ.setdefault("ZCCACHE_PROBE_BYPASS", "1")next to the existingZCCACHE_STRICT_PATHSopt-in in_start_zccache_session(). This opts FastLED in to zccache's CLI-side fast-path for meson configure-phase try-compile probes.Bench (from forge-ci/zccache#636)
Unique-probe workload, 0% cache hit (probes are fresh paths so the cache only pays per-invocation overhead with nothing to amortise):
PROBE_BYPASS=1With ~200 probes per FastLED meson configure run, expected saving is on the order of 7–10s per configure.
Safety
.cppTUs that exceed the 4 KiB heuristic, use PCH, or take an@rspcontinue to use the cached path normally. Only probe-shape invocations bypass.setdefaultkeeps an existing user override intact.Path correction vs the issue
The issue pinned the canonical location as
ci/meson/runner.py:406, but that file was refactored since the issue was filed —_start_zccache_sessionnow lives inci/meson/runner_helpers.py(422 lines, well under any LOC guard). The fix is otherwise the exact one-line addition the issue specified.Tests / lint
bash lint— green (Python pipeline + C++ + JS + meson + platformio-internal-usage all completed)🤖 Generated with Claude Code
Summary by CodeRabbit