← Back to Pull requests

ci: let the nightly comparison run against older checkouts #3878

Closed
unknown closed this pull request without merging on Oct 19, 2026 04:15 UTC
View on GitHub
unknown unknown commented on Oct 13, 2026 16:57 UTC
Author

Summary

Nightly-test runs main's YAML against the tested checkout, so every file or flag the Linux step names breaks pull requests branched before it (#3800 did this with compare_release_linkage.py and --cross-toolchain). The invocation now lives in .ci/scripts/compare_linux_release.sh, versioned with the checkout, as Windows already does with compare_windows_release.ps1.

 .ci/scripts/
+├── compare_linux_release.sh     # self-check + compare_release_trees.py --cross-toolchain
 └── compare_windows_release.ps1

 Compare make and Bazel releases (Linux)
-  python compare_release_linkage.py
-  python compare_release_trees.py ... --cross-toolchain
+  if checkout has compare_linux_release.sh       # main, and every branch from here on
+    compare_linux_release.sh
+  else                                           # temporary; drop once old trees age out
+    ::warning:: rebase for the full comparison
+    if checkout has compare_release_linkage.py   # post-#3800: keeps self-check + flag
+      self-check; add --cross-toolchain
+    compare_release_trees.py ...                 # pre-#3800: plain comparison

Main always has the script, so it always runs the full check; the fallback never runs there. No --help probing.

Evidence

  • Before: pre-#3800 checkouts fail before comparing anything (#3795 run 38281973639, #3837 38282991323, #3847 38288196518):

  • python: can't open file '.../dev/release_tests/compare_release_linkage.py': [Errno 2] No such file or directory
    31 open PRs still predate #3800.
  • After: workflow_dispatch checks out the dispatched ref (source_run_id only picks the Make artifact), so each path got its own throwaway branch carrying this PR's YAML:
  • | tree | source_run_id | path taken | run |
    | --- | --- | --- | --- |
    | this PR (main eeb645077 + CI changes) | 38808612441 (main e3eaafd5) | script | 38851208941: self-check + DT_NEEDED section |
    | main e3eaafd5, no script (post-#3800) | 38808612441 | fallback + self-check + --cross-toolchain | 38851211078: warning + self-check + DT_NEEDED section |
    | main b2bbea1bdf, no script (pre-#3800) | 38175649023 (main b2bbea1bdf) | fallback, plain comparison | 38851213678: warning, no self-check, no DT_NEEDED section |

    Merge Danger

    Door: two-way

    CI-only; revert restores the inline step.

    Blast Radius: nightly-Linux

    Only the Linux Compare make and Bazel releases step of Nightly-test. Branches without the script get a ::warning:: and run the comparison their tree supports until rebased.

    🤖 Generated with Claude Code

    Diff: 354 lines (+265 / -89) across 4 files Reviewer: ethanglaser Review duration: 7877m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 354 lines diff across 4 files
    0.43
    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.351
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3878"
    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: 42.5% (MEDIUM) · Higher = larger blast radius
    42.5%
    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.8% · Safe to merge
    16.8%