Skip to content

Disable approximation when there is terminate after #18018

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

Merged

Conversation

harshavamsi
Copy link
Contributor

@harshavamsi harshavamsi commented Apr 21, 2025

Description

We're disabling approximation when there is terminate after. We need to explicitly handle this case in the custom collector. Will raise a PR to do that later.

Related Issues

Resolves #16851

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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: Harsha Vamsi Kalluri <[email protected]>
Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
Copy link
Contributor

❌ Gradle check result for f9af5f7: 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?

@andrross
Copy link
Member

@harshavamsi What's the status here? Is this attempting to fix #16851?

@github-actions github-actions bot added >test-failure Test failure from CI, local build, etc. autocut flaky-test Random test failure that succeeds on second run labels Apr 23, 2025
Copy link
Contributor

✅ Gradle check result for f9af5f7: SUCCESS

Copy link

codecov bot commented Apr 23, 2025

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 72.54%. Comparing base (96481cc) to head (f9af5f7).
Report is 26 commits behind head on main.

Files with missing lines Patch % Lines
...search/approximate/ApproximatePointRangeQuery.java 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #18018      +/-   ##
============================================
- Coverage     72.59%   72.54%   -0.06%     
+ Complexity    67172    67125      -47     
============================================
  Files          5478     5478              
  Lines        310125   310126       +1     
  Branches      45080    45081       +1     
============================================
- Hits         225135   224977     -158     
- Misses        66676    66836     +160     
+ Partials      18314    18313       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@andrross
Copy link
Member

@harshavamsi Are we missing something in the ApproximatePointRangeQueryTests unit test that could have caught this?

@harshavamsi
Copy link
Contributor Author

@harshavamsi Are we missing something in the ApproximatePointRangeQueryTests unit test that could have caught this?

I don't think we could have caught this issue there. We never added the check for terminate_after in the approximation itself. I will raise an issue to add support for this later.

@andrross andrross merged commit 8948c1f into opensearch-project:main Apr 24, 2025
86 of 94 checks passed
@andrross andrross changed the title Fix flaky simple test it Disable approximation when there is terminate after Apr 24, 2025
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 24, 2025
Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
(cherry picked from commit 8948c1f)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
andrross pushed a commit that referenced this pull request Apr 28, 2025
(cherry picked from commit 8948c1f)

Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
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>
prudhvigodithi pushed a commit to prudhvigodithi/OpenSearch that referenced this pull request May 6, 2025
…ct#18018) (opensearch-project#18075)

(cherry picked from commit 8948c1f)

Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
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>
Signed-off-by: Prudhvi Godithi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocut backport 3.0 flaky-test Random test failure that succeeds on second run skip-changelog >test-failure Test failure from CI, local build, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[AUTOCUT] Gradle Check Flaky Test Report for SimpleSearchIT
3 participants