Skip to content

Serialize integTestRemote on remote clusters to avoid index wipe races#1654

Merged
jackiehanyang merged 1 commit intoopensearch-project:mainfrom
kaituo:secureAD
Jan 29, 2026
Merged

Serialize integTestRemote on remote clusters to avoid index wipe races#1654
jackiehanyang merged 1 commit intoopensearch-project:mainfrom
kaituo:secureAD

Conversation

@kaituo
Copy link
Copy Markdown
Collaborator

@kaituo kaituo commented Jan 29, 2026

Description

integTestRemote can run multiple forks against a shared remote cluster, so @after cleanup in ODFERestTestCase deletes .opendistro-anomaly-detectors while other tests are mid‑request, causing 404s in SecureADRestIT and other REST ITs. This PR fixes the problem. When tests.rest.cluster is set, force integTestRemote to run serially (maxParallelForks=1, forkEvery=0) to avoid cross‑test index wipe races.

Related Issues

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

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.

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.28%. Comparing base (ab3d82f) to head (cf3e9c7).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1654      +/-   ##
============================================
- Coverage     81.32%   81.28%   -0.05%     
+ Complexity     6242     6238       -4     
============================================
  Files           544      544              
  Lines         25323    25323              
  Branches       2621     2621              
============================================
- Hits          20595    20584      -11     
- Misses         3418     3428      +10     
- Partials       1310     1311       +1     
Flag Coverage Δ
plugin 81.28% <ø> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 10 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

integTestRemote can run multiple forks against a shared remote cluster, so @after cleanup in ODFERestTestCase deletes .opendistro-anomaly-detectors while other tests are mid‑request, causing 404s in SecureADRestIT and other REST ITs.
When tests.rest.cluster is set, this PR forces integTestRemote to run serially (maxParallelForks=1, forkEvery=0) to avoid cross‑test index wipe races.

Signed-off-by: kaituo <kaituo@amazon.com>
@jackiehanyang jackiehanyang merged commit 5fe42cc into opensearch-project:main Jan 29, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants