[Upgrade Assistant] Migrate Kibana deprecations flaky integration tests to unit tests#258981
Conversation
d99525f to
bb3ed6f
Compare
|
Pinging @elastic/kibana-management (Team:Kibana Management) |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (8)
💤 Files with no reviewable changes (4)
📝 WalkthroughWalkthroughThis change migrates test coverage for the Kibana deprecations feature from integration-style tests in the 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Tools execution failed with the following error: Failed to run tools: 13 INTERNAL: Received RST_STREAM with code 2 (Internal server error) Comment Tip You can enable review details to help with troubleshooting, context usage and more.Enable the |
bb3ed6f to
8862f7f
Compare
8862f7f to
e3c1c6e
Compare
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]
History
|
damian-polewski
left a comment
There was a problem hiding this comment.
Great job migrating those integration tests to unit tests! I have two small comment but overall looks good!
...sistant/public/application/components/kibana_deprecations/kibana_deprecations_table.test.tsx
Outdated
Show resolved
Hide resolved
...istant/public/application/components/kibana_deprecations/deprecation_details_flyout.test.tsx
Show resolved
Hide resolved
…ts to unit tests Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
e3c1c6e to
d7db7f6
Compare
…ogress resolve Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
damian-polewski
left a comment
There was a problem hiding this comment.
Thanks for addressing my feedback! LGTM!
|
Starting backport for target branches: 9.3 https://github.com/elastic/kibana/actions/runs/23617119803 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
…hanges * commit '22bf09c82658b9511cbb2ad13f6dd29ad3526472': (21 commits) [Overlays System Flyout]: Support Child History (elastic#256339) KUA-Update event naming format and examples (elastic#259846) Fix pagerduty connector codeownership (elastic#259807) [Upgrade Assistant] Migrate Kibana deprecations flaky integration tests to unit tests (elastic#258981) [Upgrade Assistant] Migrate ES deprecations flaky integration tests to unit tests (elastic#258142) [Index Management] Migrate flaky integration tests to unit tests (elastic#258942) [Cases] Rename attachment id to saved object id (elastic#259158) [Entity Store] Change hash algo to sha256 (elastic#259453) [Security Solution] fixed enhanced security profile header showing for non-alert documents (elastic#259801) Update LaunchDarkly (main) (elastic#259008) [Discover] Add observability default ES|QL query (elastic#257268) Update dependency @redocly/cli to v2.21.1 (main) (elastic#259016) Gap reason detected (elastic#258231) [One Workflow] Historical executionContext and telemetry (elastic#258623) coderabbit: drop SigEvents (elastic#259863) [ci] Bump cypress disk (elastic#259861) Server timings (elastic#258915) Replace deprecated EUI icons in files owned by @elastic/kibana-cases (elastic#255633) [ci] Bump storybooks disk (elastic#259858) [drilldowns] require embeddables to opt into ON_OPEN_PANEL_MENU trigger (elastic#259637) ...
…ts to unit tests (elastic#258981) ## Summary - Migrates Kibana deprecations coverage from flaky client integration tests to focused unit tests. - Adds unit coverage for the Kibana deprecations list/table (refresh, counts, filters/clear, details link) and the details flyout (manual steps, docs link, quick resolve success/failure). - Removes legacy `__jest__/client_integration/kibana_deprecations` specs and drops `shared_imports` usage in favor of `@kbn/es-ui-shared-plugin/public` imports. ## Closes - Closes elastic#253915 ## Coverage mapping - [Integration → unit test mapping (gist)](https://gist.github.com/kapral18/a3d2f778d575daa2f3dfcd8e0f4b66e4) ## Test plan - [x] `node scripts/check_changes.ts` - [x] `yarn test:jest x-pack/platform/plugins/private/upgrade_assistant/public/application/components/kibana_deprecations --silent` Assisted with Cursor using GPT-5.2 --------- Co-authored-by: Cursor <cursoragent@cursor.com> (cherry picked from commit 5c40b03) # Conflicts: # x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecation_details_flyout/deprecation_details_flyout.test.ts # x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecations_table/deprecations_table.test.ts # x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecations_table/error_handling.test.ts
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…ts to unit tests (elastic#258981) ## Summary - Migrates Kibana deprecations coverage from flaky client integration tests to focused unit tests. - Adds unit coverage for the Kibana deprecations list/table (refresh, counts, filters/clear, details link) and the details flyout (manual steps, docs link, quick resolve success/failure). - Removes legacy `__jest__/client_integration/kibana_deprecations` specs and drops `shared_imports` usage in favor of `@kbn/es-ui-shared-plugin/public` imports. ## Closes - Closes elastic#253915 ## Coverage mapping - [Integration → unit test mapping (gist)](https://gist.github.com/kapral18/a3d2f778d575daa2f3dfcd8e0f4b66e4) ## Test plan - [x] `node scripts/check_changes.ts` - [x] `yarn test:jest x-pack/platform/plugins/private/upgrade_assistant/public/application/components/kibana_deprecations --silent` Assisted with Cursor using GPT-5.2 --------- Co-authored-by: Cursor <cursoragent@cursor.com> (cherry picked from commit 5c40b03) # Conflicts: # x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecation_details_flyout/deprecation_details_flyout.test.ts # x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecations_table/deprecations_table.test.ts # x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecations_table/error_handling.test.ts
…ts to unit tests (elastic#258981) ## Summary - Migrates Kibana deprecations coverage from flaky client integration tests to focused unit tests. - Adds unit coverage for the Kibana deprecations list/table (refresh, counts, filters/clear, details link) and the details flyout (manual steps, docs link, quick resolve success/failure). - Removes legacy `__jest__/client_integration/kibana_deprecations` specs and drops `shared_imports` usage in favor of `@kbn/es-ui-shared-plugin/public` imports. ## Closes - Closes elastic#253915 ## Coverage mapping - [Integration → unit test mapping (gist)](https://gist.github.com/kapral18/a3d2f778d575daa2f3dfcd8e0f4b66e4) ## Test plan - [x] `node scripts/check_changes.ts` - [x] `yarn test:jest x-pack/platform/plugins/private/upgrade_assistant/public/application/components/kibana_deprecations --silent` Assisted with Cursor using GPT-5.2 --------- Co-authored-by: Cursor <cursoragent@cursor.com> (cherry picked from commit 5c40b03) # Conflicts: # x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecation_details_flyout/deprecation_details_flyout.test.ts # x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecations_table/deprecations_table.test.ts # x-pack/platform/plugins/private/upgrade_assistant/__jest__/client_integration/kibana_deprecations/deprecations_table/error_handling.test.ts
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
…on tests to unit tests (#258981) (#260129) # Backport This will backport the following commits from `main` to `9.3`: - [[Upgrade Assistant] Migrate Kibana deprecations flaky integration tests to unit tests (#258981)](#258981) <!--- Backport version: 11.0.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Karen Grigoryan","email":"karen.grigoryan@elastic.co"},"sourceCommit":{"committedDate":"2026-03-26T20:44:19Z","message":"[Upgrade Assistant] Migrate Kibana deprecations flaky integration tests to unit tests (#258981)\n\n## Summary\n- Migrates Kibana deprecations coverage from flaky client integration\ntests to focused unit tests.\n- Adds unit coverage for the Kibana deprecations list/table (refresh,\ncounts, filters/clear, details link) and the details flyout (manual\nsteps, docs link, quick resolve success/failure).\n- Removes legacy `__jest__/client_integration/kibana_deprecations` specs\nand drops `shared_imports` usage in favor of\n`@kbn/es-ui-shared-plugin/public` imports.\n\n## Closes\n- Closes #253915\n\n## Coverage mapping\n- [Integration → unit test mapping\n(gist)](https://gist.github.com/kapral18/a3d2f778d575daa2f3dfcd8e0f4b66e4)\n\n## Test plan\n- [x] `node scripts/check_changes.ts`\n- [x] `yarn test:jest\nx-pack/platform/plugins/private/upgrade_assistant/public/application/components/kibana_deprecations\n--silent`\n\nAssisted with Cursor using GPT-5.2\n\n---------\n\nCo-authored-by: Cursor <cursoragent@cursor.com>","sha":"5c40b037970f01fe07af8e97cc4e18a626b32f88","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Kibana Management","release_note:skip","Feature:Upgrade Assistant","backport:version","v9.4.0","v9.3.3"],"title":"[Upgrade Assistant] Migrate Kibana deprecations flaky integration tests to unit tests","number":258981,"url":"https://github.com/elastic/kibana/pull/258981","mergeCommit":{"message":"[Upgrade Assistant] Migrate Kibana deprecations flaky integration tests to unit tests (#258981)\n\n## Summary\n- Migrates Kibana deprecations coverage from flaky client integration\ntests to focused unit tests.\n- Adds unit coverage for the Kibana deprecations list/table (refresh,\ncounts, filters/clear, details link) and the details flyout (manual\nsteps, docs link, quick resolve success/failure).\n- Removes legacy `__jest__/client_integration/kibana_deprecations` specs\nand drops `shared_imports` usage in favor of\n`@kbn/es-ui-shared-plugin/public` imports.\n\n## Closes\n- Closes #253915\n\n## Coverage mapping\n- [Integration → unit test mapping\n(gist)](https://gist.github.com/kapral18/a3d2f778d575daa2f3dfcd8e0f4b66e4)\n\n## Test plan\n- [x] `node scripts/check_changes.ts`\n- [x] `yarn test:jest\nx-pack/platform/plugins/private/upgrade_assistant/public/application/components/kibana_deprecations\n--silent`\n\nAssisted with Cursor using GPT-5.2\n\n---------\n\nCo-authored-by: Cursor <cursoragent@cursor.com>","sha":"5c40b037970f01fe07af8e97cc4e18a626b32f88"}},"sourceBranch":"main","suggestedTargetBranches":["9.3"],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/258981","number":258981,"mergeCommit":{"message":"[Upgrade Assistant] Migrate Kibana deprecations flaky integration tests to unit tests (#258981)\n\n## Summary\n- Migrates Kibana deprecations coverage from flaky client integration\ntests to focused unit tests.\n- Adds unit coverage for the Kibana deprecations list/table (refresh,\ncounts, filters/clear, details link) and the details flyout (manual\nsteps, docs link, quick resolve success/failure).\n- Removes legacy `__jest__/client_integration/kibana_deprecations` specs\nand drops `shared_imports` usage in favor of\n`@kbn/es-ui-shared-plugin/public` imports.\n\n## Closes\n- Closes #253915\n\n## Coverage mapping\n- [Integration → unit test mapping\n(gist)](https://gist.github.com/kapral18/a3d2f778d575daa2f3dfcd8e0f4b66e4)\n\n## Test plan\n- [x] `node scripts/check_changes.ts`\n- [x] `yarn test:jest\nx-pack/platform/plugins/private/upgrade_assistant/public/application/components/kibana_deprecations\n--silent`\n\nAssisted with Cursor using GPT-5.2\n\n---------\n\nCo-authored-by: Cursor <cursoragent@cursor.com>","sha":"5c40b037970f01fe07af8e97cc4e18a626b32f88"}},{"branch":"9.3","label":"v9.3.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
…ts to unit tests (elastic#258981) ## Summary - Migrates Kibana deprecations coverage from flaky client integration tests to focused unit tests. - Adds unit coverage for the Kibana deprecations list/table (refresh, counts, filters/clear, details link) and the details flyout (manual steps, docs link, quick resolve success/failure). - Removes legacy `__jest__/client_integration/kibana_deprecations` specs and drops `shared_imports` usage in favor of `@kbn/es-ui-shared-plugin/public` imports. ## Closes - Closes elastic#253915 ## Coverage mapping - [Integration → unit test mapping (gist)](https://gist.github.com/kapral18/a3d2f778d575daa2f3dfcd8e0f4b66e4) ## Test plan - [x] `node scripts/check_changes.ts` - [x] `yarn test:jest x-pack/platform/plugins/private/upgrade_assistant/public/application/components/kibana_deprecations --silent` Assisted with Cursor using GPT-5.2 --------- Co-authored-by: Cursor <cursoragent@cursor.com>
…ts to unit tests (elastic#258981) ## Summary - Migrates Kibana deprecations coverage from flaky client integration tests to focused unit tests. - Adds unit coverage for the Kibana deprecations list/table (refresh, counts, filters/clear, details link) and the details flyout (manual steps, docs link, quick resolve success/failure). - Removes legacy `__jest__/client_integration/kibana_deprecations` specs and drops `shared_imports` usage in favor of `@kbn/es-ui-shared-plugin/public` imports. ## Closes - Closes elastic#253915 ## Coverage mapping - [Integration → unit test mapping (gist)](https://gist.github.com/kapral18/a3d2f778d575daa2f3dfcd8e0f4b66e4) ## Test plan - [x] `node scripts/check_changes.ts` - [x] `yarn test:jest x-pack/platform/plugins/private/upgrade_assistant/public/application/components/kibana_deprecations --silent` Assisted with Cursor using GPT-5.2 --------- Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
__jest__/client_integration/kibana_deprecationsspecs and dropsshared_importsusage in favor of@kbn/es-ui-shared-plugin/publicimports.Closes
Coverage mapping
Test plan
node scripts/check_changes.tsyarn test:jest x-pack/platform/plugins/private/upgrade_assistant/public/application/components/kibana_deprecations --silentAssisted with Cursor using GPT-5.2