Skip to content

[9.3] [Upgrade Assistant] Migrate ES deprecations flaky integration tests to unit tests (#258142)#260111

Merged
kapral18 merged 3 commits intoelastic:9.3from
kapral18:backport/9.3/pr-258142
Mar 31, 2026
Merged

[9.3] [Upgrade Assistant] Migrate ES deprecations flaky integration tests to unit tests (#258142)#260111
kapral18 merged 3 commits intoelastic:9.3from
kapral18:backport/9.3/pr-258142

Conversation

@kapral18
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.3:

Questions ?

Please refer to the Backport tool documentation

@kapral18 kapral18 requested a review from kibanamachine as a code owner March 27, 2026 21:10
@kapral18 kapral18 added the backport This PR is a backport of another PR label Mar 27, 2026
@kapral18 kapral18 enabled auto-merge (squash) March 27, 2026 21:10
@kapral18 kapral18 force-pushed the backport/9.3/pr-258142 branch from f7f6090 to cd4d765 Compare March 30, 2026 00:27
kapral18 and others added 3 commits March 30, 2026 15:19
…o unit tests (elastic#258142)

- Migrates ES deprecations coverage from flaky client integration tests
to focused unit tests.
- Adds unit coverage for the ES deprecations page/table (refresh,
counts, filters/search, pagination) and key deprecation types (default,
index settings, cluster settings, ML snapshots, indices reindex/readonly
actions, data streams migration).
- Removes the legacy `__jest__/client_integration/es_deprecations` specs
and harness.

- Closes elastic#241740
- Closes elastic#248431
- Closes elastic#248433
- Closes elastic#257356

- [Integration → unit test mapping
(gist)](https://gist.github.com/kapral18/223345de2e7b80156a8d82c94ca05098)

- [x] `node scripts/check_changes.ts`
- [x] `yarn test:jest
x-pack/platform/plugins/private/upgrade_assistant/public/application/components/es_deprecations`
- [x] `yarn test:type_check --project
x-pack/platform/plugins/private/upgrade_assistant/tsconfig.json`

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

* **Tests**
* Reorganized test infrastructure for Elasticsearch deprecations module,
consolidating mock data into centralized fixtures and refactoring
integration tests into focused unit tests for individual components and
scenarios.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

(cherry picked from commit bca01c1)
Co-authored-by: Claude <noreply@anthropic.com>
@kapral18 kapral18 force-pushed the backport/9.3/pr-258142 branch from cd4d765 to 410e79b Compare March 30, 2026 13:20
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
upgradeAssistant 226.7KB 226.7KB +33.0B
Unknown metric groups

References to deprecated APIs

id before after diff
upgradeAssistant 24 22 -2

History

@kapral18 kapral18 requested a review from SoniaSanzV March 30, 2026 20:57
@kapral18 kapral18 merged commit c37dfee into elastic:9.3 Mar 31, 2026
14 checks passed
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