Skip to content

Conversation

@andrross
Copy link
Member

One test method had a race condition when getting an index after closing. This change extracts the common pattern of polling until the index is available and uses it everywhere.

Fixes #14407

Check List

  • Functionality includes testing.

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.

@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 Indexing Indexing, Bulk Indexing and anything related to indexing labels Sep 12, 2025
@github-actions
Copy link
Contributor

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

One test method had a race condition when getting an index after
closing. This change extracts the common pattern of polling until the
index is available and uses it everywhere.

Signed-off-by: Andrew Ross <andrross@amazon.com>
@andrross andrross force-pushed the fix-indexservicetests-race branch from 3443467 to 076e30b Compare September 15, 2025 22:45
@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

❕ Gradle check result for 076e30b: 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
Copy link

codecov bot commented Sep 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.77%. Comparing base (a3ac746) to head (076e30b).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #19281      +/-   ##
============================================
- Coverage     72.89%   72.77%   -0.12%     
+ Complexity    69763    69681      -82     
============================================
  Files          5667     5667              
  Lines        320547   320547              
  Branches      46348    46348              
============================================
- Hits         233648   233279     -369     
- Misses        68005    68353     +348     
- Partials      18894    18915      +21     

☔ 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 andrross merged commit 01b34a8 into opensearch-project:main Sep 16, 2025
32 of 34 checks passed
@andrross andrross deleted the fix-indexservicetests-race branch September 16, 2025 18:48
jainankitk pushed a commit to jainankitk/OpenSearch that referenced this pull request Sep 22, 2025
One test method had a race condition when getting an index after
closing. This change extracts the common pattern of polling until the
index is available and uses it everywhere.

Signed-off-by: Andrew Ross <andrross@amazon.com>
jainankitk pushed a commit to jainankitk/OpenSearch that referenced this pull request Sep 22, 2025
One test method had a race condition when getting an index after
closing. This change extracts the common pattern of polling until the
index is available and uses it everywhere.

Signed-off-by: Andrew Ross <andrross@amazon.com>
Signed-off-by: Ankit Jain <jainankitk@apache.org>
jainankitk pushed a commit to jainankitk/OpenSearch that referenced this pull request Sep 22, 2025
One test method had a race condition when getting an index after
closing. This change extracts the common pattern of polling until the
index is available and uses it everywhere.

Signed-off-by: Andrew Ross <andrross@amazon.com>
Signed-off-by: Ankit Jain <jainankitk@apache.org>
asimmahmood1 pushed a commit to jainankitk/OpenSearch that referenced this pull request Sep 23, 2025
One test method had a race condition when getting an index after
closing. This change extracts the common pattern of polling until the
index is available and uses it everywhere.

Signed-off-by: Andrew Ross <andrross@amazon.com>
pranikum pushed a commit to pranikum/OpenSearch that referenced this pull request Sep 23, 2025
One test method had a race condition when getting an index after
closing. This change extracts the common pattern of polling until the
index is available and uses it everywhere.

Signed-off-by: Andrew Ross <andrross@amazon.com>
vinaykpud pushed a commit to vinaykpud/OpenSearch that referenced this pull request Sep 26, 2025
One test method had a race condition when getting an index after
closing. This change extracts the common pattern of polling until the
index is available and uses it everywhere.

Signed-off-by: Andrew Ross <andrross@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autocut flaky-test Random test failure that succeeds on second run Indexing Indexing, Bulk Indexing and anything related to indexing 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 IndexServiceTests

3 participants