-
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][Detection Engine] ML Cypress Improvements #186831
Conversation
/ci |
This commit contains a few improvements, cherry-picked from elastic#181926. Full context/details can be found there, but I'll try to summarize below: * ML form helpers receive normal rule parameters (instead of humanized job names) * Better starting state: deletes rules and stops ML jobs before test suite * Relaxed assertions: removes assertions that fail if there's more than one test in the environment (this is somewhat redundant with the previous improvement, but no harm in having both).
906b70d
to
8b3afa3
Compare
/ci |
Pinging @elastic/security-detection-engine (Team:Detection Engine) |
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#6381[✅] Security Solution Detection Engine - Cypress: 100/100 tests passed. |
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#6382[✅] [Serverless] Security Solution Detection Engine - Cypress: 100/100 tests passed. |
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#6385[✅] Security Solution Detection Engine - Cypress: 100/100 tests passed. |
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#6386[✅] [Serverless] Security Solution Detection Engine - Cypress: 100/100 tests passed. |
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.
There are three functions added here that aren't used in the changes. Not sure if we plan on using these in the future but maybe we should remove them from this PR until they are utilized.
x-pack/test/security_solution_cypress/cypress/support/machine_learning.ts
Outdated
Show resolved
Hide resolved
x-pack/test/security_solution_cypress/cypress/support/machine_learning.ts
Outdated
Show resolved
Hide resolved
x-pack/test/security_solution_cypress/cypress/support/machine_learning.ts
Outdated
Show resolved
Hide resolved
These were cherry-picked from the ML suppression branch, where they're used more fully. For now, we only use forceStopAndCloseJob to get a clean test state.
@dhurley14 I removed those unused helpers from this PR 👍 |
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.
👍
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]
History
To update your PR or re-run it, just comment with: |
Summary
This PR contains a collection of fixes, mainly cherry-picked from #181926. Since some of these tests are failing sporadically on main, I'm opening this "test fix" PR for expedience while #181926 is still in review.
Checklist