ci: stop caching ~/.cargo/bin#767
Conversation
`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.
|
Warning Rate limit exceeded
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 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 (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 |
Codecov Report✅ All modified and coverable lines are covered by tests. 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
|
Swatinem/rust-cache@v2defaults tocache-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 restorecargocan end up pointing to therustup-initinstaller instead of the rustup proxy, making everycargo testinvocation fail witherror: unexpected argument 'test' found.Disable bin caching so the toolchain is always reinstalled by
dtolnay/rust-toolchain@stable. Bumpprefix-keytov1-rustto 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