-
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] Fix flaky tests: common tasks #161505
Comments
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
Pinging @elastic/security-solution (Team: SecuritySolution) |
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
Hi @banderror, I am interested in this issue. Can I pick it up? |
Hey @VidhiRambhia 👋 , great to see people from the community willing to make code contributions to Kibana! Community contributions are always welcome at Elastic. Since this specific ticket requires a good understanding of the tests owned by @elastic/security-detection-rule-management and @elastic/security-detection-engine teams, I'd not personally recommend working on just about any task tracked in the description. Maybe you could pick one of these tasks because they are less involved:
|
Hi @banderror, That makes sense. I'll take a look at these tasks and keep you posted! Thank you! |
Hi @banderror, For the second issue - #158713, it seems like the linter rule has been set to 'warn'. Should it be changed to 'error'? For the third issue, I have raised a draft PR - #171814 Please let me know your thoughts on these! |
**Related to:** #161505 ## Summary This PR adds a checklist item in the pull request template for this repository. The added checklist item is to check if the [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on tests changed in the pull request. ### Checklist - [X] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) ### For maintainers - [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
@VidhiRambhia Thank you so much for working on these!
Yeah, I think we can start with making it an "error" and seeing how many linting errors we'd get. If 0 or just a few, we could try to fix them and merge the change. |
That makes sense, I'll try this! |
@banderror we should not do that until we have get rid off the force true from all the code and we propose an alternative :) |
@MadameSheema Alternatives will be case-by-case and will likely require fixing the app's react components, I presume. At this point, I'd like to see how many force: true instances we have at all. |
Hi @banderror, I changed the linter rule for cypress/no-force to 'error'. - #172396 |
Thanks @VidhiRambhia, this is useful information. I think 181 linting errors might be too many for trying to fix all of them in one go and making this linter rule generate errors instead of warnings. Let's keep it as is for now. |
Epic: #153633
Summary
Fix issues causing flakiness in Cypress or API integration tests, common to many tests for Security Solution.
Sub-tasks
Tracking flaky tests
Cypress APIs
Detection rules
The text was updated successfully, but these errors were encountered: