Skip to content

[backport 3.7] fix(alerting): skip pluggable dataformat ITs on external clusters#2165

Open
yashgupte21 wants to merge 1 commit into
opensearch-project:3.7from
yashgupte21:backport-3.7
Open

[backport 3.7] fix(alerting): skip pluggable dataformat ITs on external clusters#2165
yashgupte21 wants to merge 1 commit into
opensearch-project:3.7from
yashgupte21:backport-3.7

Conversation

@yashgupte21
Copy link
Copy Markdown
Contributor

Description

Backport of #2164. 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 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 without the feature flag JVM system property.

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.

…ensearch-project#2164)

* feat(alerting): Block non-PPL monitor CRUD on pluggable dataformat domains

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>

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

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>

---------

Signed-off-by: YashPradeep Gupte <yashprg@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants