← Back to Pull requests

add fallback for preview components download failures #444

Closed
unknown closed this pull request without merging on Nov 26, 2026 08:25 UTC
View on GitHub
unknown unknown commented on Nov 23, 2026 13:15 UTC
Author

This is a fix for the use-case of trying to bisect a rustc change that only appeared when using cg_clif.

We document, AFAICT, e.g. in https://bjorn3.github.io/2023/10/31/progress-report-oct-2023.html the component name being rustc-codegen-cranelift-preview but the manifest has it aliased or something, so it's only available as a tarball named rustc-codegen-cranelift. That makes installing the toolchain with -c rustc-codegen-cranelift-preview fail in an obscure manner that doesn't mention the root cause:

downloading component: "rustc-codegen-cranelift-preview-nightly-aarch64-apple-darwin"
uninstalling nightly-2026-10-03
*** unable to install nightly-2026-10-03. roll back one day and try again...

So this PR adds a fallback (so that we don't have to add a precise error and the user doesn't have to look up the canonical component URL): if downloading a preview component fails because the tarball isn't present, we try to see if a non-preview component of the same name exists before marking a failure to download the entire toolchain. This is the most common use-case AFAICT for llvm-tools-preview or rustc-codegen-cranelift-preview and should be enough, without having to fully support the rustup components defined in a toolchain's manifest like this channel-rust-nightly.toml.

Diff: 172 lines (+129 / -43) across 2 files Reviewer: oli-obk Review duration: 4029m
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 172 lines diff across 2 files
0.35
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.308
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #444"
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: 35.3% (MEDIUM) · Higher = larger blast radius
35.3%
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: 13.9% · Safe to merge
13.9%