From c7065833f73fbae191739e0f0ccbe0daef57e86d Mon Sep 17 00:00:00 2001 From: Mark Vieira Date: Fri, 11 Jul 2025 16:57:29 -0700 Subject: [PATCH] Disable async search rest tests in release builds (#131132) These tests rely on test-only modules which can only be installed in snapshot builds of ES. This disables these tests in our release builds. Closes https://github.com/elastic/elasticsearch/issues/130978 --- x-pack/plugin/async-search/build.gradle | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/x-pack/plugin/async-search/build.gradle b/x-pack/plugin/async-search/build.gradle index 6117f8bea15dc..edb0847575fde 100644 --- a/x-pack/plugin/async-search/build.gradle +++ b/x-pack/plugin/async-search/build.gradle @@ -1,3 +1,5 @@ +import org.elasticsearch.gradle.testclusters.StandaloneRestIntegTestTask + apply plugin: 'elasticsearch.internal-es-plugin' apply plugin: 'elasticsearch.internal-cluster-test' apply plugin: 'elasticsearch.internal-java-rest-test' @@ -34,3 +36,8 @@ restResources { include '_common', 'indices', 'index', 'async_search' } } + +tasks.withType(StandaloneRestIntegTestTask).configureEach { + def isSnapshot = buildParams.snapshotBuild + it.onlyIf("snapshot build") { isSnapshot } +}