diff --git a/integ-test/build.gradle b/integ-test/build.gradle index 4a071bfefe6..b010035fd21 100644 --- a/integ-test/build.gradle +++ b/integ-test/build.gradle @@ -1354,6 +1354,20 @@ task integTestRemote(type: RestIntegTestTask) { // - STREAMSTATS_SORT_NOT_HONORED: streamstats computes its window over the backend scan // order, ignoring a preceding `| sort` (the OVER clause has no explicit ORDER BY). excludeTestsMatching '*CalciteStreamstatsCommandIT.testStreamstatsAndSort' + } else { + // Suites that require the analytics-engine plugin stack. They create composite + // (parquet-backed) indices and depend on the node-level settings + // opensearch.experimental.feature.pluggable.dataformat.enabled and + // opensearch.experimental.feature.transport.stream.enabled. Each already has a + // dedicated task whose testClusters block provisions that stack -- + // :analyticsEngineCompatIT, :analyticsEngineSecurityIT and :analyticsEngineProfileIT -- + // whereas integTestRemote runs against an externally provided cluster and can neither + // install plugins nor set node settings, so they fail during setup instead of being + // skipped. Gated here rather than listed with the exclusions below so that all + // analytics-engine filtering for this task stays in one place. + excludeTestsMatching 'org.opensearch.sql.plugin.AnalyticsEngineCompatIT' + excludeTestsMatching 'org.opensearch.sql.security.AnalyticsEngineSecurityIT' + excludeTestsMatching 'org.opensearch.sql.analytics.AnalyticsEngineProfileIT' } } @@ -1366,4 +1380,14 @@ task integTestRemote(type: RestIntegTestTask) { exclude 'org/opensearch/sql/legacy/QueryAnalysisIT.class' exclude 'org/opensearch/sql/legacy/OrderIT.class' exclude 'org/opensearch/sql/jdbc/**' + + // Suites that query a Prometheus datasource and so need a running Prometheus instance. + // integTest applies the same condition (it starts Prometheus itself unless -DignorePrometheus + // is passed, and never on Windows); this task honours the flag so a caller pointing it at an + // environment without Prometheus gets the suites skipped rather than failing during setup. + if(getOSFamilyType() == "windows" || ignorePrometheus) { + exclude 'org/opensearch/sql/ppl/PrometheusDataSourceCommandsIT.class' + exclude 'org/opensearch/sql/ppl/ShowDataSourcesCommandIT.class' + exclude 'org/opensearch/sql/ppl/InformationSchemaCommandIT.class' + } }