Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored flaky test. #1464

Merged
merged 3 commits into from
Feb 3, 2025

Conversation

AWSHurneyt
Copy link
Collaborator

@AWSHurneyt AWSHurneyt commented Feb 1, 2025

Description

Manual backport of PR #1467

  1. Based on PR sync latest SIGMA rules and stop creation of system indices at node creation #1457, added wait times to some tests to reduce flakiness.
    https://ci.opensearch.org/ci/dbc/integ-test/2.19.0/10772/linux/x64/tar/test-results/9318/integ-test/security-analytics/with-security/opensearch-integ-test/classes/org.opensearch.securityanalytics.alerts.AlertsIT.html#testMultipleAggregationAndDocRules_alertSuccess
  2. Removed some unused imports.

Related Issues

#1451

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.

Signed-off-by: AWSHurneyt <[email protected]>

// TODO: The test is cleaning up the detectors delegate monitors prematurely, causing this test to be flaky.
// Adjusting test case to >= 1 to reduce flakiness pending further investigation.
Integer newTotalAlerts = (Integer) getAlertsBody.getOrDefault("total_alerts", null);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if it is cleaning monitor prematurely or if the update detector is deleting a monitor

Copy link
Member

@eirsep eirsep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plz use description section of PR to describe change being made

Signed-off-by: AWSHurneyt <[email protected]>
@AWSHurneyt AWSHurneyt merged commit 783167a into opensearch-project:2.x Feb 3, 2025
9 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 3, 2025
* Refactored flaky test.

Signed-off-by: AWSHurneyt <[email protected]>

* Refactored test for flakiness.

Signed-off-by: AWSHurneyt <[email protected]>

* Updated tests.

Signed-off-by: AWSHurneyt <[email protected]>

---------

Signed-off-by: AWSHurneyt <[email protected]>
(cherry picked from commit 783167a)
AWSHurneyt added a commit to AWSHurneyt/security-analytics that referenced this pull request Feb 3, 2025
* Refactored flaky test.

Signed-off-by: AWSHurneyt <[email protected]>

* Refactored test for flakiness.

Signed-off-by: AWSHurneyt <[email protected]>

* Updated tests.

Signed-off-by: AWSHurneyt <[email protected]>

---------

Signed-off-by: AWSHurneyt <[email protected]>
(cherry picked from commit 783167a)
AWSHurneyt added a commit that referenced this pull request Feb 3, 2025
* Refactored flaky test.

Signed-off-by: AWSHurneyt <[email protected]>

* Refactored test for flakiness.

Signed-off-by: AWSHurneyt <[email protected]>

* Updated tests.

Signed-off-by: AWSHurneyt <[email protected]>

---------

Signed-off-by: AWSHurneyt <[email protected]>
(cherry picked from commit 783167a)

Co-authored-by: AWSHurneyt <[email protected]>
AWSHurneyt added a commit that referenced this pull request Feb 6, 2025
* Refactored flaky test. (#1464)

* Refactored flaky test.

Signed-off-by: AWSHurneyt <[email protected]>

* Refactored test for flakiness.

Signed-off-by: AWSHurneyt <[email protected]>

* Updated tests.

Signed-off-by: AWSHurneyt <[email protected]>

---------

Signed-off-by: AWSHurneyt <[email protected]>
(cherry picked from commit 783167a)

* fix version dependency issues

Signed-off-by: Subhobrata Dey <[email protected]>

---------

Signed-off-by: Subhobrata Dey <[email protected]>
Co-authored-by: Subhobrata Dey <[email protected]>
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