Repository navigation
Cache cargo-codspeed installation metadata - #8620
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe CodSpeed workflow now caches two additional Cargo metadata files and uses the ChangesCodSpeed cache workflow
Estimated code review effort: 1 (Trivial) | ~3 minutes Merge Risk: ⚪ Minimal · up to The workflow now caches Cargo installation metadata alongside the executable and uses a new cache namespace, preventing stale incomplete caches from being reused. No actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.) ✨ 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 |
Assisted-by: Codex:gpt-5.6-sol
5679dc1 to
9099644
Compare
Assisted-by: Codex:gpt-5.6-sol
One of checkbox below must be checked.
Summary
The CodSpeed workflow caches the cargo-codspeed executable under
~/.cargo/binbut omits~/.cargo/.crates.tomland~/.cargo/.crates2.json, which record the packages installed by Cargo. After the main-branch workflow saves that incomplete cache, subsequent jobs restore the executable without its installation records. Cargo then treats the executable as an untracked destination conflict, causing cargo install cargo-codspeed to fail with exit code 101 instead of recognizing the existing installation.This change adds both Cargo installation metadata files to the cached paths and links the relevant Cargo documentation next to the entries. It also changes the cache namespace from codspeed- to codspeed-v2- because GitHub Actions caches are immutable; without a new namespace, jobs would continue restoring the already-saved incomplete cache.
Summary by CodeRabbit