-
Notifications
You must be signed in to change notification settings - Fork 300
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
Removing flaky test case testAutoInit #3732
Removing flaky test case testAutoInit #3732
Conversation
Considering what is tested - the auto log events that are creating when a test cluster starts up. This isn't a useful test case, removing. - Related opensearch-project#3730 Signed-off-by: Peter Nied <[email protected]>
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3732 +/- ##
==========================================
+ Coverage 64.88% 66.27% +1.38%
==========================================
Files 292 292
Lines 20776 20806 +30
Branches 3409 3411 +2
==========================================
+ Hits 13481 13789 +308
+ Misses 5606 5317 -289
- Partials 1689 1700 +11
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not convinced yet that this is a test that should be removed.
I took a glance at this test suite and it looks like it needs to be refactored to use TestAuditLogImpl.doThenWaitForMessages
As it is, this test is useless because its not idempotent. The audit log is not cleared before this test runs so it relies on being at a certain location in the test suite to run properly.
@cwperks if we had an issue to create a test that verifies the audit actions during the test cluster setup process - I think it would need to be authored differently to properly measure what happens. Behavior such as calling the cluster health API once instead of twice, the test would need to be written to interpret those changes. I think we'd need to rebuild the test to accommodate - more than just use the better concurrency safe capture method. In terms of risk of not having this test is pretty low on my list. I'd rather spend time building better support for the new credentials generator or tackling some incoming bugs we have then try to rehab this test case. |
From the maintainers guidance @cwperks Our builds are constantly failing due to this test. And I think it will take more than an hour to fix - with that in mind do you think we could merge as is? When the rewritten version is ready we add it back in, but until that happens we will have builds that are more stable. |
Not blocking this PR to let other PRs affected by the test flow through.
@peternied I've lifted the Requested Changes, but my preference would be to merge the test fix for this instead of removal. This whole suite of tests needs to be revisited. Our audit log tests could be a lot stronger than what they are today. |
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-3732-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 ca8aafe3ff75b1dbc39f4ed857d5c385e0025bcf
# Push it to GitHub
git push --set-upstream origin backport/backport-3732-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/security/backport-2.x Then, create a pull request where the |
@peternied Are you planning to open a backport for this PR? |
Signed-off-by: Peter Nied <[email protected]>
### Description Backport ca8aafe from #3732. ### Check List - [ ] ~New functionality includes testing~ - [ ] ~New functionality has been documented~ - [X] Commits are signed per the DCO using --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](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin). Signed-off-by: Peter Nied <[email protected]>
Description
Considering what is tested - the auto log events that are creating when a test cluster starts up. This isn't a useful test case, removing.
Issues Resolved
Check List
New functionality includes testingNew functionality has been documentedBy 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.