Search operation test flakiness fix#3602
Search operation test flakiness fix#3602stephen-crawford merged 49 commits intoopensearch-project:mainfrom
Conversation
Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3602 +/- ##
==========================================
+ Coverage 65.24% 65.32% +0.07%
==========================================
Files 297 298 +1
Lines 21129 21159 +30
Branches 3451 3455 +4
==========================================
+ Hits 13786 13822 +36
- Misses 5643 5644 +1
+ Partials 1700 1693 -7
|
Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
src/integrationTest/java/org/opensearch/security/SearchOperationTest.java
Show resolved
Hide resolved
d3a4a2c to
6296d7d
Compare
Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
6296d7d to
b3bf553
Compare
src/main/java/org/opensearch/security/resolver/IndexResolverReplacer.java
Show resolved
Hide resolved
src/integrationTest/java/org/opensearch/test/framework/cluster/LocalCluster.java
Outdated
Show resolved
Hide resolved
src/integrationTest/java/org/opensearch/security/SearchOperationTest.java
Show resolved
Hide resolved
Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
Signed-off-by: MaciejMierzwa <dev.maciej.mierzwa@gmail.com>
Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
…fix' into SearchOperationTest-flakiness-fix
|
Cople things cause the flakiness.
|
Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
src/integrationTest/java/org/opensearch/test/framework/audit/AuditLogsRule.java
Show resolved
Hide resolved
src/integrationTest/java/org/opensearch/test/framework/audit/AuditLogsRule.java
Show resolved
Hide resolved
stephen-crawford
left a comment
There was a problem hiding this comment.
Is there a reason we cannot get a hard count for the transport messages and still have to use the "at Least" version? If so, please add it as documentation somewhere in the change otherwise please swap to the exact versions. Otherwise looks good!
src/integrationTest/java/org/opensearch/security/SearchOperationTest.java
Show resolved
Hide resolved
Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
3580a79 to
51775e7
Compare
Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
51775e7 to
971d26a
Compare
|
@scrawfor99 @DarshitChanpura @cwperks Want to take another look? |
stephen-crawford
left a comment
There was a problem hiding this comment.
Looks good to me! Thanks Maciej!
|
The backport to To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/security/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/security/backport-2.x
# Create a new branch
git switch --create backport/backport-3602-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 9da4a78f237f238bfebb5ecd2dff58a814927542
# Push it to GitHub
git push --set-upstream origin backport/backport-3602-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/security/backport-2.xThen, create a pull request where the |
|
@MaciejMierzwa Could you make the backport to 2.x for this change? |
Search operation test flakiness fix - opensearch-project#3426 - opensearch-project#2141 - opensearch-project#2169 Similar to this task: opensearch-project#1917 From what I've noticed some logs are duplicated on faster machines. During test creation audit logging results were added based on actual results produced by tests. Now if there are slower moments where logging produces non-duplicated logs, those were marked as failed. 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](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin). --------- Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com> Signed-off-by: MaciejMierzwa <dev.maciej.mierzwa@gmail.com> (cherry picked from commit 9da4a78)
Search operation test flakiness fix - opensearch-project#3426 - opensearch-project#2141 - opensearch-project#2169 Similar to this task: opensearch-project#1917 From what I've noticed some logs are duplicated on faster machines. During test creation audit logging results were added based on actual results produced by tests. Now if there are slower moments where logging produces non-duplicated logs, those were marked as failed. 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](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin). --------- Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com> Signed-off-by: MaciejMierzwa <dev.maciej.mierzwa@gmail.com> (cherry picked from commit 9da4a78) Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
Search operation test flakiness fix - opensearch-project#3426 - opensearch-project#2141 - opensearch-project#2169 Similar to this task: opensearch-project#1917 From what I've noticed some logs are duplicated on faster machines. During test creation audit logging results were added based on actual results produced by tests. Now if there are slower moments where logging produces non-duplicated logs, those were marked as failed. 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](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin). --------- Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com> Signed-off-by: MaciejMierzwa <dev.maciej.mierzwa@gmail.com> (cherry picked from commit 9da4a78) Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
### Description Integration test PR. I followed directions from #3602 (comment) not sure if it should look like that though. ### Issues Resolved This is backport #3426 #3602 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](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin). Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com> Signed-off-by: MaciejMierzwa <dev.maciej.mierzwa@gmail.com>
### Description test PR ### Issues Resolved - opensearch-project#3426 - opensearch-project#2141 - opensearch-project#2169 Similar to this task: opensearch-project#1917 From what I've noticed some logs are duplicated on faster machines. During test creation audit logging results were added based on actual results produced by tests. Now if there are slower moments where logging produces non-duplicated logs, those were marked as failed. 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](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin). --------- Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com> Signed-off-by: MaciejMierzwa <dev.maciej.mierzwa@gmail.com>
Description
test PR
Issues Resolved
Similar to this task: #1917
From what I've noticed some logs are duplicated on faster machines. During test creation audit logging results were added based on actual results produced by tests. Now if there are slower moments where logging produces non-duplicated logs, those were marked as failed.
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.