-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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] fixes flaky-test-runner Cypress Security Solution tests #134205
[Security Solution] fixes flaky-test-runner Cypress Security Solution tests #134205
Conversation
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
Pinging @elastic/security-solution (Team: SecuritySolution) |
Co-authored-by: Domenico Andreoli <domenico.andreoli@elastic.co>
…-ref HEAD~1..HEAD --fix'
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.
LGTM
This reverts commit ce839ad.
@cavokz , I had to revert changes you proposed variables CLI_NUMBER, CLI_NUMBER are getting rewritten inside Let me know if you are fine with my initial solution or would like to approach it in other way |
You can surely go with the initial approach but this is the start of a flags war, where some override others. I'd consider why this is happening before pushing the button. |
My understanding, It happens because buildkite context ENV variables in cypress bash script become available only in pipeline step runtime. So, only using these runtime variables in configuration, won't have any effect. That's why we need new ENV value that would be able to disable split tests from pipeline steps config |
My apologies, I'm reading that file only now. What I prefer then is, in that file, populate |
…s://github.com/vitaliidm/kibana into ci/fix-flaky-test-runner-for-security-solution
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.
Yes, exactly. Thanks.
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: cc @vitaliidm |
Summary
Fixes issue with security solution cypress flaky test runner
After introducing dynamic split for cypress tests in Security Solution, there was discovered an issue with flaky test runner, which is using parallelism in slightly different manner: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/697#_: tests were evenly split between N jobs, instead of repeating tests N times(as N jobs)
So, for flaky runner, I introducing a new ENV variable that would disable split for tests between parallel jobs and instead would run all test per each job.
Here is link to flaky runner build from this PR, which shows that all test runs per job
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/736