Skip to content

[Scout] Add missing globalTeardownHook for Discover, Discover Enhanced, and Streams App#272042

Open
steliosmavro wants to merge 2 commits into
elastic:mainfrom
steliosmavro:steli/scout-add-missing-global-teardown-hooks
Open

[Scout] Add missing globalTeardownHook for Discover, Discover Enhanced, and Streams App#272042
steliosmavro wants to merge 2 commits into
elastic:mainfrom
steliosmavro:steli/scout-add-missing-global-teardown-hooks

Conversation

@steliosmavro
Copy link
Copy Markdown
Contributor

Summary

Adds global.teardown.ts files for three Scout parallel test suites that were setting cluster-wide state in their setup hooks without cleaning it up afterward. Teardown is intentionally opt-in in Scout (file presence is what enables it), so these suites were leaving dirty state behind for any subsequent config sharing the same cluster.

Changes

  • Discover: resets the discover.isEsqlDefault feature flag override (passes null to remove the override and restore the registered default) and deletes the custom test-metrics-experience / test-metrics-experience-other indices created by the setup hook
  • Discover Enhanced: resets the same discover.isEsqlDefault feature flag override
  • Streams App: calls apiServices.streams.disable() to undo the enable() called in setup

…d, and Streams App

Resets the `discover.isEsqlDefault` feature flag override (null removes the
override and restores the registered default) and deletes the custom
`test-metrics-*` indices created by Discover's setup. Disables streams after
Streams App tests finish.
@steliosmavro steliosmavro self-assigned this May 31, 2026
@steliosmavro steliosmavro requested review from a team as code owners May 31, 2026 09:26
@steliosmavro steliosmavro added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting test:scout labels May 31, 2026
@steliosmavro steliosmavro requested a review from a team as a code owner May 31, 2026 09:43
@steliosmavro steliosmavro requested a review from dmlemeshko May 31, 2026 09:55
@kibanamachine
Copy link
Copy Markdown
Contributor

kibanamachine commented May 31, 2026

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] Scout Lane #4 - stateful-classic / default / local-stateful-classic - global.teardown.ts - Teardown uptime test data
  • [job] [logs] Scout Lane #4 - stateful-classic / default / local-stateful-classic - global.teardown.ts - Teardown uptime test data

Metrics [docs]

✅ unchanged

History

cc @steliosmavro

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 test:scout

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants