docs(ci): document cache save/restore design for CI runners#104
docs(ci): document cache save/restore design for CI runners#104
Conversation
Adds docs/CI_CACHING.md explaining how to persist fbuild's local disk cache across CI runs (GitHub Actions, GitLab, etc.) so a cold runner is effectively warm on the second build. Covers: - Exact paths to cache (~/.fbuild/prod/cache/) and exclusions (daemon PID/port/log files) - Cache key strategy (fbuild version + platformio.ini hash + OS/arch) - Hermeticity caveats (debug-info paths, response files) - Budget auto-scaling problem on small-disk CI runners and env-var workaround (FBUILD_CACHE_HIGH_WATERMARK) - Daemon teardown recommendation (no --no-daemon mode today) - Drop-in actions/cache@v4 snippet and matrix example - Open questions + candidate follow-ups (cache pin/export/import, --no-daemon mode, CI-tuned budget defaults) Also adds an INDEX.md row linking to the new doc. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 23 minutes and 9 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 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 |
|
Superseded by #100 (docs/CI_CACHING.md merged independently, 181 lines vs this PR's 559 — if more detail is wanted, happy to resurface content from this branch as a follow-up). |
Closes #92.
Adds
docs/CI_CACHING.md(559 lines) covering how to persist fbuild's local disk cache across CI runs so a cold runner is effectively warm on the second build. Unblocks FastLED's CI from realising fbuild's cache advantages.Sections
daemon.port,fbuild_daemon.pid,daemon.log*, locks, leases), Windows vs Unix, size expectationsdisk_cache::budgetbehavior,reconcile_on_opencost, pinning--foreground --oneshot/--no-daemonoptions for CIactions/cache@v4YAML snippet for a FastLED-style matrixfbuild cache export/import, lease locking under concurrent shardsNotes
TODO: verifyitems flagged in-doc where behavior wasn't obvious from the codedocs/INDEX.mdfor discoverabilityVerify
uv run cargo check --workspace --all-targetsuv run cargo clippy --workspace --all-targets -- -D warningsuv run cargo fmt --all🤖 Generated with Claude Code