← Back to Pull requests

ci(windows-bazel): log release execution and cache restore result #3960

Closed
unknown closed this pull request without merging on Nov 06, 2026 15:45 UTC
View on GitHub
unknown unknown commented on Oct 30, 2026 01:47 UTC
Author

Summary

 bazel-cache (Cache@2, WindowsBazel and LinuxBazel)
+  cacheHitVar: BAZEL_CACHE_HIT        # true = exact key, inexact = restore-key, unset = miss
 release
-  bazel build :release ...
+  bazel build :release ... --execution_log_compact_file=<staging>/release-exec-log.zst
+PublishPipelineArtifact@1 (condition: always(), continueOnError: true)
+  windows-bazel-exec-log / linux-bazel-exec-log

Diagnostic only. It explains Windows release-step rebuilds (94-178 min with the disk cache restored) by recording which restore key matched and the per-action execution log of the release build. Build flags and cache keys are unchanged.

Evidence

  • Before: Windows release-step disk cache hits 0/3337, 1543/1794, 3337/0 across runs 65265, 65278, 65286 (disk hit/local, from the Bazel summary line); no record of the restore result or of action keys.

  • After (Azure build 65307, merge ref refs/pull/3960/merge at 8c77a60e0):

  • - WindowsBazel: Bazel cache restore result: "inexact" (restore-key fallback). Release step: 4234 processes: 3337 disk cache hit, 897 internal, Elapsed time: 178.379s, build succeeded.
    - LinuxBazel: Bazel cache restore result: inexact. Release step: 18 processes: 2800 action cache hit, 11 disk cache hit, 7 internal, 4.3 s (the release was already built in the folded consumer step of the same job).
    - Artifacts windows-bazel-exec-log and linux-bazel-exec-log published; both publish steps succeeded.
    - Not done: exec-log key comparison between two runs on one merge commit. Only one run exists so far, and re-running needs Azure auth.

    Merge Danger

    Door: two-way. Revert by deleting the added lines; nothing persists outside the pipeline run.

    Blast Radius: CI diagnostics only. The publish step cannot fail the job (continueOnError), and --execution_log_compact_file only adds a log writer. Extra artifact per run is a few tens of MB (estimate, not measured yet).

    🤖 Generated with Claude Code

    Diff: 253 lines (+189 / -64) across 3 files Reviewer: Alexandr-Solovev Review duration: 10917m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.39) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 253 lines diff across 3 files
    0.39
    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%
    56%
    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.331
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3960"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 39.1% (MEDIUM) · Higher = larger blast radius
    39.1%
    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: 56.8% · Lower = rushed or shallow review
    56.8%
    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.9% · Safe to merge
    16.9%