-
Notifications
You must be signed in to change notification settings - Fork 2k
Fix SimpleSearchIT.doTestSimpleTerminateAfterTrackTotalHitsUpTo
flaky test
#18235
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
Conversation
b11ebc8
to
72fb63e
Compare
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.
@harshavamsi Can you take a look here as well?
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 this makes sense to me. Can you run this test 1000 times locally to ensure that we have no flakiness?
❌ Gradle check result for 79c76a8: 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 b285671: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #18235 +/- ##
============================================
- Coverage 72.56% 72.46% -0.11%
+ Complexity 67261 67169 -92
============================================
Files 5476 5476
Lines 310478 310478
Branches 45133 45133
============================================
- Hits 225313 224996 -317
- Misses 66840 67127 +287
- Partials 18325 18355 +30 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Hey @andrross @harshavamsi based on analysis #16851 (comment) I have updated the PR to add Also I ran and did not see any failures.
Thanks |
@andrross and @harshavamsi if you folks can take another review, falling back to |
@prudhvigodithi What about Bowen's comment here? Can we improve the test to make it so it would consistently fail? |
If we are going with Ya based on the analysis part of #16851 (comment), we cannot have consistently get the same behavior even with test |
@Prudhvi Godithi commented on May 8, 2025, 11:37 AM PDT:
Basically if we separate that one random size test to 2 scenarios
Scenario 2 should never fail regarding the approximation framework I think still worth to refactor to express our understanding here. Seems just a few lines change. |
Just getting back to the PR, are you suggesting to update the tests by adding the following scenarios and remove the Because with
If we remove the
Do we need an if condition if we go with |
No, the idea is to refactor
|
Make sense thanks @bowenlan-amzn, just updated the test please check. |
Signed-off-by: Prudhvi Godithi <[email protected]>
Here is the backport to 3.0 PR #18220. |
Description
FixSimpleSearchIT.doTestSimpleTerminateAfterTrackTotalHitsUpTo
flaky test, coming from #16851 (comment) rather than updating the approximation code with+1
to get therelation": "gte"
, this PR is an attempt to fix the test with approximation behavior on long fields.Falling back to
+1
based on analysis part of #16851 (comment)Background
Coming from the PR #18018
+1
is added and which was removed in this PR #18189 to honor the approximation behavior.Related Issues
Coming from #16851 (comment)
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.