[Endpoint] Raise Jest budget for flaky CommandSelector console test - #290474
[Endpoint] Raise Jest budget for flaky CommandSelector console test#290474kibanamachine wants to merge 1 commit into
Conversation
The full-Console render in each test can exceed the default 5s budget under parallel CI load; raise the file's timeout to a wide margin.
|
🤖 Jobs for this PR can be triggered through checkboxes. 🚧
ℹ️ To trigger the CI, please tick the checkbox below 👇
|
⏭️ Flaky-fix verification skippedThis is a Jest-only change (a file-scoped Why the flaky test runner wasn't usedThe How release-note and backport labels were chosenApplied
|
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]
|
Fixes #287719
Summary
Console: CommandSelector when no command has been entered should update the console input with the selected command and close the popoverthrew a bareExceeded timeout of 5000 ms(run took 5.37s) — a per-test timeout, not an assertion failure.Consoleand renders theEuiSelectableoption list, which is intrinsically the slow part; under parallel CI load the render tips over the default 5s budget.jest.setTimeout(60_000), clearing the observed 5.37s slow run by ~11×.Context
CommandSelectorbuilds its options synchronously (useMemoover in-memory command definitions), so there is no product-side race and no earlier readiness signal a wait could reach — the render itself is the cost. Per the Jest guardrails, a timeout bump is the sanctioned fix when the render is the slow part.CommandSelectoragainst the console state provider directly instead of mounting the wholeConsole) would be a larger rewrite touching every test in the file, so the file-scoped bump is the smaller correct change.60_000matches existing precedent in this plugin (e.g.filters.test.tsx).kibana-on-merge - main(first, recurrence 2026-09-11).Verification
Verified locally
node scripts/eslint x-pack/solutions/security/plugins/security_solution/public/management/components/console/components/command_input/components/command_selector.test.tsxnode scripts/jest .../command_selector.test.tsx— full file passes with the fix; the previously failing test completes in ~1.0s in isolation.Not verified locally
Note
Share feedback in #kibana-qa. Mention
@copilotto make quick changes.