Skip to content

[8.19] [@kbn/discover-enhanced-plugin] Fix flaky aiops bundle detection in CDP perf test (#258122)#258342

Open
kibanamachine wants to merge 1 commit intoelastic:8.19from
kibanamachine:backport/8.19/pr-258122
Open

[8.19] [@kbn/discover-enhanced-plugin] Fix flaky aiops bundle detection in CDP perf test (#258122)#258342
kibanamachine wants to merge 1 commit intoelastic:8.19from
kibanamachine:backport/8.19/pr-258122

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

…DP perf test (elastic#258122)

## Summary

The Discover CDP perf test ("collects and validates JS Bundles loaded on
page") occasionally failed in CI (e.g. 1/25 runs) because the expected
"aiops" plugin bundle was missing from the captured list. The aiops
plugin is lazily loaded by Discover; the default 2s idle timeout in
`waitForJsLoad` was sometimes too short for that request to be initiated
and captured.

## Changes

- Increase `waitForJsLoad` timeout from 2s to 5s in the
bundle-validation test so lazy-loaded plugins (e.g. aiops) are
consistently captured before stats are collected.

(cherry picked from commit 33fc415)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Mar 18, 2026
@kibanamachine kibanamachine enabled auto-merge (squash) March 18, 2026 12:47
@elasticmachine
Copy link
Contributor

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