← Back to Pull requests

Keep the cargo-bazel binaries out of the release source archive #4477

Closed
unknown closed this pull request without merging on Nov 28, 2026 14:18 UTC
View on GitHub
unknown unknown commented on Nov 28, 2026 10:42 UTC
Author

Fixes #4476. Related to #4475.

release_ruleset.yaml downloads each cargo-bazel build to ${GITHUB_WORKSPACE}/<triple>/. release_prep.sh then 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_bindgen and 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.sh writes the archive. It takes the triples and excludes ./<triple>. Its other excludes and the examples/hello_world handling are unchanged.

  • release_prep.sh calls it with TRIPLES.

  • .github/workflows/release_archive_test.sh builds an archive from a fake workspace and checks it. It must contain the sources and examples/hello_world. It must not contain the downloaded binaries, .git, .github, crate_universe/target or other examples. A source directory named like a triple (rust/platform/<triple>/) must stay in. The validation job of release.yaml runs it.
  • Verified:

  • release_archive_test.sh passes. With the triple excludes removed, it fails on x86_64-unknown-linux-gnu/cargo-bazel and x86_64-pc-windows-msvc/cargo-bazel.exe.

  • I re-archived the extracted 0.75.0 release tree with release_archive.sh and the ten triples. The result is 4,199,656 bytes, down from 66,574,288. diff of the member lists shows only the ten <triple>/cargo-bazel[.exe] entries and their directories gone.
  • Assisted by Claude.

    Diff: 206 lines (+154 / -52) across 2 files Reviewer: UebelAndre Review duration: 216m
    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
    0.36
    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.319
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #4477"
    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: 36.4% (MEDIUM) · Higher = larger blast radius
    36.4%
    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: 14.4% · Safe to merge
    14.4%