fix(bazel): skip INCLUDE dirs that do not exist when resolving the Windows toolchain includes #3998
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 237 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.327
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3998"
general
weight: 0.35
napetrov
Description
WindowsBazel fails on
mainsince #3992 (Basekit 2026.2.0.661), before compiling anything:The new Basekit's
setvars.batadds atcm\1.6\includedirectory toINCLUDEthat is not installed._add_builtin_include_dirresolves everyINCLUDEentry withrepo_ctx.path(p).realpath, which fails on a missing path. The same error is in the PR run of #3992 (Azure build 65578) and in themainrun for 2957a67fc (build 65644); the last green WindowsBazel onmainis 500d666a0, before #3992.The fix resolves an entry only if it exists. Listing a missing directory among the builtin include dirs is harmless, so the entry itself is still added as before.
The other
realpathcalls underdev/bazelresolve tools that were found on disk, so they cannot hit this.Checked locally: the toolchain files load (
bazel build --nobuildon Linux). The Windows result comes from this PR's WindowsBazel job.---
Checklist:
Completeness and readability
Testing
Performance
Not applicable: build configuration only.
🤖 Generated with Claude Code