Skip to content

[9.1] [Security Solution] Wait for Fleet plugin setup completion in Rule Management integration tests (#230338)#230573

Merged
maximpn merged 1 commit intoelastic:9.1from
maximpn:backport/9.1/pr-230338
Aug 5, 2025
Merged

[9.1] [Security Solution] Wait for Fleet plugin setup completion in Rule Management integration tests (#230338)#230573
maximpn merged 1 commit intoelastic:9.1from
maximpn:backport/9.1/pr-230338

Conversation

@maximpn
Copy link
Contributor

@maximpn maximpn commented Aug 5, 2025

Backport

This will backport the following commits from main to 9.1:

Questions ?

Please refer to the Backport tool documentation

…nagement integration tests (elastic#230338)

**Resolves: elastic#228844
**Resolves: elastic#229297
**Relates to: elastic#230363

## Summary

This PR fixes integration tests flakiness caused by a race condition with the Fleet setup logic.

## Details

Investigation of the related flaky integration tests has revealed that Fleet's setup logic (usually executed upon Kibana startup) performs installed packages re-installation. However, Fleet allows to make API calls like install a package. Subsequently some package (for example `security_detection_engine`) might be installed before Fleet's setup logic completed. In particular a package installation API call leads to creation of package installation SO which is read by Fleet's setup logic. So Fleet "thinks" the package was installed some time ago and required re-installation.

There is a Fleet bug ticket describing this issue.

This fix in this PR just wait for Fleet plugin to finish setup before running integration tests for Rule Management area.

## Flaky test runner

- ✅ [200 runs](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8999)

(cherry picked from commit 2250c52)
@maximpn maximpn merged commit e0a5864 into elastic:9.1 Aug 5, 2025
16 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants