← Back to Pull requests

docs: explain the Rust cache caveat and workarounds #651

Closed
unknown closed this pull request without merging on Oct 03, 2026 23:35 UTC
View on GitHub
unknown unknown commented on Oct 03, 2026 22:50 UTC
Author

<!-- entire-trail-link-start -->
https://entire.io/gh/jdx/mise-action/trails/26
<!-- entire-trail-link-end -->

Expands the Rust Cache README section, which was only a link to #215: why a restored cache can miss toolchain components (rustup state lives in ~/.rustup / ~/.cargo, outside the cached mise data dir), and the two workarounds from the thread (point MISE_RUSTUP_HOME/MISE_CARGO_HOME under the mise data dir, or manage Rust outside the action's cache). Docs only.

Refs #215

🤖 Generated with Claude Code

<!-- CURSOR_SUMMARY -->
---

[!NOTE]

Low Risk

README-only documentation with no changes to action behavior, caching logic, or security-sensitive code.

> Overview

Expands the README Rust Cache section from a single issue link into guidance on why mise-action caching can break Rust CI (mise’s install marker is cached while rustup/cargo state under ~/.rustup and ~/.cargo is not, leading to missing components like rustfmt).

> Documents two workarounds: set MISE_RUSTUP_HOME and MISE_CARGO_HOME under the cached mise data directory (with Linux/macOS/Windows path notes and cache size warning), or install and cache Rust outside mise (e.g. rustup + Swatinem/rust-cache) and exclude rust from configs the job uses. The link to jdx/mise-action#215 is retained at the end.

> Docs only — no action or runtime behavior changes.

> <sup>Reviewed by Cursor Bugbot for commit 4ea68fe2d7f0ed1aeb3d7ea9e2c00db6725944af. Bugbot is set up for automated code reviews on this repo. Configure here.</sup>

<!-- /CURSOR_SUMMARY -->

Diff: 218 lines (+163 / -55) across 2 files Reviewer: jdx Review duration: 44m
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 218 lines diff across 2 files
0.42
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.322
Shallow Review Depth shallow_review_depth
0.289
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #651"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 41.7% (MEDIUM) · Higher = larger blast radius
41.7%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 16.5% · Safe to merge
16.5%