← Back to Pull requests

Replace Crave with parallel test workflows #5354

Closed
unknown closed this pull request without merging on Nov 18, 2026 14:17 UTC
View on GitHub
unknown unknown commented on Nov 16, 2026 23:49 UTC
Author

Crave is going away, and the single tests-via-crave.yml job ran the whole test suite serially for 75% of PRs. This replaces it with per-module tests-* workflows that run in parallel, each triggered only by its module's paths (plus its own file and gradle/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/core split 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 by solr/test-framework and solr/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.exclude option (comma-separated --tests patterns to exclude) in gradle/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:

  • The cloud slice ran twice: the matrix include that gave it a third JVM did not match the base combination and so added a fifth job. The jvms axis 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.

  • CoreContainerShutdownTest and TestCpuAllowedLimit are @Nightly: each holds a test JVM for about two minutes by design.

  • The slices are rebalanced on package boundaries from the measured per-package times: cloud.api and cloud.overseer run in the search slice (the cloud slice excludes them), and request moves from handler to search. The cloud root 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

    Diff: 391 lines (+293 / -98) across 4 files Reviewer: janhoy Review duration: 2307m
    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
    0.48
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 48.1% (MEDIUM) · Higher = larger blast radius
    48.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.8% · Safe to merge
    20.8%
    Repository