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 alerting test, and added wait logic to reduce flakiness. #953

Merged

Conversation

AWSHurneyt
Copy link
Contributor

Description

Refactored alerting test, and added wait logic to reduce flakiness.

The edited test passes locally.
Screenshot 2023-11-15 at 11 26 21 AM

Issues Resolved

[List any issues this PR will resolve]

Check List

  • 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.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
@@ -38,7 +38,7 @@ const clusterHealthMonitor = {
severity: '1',
condition: {
script: {
source: 'ctx.results[0].status != "green"',
source: 'ctx.results[0].status != "blue"',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For context, this was changed to blue because the test was failing when run against multinode clusters. The indexes used by the tests were only reliably in a yellow state on single node clusters because they were configured to have replicas. Rather than reconfigure the test indexes, it was less invasive for other tests to adjust the condition used by this test.

Copy link
Collaborator

@Hailong-am Hailong-am Nov 15, 2023

Choose a reason for hiding this comment

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

Could we add comments of this change with the context,so we can understand in future when look back at this code piece

// Ensure the 'Monitor name' column is sorted in ascending order by sorting another column first
cy.contains('Last updated by').click({ force: true });
cy.contains('Last notification time').click({ force: true });
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For context, the Last updated by column was removed from this UI in PR opensearch-project/alerting-dashboards-plugin#767

@AWSHurneyt
Copy link
Contributor Author

AWSHurneyt commented Nov 15, 2023

Would someone be able to add the backport 2.x, backport 2.10, and backport 2.11 labels to this PR?

@AWSHurneyt
Copy link
Contributor Author

@Hailong-am @SuZhou-Joe
Could you merge this PR? Looks like I don't have permissions to.

@Hailong-am Hailong-am merged commit 5db8065 into opensearch-project:main Nov 21, 2023
38 of 40 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 21, 2023
…953)

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
(cherry picked from commit 5db8065)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 21, 2023
…953)

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
(cherry picked from commit 5db8065)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 21, 2023
…953)

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
(cherry picked from commit 5db8065)
prudhvigodithi pushed a commit that referenced this pull request Nov 24, 2023
…953) (#957)

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
(cherry picked from commit 5db8065)

Co-authored-by: AWSHurneyt <hurneyt@amazon.com>
kavilla pushed a commit that referenced this pull request Nov 27, 2023
…953) (#955)

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
(cherry picked from commit 5db8065)

Co-authored-by: AWSHurneyt <hurneyt@amazon.com>
kavilla pushed a commit that referenced this pull request Nov 27, 2023
…953) (#956)

Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
(cherry picked from commit 5db8065)

Co-authored-by: AWSHurneyt <hurneyt@amazon.com>
abbyhu2000 pushed a commit to abbyhu2000/opensearch-dashboards-functional-test that referenced this pull request Nov 29, 2023
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