ci: enable sccache and disable incremental in rust test job#866
Conversation
Two stacked wins on the Rust test job: - `CARGO_INCREMENTAL=0`: incremental is for warm local dev, pointless on fresh CI runners — saves disk and some wall-clock. - `RUSTC_WRAPPER=sccache` via mozilla-actions/sccache-action with `SCCACHE_GHA_ENABLED=true` for a GitHub Actions cache backend. Layers on top of Swatinem/rust-cache: rust-cache warms target/ per branch, sccache caches individual compilation units across branches. No change to other workflows (build-windows runs on manual dispatch only; release workflows can follow if this proves clean).
|
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 58 minutes and 39 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: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ 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 |
…nsai#866) Co-authored-by: Jwalin Shah <jshah1331@gmail.com>
Summary
Two stacked wins on the Rust test job (
.github/workflows/test.yml):CARGO_INCREMENTAL=0— incremental compilation is for warm local dev, pointless on fresh CI runners. Saves disk + a few % wall-clock.RUSTC_WRAPPER=sccacheviamozilla-actions/sccache-action@v0.0.9withSCCACHE_GHA_ENABLED=true. Layers cleanly on top of the existingSwatinem/rust-cache@v2: rust-cache warmstarget/per branch; sccache caches individual compilation units across branches. Expected 30–60% off cold Rust builds on fresh PRs.No changes to
build-windows.yml(triggers only onworkflow_dispatch/fix/windowsbranch) or release workflows — those can follow if this proves clean.Test plan
openhuman_ci:rust-1.93.0containersccache --show-statsappears at job end from the action)If sccache-in-container turns out flaky, the fallback is to revert the sccache step and keep only the
CARGO_INCREMENTAL=0line.