Skip to content

Conversation

@kaituo
Copy link
Collaborator

@kaituo kaituo commented Oct 2, 2025

Description

This PR

  • RealTimeFrequencySmokeIT: capture baseline ad_execute_request_count and use assertBusy to wait for a delta ≥ 2 via _local/stats; aggregate counts across nodes to tolerate parallel ITs on a shared cluster (ran via ./gradlew ':integTestRemote'). Added getLocalAdExecuteRequestCount helper and logging to aid diagnosis.
  • AnomalyDetectorRestApiIT: when resource sharing is enabled, allow _version ≥ previous+1 since Security’s ResourceSharingIndexHandler triggers an extra update to set all_shared_principals.

These changes reduce IT flakiness without altering production behavior.

Related Issues

Resolves #[Issue number to be closed when this PR is merged]
opensearch-project/opensearch-build#5693

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.

  sharing

  - RealTimeFrequencySmokeIT: capture baseline ad_execute_request_count and use assertBusy to wait for a delta ≥ 2 via _local/stats; aggregate counts across nodes to tolerate parallel ITs on a shared cluster (ran via ./gradlew ':integTestRemote'). Added getLocalAdExecuteRequestCount helper and logging to aid diagnosis.
  - AnomalyDetectorRestApiIT: when resource sharing is enabled, allow _version ≥ previous+1 since Security’s ResourceSharingIndexHandler triggers an extra update to set all_shared_principals.

These changes reduce IT flakiness without altering production behavior.

Signed-off-by: kaituo <kaituo@amazon.com>
@codecov
Copy link

codecov bot commented Oct 2, 2025

Codecov Report

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

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1571      +/-   ##
============================================
- Coverage     81.44%   81.42%   -0.03%     
- Complexity     6137     6140       +3     
============================================
  Files           542      542              
  Lines         24898    24898              
  Branches       2540     2540              
============================================
- Hits          20279    20273       -6     
- Misses         3352     3365      +13     
+ Partials       1267     1260       -7     
Flag Coverage Δ
plugin 81.42% <ø> (-0.03%) ⬇️

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.

@kaituo
Copy link
Collaborator Author

kaituo commented Oct 2, 2025

Security CI will be fixed by #1572

@kaituo kaituo merged commit 3c66c83 into opensearch-project:main Oct 2, 2025
29 of 31 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 2, 2025
…ce (#1571)

sharing

  - RealTimeFrequencySmokeIT: capture baseline ad_execute_request_count and use assertBusy to wait for a delta ≥ 2 via _local/stats; aggregate counts across nodes to tolerate parallel ITs on a shared cluster (ran via ./gradlew ':integTestRemote'). Added getLocalAdExecuteRequestCount helper and logging to aid diagnosis.
  - AnomalyDetectorRestApiIT: when resource sharing is enabled, allow _version ≥ previous+1 since Security’s ResourceSharingIndexHandler triggers an extra update to set all_shared_principals.

These changes reduce IT flakiness without altering production behavior.

Signed-off-by: kaituo <kaituo@amazon.com>
(cherry picked from commit 3c66c83)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
kaituo pushed a commit that referenced this pull request Oct 2, 2025
…ce (#1571) (#1574)

sharing

  - RealTimeFrequencySmokeIT: capture baseline ad_execute_request_count and use assertBusy to wait for a delta ≥ 2 via _local/stats; aggregate counts across nodes to tolerate parallel ITs on a shared cluster (ran via ./gradlew ':integTestRemote'). Added getLocalAdExecuteRequestCount helper and logging to aid diagnosis.
  - AnomalyDetectorRestApiIT: when resource sharing is enabled, allow _version ≥ previous+1 since Security’s ResourceSharingIndexHandler triggers an extra update to set all_shared_principals.

These changes reduce IT flakiness without altering production behavior.


(cherry picked from commit 3c66c83)

Signed-off-by: kaituo <kaituo@amazon.com>
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants