Skip to content

[skip mki] create_steps.spec.ts#263984

Merged
dmlemeshko merged 1 commit intoelastic:mainfrom
dmlemeshko:skip-streams-create-steps-test-on-mki
Apr 17, 2026
Merged

[skip mki] create_steps.spec.ts#263984
dmlemeshko merged 1 commit intoelastic:mainfrom
dmlemeshko:skip-streams-create-steps-test-on-mki

Conversation

@dmlemeshko
Copy link
Copy Markdown
Contributor

Summary

Skipping test for MKI runs due to regular failures

See #258589

@dmlemeshko dmlemeshko requested review from a team as code owners April 17, 2026 08:35
@dmlemeshko dmlemeshko added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting labels Apr 17, 2026
@macroscopeapp
Copy link
Copy Markdown
Contributor

macroscopeapp Bot commented Apr 17, 2026

Catch flakiness early (recommended)

Recommended before merge: run the flaky test runner against this PR to catch flakiness early.

Trigger a run with the Flaky Test Runner UI or post this comment on the PR:

/flaky scoutConfig:x-pack/platform/plugins/shared/streams_app/test/scout/ui/playwright.config.ts:30

This check is experimental. Share your feedback in the #appex-qa channel.

Posted via Macroscope — Flaky Test Runner nudge

@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

✅ unchanged

@dmlemeshko dmlemeshko merged commit 9ede2db into elastic:main Apr 17, 2026
26 checks passed
rStelmach added a commit that referenced this pull request Apr 21, 2026
closes: #258589

## Summary

Re-enables the Streams UI test `should not show Technical Preview badge
when AI suggestions are unavailable` on serverless observability (MKI).
The test was skipped in #263984 while it was failing deterministically
on the MKI.
 The underlying bug was fixed by #263843 after this test was skipped


## Root cause

**Root cause of the original failure (fixed):**
Before #263843, `useLoadConnectors` in `@kbn/inference-connectors` had a
client-side fallback that called `fetchConnectorById` against `GET
/internal/inference/connectors/{id}` whenever `soEntryFound === false`
and `defaultConnectorId` was truthy. The test's `page.route` mock only
covered `**/internal/search_inference_endpoints/connectors*`, so the
fallback slipped past the mock and returned the project's EIS connector.
The Technical Preview badge (and the "Elastic Managed LLM is the new
default" callout) then rendered, and the assertion failed.

This was MKI-only because the fallback is gated on `defaultConnectorId`
being truthy, which requires the `GEN_AI_SETTINGS_DEFAULT_AI_CONNECTOR`
uiSetting to be configured. Serverless observability CI projects
preconfigure that setting to an EIS inference endpoint; local stateful /
ECH environments do not, so the fallback short-circuited there.

**How #263843 fixed it:**
Removed the client-side fallback entirely. Default-connector merging now
happens server-side in `mergeConnectors`
(`x-pack/platform/plugins/shared/search_inference_endpoints/server/lib/merge_connectors.ts`).
After the fix, `useLoadConnectors` makes exactly one HTTP call to the
endpoint the test already mocks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes v9.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants