-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 Test #13678
Fix Flaky Test #13678
Conversation
❌ Gradle check result for cd2d840: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
@kiranprakash154 Care to explain what the change is? Looks like a bunch of code that was removed from the test, so I assume it tests less ;) |
Will update the description soon, that's why I kept this in draft. |
The test is supposed to only test throwing of an exception on illegal argument, I was also testing if the cache would behave as expected which I think is unnecessary and that cache interval setup is what causing flakiness. |
❌ Gradle check result for 07c31a5: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Failed because of #5329 - |
❌ Gradle check result for 07c31a5: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Failing due to - |
I assume you double checked that those scenarios are covered in another test? |
❌ Gradle check result for 07c31a5: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Rebase this? |
Signed-off-by: Kiran Prakash <awskiran@amazon.com>
5b05f4f
to
a5c83ae
Compare
Yep, like these 3 tests for example |
❌ Gradle check result for a5c83ae: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13678 +/- ##
============================================
+ Coverage 71.42% 71.66% +0.24%
- Complexity 59978 61286 +1308
============================================
Files 4985 5060 +75
Lines 282275 287854 +5579
Branches 40946 41689 +743
============================================
+ Hits 201603 206286 +4683
- Misses 63999 64534 +535
- Partials 16673 17034 +361 ☔ View full report in Codecov by Sentry. |
This is due to IndicesRequestCacheIT suite timing out. I have created an issue to track this - #13734 |
❌ Gradle check result for a5c83ae: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for a5c83ae: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Known flaky |
Signed-off-by: Kiran Prakash <awskiran@amazon.com> (cherry picked from commit 538cd9f) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 538cd9f) Signed-off-by: Kiran Prakash <awskiran@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Fix Flaky Test -
org.opensearch.indices.IndicesRequestCacheIT.testInvalidStalenessThresholdUpdateThrowsException
The test is intended to test an exception being thrown on invalid parameter being passed. We don't have to test the working of the cache in this test since it has been covered very extensive in other tests.
The flakiness is due to relying on cache cleanup intervals which are being removed from this test without changing the main objective of the test.
Related Issues
Resolves #13638
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.