Keep the cargo-bazel binaries out of the release source archive #4477
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 206 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.319
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #4477"
general
weight: 0.35
UebelAndre
Fixes #4476. Related to #4475.
release_ruleset.yamldownloads eachcargo-bazelbuild to${GITHUB_WORKSPACE}/<triple>/.release_prep.shthen archived.with those directories still in it. Since 0.71 every source archive has carried all ten binaries, which are already published as separate assets: 66.6 MB where the source is 4.2 MB.rules_rust_prost,rules_rust_wasm_bindgenand the other modules on the BCR share that archive. Any graph with rules_rust in it downloads the archive (#4475), so the extra 62 MB lands on builds that never compile Rust..github/workflows/release_archive.shwrites the archive. It takes the triples and excludes./<triple>. Its other excludes and theexamples/hello_worldhandling are unchanged.release_prep.shcalls it withTRIPLES..github/workflows/release_archive_test.shbuilds an archive from a fake workspace and checks it. It must contain the sources andexamples/hello_world. It must not contain the downloaded binaries,.git,.github,crate_universe/targetor other examples. A source directory named like a triple (rust/platform/<triple>/) must stay in. Thevalidationjob ofrelease.yamlruns it.Verified:
release_archive_test.shpasses. With the triple excludes removed, it fails onx86_64-unknown-linux-gnu/cargo-bazelandx86_64-pc-windows-msvc/cargo-bazel.exe.release_archive.shand the ten triples. The result is 4,199,656 bytes, down from 66,574,288.diffof the member lists shows only the ten<triple>/cargo-bazel[.exe]entries and their directories gone.Assisted by Claude.