Stabilize two-child depset folds across interner clears #32585
All Vouch review confidence checks passed
Residual risk 0.05 = Change Risk (0.32) × (1 − Review Confidence (0.85)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.32 · 80 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.89 · 3 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.263
Real PR Conversation Timeline
4 items
@bazel-io fork 10.0.0
@bazel-io fork 9.4.0
Would it be better to handle this deduplication in addTransitiveImpl instead of just for the 2 child case, or is that too expensive?
justinhorvitz
dzbarsky
NestedSetBuildercan give an unchanged action a different key afterNestedSetInterner.clear(). Two backing arrays can contain the same immediate child references even when the arrays themselves differ. Compare child references for identity-interned arrays so the two-child fold is stable across commands.The regression restarts Bazel, preloads one depset with
cquery, and checks thataqueryreports the same action key and the next build hits the persistent action cache.The pair comparison stays in
buildInternal.addTransitiveImplcan record transitive sets without resolving their deserialization futures. Comparing child arrays there would resolve futures before the caller selects the build's interrupt strategy, and applying it to larger collections would add child-array scans beyond the pair this regression requires.