ci: cache check-features - #2613
Conversation
There was a problem hiding this comment.
Summary
Looks good. This change cleanly adds cargo-hack installation and primes the shared debug cache with cargo hack check --each-feature, which is aligned with the stated goal of avoiding repeated feature-combo rechecks in PR jobs. The explicit RUSTFLAGS: "" is a good safeguard to keep cache fingerprints compatible with the non-coverage check-features workflow.
No concrete correctness, security, or deploy-safety issues found in the provided diff/context.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2e89c3c769
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Summary
LGTM. The PR cleanly separates check-features caching from the existing shared debug cache by introducing a dedicated cache key/workflow (check-features-release) and updating check-features.yml to restore from that key with an OS + Cargo.lock hash suffix.
The new build-check-features-cache.yml primes cache using the same command/env (just check-features, RELEASE=1, CARGO_PROFILE_RELEASE_DEBUG=0) as the consumer job, which is the right way to maximize artifact reuse and avoid fingerprint divergence. I did not find concrete correctness, security, or CI-safety regressions in the provided diff.
PR Type
Enhancement, Tests
Description
Add
cargo-hack@0.6.39to CI tools setupIntroduce "Check all features" caching step
Prime cache for all feature combinations
Preserve existing build and test caching
Diagram Walkthrough
File Walkthrough
build-debug-cache.yml
Enhance CI caching for feature checks.github/workflows/build-debug-cache.yml
cargo-hack@0.6.39alongside existing toolsRUSTFLAGSto avoid coverage flag mismatches