perf(test): Reduce compaction tests 12min and Re-sharding test cases to reduce 6min #20307
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 #20307"
general
weight: 0.35
GWphua
1. Outcome
NativeCompactionTaskRunTest: 22m10s -> 9m51s, saving 12m19s (55.6%), with all 760 active cases preserved.Measured in master CI and the updated CI, using the test
Executestep without queue or setup time.2. Description
Class-level parameterization created the full configuration/test Cartesian product before applicability checks. Native discovered 2,016 cases and skipped 1,256 during execution; MSQ discovered 208 and skipped 60. This paid fixture/setup cost for cases that never ran.
The existing shard layout also assumed
Nwas one of the heaviest groups. Optimizing Native compaction removed most of that weight and left the original layout significantly imbalanced.3. Change
QTestreports from the main-shard balancing input.4. Why Resharding
With the compaction optimization but the original shard layout,
Nfell from 33m49s to 20m30s, while the slowest shard still took 34m22s. The resulting 13m52s spread meant the saved compaction time did not reduce the CI critical path.The final layout reduces the slowest shard to 27m25s and the spread to 5m40s. The intermediate result with the original layout is available in this workflow.