-
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 flake in bundled_prebuilt_rules_package/prerelease_packages.ts
API Integration test
#169780
Conversation
40d884d
to
335bffa
Compare
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
Pinging @elastic/security-solution (Team: SecuritySolution) |
...ne_api_integration/security_and_spaces/bundled_prebuilt_rules_package/prerelease_packages.ts
Outdated
Show resolved
Hide resolved
Refactored this PR to include one additional step to explicitly call the Fleet endpoint to install the latest package, and doing assertions before actually installing the rules. Previously we were calling directly I'll run the flaky test runner, but please re-review. Thanks! |
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
@jpdjere could you add detailed description for installPrebuiltRulesPackageViaFleetAPI
, installPrebuiltRules
and installPrebuiltRulesPackageByVersion
? So the difference is clear for any unprepared reader. It's easy to forget what the functions do exactly and I spend some time to remember. For example installPrebuiltRulesPackageViaFleetAPI
and installPrebuiltRulesPackageByVersion
have the same description Installs prebuilt rules package
security_detection_engine by version.
and it's so confusing.
ca9f678
to
0e1a232
Compare
💛 Build succeeded, but was flaky
Failed CI Steps
Metrics [docs]
History
To update your PR or re-run it, just comment with: cc @jpdjere |
…release_packages.ts` API Integration test (elastic#169780) Fixes: elastic#162192 ## Summary Removes flake by explicitly calling the Fleet endpoint to install the latest package, and doing assertions before actually installing the rules. Previously we were calling directly `installPrebuiltRules` without having explicitly installed the package before. The old installation endpoint would check that the package was installed before proceeding, but the new install method doesn't. So the explicit installation is required. ## Flaky test runs - ~https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3721~ - ~https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3730 [CONTROL - NO CHANGES]~ - https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3773 [After refactor] (cherry picked from commit d1b7b7f)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
11 similar comments
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Fixes: #162192
Summary
Removes flake by explicitly calling the Fleet endpoint to install the latest package, and doing assertions before actually installing the rules.
Previously we were calling directly
installPrebuiltRules
without having explicitly installed the package before. The old installation endpoint would check that the package was installed before proceeding, but the new install method doesn't. So the explicit installation is required.Flaky test runs
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3721https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3730 [CONTROL - NO CHANGES]