[ML] Split ES integration tests into parallel steps#2990
Merged
edsavage merged 2 commits intoelastic:mainfrom Mar 17, 2026
Merged
[ML] Split ES integration tests into parallel steps#2990edsavage merged 2 commits intoelastic:mainfrom
edsavage merged 2 commits intoelastic:mainfrom
Conversation
Split each per-architecture Elasticsearch integration test step into two independent steps that run in parallel: - Multi-Node Tests (javaRestTest) — ~27 min on x86_64, ~37 min on aarch64 - YAML REST Tests (yamlRestTest) — ~12 min on x86_64, ~15 min on aarch64 Previously these ran sequentially in a single step, making the total wall-clock time ~40 min (x86_64) / ~53 min (aarch64). Running them in parallel reduces the critical path to the duration of the slower suite, saving ~11-14 minutes per PR build. The split also improves failure attribution (immediately visible which suite failed) and enables selective retry of just the failed suite. A new ES_TEST_SUITE environment variable controls which Gradle command to run. When unset, both suites run sequentially for backward compatibility with local developer use. Made-with: Cursor
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Resolve conflict in dev-tools/run_es_tests.sh: combine the ES_TEST_SUITE case statement from this branch with the Gradle build cache support (init script, GCS restore/upload) from upstream/main. Made-with: Cursor
edsavage
added a commit
to edsavage/ml-cpp
that referenced
this pull request
Mar 17, 2026
Resolve conflict in dev-tools/run_es_tests.sh: incorporate ES_TEST_SUITE support from elastic#2990 (parallel javaRestTest/yamlRestTest steps) into our thin-wrapper architecture that delegates to run_es_tests_common.sh. Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
javaRestTest) and YAML REST Tests (yamlRestTest).ES_TEST_SUITEenvironment variable indev-tools/run_es_tests.shcontrols which suite to run. When unset, both run sequentially (backward compatible for local use).Timing breakdown (from build 2309)
Additional benefits
Test plan
./gradlewinvocation)dev-tools/run_es_tests.shlocally withoutES_TEST_SUITEstill runs both suitesMade with Cursor