-
Notifications
You must be signed in to change notification settings - Fork 275
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
Forward port integ test fixes to main branch #4867
Forward port integ test fixes to main branch #4867
Conversation
Signed-off-by: Craig Perkins <[email protected]>
Signed-off-by: Craig Perkins <[email protected]>
…ed with DISABLE_RETRY (opensearch-project#4855) Signed-off-by: Craig Perkins <[email protected]> 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>
…nTest task (opensearch-project#4866) Signed-off-by: Craig Perkins <[email protected]>
Signed-off-by: Craig Perkins <[email protected]>
Looking into test failures. Possibly related to change that went into core: opensearch-project/OpenSearch#16418 |
Confirmed that this PR is causing test failures in the security repo. I don't understand why just yet. @reta Putting this on your radar. |
The gist of the issue is that when the security index (or other system index created in test) is created its expected to have a shard on every node. It seems that now a shard is only created on a single node. This is the logic to create the security index: https://github.com/opensearch-project/security/blob/main/src/main/java/org/opensearch/security/support/SecurityIndexHandler.java#L73-L88 |
The templates are not applied to system indices after opensearch-project/OpenSearch#16418, seems to be regression. |
Where is the default template defined in core? In the debugger, I see this as the default template:
|
It is created by security plugin test scaffolding (see please
|
Signed-off-by: Craig Perkins <[email protected]>
src/test/java/org/opensearch/security/system_indices/AbstractSystemIndicesTests.java
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4867 +/- ##
==========================================
+ Coverage 69.84% 69.89% +0.04%
==========================================
Files 320 320
Lines 21674 21688 +14
Branches 3457 3460 +3
==========================================
+ Hits 15139 15159 +20
+ Misses 4744 4735 -9
- Partials 1791 1794 +3 |
@cwperks not sure about backporting it in 2.x. It is up to you |
I'll create a backport for this to the 2.x branch. |
…4868) Signed-off-by: Craig Perkins <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
This PR includes various fixes to stabilize tests in the integrationTest sourceSet. These fixes have already been merged in the 2.18 branch in an effort to get flaky tests to 0. The impetus for fixing the flaky tests, was that this PR was included in the 2.18 branch which triggered the tests in the
integrationTest
sourceSet to be run with the release tests. These tests were run without retry which differs from how they are run as a PR check where we allow a test to retry twice until success.Changes included:
Test fix
Check List
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.