Skip to content

fix(alerting): skip pluggable dataformat ITs on external clusters#2164

Merged
AWSHurneyt merged 3 commits into
opensearch-project:mainfrom
yashgupte21:block-dsl-monitors
May 30, 2026
Merged

fix(alerting): skip pluggable dataformat ITs on external clusters#2164
AWSHurneyt merged 3 commits into
opensearch-project:mainfrom
yashgupte21:block-dsl-monitors

Conversation

@yashgupte21
Copy link
Copy Markdown
Contributor

Description

Add assumeTrue guard to PluggableDataFormatMonitorBlockIT so tests skip gracefully when the opensearch.experimental.feature.pluggable.dataformat.enabled feature flag is not enabled on the cluster. Also gate the integTest.finalizedBy with usingRemoteCluster so integTestPluggableDataformat does not trigger when running against a remote/external cluster.

Related Issues

Resolves #[Issue number to be closed when this PR is merged]
Fixes integration test failures during release CI, where PluggableDataFormatMonitorBlockIT was triggered against an external cluster that did not have the opensearch.experimental.feature.pluggable.dataformat.enabled JVM system property set. Since this is a node startup property (not a runtime cluster setting), it cannot be toggled at test time, so tests must be skipped in environments without the flag.

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…mains

Reject creation, update, and execution of non-PPL monitors when the
pluggable dataformat feature flag is enabled. Only PPL monitors are
allowed on these domains. Delete and read operations are not blocked.

Uses FeatureFlags.isEnabled(PLUGGABLE_DATAFORMAT_EXPERIMENTAL_FLAG)
from OpenSearch core to gate the behavior.

Also fixes missing settings registration in TransportIndexMonitorAction
unit tests (MULTI_TENANT_TRIGGER_EVAL_ENABLED, PPL_MAX_QUERY_LENGTH,
PPL_QUERY_RESULTS_MAX_DATAROWS, NOTIFICATION_SUBJECT_SOURCE_MAX_LENGTH,
NOTIFICATION_MESSAGE_SOURCE_MAX_LENGTH) which were not reflected in the test setup.

Signed-off-by: YashPradeep Gupte <yashprg@amazon.com>
Add assumeTrue guard to PluggableDataFormatMonitorBlockIT so tests skip
gracefully when the feature flag is not enabled. Also gate the
integTest.finalizedBy so integTestPluggableDataformat does not trigger
when running against a remote cluster.

Signed-off-by: YashPradeep Gupte <yashprg@amazon.com>
@AWSHurneyt AWSHurneyt merged commit f897cb5 into opensearch-project:main May 30, 2026
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants