-
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
[MKI] Failing test: x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/coverage_overview/coverage_overview.cy.ts #179052
Comments
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
Pinging @elastic/security-solution (Team: SecuritySolution) |
Pinging @elastic/security-detection-rule-management (Team:Detection Rule Management) |
@MadameSheema I'll look into this issue. I believe we shouldn't be commenting any code that our tests depend on, but I'll need to look into the code first. |
Thanks @banderror as I don't have a deep knowledge in your area, I don't want to make any decision for you. This ticket is the output of the investigation I run trying to make easier to figure out which can be the root cause of the issue and possible workaround for now to have the green build on MKI but work should be done for sure to have the green build without having to skip the test on MKI. |
@MadameSheema Can we skip only |
If we skip just that test without commenting the problematic code I shared above, the whole spec file fails.
Skipping the whole spec file in MKI will not affect the regular executions on PRs for both Serverless and ESS. I tested it on ESS without the problematic piece of code, and the spec file passed. |
For now, the whole test is going to be skipped just in MKI executions until more investigations are performed. |
This test has been skipped in the periodic pipeline as part of https://github.com/elastic/security-team/issues/10609. We don't have any short-term plans for fixing and enabling it there. We're gonna be revisiting and extending our MKI test suite next year: #200309. |
It is failing in MKI with the following error:
This is because when doing
createAndInstallMockedPrebuiltRules
on the beforeEach hook, executes the below piece of code, which is hitting an internal index, something that is forbidden in MKI environments. (x-pack/test/security_solution_cypress/cypress/tasks/api_calls/prebuilt_rules.ts line 146).If we comment that piece of code, all the tests works in a non-mki environment and in an mki environments all the tests inside the spec file except
technique panel renders custom and prebuilt rule data on page load
passes.With the piece of code commented, the test fails because the prebuilt rules are not created, but just in the MKI environment.
@banderror @maximpn can you please confirm what do you want to do?
technique panel renders custom and prebuilt rule data on page load
test in MKI.The text was updated successfully, but these errors were encountered: