Skip to content

[Bacport 3.7] Exclude AnalyticsEngineCompatIT from the main integTest task#5502

Merged
ahkcs merged 1 commit into
opensearch-project:3.7from
ahkcs:fix/exclude-analytics-compat-it-from-integtest-3.7
Jun 2, 2026
Merged

[Bacport 3.7] Exclude AnalyticsEngineCompatIT from the main integTest task#5502
ahkcs merged 1 commit into
opensearch-project:3.7from
ahkcs:fix/exclude-analytics-compat-it-from-integtest-3.7

Conversation

@ahkcs

@ahkcs ahkcs commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

Description

Manual port to 3.7 of the same fix proposed for main in #5501.

AnalyticsEngineCompatIT (package org.opensearch.sql.plugin) is a smoke test that only makes sense against a cluster bundling the analytics-engine plugin stack. It is provisioned and run by its dedicated :analyticsEngineCompatIT task, whose cluster (testClusters.analyticsEngineCompat) adds arrow-base, arrow-flight-rpc, and analytics-engine alongside opensearch-sql.

The main integTest task selects tests by exclusion. It already excludes org/opensearch/sql/security/** ("executed in another task"), but it never excluded this smoke test — so it also ran inside the main integTest suite against the plain integTest/remoteCluster clusters, neither of which has the analytics-engine plugin. (integTestWithSecurity is unaffected because it uses an include filter scoped to org.opensearch.sql.security.*.)

There, the test is pointless and exposed to suite-wide infra flakiness. In a recent CI run it was the descriptor recorded as the single failure after the test JVM wedged for ~4.5h (the empty test body cannot itself hang — it was just the last test in the order when the wedged JVM's REST connection dropped with ConnectionClosedException).

Fix

Exclude the specific org/opensearch/sql/plugin/AnalyticsEngineCompatIT.class in the main integTest task, matching the per-class exclude style already used there (e.g. legacy/ExplainIT.class). The compat test continues to run via its dedicated :analyticsEngineCompatIT task, which correctly provisions its dependency.

This is purely a test-isolation/wiring fix in integ-test/build.gradle; no production or test source changes.

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • Commits are signed per the DCO using --signoff.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

…Test task

AnalyticsEngineCompatIT (package org.opensearch.sql.plugin) is a smoke test
that only makes sense against a cluster bundling the analytics-engine plugin
stack. It is provisioned and run by the dedicated :analyticsEngineCompatIT
task (testClusters.analyticsEngineCompat), which adds arrow-base,
arrow-flight-rpc and analytics-engine.

The main integTest task selects tests by exclusion and excluded
org/opensearch/sql/security/** ("executed in another task") but never
excluded this smoke test, so it also ran against the plain
integTest/remoteCluster (neither of which has analytics-engine). There it is
useless and exposed to suite-wide infra flakiness; in a recent CI run it was
the descriptor recorded as failed after the test JVM wedged for ~4.5h.

Exclude the specific AnalyticsEngineCompatIT class, matching the per-class
exclude style already used in this task (e.g. legacy/ExplainIT.class).

Signed-off-by: Kai Huang <ahkcs@amazon.com>
@ahkcs ahkcs added the bugFix label Jun 2, 2026
@ahkcs ahkcs changed the title [3.7] Exclude AnalyticsEngineCompatIT from the main integTest task [Bacport 3.7] Exclude AnalyticsEngineCompatIT from the main integTest task Jun 2, 2026
@ahkcs ahkcs merged commit 71a96e3 into opensearch-project:3.7 Jun 2, 2026
41 of 43 checks passed
@ahkcs ahkcs deleted the fix/exclude-analytics-compat-it-from-integtest-3.7 branch June 2, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants