← Back to Pull requests

ci(windows): drop the dangling toolkit links before Cache@2 saves the oneAPI install #4077

Open
unknown opened this pull request with 235 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 30, 2026 15:37 UTC
Author

Description

Since #4031, every Azure Windows job (WindowsBazel, WindowsMakeVC, WindowsSklearnex) ends succeededWithIssues, so every main build is partiallySucceeded, and the WindowsBazel disk cache has not been saved since #4031 merged.

Cause. The oneAPI installer creates links under toolkit_linking_tool\.envs\2026.2\oneapi-toolkit\ for components we do not install (dnnl, ipp, ippcp, libfabric, mpi, vtune), so they dangle. When Cache@2 restores the cached toolkit, 7-Zip rejects them (Dangerous link path was ignored, 6 sub-item errors) and exits with 2. The step has continueOnError: true, so the job is marked succeeded with issues. In that state the Post-job: bazel-cache step does nothing: its log is empty, while in a run before #4031 (build 66590) it logs the full save. Every WindowsBazel run since restores the entry saved at 93dd64eb1 through the restore key, and after the later toolchain bumps its release step rebuilds in about 146-167 min.

Counts from the Azure timelines after #4031: the restore step failed in 43/44 WindowsMakeVC, 43/43 WindowsSklearnex and 37/37 WindowsBazel runs.

Change.

  • install_basekit.bat removes the dangling links under toolkit_linking_tool after a fresh install. Links whose target exists are kept. The builds already ran without these six links on every restore, so the toolkit we use does not need them.

  • The basekit cache key gets a "v2" component in all four jobs, so the broken entry is no longer restored and the next run saves a clean one.
  • Testing. Not run locally (Windows-only CI). The check is this PR's Azure Windows jobs: the first run misses the new key and installs the toolkit, and later runs should show Restore oneAPI Base Toolkit succeeding and Post-job: bazel-cache saving again.

    🤖 Generated with Claude Code

    Diff: 235 lines (+176 / -59) across 2 files Reviewer: napetrov Review duration: 210m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 235 lines diff across 2 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.327
    Real PR Conversation Timeline
    1 comments
    "Review active on #4077"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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: 37.1% (MEDIUM) · Higher = larger blast radius
    37.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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 19.8% · Safe to merge
    19.8%