Replace Crave with parallel test workflows #5354
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.48) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 391 lines diff across 4 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.357
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #5354"
general
weight: 0.35
janhoy
Crave is going away, and the single
tests-via-crave.ymljob ran the whole test suite serially for 75% of PRs. This replaces it with per-moduletests-*workflows that run in parallel, each triggered only by its module's paths (plus its own file andgradle/libs.versions.toml), so a PR waits for the slowest job instead of the sum. Estimates are from per-class timings on Jenkins calibrated against real ubuntu-latest runs; trigger rates are from the 386 PRs merged in the last 13 weeks. Full analysis with charts: https://claude.ai/artifact/V8efRjyq6fejDdT8W2rgHw<!-- drop /tmp/gh-parallel-tests-overview.png here -->
| Workflow | Tests | Est. time | PRs triggering |
|---|---|---|---|
| tests-core |
solr/coresplit by Java package into four parallel matrix jobs: cloud, search, handler and other (exclusion-based, so a new package can never fall outside every slice), balanced from the measured timings of this PR's first run. Also triggered bysolr/test-frameworkandsolr/api. | ~11.5 min | 59% || tests-solrj (was
solrj-test.yml) | solrj, solrj-jetty, solrj-zookeeper, solrj-streaming, api | ~9.5 min | 30% || tests-modules-search | ltr, sql, language-models, langid, analysis-extras, clustering, scripting, cuvs | ~6.5 min | 13% |
| tests-modules-cloud | s3-repository, gcs-repository, jwt-auth, opentelemetry, cross-dc, cross-dc-manager | ~6 min | 16% |
| tests-extraction (was
gradle-extraction-check.yml) | extraction, needs Docker for TikaServer | ~4.5 min | 5% || tests-misc | test-framework, benchmark, ref-guide example tests | ~4.5 min | 17% |
Adds a
tests.excludeoption (comma-separated--testspatterns to exclude) ingradle/testing/defaults-tests.gradle, used by the "other" core slice and by the cloud slice.After the first run. Measured test-step times were cloud 16.6 min, handler 15.2, other 12.0, search 11.6, and the other five workflows all within two minutes of their estimates. Three follow-up commits act on that:
includethat gave it a third JVM did not match the base combination and so added a fifth job. Thejvmsaxis is gone and every slice runs with two JVMs, since the 3-JVM job was measured slower (18.0 min) than the 2-JVM one, not faster.CoreContainerShutdownTestandTestCpuAllowedLimitare@Nightly: each holds a test JVM for about two minutes by design.cloud.apiandcloud.overseerrun in the search slice (the cloud slice excludes them), andrequestmoves from handler to search. Thecloudroot package alone is about 1180 s of suite time and sets the floor at roughly 11.5 min with two JVMs; the four slices should now land within about 3.5 min of each other. The same mechanism is the fallback if a slice drifts again.In theory, this is how it will play out:
<img width="2057" height="934" alt="gh-parallel-tests-overview" src="https://github.com/user-attachments/assets/e06c0272-92e7-4756-8b32-83670bf317ab" />
This is an alternative to #5350 which is one serial test run