Skip to content

ci: enable sccache and disable incremental in rust test job#866

Merged
senamakel merged 1 commit into
tinyhumansai:mainfrom
jwalin-shah:ci/sccache-incremental
Apr 24, 2026
Merged

ci: enable sccache and disable incremental in rust test job#866
senamakel merged 1 commit into
tinyhumansai:mainfrom
jwalin-shah:ci/sccache-incremental

Conversation

@jwalin-shah
Copy link
Copy Markdown
Contributor

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=sccache via mozilla-actions/sccache-action@v0.0.9 with SCCACHE_GHA_ENABLED=true. Layers cleanly on top of the existing Swatinem/rust-cache@v2: rust-cache warms target/ 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 on workflow_dispatch / fix/windows branch) or release workflows — those can follow if this proves clean.

Test plan

  • First CI run on this PR: sccache step installs cleanly inside the openhuman_ci:rust-1.93.0 container
  • Subsequent runs: confirm sccache cache hits in the job log (sccache --show-stats appears at job end from the action)
  • No regression in Rust test runtime (Swatinem + sccache should layer, not fight)

If sccache-in-container turns out flaky, the fallback is to revert the sccache step and keep only the CARGO_INCREMENTAL=0 line.

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).
@jwalin-shah jwalin-shah requested a review from a team April 23, 2026 23:27
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 23, 2026

Warning

Rate limit exceeded

@jwalin-shah has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 58 minutes and 39 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 58 minutes and 39 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: defaults

Review profile: CHILL

Plan: Pro

Run ID: 8a0d5492-9016-4b61-bd7f-80d233da218f

📥 Commits

Reviewing files that changed from the base of the PR and between c0f6e39 and 1fb2901.

📒 Files selected for processing (1)
  • .github/workflows/test.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@senamakel senamakel merged commit e0eb3c4 into tinyhumansai:main Apr 24, 2026
7 checks passed
AusAgentSmith pushed a commit to AusAgentSmith/openhuman that referenced this pull request May 23, 2026
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.

3 participants