-
Couldn't load subscription status.
- Fork 81
Fix flaky ITs #1571
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
Fix flaky ITs #1571
Conversation
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 Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ 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
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
Security CI will be fixed by #1572 |
…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>
…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>
Description
This PR
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
--signoff.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.