Skip to content

Conversation

@maximpn
Copy link
Contributor

@maximpn maximpn commented Jul 28, 2025

Resolves: #182441
Resolves: #182442
Resolves: #228942
Relates to: #227689

Summary

This PR installs mock prebuilt rules package for e2e Cypress test to reduce flakniess caused by accessing to the real EPR. It's similar to the mock package installation in integration tests PR.

Flaky test runner

@maximpn maximpn self-assigned this Jul 28, 2025
@maximpn maximpn added test release_note:skip Skip the PR/issue when compiling release notes impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. v9.0.0 Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Detection Rule Management Security Detection Rule Management Team Feature:Prebuilt Detection Rules Security Solution Prebuilt Detection Rules area backport:version Backport to applied version labels v8.18.0 v9.1.0 v8.19.0 v9.2.0 labels Jul 28, 2025
@maximpn maximpn force-pushed the install-mock-prebuilt-rules-package-globally-in-cypress branch from e2e54ee to a66777f Compare July 29, 2025 12:48
@maximpn maximpn requested a review from nikitaindik August 6, 2025 07:25
@maximpn maximpn force-pushed the install-mock-prebuilt-rules-package-globally-in-cypress branch from a66777f to 10fd49e Compare August 6, 2025 08:24
@maximpn maximpn changed the title [Security Solution] Install globally mock prebuilt rules package in Cypress [Security Solution] Install mock prebuilt rules package in Cypress to reduce flakiness Aug 6, 2025
@maximpn maximpn marked this pull request as ready for review August 6, 2025 14:37
@maximpn maximpn requested a review from a team as a code owner August 6, 2025 14:37
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detections-response (Team:Detections and Resp)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detection-rule-management (Team:Detection Rule Management)

Copy link
Contributor

@nikitaindik nikitaindik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, @maximpn! I reviewed the changes and ran tests that were refactored locally – they all passed. Let's run these tests via a Flaky Test Runner and we should be good to merge.

@maximpn maximpn force-pushed the install-mock-prebuilt-rules-package-globally-in-cypress branch from d3296d5 to b59ab81 Compare August 6, 2025 18:53
@maximpn maximpn enabled auto-merge (squash) August 6, 2025 18:53
@banderror banderror disabled auto-merge August 8, 2025 11:00
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Aug 13, 2025
… reduce flakiness (elastic#229689)

**Resolves: elastic#182441
**Resolves: elastic#182442
**Resolves: elastic#228942
**Relates to: elastic#227689

## Summary

This PR installs mock prebuilt rules package for e2e Cypress test to
reduce flakniess caused by accessing to the real EPR. It's similar to
the mock package installation in integration tests
[PR](elastic#227689).

**Flaky test runner**
- ESS:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9120
- Serverless:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9121

(cherry picked from commit 980add1)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.18 Backport failed because of merge conflicts
8.19
9.0 Backport failed because of merge conflicts
9.1 Backport failed because of merge conflicts

You might need to backport the following PRs to 9.1:
- [Security Solution] [SKA] Moved cypress folder (#230198)

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 229689

Questions ?

Please refer to the Backport tool documentation

banderror pushed a commit to banderror/kibana that referenced this pull request Aug 13, 2025
… reduce flakiness (elastic#229689)

**Resolves: elastic#182441
**Resolves: elastic#182442
**Resolves: elastic#228942
**Relates to: elastic#227689

## Summary

This PR installs mock prebuilt rules package for e2e Cypress test to
reduce flakniess caused by accessing to the real EPR. It's similar to
the mock package installation in integration tests
[PR](elastic#227689).

**Flaky test runner**
- ESS:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9120
- Serverless:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9121

(cherry picked from commit 980add1)

# Conflicts:
#	x-pack/solutions/security/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/prebuilt_rules/customization/revert_prebuilt_rule.cy.ts
#	x-pack/solutions/security/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/rule_actions/bulk_actions/bulk_edit_rules_suppression.cy.ts
#	x-pack/solutions/security/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/rule_actions/bulk_actions/bulk_edit_rules_suppression_basic_ess.cy.ts
#	x-pack/solutions/security/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/rule_actions/bulk_actions/bulk_edit_rules_suppression_essentials_serverless.cy.ts
#	x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/prebuilt_rules/customization/rule_customization.cy.ts
#	x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/prebuilt_rules/installation/install_via_fleet.cy.ts
#	x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/rule_actions/snoozing/rule_snoozing.cy.ts
@banderror
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
9.0

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

banderror pushed a commit to banderror/kibana that referenced this pull request Aug 13, 2025
… reduce flakiness (elastic#229689)

**Resolves: elastic#182441
**Resolves: elastic#182442
**Resolves: elastic#228942
**Relates to: elastic#227689

## Summary

This PR installs mock prebuilt rules package for e2e Cypress test to
reduce flakniess caused by accessing to the real EPR. It's similar to
the mock package installation in integration tests
[PR](elastic#227689).

**Flaky test runner**
- ESS:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9120
- Serverless:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9121

(cherry picked from commit 980add1)

# Conflicts:
#	x-pack/solutions/security/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/prebuilt_rules/customization/revert_prebuilt_rule.cy.ts
#	x-pack/solutions/security/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/rule_actions/bulk_actions/bulk_edit_rules_suppression.cy.ts
#	x-pack/solutions/security/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/rule_actions/bulk_actions/bulk_edit_rules_suppression_basic_ess.cy.ts
#	x-pack/solutions/security/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/rule_actions/bulk_actions/bulk_edit_rules_suppression_essentials_serverless.cy.ts
#	x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/prebuilt_rules/customization/rule_customization.cy.ts
#	x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/prebuilt_rules/installation/install_via_fleet.cy.ts
#	x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/rule_actions/snoozing/rule_snoozing.cy.ts
@banderror
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.18

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

banderror added a commit that referenced this pull request Aug 13, 2025
…ress to reduce flakiness (#229689) (#231628)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[Security Solution] Install mock prebuilt rules package in Cypress to
reduce flakiness
(#229689)](#229689)

<!--- Backport version: 10.0.1 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Maxim
Palenov","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-08-13T12:31:26Z","message":"[Security
Solution] Install mock prebuilt rules package in Cypress to reduce
flakiness (#229689)\n\n**Resolves:
https://github.com/elastic/kibana/issues/182441**\n**Resolves:
https://github.com/elastic/kibana/issues/182442**\n**Resolves:
https://github.com/elastic/kibana/issues/228942**\n**Relates to:
https://github.com/elastic/kibana/pull/227689**\n\n## Summary\n\nThis PR
installs mock prebuilt rules package for e2e Cypress test to\nreduce
flakniess caused by accessing to the real EPR. It's similar to\nthe mock
package installation in integration
tests\n[PR](https://github.com/elastic/kibana/pull/227689).\n\n**Flaky
test runner**\n-
ESS:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9120\n-
Serverless:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9121","sha":"980add17c585d370d555e93b9146bbaad5d7a2d4","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["test","release_note:skip","impact:high","Team:Detections
and Resp","Team: SecuritySolution","Team:Detection Rule
Management","Feature:Prebuilt Detection
Rules","backport:version","v9.2.0","v9.1.3","v8.19.3","v9.0.6","v8.18.6"],"title":"[Security
Solution] Install mock prebuilt rules package in Cypress to reduce
flakiness","number":229689,"url":"https://github.com/elastic/kibana/pull/229689","mergeCommit":{"message":"[Security
Solution] Install mock prebuilt rules package in Cypress to reduce
flakiness (#229689)\n\n**Resolves:
https://github.com/elastic/kibana/issues/182441**\n**Resolves:
https://github.com/elastic/kibana/issues/182442**\n**Resolves:
https://github.com/elastic/kibana/issues/228942**\n**Relates to:
https://github.com/elastic/kibana/pull/227689**\n\n## Summary\n\nThis PR
installs mock prebuilt rules package for e2e Cypress test to\nreduce
flakniess caused by accessing to the real EPR. It's similar to\nthe mock
package installation in integration
tests\n[PR](https://github.com/elastic/kibana/pull/227689).\n\n**Flaky
test runner**\n-
ESS:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9120\n-
Serverless:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9121","sha":"980add17c585d370d555e93b9146bbaad5d7a2d4"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.18"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/229689","number":229689,"mergeCommit":{"message":"[Security
Solution] Install mock prebuilt rules package in Cypress to reduce
flakiness (#229689)\n\n**Resolves:
https://github.com/elastic/kibana/issues/182441**\n**Resolves:
https://github.com/elastic/kibana/issues/182442**\n**Resolves:
https://github.com/elastic/kibana/issues/228942**\n**Relates to:
https://github.com/elastic/kibana/pull/227689**\n\n## Summary\n\nThis PR
installs mock prebuilt rules package for e2e Cypress test to\nreduce
flakniess caused by accessing to the real EPR. It's similar to\nthe mock
package installation in integration
tests\n[PR](https://github.com/elastic/kibana/pull/227689).\n\n**Flaky
test runner**\n-
ESS:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9120\n-
Serverless:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9121","sha":"980add17c585d370d555e93b9146bbaad5d7a2d4"}},{"branch":"9.1","label":"v9.1.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/231613","number":231613,"state":"OPEN"},{"branch":"9.0","label":"v9.0.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/231625","number":231625,"state":"OPEN"},{"branch":"8.18","label":"v8.18.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
banderror added a commit that referenced this pull request Aug 13, 2025
…ess to reduce flakiness (#229689) (#231625)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[Security Solution] Install mock prebuilt rules package in Cypress to
reduce flakiness
(#229689)](#229689)

<!--- Backport version: 10.0.1 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Maxim
Palenov","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-08-13T12:31:26Z","message":"[Security
Solution] Install mock prebuilt rules package in Cypress to reduce
flakiness (#229689)\n\n**Resolves:
https://github.com/elastic/kibana/issues/182441**\n**Resolves:
https://github.com/elastic/kibana/issues/182442**\n**Resolves:
https://github.com/elastic/kibana/issues/228942**\n**Relates to:
https://github.com/elastic/kibana/pull/227689**\n\n## Summary\n\nThis PR
installs mock prebuilt rules package for e2e Cypress test to\nreduce
flakniess caused by accessing to the real EPR. It's similar to\nthe mock
package installation in integration
tests\n[PR](https://github.com/elastic/kibana/pull/227689).\n\n**Flaky
test runner**\n-
ESS:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9120\n-
Serverless:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9121","sha":"980add17c585d370d555e93b9146bbaad5d7a2d4","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["test","release_note:skip","impact:high","Team:Detections
and Resp","Team: SecuritySolution","Team:Detection Rule
Management","Feature:Prebuilt Detection
Rules","backport:version","v9.2.0","v9.1.3","v8.19.3","v9.0.6","v8.18.6"],"title":"[Security
Solution] Install mock prebuilt rules package in Cypress to reduce
flakiness","number":229689,"url":"https://github.com/elastic/kibana/pull/229689","mergeCommit":{"message":"[Security
Solution] Install mock prebuilt rules package in Cypress to reduce
flakiness (#229689)\n\n**Resolves:
https://github.com/elastic/kibana/issues/182441**\n**Resolves:
https://github.com/elastic/kibana/issues/182442**\n**Resolves:
https://github.com/elastic/kibana/issues/228942**\n**Relates to:
https://github.com/elastic/kibana/pull/227689**\n\n## Summary\n\nThis PR
installs mock prebuilt rules package for e2e Cypress test to\nreduce
flakniess caused by accessing to the real EPR. It's similar to\nthe mock
package installation in integration
tests\n[PR](https://github.com/elastic/kibana/pull/227689).\n\n**Flaky
test runner**\n-
ESS:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9120\n-
Serverless:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9121","sha":"980add17c585d370d555e93b9146bbaad5d7a2d4"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","9.0","8.18"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/229689","number":229689,"mergeCommit":{"message":"[Security
Solution] Install mock prebuilt rules package in Cypress to reduce
flakiness (#229689)\n\n**Resolves:
https://github.com/elastic/kibana/issues/182441**\n**Resolves:
https://github.com/elastic/kibana/issues/182442**\n**Resolves:
https://github.com/elastic/kibana/issues/228942**\n**Relates to:
https://github.com/elastic/kibana/pull/227689**\n\n## Summary\n\nThis PR
installs mock prebuilt rules package for e2e Cypress test to\nreduce
flakniess caused by accessing to the real EPR. It's similar to\nthe mock
package installation in integration
tests\n[PR](https://github.com/elastic/kibana/pull/227689).\n\n**Flaky
test runner**\n-
ESS:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9120\n-
Serverless:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9121","sha":"980add17c585d370d555e93b9146bbaad5d7a2d4"}},{"branch":"9.1","label":"v9.1.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/231613","number":231613,"state":"OPEN"},{"branch":"9.0","label":"v9.0.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
banderror pushed a commit to kibanamachine/kibana that referenced this pull request Aug 13, 2025
… reduce flakiness (elastic#229689)

**Resolves: elastic#182441
**Resolves: elastic#182442
**Resolves: elastic#228942
**Relates to: elastic#227689

## Summary

This PR installs mock prebuilt rules package for e2e Cypress test to
reduce flakniess caused by accessing to the real EPR. It's similar to
the mock package installation in integration tests
[PR](elastic#227689).

**Flaky test runner**
- ESS:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9120
- Serverless:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9121

(cherry picked from commit 980add1)
banderror pushed a commit to kibanamachine/kibana that referenced this pull request Aug 14, 2025
… reduce flakiness (elastic#229689)

**Resolves: elastic#182441
**Resolves: elastic#182442
**Resolves: elastic#228942
**Relates to: elastic#227689

## Summary

This PR installs mock prebuilt rules package for e2e Cypress test to
reduce flakniess caused by accessing to the real EPR. It's similar to
the mock package installation in integration tests
[PR](elastic#227689).

**Flaky test runner**
- ESS:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9120
- Serverless:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9121

(cherry picked from commit 980add1)
banderror pushed a commit to banderror/kibana that referenced this pull request Aug 14, 2025
… reduce flakiness (elastic#229689)

**Resolves: elastic#182441
**Resolves: elastic#182442
**Resolves: elastic#228942
**Relates to: elastic#227689

## Summary

This PR installs mock prebuilt rules package for e2e Cypress test to
reduce flakniess caused by accessing to the real EPR. It's similar to
the mock package installation in integration tests
[PR](elastic#227689).

**Flaky test runner**
- ESS:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9120
- Serverless:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9121

(cherry picked from commit 980add1)

# Conflicts:
#	x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/prebuilt_rules/installation/install_via_fleet.cy.ts
#	x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/rule_actions/snoozing/rule_snoozing.cy.ts
@banderror
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
9.1

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

fkanout pushed a commit to fkanout/kibana that referenced this pull request Aug 14, 2025
… reduce flakiness (elastic#229689)

**Resolves: elastic#182441
**Resolves: elastic#182442
**Resolves: elastic#228942
**Relates to: elastic#227689

## Summary

This PR installs mock prebuilt rules package for e2e Cypress test to
reduce flakniess caused by accessing to the real EPR. It's similar to
the mock package installation in integration tests
[PR](elastic#227689).

**Flaky test runner**
- ESS:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9120
- Serverless:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9121
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Aug 15, 2025
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @maximpn

banderror pushed a commit to banderror/kibana that referenced this pull request Aug 16, 2025
… reduce flakiness (elastic#229689)

**Resolves: elastic#182441
**Resolves: elastic#182442
**Resolves: elastic#228942
**Relates to: elastic#227689

## Summary

This PR installs mock prebuilt rules package for e2e Cypress test to
reduce flakniess caused by accessing to the real EPR. It's similar to
the mock package installation in integration tests
[PR](elastic#227689).

**Flaky test runner**
- ESS:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9120
- Serverless:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9121

(cherry picked from commit 980add1)

# Conflicts:
#	x-pack/solutions/security/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/prebuilt_rules/installation/install_via_fleet.cy.ts
#	x-pack/solutions/security/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/rule_actions/snoozing/rule_snoozing.cy.ts
banderror pushed a commit to banderror/kibana that referenced this pull request Aug 16, 2025
… reduce flakiness (elastic#229689)

**Resolves: elastic#182441
**Resolves: elastic#182442
**Resolves: elastic#228942
**Relates to: elastic#227689

## Summary

This PR installs mock prebuilt rules package for e2e Cypress test to
reduce flakniess caused by accessing to the real EPR. It's similar to
the mock package installation in integration tests
[PR](elastic#227689).

**Flaky test runner**
- ESS:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9120
- Serverless:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9121

(cherry picked from commit 980add1)
@banderror
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
9.1
8.19

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

banderror added a commit that referenced this pull request Aug 17, 2025
…ess to reduce flakiness (#229689) (#231823)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[Security Solution] Install mock prebuilt rules package in Cypress to
reduce flakiness
(#229689)](#229689)

<!--- Backport version: 10.0.1 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Maxim
Palenov","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-08-13T12:31:26Z","message":"[Security
Solution] Install mock prebuilt rules package in Cypress to reduce
flakiness (#229689)\n\n**Resolves:
https://github.com/elastic/kibana/issues/182441**\n**Resolves:
https://github.com/elastic/kibana/issues/182442**\n**Resolves:
https://github.com/elastic/kibana/issues/228942**\n**Relates to:
https://github.com/elastic/kibana/pull/227689**\n\n## Summary\n\nThis PR
installs mock prebuilt rules package for e2e Cypress test to\nreduce
flakniess caused by accessing to the real EPR. It's similar to\nthe mock
package installation in integration
tests\n[PR](https://github.com/elastic/kibana/pull/227689).\n\n**Flaky
test runner**\n-
ESS:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9120\n-
Serverless:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9121","sha":"980add17c585d370d555e93b9146bbaad5d7a2d4","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["test","release_note:skip","impact:high","Team:Detections
and Resp","Team: SecuritySolution","Team:Detection Rule
Management","Feature:Prebuilt Detection
Rules","backport:version","v9.2.0","v9.1.3","v8.19.3","v9.0.6","v8.18.6"],"title":"[Security
Solution] Install mock prebuilt rules package in Cypress to reduce
flakiness","number":229689,"url":"https://github.com/elastic/kibana/pull/229689","mergeCommit":{"message":"[Security
Solution] Install mock prebuilt rules package in Cypress to reduce
flakiness (#229689)\n\n**Resolves:
https://github.com/elastic/kibana/issues/182441**\n**Resolves:
https://github.com/elastic/kibana/issues/182442**\n**Resolves:
https://github.com/elastic/kibana/issues/228942**\n**Relates to:
https://github.com/elastic/kibana/pull/227689**\n\n## Summary\n\nThis PR
installs mock prebuilt rules package for e2e Cypress test to\nreduce
flakniess caused by accessing to the real EPR. It's similar to\nthe mock
package installation in integration
tests\n[PR](https://github.com/elastic/kibana/pull/227689).\n\n**Flaky
test runner**\n-
ESS:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9120\n-
Serverless:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9121","sha":"980add17c585d370d555e93b9146bbaad5d7a2d4"}},"sourceBranch":"main","suggestedTargetBranches":["9.1"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/229689","number":229689,"mergeCommit":{"message":"[Security
Solution] Install mock prebuilt rules package in Cypress to reduce
flakiness (#229689)\n\n**Resolves:
https://github.com/elastic/kibana/issues/182441**\n**Resolves:
https://github.com/elastic/kibana/issues/182442**\n**Resolves:
https://github.com/elastic/kibana/issues/228942**\n**Relates to:
https://github.com/elastic/kibana/pull/227689**\n\n## Summary\n\nThis PR
installs mock prebuilt rules package for e2e Cypress test to\nreduce
flakniess caused by accessing to the real EPR. It's similar to\nthe mock
package installation in integration
tests\n[PR](https://github.com/elastic/kibana/pull/227689).\n\n**Flaky
test runner**\n-
ESS:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9120\n-
Serverless:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9121","sha":"980add17c585d370d555e93b9146bbaad5d7a2d4"}},{"branch":"9.1","label":"v9.1.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/231613","number":231613,"state":"OPEN"},{"branch":"9.0","label":"v9.0.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/231625","number":231625,"state":"MERGED","mergeCommit":{"sha":"486b8164ee7c6eabf4cd31d183409fe5c366a553","message":"[9.0]
[Security Solution] Install mock prebuilt rules package in Cypress to
reduce flakiness (#229689) (#231625)\n\n# Backport\n\nThis will backport
the following commits from `main` to `9.0`:\n- [[Security Solution]
Install mock prebuilt rules package in Cypress to\nreduce
flakiness\n(#229689)](https://github.com/elastic/kibana/pull/229689)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n"}},{"branch":"8.18","label":"v8.18.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/231628","number":231628,"state":"MERGED","mergeCommit":{"sha":"931e5ea6edad4fad74a3b116fea66e8f440eab43","message":"[8.18]
[Security Solution] Install mock prebuilt rules package in Cypress to
reduce flakiness (#229689) (#231628)\n\n# Backport\n\nThis will backport
the following commits from `main` to `8.18`:\n- [[Security Solution]
Install mock prebuilt rules package in Cypress to\nreduce
flakiness\n(#229689)](https://github.com/elastic/kibana/pull/229689)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n"}}]}]
BACKPORT-->

Co-authored-by: Maxim Palenov <[email protected]>
banderror added a commit that referenced this pull request Aug 17, 2025
…ress to reduce flakiness (#229689) (#231998)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Security Solution] Install mock prebuilt rules package in Cypress to
reduce flakiness
(#229689)](#229689)

<!--- Backport version: 10.0.0 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Maxim
Palenov","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-08-13T12:31:26Z","message":"[Security
Solution] Install mock prebuilt rules package in Cypress to reduce
flakiness (#229689)\n\n**Resolves:
https://github.com/elastic/kibana/issues/182441**\n**Resolves:
https://github.com/elastic/kibana/issues/182442**\n**Resolves:
https://github.com/elastic/kibana/issues/228942**\n**Relates to:
https://github.com/elastic/kibana/pull/227689**\n\n## Summary\n\nThis PR
installs mock prebuilt rules package for e2e Cypress test to\nreduce
flakniess caused by accessing to the real EPR. It's similar to\nthe mock
package installation in integration
tests\n[PR](https://github.com/elastic/kibana/pull/227689).\n\n**Flaky
test runner**\n-
ESS:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9120\n-
Serverless:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9121","sha":"980add17c585d370d555e93b9146bbaad5d7a2d4","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["test","release_note:skip","impact:high","backport
missing","Team:Detections and Resp","Team:
SecuritySolution","Team:Detection Rule Management","Feature:Prebuilt
Detection
Rules","backport:version","v9.2.0","v9.1.3","v8.19.3","v9.0.6","v8.18.6"],"title":"[Security
Solution] Install mock prebuilt rules package in Cypress to reduce
flakiness","number":229689,"url":"https://github.com/elastic/kibana/pull/229689","mergeCommit":{"message":"[Security
Solution] Install mock prebuilt rules package in Cypress to reduce
flakiness (#229689)\n\n**Resolves:
https://github.com/elastic/kibana/issues/182441**\n**Resolves:
https://github.com/elastic/kibana/issues/182442**\n**Resolves:
https://github.com/elastic/kibana/issues/228942**\n**Relates to:
https://github.com/elastic/kibana/pull/227689**\n\n## Summary\n\nThis PR
installs mock prebuilt rules package for e2e Cypress test to\nreduce
flakniess caused by accessing to the real EPR. It's similar to\nthe mock
package installation in integration
tests\n[PR](https://github.com/elastic/kibana/pull/227689).\n\n**Flaky
test runner**\n-
ESS:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9120\n-
Serverless:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9121","sha":"980add17c585d370d555e93b9146bbaad5d7a2d4"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/229689","number":229689,"mergeCommit":{"message":"[Security
Solution] Install mock prebuilt rules package in Cypress to reduce
flakiness (#229689)\n\n**Resolves:
https://github.com/elastic/kibana/issues/182441**\n**Resolves:
https://github.com/elastic/kibana/issues/182442**\n**Resolves:
https://github.com/elastic/kibana/issues/228942**\n**Relates to:
https://github.com/elastic/kibana/pull/227689**\n\n## Summary\n\nThis PR
installs mock prebuilt rules package for e2e Cypress test to\nreduce
flakniess caused by accessing to the real EPR. It's similar to\nthe mock
package installation in integration
tests\n[PR](https://github.com/elastic/kibana/pull/227689).\n\n**Flaky
test runner**\n-
ESS:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9120\n-
Serverless:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9121","sha":"980add17c585d370d555e93b9146bbaad5d7a2d4"}},{"branch":"9.1","label":"v9.1.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/231823","number":231823,"state":"OPEN"},{"branch":"8.19","label":"v8.19.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/231613","number":231613,"state":"OPEN"},{"branch":"9.0","label":"v9.0.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/231625","number":231625,"state":"MERGED","mergeCommit":{"sha":"486b8164ee7c6eabf4cd31d183409fe5c366a553","message":"[9.0]
[Security Solution] Install mock prebuilt rules package in Cypress to
reduce flakiness (#229689) (#231625)\n\n# Backport\n\nThis will backport
the following commits from `main` to `9.0`:\n- [[Security Solution]
Install mock prebuilt rules package in Cypress to\nreduce
flakiness\n(#229689)](https://github.com/elastic/kibana/pull/229689)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n"}},{"branch":"8.18","label":"v8.18.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/231628","number":231628,"state":"MERGED","mergeCommit":{"sha":"931e5ea6edad4fad74a3b116fea66e8f440eab43","message":"[8.18]
[Security Solution] Install mock prebuilt rules package in Cypress to
reduce flakiness (#229689) (#231628)\n\n# Backport\n\nThis will backport
the following commits from `main` to `8.18`:\n- [[Security Solution]
Install mock prebuilt rules package in Cypress to\nreduce
flakiness\n(#229689)](https://github.com/elastic/kibana/pull/229689)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n"}}]}]
BACKPORT-->

Co-authored-by: Maxim Palenov <[email protected]>
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Aug 17, 2025
NicholasPeretti pushed a commit to NicholasPeretti/kibana that referenced this pull request Aug 18, 2025
… reduce flakiness (elastic#229689)

**Resolves: elastic#182441
**Resolves: elastic#182442
**Resolves: elastic#228942
**Relates to: elastic#227689

## Summary

This PR installs mock prebuilt rules package for e2e Cypress test to
reduce flakniess caused by accessing to the real EPR. It's similar to
the mock package installation in integration tests
[PR](elastic#227689).

**Flaky test runner**
- ESS:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9120
- Serverless:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9121
qn895 pushed a commit to qn895/kibana that referenced this pull request Aug 26, 2025
… reduce flakiness (elastic#229689)

**Resolves: elastic#182441
**Resolves: elastic#182442
**Resolves: elastic#228942
**Relates to: elastic#227689

## Summary

This PR installs mock prebuilt rules package for e2e Cypress test to
reduce flakniess caused by accessing to the real EPR. It's similar to
the mock package installation in integration tests
[PR](elastic#227689).

**Flaky test runner**
- ESS:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9120
- Serverless:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9121
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels Feature:Prebuilt Detection Rules Security Solution Prebuilt Detection Rules area impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. release_note:skip Skip the PR/issue when compiling release notes Team:Detection Rule Management Security Detection Rule Management Team Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. test v8.18.6 v8.19.3 v9.0.6 v9.1.3 v9.2.0

Projects

None yet

5 participants