Skip to content

Conversation

@msfroh
Copy link
Contributor

@msfroh msfroh commented Oct 21, 2025

Description

The test seems to rely on a set of stats returned from some random node, which may differ from the node that processes the prune request.

Ideally, by using the same client for each call, we'll have a more consistent view of the file cache usage.

I ran the test with 500 iterations after this fix and it passed every time.

Related Issues

N/A

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.

The test seems to rely on a set of stats returned from some random node,
which may differ from the node that processes the prune request.

Ideally, by using the same client for each call, we'll have a more
consistent view of the filed cache usage.

Signed-off-by: Michael Froh <[email protected]>
@msfroh msfroh requested a review from a team as a code owner October 21, 2025 23:53
@msfroh msfroh added skip-changelog flaky-test Random test failure that succeeds on second run labels Oct 21, 2025
@github-actions
Copy link
Contributor

✅ Gradle check result for e3dba54: SUCCESS

@codecov
Copy link

codecov bot commented Oct 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.09%. Comparing base (3443d27) to head (e3dba54).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #19710      +/-   ##
============================================
+ Coverage     73.08%   73.09%   +0.01%     
+ Complexity    70809    70795      -14     
============================================
  Files          5732     5732              
  Lines        324141   324141              
  Branches      46922    46922              
============================================
+ Hits         236886   236925      +39     
+ Misses        68182    68072     -110     
- Partials      19073    19144      +71     

☔ 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.

Copy link
Member

@mch2 mch2 left a comment

Choose a reason for hiding this comment

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

Thanks for the fix !

@andrross andrross merged commit 420f2e0 into opensearch-project:main Oct 22, 2025
49 of 54 checks passed
@msfroh msfroh deleted the make_prune_file_cache_it_more_resilient branch October 22, 2025 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flaky-test Random test failure that succeeds on second run skip-changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants