Skip to content

ci: stop caching ~/.cargo/bin#767

Merged
xdustinface merged 1 commit into
v0.42-devfrom
ci/disable-macos-cargo-bin-cache
May 14, 2026
Merged

ci: stop caching ~/.cargo/bin#767
xdustinface merged 1 commit into
v0.42-devfrom
ci/disable-macos-cargo-bin-cache

Conversation

@xdustinface
Copy link
Copy Markdown
Collaborator

@xdustinface xdustinface commented May 14, 2026

Swatinem/rust-cache@v2 defaults to cache-bin: true, which caches ~/.cargo/bin. On macOS aarch64 the rustup proxies are hardlinks to a single binary, and after a partial (prefix-match) cache restore cargo can end up pointing to the rustup-init installer instead of the rustup proxy, making every cargo test invocation fail with error: unexpected argument 'test' found.

Disable bin caching so the toolchain is always reinstalled by dtolnay/rust-toolchain@stable. Bump prefix-key to v1-rust to invalidate the existing poisoned caches, since GitHub Actions cache rejects saves to an existing key and prefix-match restore would otherwise keep pulling the bad tar.

Fixes failures like: https://github.com/dashpay/rust-dashcore/actions/runs/25866537968/job/76010036327?pr=761

`Swatinem/rust-cache@v2` defaults to `cache-bin: true`, which caches `~/.cargo/bin`. On macOS aarch64 the rustup proxies are hardlinks to a single binary, and after a partial (prefix-match) cache restore `cargo` can end up pointing to the `rustup-init` installer instead of the rustup proxy, making every `cargo test` invocation fail with `error: unexpected argument 'test' found`.

Disable bin caching so the toolchain is always reinstalled by `dtolnay/rust-toolchain@stable`. Bump `prefix-key` to `v1-rust` to invalidate the existing poisoned caches, since GitHub Actions cache rejects saves to an existing key and prefix-match restore would otherwise keep pulling the bad tar.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 14, 2026

Warning

Rate limit exceeded

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

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ 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: c898618d-3ff3-4d76-a167-a872bdd894ed

📥 Commits

Reviewing files that changed from the base of the PR and between 3281616 and a80ff9a.

📒 Files selected for processing (1)
  • .github/workflows/build-and-test.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/disable-macos-cargo-bin-cache

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.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.61%. Comparing base (3281616) to head (a80ff9a).

Additional details and impacted files
@@              Coverage Diff              @@
##           v0.42-dev     #767      +/-   ##
=============================================
+ Coverage      72.56%   72.61%   +0.05%     
=============================================
  Files            320      320              
  Lines          70254    70254              
=============================================
+ Hits           50977    51018      +41     
+ Misses         19277    19236      -41     
Flag Coverage Δ
core 76.30% <ø> (ø)
ffi 48.42% <ø> (ø)
rpc 20.00% <ø> (ø)
spv 89.94% <ø> (+0.25%) ⬆️
wallet 71.27% <ø> (ø)
see 7 files with indirect coverage changes

@xdustinface xdustinface merged commit bbf0a9c into v0.42-dev May 14, 2026
34 checks passed
@xdustinface xdustinface deleted the ci/disable-macos-cargo-bin-cache branch May 14, 2026 22:23
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.

1 participant