Skip to content

docs(ci): add CI_CACHING.md — save/restore design for CI runners (closes #92)#100

Merged
zackees merged 1 commit intomainfrom
docs/92-ci-caching
Apr 18, 2026
Merged

docs(ci): add CI_CACHING.md — save/restore design for CI runners (closes #92)#100
zackees merged 1 commit intomainfrom
docs/92-ci-caching

Conversation

@zackees
Copy link
Copy Markdown
Member

@zackees zackees commented Apr 18, 2026

Summary

Adds a decentralized doc that answers how do I persist fbuild's cache across CI runs? — the missing design the #92 issue called out.

Highlights:

  • Drop-in GHA snippet at the top that FastLED's matrix (or any consumer) can paste unchanged.
  • What to cache / what not to cache table, including the warning that ~/.fbuild/*/daemon/ must be excluded (the daemon port/PID files cause broken-daemon-discovery on the next run if restored).
  • Cache-key strategy with OS/arch + fbuild version + graph-input hash + manual-bump sentinel, plus a restore-key fallback chain for partial hits.
  • Hermeticity caveats around absolute paths in response files and DWARF — documented honestly, with mitigations.
  • Daemon interaction in CI: one-shot-runner flow, why --no-daemon is not needed, and the matrix-sharding concurrency note.
  • Smoke test YAML that asserts the second build was warm, so cache breakage surfaces as a failed CI step instead of silent slowness.
  • Timings sourced directly from perf(build): investigate warm-pass compilation stall — 30s where cache says <1s #91's profiling data, not guesses.

Wired into docs/INDEX.md (two FAQ rows — cache-how and cache-safe) and docs/README.md (contents list).

Test plan

  • lychee-compatible internal links resolve (no new broken links).
  • No code changes — markdown-only PR. No clippy/test impact.
  • FAQ rows in docs/INDEX.md follow the one-question-per-row convention.

Related

 #92)

New decentralized doc covering how consumer CI pipelines (FastLED's
matrix in particular) should persist fbuild's cache across runs:

- What to cache (~/.fbuild/<mode>/cache) and what NOT to cache (daemon/)
- Cache-key strategy with OS/arch, fbuild version, graph-input hashes,
  and a manual-bump sentinel — plus restore-key fallback chain
- Hermeticity notes: content-hashed fingerprints, absolute-path caveats
  in response files, DWARF path considerations
- Invalidation behavior: reconcile_on_open runs once at daemon start,
  not per-build; LRU/GC auto-scales to disk free
- Daemon interaction: one-shot CI is the fast path, don't --no-daemon,
  and don't cache daemon state
- Tooling audit: no cache export/import/pin helpers today (filed as
  follow-ups); DiskCache::stats() is available for CI debug output
- Worked example: drop-in GitHub Actions snippet with a matrix over
  os × board, plus a smoke-test step that asserts the second run was warm
- Expected timings sourced from #91's profiling data

Wired into docs/INDEX.md (two FAQ rows) and docs/README.md (contents
list) for discoverability.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 18, 2026

Warning

Rate limit exceeded

@zackees has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 56 minutes and 27 seconds before requesting another review.

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 56 minutes and 27 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 7c2c536d-b46a-421c-b94f-16c98a6e4e43

📥 Commits

Reviewing files that changed from the base of the PR and between bd4b3a1 and 1436018.

📒 Files selected for processing (3)
  • docs/CI_CACHING.md
  • docs/INDEX.md
  • docs/README.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/92-ci-caching

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@zackees zackees merged commit 0b582be into main Apr 18, 2026
74 of 77 checks passed
@zackees zackees deleted the docs/92-ci-caching branch April 18, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(ci): document cache save/restore design for CI runners (GH Actions, etc.)

1 participant