[Triggers Actions UI] Wait for connectors list to filter in FTR searchConnectors helper - #286190
Conversation
Fixes #235623 Co-Authored-By: Claude Opus 4 (1M context) <noreply@anthropic.com>
|
/flaky ftrConfig:x-pack/platform/test/functional_with_es_ssl/apps/rules/config.ts:30 Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
🔍 Verifying the fixThis fix hardens the shared Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
Flaky Test Runner✅ Build triggered - kibana-flaky-test-suite-runner#13944
|
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#13944[❌] x-pack/platform/test/functional_with_es_ssl/apps/rules/config.ts: 28/30 tests passed. |
…it-78a3fb808df10950
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Unknown metric groupswarm start memory
Test Failures
History
|
|
Starting backport for target branches: 8.19, 9.4, 9.5 |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
… searchConnectors helper (#286190) (#290642) # Backport This will backport the following commits from `main` to `9.5`: - [[Triggers Actions UI] Wait for connectors list to filter in FTR searchConnectors helper (#286190)](#286190) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Kibana Machine","email":"42973632+kibanamachine@users.noreply.github.com"},"sourceCommit":{"committedDate":"2026-09-11T16:21:49Z","message":"[Triggers Actions UI] Wait for connectors list to filter in FTR searchConnectors helper (#286190)\n\nFixes #235623\n\n### Summary\n\n- The Opsgenie connector FTR test asserted the connectors list had\nnarrowed to 1 row but read **6**, because the shared `searchConnectors`\npage-object helper returned before the client-side search filtered the\ntable.\n- The helper waited on\n`.euiBasicTable[data-test-subj=\"actionsTable\"]:not(.euiBasicTable-loading)`,\nwhose loading class only tracks the initial data fetch — never EUI's\ndebounced in-memory search — so it resolved instantly against the\nstill-unfiltered table, and `getConnectorsList()` read all accumulated\nconnectors.\n- Replaced that wait with a bounded `retry.waitFor` that re-reads the\nrendered rows until they have all settled to match the search text. The\nsearch action (type + ENTER) is still issued once; only the DOM read is\npolled, so no interaction is retried.\n\n### Context\n\n- Follows the root cause and fix proposed by the Failed Test\nInvestigator (see the [issue\ncomment](https://github.com/elastic/kibana/issues/235623#issuecomment-5349225113)).\n- Long-standing timing race, not a product bug: ~11 failures over 11\nmonths, all on `kibana-on-merge` (local, not Cloud/serverless), spanning\n9.1 → 8.19; the latest failure was 2026-08-19 on `kibana-on-merge -\n8.19`.\n- On `main` and `9.5` the Opsgenie FTR spec has been migrated/relocated\nto Scout, but the buggy shared helper still lives on `main` (used by\n`apps/rules/details.ts`) and on every open release branch — so the fix\nlands on `main` and backports to the branches where the Opsgenie FTR\ntest still runs (9.4, 8.19).\n\n<details>\n<summary>Verification</summary>\n\n#### Verified locally\n\n✅ Passed: `node scripts/eslint\nx-pack/platform/test/functional_with_es_ssl/page_objects/triggers_actions_ui_page.ts`\n\n#### Not verified locally\n\n- FTR tests need a live Elasticsearch + Kibana and cannot run on this\nrunner.\n- The failing `opsgenie.ts` spec no longer exists on `main` (migrated to\nScout), so it can only be exercised on the 9.4 / 8.19 release branches\nonce this fix is backported; behavior under CI parallel load was not\nmeasured.\n\n</details>\n\n<details>\n<summary>Backporting guidance</summary>\n\nApplied `backport:all-open`. The shared `triggers_actions_ui_page.ts`\nhelper exists byte-identically on every open release branch (`9.5`,\n`9.4`, `8.19` per `versions.json`) and the patch applies unchanged. On\n9.4 and 8.19 this directly fixes the flaky Opsgenie FTR spec; on 9.5 the\nOpsgenie spec has been relocated to Scout but the shared helper is still\nused by other FTR connector/rules tests, so the fix is a safe\nimprovement there too.\n\n</details>\n\n> [!NOTE]\n> Share feedback in #kibana-qa. Mention `@copilot` to make quick\nchanges.\n\n\n\n\n> [!WARNING]\n> <details>\n> <summary>Firewall blocked 3 domains</summary>\n>\n> The following domains were blocked by the firewall during workflow\nexecution:\n>\n> - `awmgmcpg`\n> - `iojs.org`\n> - `nodejs.org`\n>> To allow these domains, add them to the `network.allowed` list in\nyour workflow frontmatter:\n>\n> ```yaml\n> network:\n> allowed:\n> - defaults\n> - \"awmgmcpg\"\n> - \"iojs.org\"\n> - \"nodejs.org\"\n> ```\n>\n> See [Network\nConfiguration](https://github.github.com/gh-aw/reference/network/) for\nmore information.\n>\n> </details>\n\n\n> Generated by [Flaky Test\nFixer](https://github.com/elastic/kibana/actions/runs/32313293293) for\n#235623 · 285.6 AIC · ⌖ 21 AIC · ⊞ 10.7K ·\n[◷](https://github.com/search?q=repo%3Aelastic%2Fkibana+%22gh-aw-workflow-id%3A+flaky-test-fixer%22&type=pullrequests)\n\n\n\n\n\n\nCo-authored-by: Claude Opus 4 (1M context) <noreply@anthropic.com>\nCo-authored-by: Cesare de Cal <cesare.decal@elastic.co>","sha":"ec6c7d8930560580b71068f0cae5499557ccd213","branchLabelMapping":{"^v9.6.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","flaky-test-fixer","flaky-fix-check:passed","v9.6.0"],"title":"[Triggers Actions UI] Wait for connectors list to filter in FTR searchConnectors helper","number":286190,"url":"https://github.com/elastic/kibana/pull/286190","mergeCommit":{"message":"[Triggers Actions UI] Wait for connectors list to filter in FTR searchConnectors helper (#286190)\n\nFixes #235623\n\n### Summary\n\n- The Opsgenie connector FTR test asserted the connectors list had\nnarrowed to 1 row but read **6**, because the shared `searchConnectors`\npage-object helper returned before the client-side search filtered the\ntable.\n- The helper waited on\n`.euiBasicTable[data-test-subj=\"actionsTable\"]:not(.euiBasicTable-loading)`,\nwhose loading class only tracks the initial data fetch — never EUI's\ndebounced in-memory search — so it resolved instantly against the\nstill-unfiltered table, and `getConnectorsList()` read all accumulated\nconnectors.\n- Replaced that wait with a bounded `retry.waitFor` that re-reads the\nrendered rows until they have all settled to match the search text. The\nsearch action (type + ENTER) is still issued once; only the DOM read is\npolled, so no interaction is retried.\n\n### Context\n\n- Follows the root cause and fix proposed by the Failed Test\nInvestigator (see the [issue\ncomment](https://github.com/elastic/kibana/issues/235623#issuecomment-5349225113)).\n- Long-standing timing race, not a product bug: ~11 failures over 11\nmonths, all on `kibana-on-merge` (local, not Cloud/serverless), spanning\n9.1 → 8.19; the latest failure was 2026-08-19 on `kibana-on-merge -\n8.19`.\n- On `main` and `9.5` the Opsgenie FTR spec has been migrated/relocated\nto Scout, but the buggy shared helper still lives on `main` (used by\n`apps/rules/details.ts`) and on every open release branch — so the fix\nlands on `main` and backports to the branches where the Opsgenie FTR\ntest still runs (9.4, 8.19).\n\n<details>\n<summary>Verification</summary>\n\n#### Verified locally\n\n✅ Passed: `node scripts/eslint\nx-pack/platform/test/functional_with_es_ssl/page_objects/triggers_actions_ui_page.ts`\n\n#### Not verified locally\n\n- FTR tests need a live Elasticsearch + Kibana and cannot run on this\nrunner.\n- The failing `opsgenie.ts` spec no longer exists on `main` (migrated to\nScout), so it can only be exercised on the 9.4 / 8.19 release branches\nonce this fix is backported; behavior under CI parallel load was not\nmeasured.\n\n</details>\n\n<details>\n<summary>Backporting guidance</summary>\n\nApplied `backport:all-open`. The shared `triggers_actions_ui_page.ts`\nhelper exists byte-identically on every open release branch (`9.5`,\n`9.4`, `8.19` per `versions.json`) and the patch applies unchanged. On\n9.4 and 8.19 this directly fixes the flaky Opsgenie FTR spec; on 9.5 the\nOpsgenie spec has been relocated to Scout but the shared helper is still\nused by other FTR connector/rules tests, so the fix is a safe\nimprovement there too.\n\n</details>\n\n> [!NOTE]\n> Share feedback in #kibana-qa. Mention `@copilot` to make quick\nchanges.\n\n\n\n\n> [!WARNING]\n> <details>\n> <summary>Firewall blocked 3 domains</summary>\n>\n> The following domains were blocked by the firewall during workflow\nexecution:\n>\n> - `awmgmcpg`\n> - `iojs.org`\n> - `nodejs.org`\n>> To allow these domains, add them to the `network.allowed` list in\nyour workflow frontmatter:\n>\n> ```yaml\n> network:\n> allowed:\n> - defaults\n> - \"awmgmcpg\"\n> - \"iojs.org\"\n> - \"nodejs.org\"\n> ```\n>\n> See [Network\nConfiguration](https://github.github.com/gh-aw/reference/network/) for\nmore information.\n>\n> </details>\n\n\n> Generated by [Flaky Test\nFixer](https://github.com/elastic/kibana/actions/runs/32313293293) for\n#235623 · 285.6 AIC · ⌖ 21 AIC · ⊞ 10.7K ·\n[◷](https://github.com/search?q=repo%3Aelastic%2Fkibana+%22gh-aw-workflow-id%3A+flaky-test-fixer%22&type=pullrequests)\n\n\n\n\n\n\nCo-authored-by: Claude Opus 4 (1M context) <noreply@anthropic.com>\nCo-authored-by: Cesare de Cal <cesare.decal@elastic.co>","sha":"ec6c7d8930560580b71068f0cae5499557ccd213"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.6.0","branchLabelMappingKey":"^v9.6.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/286190","number":286190,"mergeCommit":{"message":"[Triggers Actions UI] Wait for connectors list to filter in FTR searchConnectors helper (#286190)\n\nFixes #235623\n\n### Summary\n\n- The Opsgenie connector FTR test asserted the connectors list had\nnarrowed to 1 row but read **6**, because the shared `searchConnectors`\npage-object helper returned before the client-side search filtered the\ntable.\n- The helper waited on\n`.euiBasicTable[data-test-subj=\"actionsTable\"]:not(.euiBasicTable-loading)`,\nwhose loading class only tracks the initial data fetch — never EUI's\ndebounced in-memory search — so it resolved instantly against the\nstill-unfiltered table, and `getConnectorsList()` read all accumulated\nconnectors.\n- Replaced that wait with a bounded `retry.waitFor` that re-reads the\nrendered rows until they have all settled to match the search text. The\nsearch action (type + ENTER) is still issued once; only the DOM read is\npolled, so no interaction is retried.\n\n### Context\n\n- Follows the root cause and fix proposed by the Failed Test\nInvestigator (see the [issue\ncomment](https://github.com/elastic/kibana/issues/235623#issuecomment-5349225113)).\n- Long-standing timing race, not a product bug: ~11 failures over 11\nmonths, all on `kibana-on-merge` (local, not Cloud/serverless), spanning\n9.1 → 8.19; the latest failure was 2026-08-19 on `kibana-on-merge -\n8.19`.\n- On `main` and `9.5` the Opsgenie FTR spec has been migrated/relocated\nto Scout, but the buggy shared helper still lives on `main` (used by\n`apps/rules/details.ts`) and on every open release branch — so the fix\nlands on `main` and backports to the branches where the Opsgenie FTR\ntest still runs (9.4, 8.19).\n\n<details>\n<summary>Verification</summary>\n\n#### Verified locally\n\n✅ Passed: `node scripts/eslint\nx-pack/platform/test/functional_with_es_ssl/page_objects/triggers_actions_ui_page.ts`\n\n#### Not verified locally\n\n- FTR tests need a live Elasticsearch + Kibana and cannot run on this\nrunner.\n- The failing `opsgenie.ts` spec no longer exists on `main` (migrated to\nScout), so it can only be exercised on the 9.4 / 8.19 release branches\nonce this fix is backported; behavior under CI parallel load was not\nmeasured.\n\n</details>\n\n<details>\n<summary>Backporting guidance</summary>\n\nApplied `backport:all-open`. The shared `triggers_actions_ui_page.ts`\nhelper exists byte-identically on every open release branch (`9.5`,\n`9.4`, `8.19` per `versions.json`) and the patch applies unchanged. On\n9.4 and 8.19 this directly fixes the flaky Opsgenie FTR spec; on 9.5 the\nOpsgenie spec has been relocated to Scout but the shared helper is still\nused by other FTR connector/rules tests, so the fix is a safe\nimprovement there too.\n\n</details>\n\n> [!NOTE]\n> Share feedback in #kibana-qa. Mention `@copilot` to make quick\nchanges.\n\n\n\n\n> [!WARNING]\n> <details>\n> <summary>Firewall blocked 3 domains</summary>\n>\n> The following domains were blocked by the firewall during workflow\nexecution:\n>\n> - `awmgmcpg`\n> - `iojs.org`\n> - `nodejs.org`\n>> To allow these domains, add them to the `network.allowed` list in\nyour workflow frontmatter:\n>\n> ```yaml\n> network:\n> allowed:\n> - defaults\n> - \"awmgmcpg\"\n> - \"iojs.org\"\n> - \"nodejs.org\"\n> ```\n>\n> See [Network\nConfiguration](https://github.github.com/gh-aw/reference/network/) for\nmore information.\n>\n> </details>\n\n\n> Generated by [Flaky Test\nFixer](https://github.com/elastic/kibana/actions/runs/32313293293) for\n#235623 · 285.6 AIC · ⌖ 21 AIC · ⊞ 10.7K ·\n[◷](https://github.com/search?q=repo%3Aelastic%2Fkibana+%22gh-aw-workflow-id%3A+flaky-test-fixer%22&type=pullrequests)\n\n\n\n\n\n\nCo-authored-by: Claude Opus 4 (1M context) <noreply@anthropic.com>\nCo-authored-by: Cesare de Cal <cesare.decal@elastic.co>","sha":"ec6c7d8930560580b71068f0cae5499557ccd213"}}]}] BACKPORT--> Co-authored-by: Claude Opus 4 (1M context) <noreply@anthropic.com> Co-authored-by: Cesare de Cal <cesare.decal@elastic.co>
Fixes #235623
Summary
searchConnectorspage-object helper returned before the client-side search filtered the table..euiBasicTable[data-test-subj="actionsTable"]:not(.euiBasicTable-loading), whose loading class only tracks the initial data fetch — never EUI's debounced in-memory search — so it resolved instantly against the still-unfiltered table, andgetConnectorsList()read all accumulated connectors.retry.waitForthat re-reads the rendered rows until they have all settled to match the search text. The search action (type + ENTER) is still issued once; only the DOM read is polled, so no interaction is retried.Context
kibana-on-merge(local, not Cloud/serverless), spanning 9.1 → 8.19; the latest failure was 2026-08-19 onkibana-on-merge - 8.19.mainand9.5the Opsgenie FTR spec has been migrated/relocated to Scout, but the buggy shared helper still lives onmain(used byapps/rules/details.ts) and on every open release branch — so the fix lands onmainand backports to the branches where the Opsgenie FTR test still runs (9.4, 8.19).Verification
Verified locally
✅ Passed:
node scripts/eslint x-pack/platform/test/functional_with_es_ssl/page_objects/triggers_actions_ui_page.tsNot verified locally
opsgenie.tsspec no longer exists onmain(migrated to Scout), so it can only be exercised on the 9.4 / 8.19 release branches once this fix is backported; behavior under CI parallel load was not measured.Backporting guidance
Applied
backport:all-open. The sharedtriggers_actions_ui_page.tshelper exists byte-identically on every open release branch (9.5,9.4,8.19perversions.json) and the patch applies unchanged. On 9.4 and 8.19 this directly fixes the flaky Opsgenie FTR spec; on 9.5 the Opsgenie spec has been relocated to Scout but the shared helper is still used by other FTR connector/rules tests, so the fix is a safe improvement there too.Note
Share feedback in #kibana-qa. Mention
@copilotto make quick changes.Warning
Firewall blocked 3 domains
The following domains were blocked by the firewall during workflow execution:
awmgmcpgiojs.orgnodejs.orgSee Network Configuration for more information.