-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Security Solution] Refactors All exception lists - read only
tests to remove flakiness
#146677
[Security Solution] Refactors All exception lists - read only
tests to remove flakiness
#146677
Conversation
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
@elasticmachine merge upstream |
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.
Thank you!!
💚 Build Succeeded
Metrics [docs]Unknown metric groupsESLint disabled in files
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
… to remove flakiness (elastic#146677) Co-authored-by: Kibana Machine <[email protected]> (cherry picked from commit 8a6cc0c)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
… tests to remove flakiness (#146677) (#146708) # Backport This will backport the following commits from `main` to `8.6`: - [[Security Solution] Refactors `All exception lists - read only` tests to remove flakiness (#146677)](#146677) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Gloria Hornero","email":"[email protected]"},"sourceCommit":{"committedDate":"2022-11-30T15:41:44Z","message":"[Security Solution] Refactors `All exception lists - read only` tests to remove flakiness (#146677)\n\nCo-authored-by: Kibana Machine <[email protected]>","sha":"8a6cc0cd26425afa67a448ffadc4de15f82d208d","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Detections and Resp","Team:Security Solution Platform","v8.6.0","v8.7.0"],"number":146677,"url":"https://github.com/elastic/kibana/pull/146677","mergeCommit":{"message":"[Security Solution] Refactors `All exception lists - read only` tests to remove flakiness (#146677)\n\nCo-authored-by: Kibana Machine <[email protected]>","sha":"8a6cc0cd26425afa67a448ffadc4de15f82d208d"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/146677","number":146677,"mergeCommit":{"message":"[Security Solution] Refactors `All exception lists - read only` tests to remove flakiness (#146677)\n\nCo-authored-by: Kibana Machine <[email protected]>","sha":"8a6cc0cd26425afa67a448ffadc4de15f82d208d"}}]}] BACKPORT--> Co-authored-by: Gloria Hornero <[email protected]>
Summary
The aim of this PR is to remove the flakiness on the
All exception lists - read only
Cypress tests.Yesterday we've seen these tests failing a lot on different PRs, in order to make the tests more robust, this is the list of changes that have been implemented:
esArchiverResetKibana
forcleanKibana
since the cleaning the second method does is more extensive than the first one.before
hook code to abeforeEach
. We use the Cypress test retries capability, this only reexecute the code inside the beforeEach hook not the one on thebefore
.beforeEach
hook, now before creating the exception list, we make sure the list is deleted before taking the action.All the above modifications should have made the test more reliable.