Abort pending optimizing compiles before collecting kept boxes in tracing-test #8621
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 195 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.316
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #8621"
general
weight: 0.35
littledivy
tracing-test.c++"wrappables are charged as external memory while they live" (added in #8496) fails now and then on edgeworker CI. It failed 5 times on 2026-11-18, in both the@and@all-autogatesvariants, on release, RBE and ASan builds. The final check fails with nothing released:expected remaining < int64_t(sizeof(NumberBox)) * 16 [1120000 < 1792].Cause:
keepBoxes()builds its 10,000 boxes in a hot loop, which V8 may optimize on a background thread. If that compile job is still pending when the test dropskeepand forces its two GCs, the job keeps every box alive.Evidence:
--concurrent-recompilation-delay=300, which keeps the job pending, the test failed 10 runs out of 10.kGCCallbackFlagForced), and neither released anything.CollectAllAvailableGarbage()aborts concurrent optimization first.keepglobal did not help: with the delay, it still failed 10 runs out of 10.Fix: call
v8::Isolate::ClearCachesForTesting()before the GCs. It aborts the pending Turbofan and Maglev jobs and waits for them. With the delay flag, the test then passed 10 runs out of 10.Testing: run from edgeworker with
--config=bazelflare:--runs_per_test=20ontracing-test@andtracing-test@all-autogates: all pass.--config=asan, both variants: pass.🤖 Generated with Claude Code