-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fix flaky tests 'testDeleteAllAndListAllPits' and 'testDeleteWhileSearch' #10946
Fix flaky tests 'testDeleteAllAndListAllPits' and 'testDeleteWhileSearch' #10946
Conversation
6d0f429
to
9211542
Compare
Compatibility status:Checks if related components are compatible with change 611e482 Incompatible componentsIncompatible components: [https://github.com/opensearch-project/performance-analyzer.git] Skipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/neural-search.git] |
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## main #10946 +/- ##
============================================
+ Coverage 71.21% 71.26% +0.04%
- Complexity 58689 58714 +25
============================================
Files 4870 4870
Lines 276539 276539
Branches 40190 40190
============================================
+ Hits 196945 197078 +133
+ Misses 63192 62987 -205
- Partials 16402 16474 +72 |
Gradle Check (Jenkins) Run Completed with:
|
9211542
to
2b5c5d6
Compare
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Bharathwaj G <bharath78910@gmail.com>
2b5c5d6
to
3731fe9
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
@bharath-techie It looks like there were many failing checks - can you please inspect and create/update issues before this is merged? |
Can someone help merging this PR ? |
@kotwanikunal @peternied can you help review / merge the code if the fix looks good ? |
@bharath-techie Thank you very much! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing this flaky test @bharath-techie
…opensearch-project#10946) Signed-off-by: Bharathwaj G <bharath78910@gmail.com> Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Description
testDeleteAllAndListAllPits :
List all PITs and delete all PITs both were triggered asynchronously and test was flaky in times where delete all finishes before get all. So fixed the test to order these two calls ( get will always finish first and then delete will be triggered )
testDeleteWhileSearch:
Added check for an error message which is also one of the valid scenarios
Tested using :
Related Issues
Check List
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.