mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
250 commits
Author | SHA1 | Message | Date | |
---|---|---|---|---|
|
b6ae9b0518
|
[8.x] SKA: Relocate /test to /src/platform/test (#210956) (#214791)
# Backport This will backport the following commits from `main` to `8.x`: - [SKA: Relocate /test to /src/platform/test (#210956)](https://github.com/elastic/kibana/pull/210956) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Gerard Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2025-03-14T16:57:23Z","message":"SKA: Relocate /test to /src/platform/test (#210956)\n\n## Summary\n\nPart of https://github.com/elastic/kibana-team/issues/1503\n\nThis is a first step towards the relocation of all the Kibana tests.\n\nThe `/test/` folder at the root, which is in itself a package\n(`@kbn/test-suites-src`), and contains a large number of tests and test\nplugins, is being relocated under `src/platform/test`.\n\nAll the tests under this folder should be related to common platform\nfeatures, and they should not have any dependency towards\nsolution-specific components or features.\n\n<details >\n<summary>Updated relative paths</summary>\n\n```\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/jest.config.js:12\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/package.json:10\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/package.json:11\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/tsconfig.json:11\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/tsconfig.json:2\nsrc/platform/test/analytics/plugins/analytics_plugin_a/package.json:10\nsrc/platform/test/analytics/plugins/analytics_plugin_a/package.json:11\nsrc/platform/test/analytics/plugins/analytics_plugin_a/tsconfig.json:10\nsrc/platform/test/analytics/plugins/analytics_plugin_a/tsconfig.json:2\nsrc/platform/test/api_integration/jest.config.js:12\nsrc/platform/test/common/plugins/newsfeed/tsconfig.json:2\nsrc/platform/test/common/plugins/otel_metrics/tsconfig.json:2\nsrc/platform/test/functional/jest.config.js:12\nsrc/platform/test/harden/child_process.js:13\nsrc/platform/test/harden/lodash_template.js:13\nsrc/platform/test/harden/prototype.js:10\nsrc/platform/test/health_gateway/plugins/status/tsconfig.json:2\nsrc/platform/test/interactive_setup_api_integration/plugins/test_endpoints/tsconfig.json:2\nsrc/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline/package.json:11\nsrc/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline/package.json:12\nsrc/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline/tsconfig.json:11\nsrc/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline/tsconfig.json:2\nsrc/platform/test/node_roles_functional/plugins/core_plugin_initializer_context/package.json:11\nsrc/platform/test/node_roles_functional/plugins/core_plugin_initializer_context/package.json:12\nsrc/platform/test/node_roles_functional/plugins/core_plugin_initializer_context/tsconfig.json:2\nsrc/platform/test/node_roles_functional/plugins/core_plugin_initializer_context/tsconfig.json:9\nsrc/platform/test/package/Vagrantfile:2\nsrc/platform/test/plugin_functional/README.md:40\nsrc/platform/test/plugin_functional/plugins/app_link_test/package.json:11\nsrc/platform/test/plugin_functional/plugins/app_link_test/package.json:12\nsrc/platform/test/plugin_functional/plugins/app_link_test/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/app_link_test/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_app_status/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_app_status/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_app_status/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_app_status/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_a/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_a/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_a/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_a/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_b/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_b/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_b/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_b/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_history_block/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_history_block/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_history_block/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_history_block/tsconfig.json:6\nsrc/platform/test/plugin_functional/plugins/core_http/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_http/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_http/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_http/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_a/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_a/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_a/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_a/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_appleave/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_appleave/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_appleave/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_appleave/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_b/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_b/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_b/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_b/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_chromeless/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_chromeless/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_chromeless/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_chromeless/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_deep_links/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_deep_links/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_deep_links/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_deep_links/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_deprecations/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_deprecations/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_deprecations/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_deprecations/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_execution_context/package.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_execution_context/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_execution_context/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_helpmenu/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_helpmenu/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_helpmenu/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_route_timeouts/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_route_timeouts/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_route_timeouts/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_route_timeouts/tsconfig.json:8\nsrc/platform/test/plugin_functional/plugins/core_plugin_static_assets/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_static_assets/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_static_assets/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_static_assets/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_provider_plugin/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_provider_plugin/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_provider_plugin/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_provider_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/data_search/package.json:10\nsrc/platform/test/plugin_functional/plugins/data_search/package.json:9\nsrc/platform/test/plugin_functional/plugins/data_search/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/data_search/tsconfig.json:8\nsrc/platform/test/plugin_functional/plugins/elasticsearch_client_plugin/package.json:10\nsrc/platform/test/plugin_functional/plugins/elasticsearch_client_plugin/package.json:9\nsrc/platform/test/plugin_functional/plugins/elasticsearch_client_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/elasticsearch_client_plugin/tsconfig.json:8\nsrc/platform/test/plugin_functional/plugins/eui_provider_dev_warning/package.json:11\nsrc/platform/test/plugin_functional/plugins/eui_provider_dev_warning/package.json:12\nsrc/platform/test/plugin_functional/plugins/eui_provider_dev_warning/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/eui_provider_dev_warning/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/hardening/package.json:11\nsrc/platform/test/plugin_functional/plugins/hardening/package.json:12\nsrc/platform/test/plugin_functional/plugins/hardening/tsconfig.json:12\nsrc/platform/test/plugin_functional/plugins/hardening/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/index_patterns/package.json:11\nsrc/platform/test/plugin_functional/plugins/index_patterns/package.json:12\nsrc/platform/test/plugin_functional/plugins/index_patterns/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/index_patterns/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/kbn_sample_panel_action/package.json:11\nsrc/platform/test/plugin_functional/plugins/kbn_sample_panel_action/package.json:12\nsrc/platform/test/plugin_functional/plugins/kbn_sample_panel_action/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/kbn_sample_panel_action/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/kbn_top_nav/package.json:11\nsrc/platform/test/plugin_functional/plugins/kbn_top_nav/package.json:12\nsrc/platform/test/plugin_functional/plugins/kbn_top_nav/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/kbn_top_nav/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations/package.json:11\nsrc/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations/package.json:12\nsrc/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/management_test_plugin/package.json:11\nsrc/platform/test/plugin_functional/plugins/management_test_plugin/package.json:12\nsrc/platform/test/plugin_functional/plugins/management_test_plugin/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/management_test_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/rendering_plugin/package.json:11\nsrc/platform/test/plugin_functional/plugins/rendering_plugin/package.json:12\nsrc/platform/test/plugin_functional/plugins/rendering_plugin/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/rendering_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_object_export_transforms/package.json:11\nsrc/platform/test/plugin_functional/plugins/saved_object_export_transforms/package.json:12\nsrc/platform/test/plugin_functional/plugins/saved_object_export_transforms/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_object_export_transforms/tsconfig.json:9\nsrc/platform/test/plugin_functional/plugins/saved_object_import_warnings/package.json:11\nsrc/platform/test/plugin_functional/plugins/saved_object_import_warnings/package.json:12\nsrc/platform/test/plugin_functional/plugins/saved_object_import_warnings/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/saved_object_import_warnings/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/package.json:11\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/package.json:12\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/tsconfig.json:9\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_type/package.json:11\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_type/package.json:12\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_type/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_type/tsconfig.json:9\nsrc/platform/test/plugin_functional/plugins/session_notifications/package.json:11\nsrc/platform/test/plugin_functional/plugins/session_notifications/package.json:12\nsrc/platform/test/plugin_functional/plugins/session_notifications/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/session_notifications/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/telemetry/package.json:11\nsrc/platform/test/plugin_functional/plugins/telemetry/package.json:12\nsrc/platform/test/plugin_functional/plugins/telemetry/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/telemetry/tsconfig.json:6\nsrc/platform/test/plugin_functional/plugins/ui_settings_plugin/package.json:11\nsrc/platform/test/plugin_functional/plugins/ui_settings_plugin/package.json:12\nsrc/platform/test/plugin_functional/plugins/ui_settings_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/ui_settings_plugin/tsconfig.json:8\nsrc/platform/test/plugin_functional/plugins/usage_collection/package.json:11\nsrc/platform/test/plugin_functional/plugins/usage_collection/package.json:12\nsrc/platform/test/plugin_functional/plugins/usage_collection/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/usage_collection/tsconfig.json:2\nsrc/platform/test/server_integration/plugins/status_plugin_a/package.json:10\nsrc/platform/test/server_integration/plugins/status_plugin_a/package.json:11\nsrc/platform/test/server_integration/plugins/status_plugin_a/tsconfig.json:2\nsrc/platform/test/server_integration/plugins/status_plugin_a/tsconfig.json:9\nsrc/platform/test/server_integration/plugins/status_plugin_b/package.json:10\nsrc/platform/test/server_integration/plugins/status_plugin_b/package.json:11\nsrc/platform/test/server_integration/plugins/status_plugin_b/tsconfig.json:2\nsrc/platform/test/server_integration/plugins/status_plugin_b/tsconfig.json:9\n```\n\n</details>\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"355a834659b74333162008d54d44be0f2a14fb6b","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","Team:QA","release_note:skip","backport:skip","plugin groups","v9.1.0"],"title":"SKA: Relocate /test to /src/platform/test","number":210956,"url":"https://github.com/elastic/kibana/pull/210956","mergeCommit":{"message":"SKA: Relocate /test to /src/platform/test (#210956)\n\n## Summary\n\nPart of https://github.com/elastic/kibana-team/issues/1503\n\nThis is a first step towards the relocation of all the Kibana tests.\n\nThe `/test/` folder at the root, which is in itself a package\n(`@kbn/test-suites-src`), and contains a large number of tests and test\nplugins, is being relocated under `src/platform/test`.\n\nAll the tests under this folder should be related to common platform\nfeatures, and they should not have any dependency towards\nsolution-specific components or features.\n\n<details >\n<summary>Updated relative paths</summary>\n\n```\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/jest.config.js:12\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/package.json:10\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/package.json:11\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/tsconfig.json:11\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/tsconfig.json:2\nsrc/platform/test/analytics/plugins/analytics_plugin_a/package.json:10\nsrc/platform/test/analytics/plugins/analytics_plugin_a/package.json:11\nsrc/platform/test/analytics/plugins/analytics_plugin_a/tsconfig.json:10\nsrc/platform/test/analytics/plugins/analytics_plugin_a/tsconfig.json:2\nsrc/platform/test/api_integration/jest.config.js:12\nsrc/platform/test/common/plugins/newsfeed/tsconfig.json:2\nsrc/platform/test/common/plugins/otel_metrics/tsconfig.json:2\nsrc/platform/test/functional/jest.config.js:12\nsrc/platform/test/harden/child_process.js:13\nsrc/platform/test/harden/lodash_template.js:13\nsrc/platform/test/harden/prototype.js:10\nsrc/platform/test/health_gateway/plugins/status/tsconfig.json:2\nsrc/platform/test/interactive_setup_api_integration/plugins/test_endpoints/tsconfig.json:2\nsrc/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline/package.json:11\nsrc/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline/package.json:12\nsrc/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline/tsconfig.json:11\nsrc/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline/tsconfig.json:2\nsrc/platform/test/node_roles_functional/plugins/core_plugin_initializer_context/package.json:11\nsrc/platform/test/node_roles_functional/plugins/core_plugin_initializer_context/package.json:12\nsrc/platform/test/node_roles_functional/plugins/core_plugin_initializer_context/tsconfig.json:2\nsrc/platform/test/node_roles_functional/plugins/core_plugin_initializer_context/tsconfig.json:9\nsrc/platform/test/package/Vagrantfile:2\nsrc/platform/test/plugin_functional/README.md:40\nsrc/platform/test/plugin_functional/plugins/app_link_test/package.json:11\nsrc/platform/test/plugin_functional/plugins/app_link_test/package.json:12\nsrc/platform/test/plugin_functional/plugins/app_link_test/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/app_link_test/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_app_status/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_app_status/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_app_status/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_app_status/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_a/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_a/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_a/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_a/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_b/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_b/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_b/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_b/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_history_block/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_history_block/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_history_block/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_history_block/tsconfig.json:6\nsrc/platform/test/plugin_functional/plugins/core_http/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_http/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_http/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_http/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_a/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_a/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_a/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_a/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_appleave/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_appleave/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_appleave/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_appleave/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_b/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_b/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_b/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_b/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_chromeless/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_chromeless/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_chromeless/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_chromeless/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_deep_links/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_deep_links/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_deep_links/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_deep_links/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_deprecations/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_deprecations/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_deprecations/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_deprecations/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_execution_context/package.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_execution_context/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_execution_context/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_helpmenu/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_helpmenu/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_helpmenu/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_route_timeouts/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_route_timeouts/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_route_timeouts/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_route_timeouts/tsconfig.json:8\nsrc/platform/test/plugin_functional/plugins/core_plugin_static_assets/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_static_assets/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_static_assets/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_static_assets/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_provider_plugin/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_provider_plugin/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_provider_plugin/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_provider_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/data_search/package.json:10\nsrc/platform/test/plugin_functional/plugins/data_search/package.json:9\nsrc/platform/test/plugin_functional/plugins/data_search/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/data_search/tsconfig.json:8\nsrc/platform/test/plugin_functional/plugins/elasticsearch_client_plugin/package.json:10\nsrc/platform/test/plugin_functional/plugins/elasticsearch_client_plugin/package.json:9\nsrc/platform/test/plugin_functional/plugins/elasticsearch_client_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/elasticsearch_client_plugin/tsconfig.json:8\nsrc/platform/test/plugin_functional/plugins/eui_provider_dev_warning/package.json:11\nsrc/platform/test/plugin_functional/plugins/eui_provider_dev_warning/package.json:12\nsrc/platform/test/plugin_functional/plugins/eui_provider_dev_warning/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/eui_provider_dev_warning/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/hardening/package.json:11\nsrc/platform/test/plugin_functional/plugins/hardening/package.json:12\nsrc/platform/test/plugin_functional/plugins/hardening/tsconfig.json:12\nsrc/platform/test/plugin_functional/plugins/hardening/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/index_patterns/package.json:11\nsrc/platform/test/plugin_functional/plugins/index_patterns/package.json:12\nsrc/platform/test/plugin_functional/plugins/index_patterns/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/index_patterns/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/kbn_sample_panel_action/package.json:11\nsrc/platform/test/plugin_functional/plugins/kbn_sample_panel_action/package.json:12\nsrc/platform/test/plugin_functional/plugins/kbn_sample_panel_action/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/kbn_sample_panel_action/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/kbn_top_nav/package.json:11\nsrc/platform/test/plugin_functional/plugins/kbn_top_nav/package.json:12\nsrc/platform/test/plugin_functional/plugins/kbn_top_nav/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/kbn_top_nav/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations/package.json:11\nsrc/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations/package.json:12\nsrc/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/management_test_plugin/package.json:11\nsrc/platform/test/plugin_functional/plugins/management_test_plugin/package.json:12\nsrc/platform/test/plugin_functional/plugins/management_test_plugin/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/management_test_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/rendering_plugin/package.json:11\nsrc/platform/test/plugin_functional/plugins/rendering_plugin/package.json:12\nsrc/platform/test/plugin_functional/plugins/rendering_plugin/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/rendering_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_object_export_transforms/package.json:11\nsrc/platform/test/plugin_functional/plugins/saved_object_export_transforms/package.json:12\nsrc/platform/test/plugin_functional/plugins/saved_object_export_transforms/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_object_export_transforms/tsconfig.json:9\nsrc/platform/test/plugin_functional/plugins/saved_object_import_warnings/package.json:11\nsrc/platform/test/plugin_functional/plugins/saved_object_import_warnings/package.json:12\nsrc/platform/test/plugin_functional/plugins/saved_object_import_warnings/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/saved_object_import_warnings/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/package.json:11\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/package.json:12\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/tsconfig.json:9\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_type/package.json:11\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_type/package.json:12\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_type/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_type/tsconfig.json:9\nsrc/platform/test/plugin_functional/plugins/session_notifications/package.json:11\nsrc/platform/test/plugin_functional/plugins/session_notifications/package.json:12\nsrc/platform/test/plugin_functional/plugins/session_notifications/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/session_notifications/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/telemetry/package.json:11\nsrc/platform/test/plugin_functional/plugins/telemetry/package.json:12\nsrc/platform/test/plugin_functional/plugins/telemetry/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/telemetry/tsconfig.json:6\nsrc/platform/test/plugin_functional/plugins/ui_settings_plugin/package.json:11\nsrc/platform/test/plugin_functional/plugins/ui_settings_plugin/package.json:12\nsrc/platform/test/plugin_functional/plugins/ui_settings_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/ui_settings_plugin/tsconfig.json:8\nsrc/platform/test/plugin_functional/plugins/usage_collection/package.json:11\nsrc/platform/test/plugin_functional/plugins/usage_collection/package.json:12\nsrc/platform/test/plugin_functional/plugins/usage_collection/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/usage_collection/tsconfig.json:2\nsrc/platform/test/server_integration/plugins/status_plugin_a/package.json:10\nsrc/platform/test/server_integration/plugins/status_plugin_a/package.json:11\nsrc/platform/test/server_integration/plugins/status_plugin_a/tsconfig.json:2\nsrc/platform/test/server_integration/plugins/status_plugin_a/tsconfig.json:9\nsrc/platform/test/server_integration/plugins/status_plugin_b/package.json:10\nsrc/platform/test/server_integration/plugins/status_plugin_b/package.json:11\nsrc/platform/test/server_integration/plugins/status_plugin_b/tsconfig.json:2\nsrc/platform/test/server_integration/plugins/status_plugin_b/tsconfig.json:9\n```\n\n</details>\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"355a834659b74333162008d54d44be0f2a14fb6b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/210956","number":210956,"mergeCommit":{"message":"SKA: Relocate /test to /src/platform/test (#210956)\n\n## Summary\n\nPart of https://github.com/elastic/kibana-team/issues/1503\n\nThis is a first step towards the relocation of all the Kibana tests.\n\nThe `/test/` folder at the root, which is in itself a package\n(`@kbn/test-suites-src`), and contains a large number of tests and test\nplugins, is being relocated under `src/platform/test`.\n\nAll the tests under this folder should be related to common platform\nfeatures, and they should not have any dependency towards\nsolution-specific components or features.\n\n<details >\n<summary>Updated relative paths</summary>\n\n```\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/jest.config.js:12\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/package.json:10\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/package.json:11\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/tsconfig.json:11\nsrc/platform/test/analytics/plugins/analytics_ftr_helpers/tsconfig.json:2\nsrc/platform/test/analytics/plugins/analytics_plugin_a/package.json:10\nsrc/platform/test/analytics/plugins/analytics_plugin_a/package.json:11\nsrc/platform/test/analytics/plugins/analytics_plugin_a/tsconfig.json:10\nsrc/platform/test/analytics/plugins/analytics_plugin_a/tsconfig.json:2\nsrc/platform/test/api_integration/jest.config.js:12\nsrc/platform/test/common/plugins/newsfeed/tsconfig.json:2\nsrc/platform/test/common/plugins/otel_metrics/tsconfig.json:2\nsrc/platform/test/functional/jest.config.js:12\nsrc/platform/test/harden/child_process.js:13\nsrc/platform/test/harden/lodash_template.js:13\nsrc/platform/test/harden/prototype.js:10\nsrc/platform/test/health_gateway/plugins/status/tsconfig.json:2\nsrc/platform/test/interactive_setup_api_integration/plugins/test_endpoints/tsconfig.json:2\nsrc/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline/package.json:11\nsrc/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline/package.json:12\nsrc/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline/tsconfig.json:11\nsrc/platform/test/interpreter_functional/plugins/kbn_tp_run_pipeline/tsconfig.json:2\nsrc/platform/test/node_roles_functional/plugins/core_plugin_initializer_context/package.json:11\nsrc/platform/test/node_roles_functional/plugins/core_plugin_initializer_context/package.json:12\nsrc/platform/test/node_roles_functional/plugins/core_plugin_initializer_context/tsconfig.json:2\nsrc/platform/test/node_roles_functional/plugins/core_plugin_initializer_context/tsconfig.json:9\nsrc/platform/test/package/Vagrantfile:2\nsrc/platform/test/plugin_functional/README.md:40\nsrc/platform/test/plugin_functional/plugins/app_link_test/package.json:11\nsrc/platform/test/plugin_functional/plugins/app_link_test/package.json:12\nsrc/platform/test/plugin_functional/plugins/app_link_test/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/app_link_test/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_app_status/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_app_status/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_app_status/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_app_status/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_a/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_a/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_a/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_a/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_b/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_b/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_b/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_dynamic_resolving_b/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_history_block/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_history_block/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_history_block/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_history_block/tsconfig.json:6\nsrc/platform/test/plugin_functional/plugins/core_http/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_http/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_http/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_http/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_a/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_a/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_a/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_a/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_appleave/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_appleave/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_appleave/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_appleave/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_b/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_b/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_b/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_b/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_chromeless/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_chromeless/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_chromeless/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_chromeless/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_deep_links/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_deep_links/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_deep_links/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_deep_links/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_deprecations/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_deprecations/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_deprecations/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_deprecations/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_execution_context/package.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_execution_context/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_execution_context/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_helpmenu/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_helpmenu/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_helpmenu/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_route_timeouts/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_route_timeouts/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_route_timeouts/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_plugin_route_timeouts/tsconfig.json:8\nsrc/platform/test/plugin_functional/plugins/core_plugin_static_assets/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_plugin_static_assets/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_plugin_static_assets/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_plugin_static_assets/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/core_provider_plugin/package.json:11\nsrc/platform/test/plugin_functional/plugins/core_provider_plugin/package.json:12\nsrc/platform/test/plugin_functional/plugins/core_provider_plugin/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/core_provider_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/data_search/package.json:10\nsrc/platform/test/plugin_functional/plugins/data_search/package.json:9\nsrc/platform/test/plugin_functional/plugins/data_search/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/data_search/tsconfig.json:8\nsrc/platform/test/plugin_functional/plugins/elasticsearch_client_plugin/package.json:10\nsrc/platform/test/plugin_functional/plugins/elasticsearch_client_plugin/package.json:9\nsrc/platform/test/plugin_functional/plugins/elasticsearch_client_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/elasticsearch_client_plugin/tsconfig.json:8\nsrc/platform/test/plugin_functional/plugins/eui_provider_dev_warning/package.json:11\nsrc/platform/test/plugin_functional/plugins/eui_provider_dev_warning/package.json:12\nsrc/platform/test/plugin_functional/plugins/eui_provider_dev_warning/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/eui_provider_dev_warning/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/hardening/package.json:11\nsrc/platform/test/plugin_functional/plugins/hardening/package.json:12\nsrc/platform/test/plugin_functional/plugins/hardening/tsconfig.json:12\nsrc/platform/test/plugin_functional/plugins/hardening/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/index_patterns/package.json:11\nsrc/platform/test/plugin_functional/plugins/index_patterns/package.json:12\nsrc/platform/test/plugin_functional/plugins/index_patterns/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/index_patterns/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/kbn_sample_panel_action/package.json:11\nsrc/platform/test/plugin_functional/plugins/kbn_sample_panel_action/package.json:12\nsrc/platform/test/plugin_functional/plugins/kbn_sample_panel_action/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/kbn_sample_panel_action/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/kbn_top_nav/package.json:11\nsrc/platform/test/plugin_functional/plugins/kbn_top_nav/package.json:12\nsrc/platform/test/plugin_functional/plugins/kbn_top_nav/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/kbn_top_nav/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations/package.json:11\nsrc/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations/package.json:12\nsrc/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/kbn_tp_custom_visualizations/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/management_test_plugin/package.json:11\nsrc/platform/test/plugin_functional/plugins/management_test_plugin/package.json:12\nsrc/platform/test/plugin_functional/plugins/management_test_plugin/tsconfig.json:10\nsrc/platform/test/plugin_functional/plugins/management_test_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/rendering_plugin/package.json:11\nsrc/platform/test/plugin_functional/plugins/rendering_plugin/package.json:12\nsrc/platform/test/plugin_functional/plugins/rendering_plugin/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/rendering_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_object_export_transforms/package.json:11\nsrc/platform/test/plugin_functional/plugins/saved_object_export_transforms/package.json:12\nsrc/platform/test/plugin_functional/plugins/saved_object_export_transforms/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_object_export_transforms/tsconfig.json:9\nsrc/platform/test/plugin_functional/plugins/saved_object_import_warnings/package.json:11\nsrc/platform/test/plugin_functional/plugins/saved_object_import_warnings/package.json:12\nsrc/platform/test/plugin_functional/plugins/saved_object_import_warnings/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/saved_object_import_warnings/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/package.json:11\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/package.json:12\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_from_http_apis_type/tsconfig.json:9\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_type/package.json:11\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_type/package.json:12\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_type/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/saved_objects_hidden_type/tsconfig.json:9\nsrc/platform/test/plugin_functional/plugins/session_notifications/package.json:11\nsrc/platform/test/plugin_functional/plugins/session_notifications/package.json:12\nsrc/platform/test/plugin_functional/plugins/session_notifications/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/session_notifications/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/telemetry/package.json:11\nsrc/platform/test/plugin_functional/plugins/telemetry/package.json:12\nsrc/platform/test/plugin_functional/plugins/telemetry/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/telemetry/tsconfig.json:6\nsrc/platform/test/plugin_functional/plugins/ui_settings_plugin/package.json:11\nsrc/platform/test/plugin_functional/plugins/ui_settings_plugin/package.json:12\nsrc/platform/test/plugin_functional/plugins/ui_settings_plugin/tsconfig.json:2\nsrc/platform/test/plugin_functional/plugins/ui_settings_plugin/tsconfig.json:8\nsrc/platform/test/plugin_functional/plugins/usage_collection/package.json:11\nsrc/platform/test/plugin_functional/plugins/usage_collection/package.json:12\nsrc/platform/test/plugin_functional/plugins/usage_collection/tsconfig.json:11\nsrc/platform/test/plugin_functional/plugins/usage_collection/tsconfig.json:2\nsrc/platform/test/server_integration/plugins/status_plugin_a/package.json:10\nsrc/platform/test/server_integration/plugins/status_plugin_a/package.json:11\nsrc/platform/test/server_integration/plugins/status_plugin_a/tsconfig.json:2\nsrc/platform/test/server_integration/plugins/status_plugin_a/tsconfig.json:9\nsrc/platform/test/server_integration/plugins/status_plugin_b/package.json:10\nsrc/platform/test/server_integration/plugins/status_plugin_b/package.json:11\nsrc/platform/test/server_integration/plugins/status_plugin_b/tsconfig.json:2\nsrc/platform/test/server_integration/plugins/status_plugin_b/tsconfig.json:9\n```\n\n</details>\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"355a834659b74333162008d54d44be0f2a14fb6b"}}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
5acb5506ac
|
[8.x] SKA: Relocate "platform" packages that remain on /packages (#208704) (#212474)
# Backport This will backport the following commits from `main` to `8.x`: - [SKA: Relocate "platform" packages that remain on `/packages` (#208704)](https://github.com/elastic/kibana/pull/208704) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Gerard Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2025-02-24T11:03:30Z","message":"SKA: Relocate \"platform\" packages that remain on `/packages` (#208704)\n\n## Summary\n\nThe `/packages` folder at the root of the Kibana repository used to\ncontain a lot of packages.\nIn the context of SKA, they have been gradually moved to various\nlocations:\n* `src/platform/packages`\n* `x-pack/platform/packages`\n* `src/core/packages`\n\nCurrently, only `devOnly: true` packages are left in this folder. This\ncomprises libraries for CLI scripts as well as testing utilities.\n\nWith this PR, we are moving ~half of these packages under\n`src/platform/packages/(private|shared)/`.\nIn particular, we are moving those packages that are being used from\nplatform and/or solutions.\n\nSince they are `\"devOnly\": true`, this means they are ONLY used from\ntests, cypress tests, storybook configs, ./scripts/ folders inside some\nmodules, or other non-prod-time logic. Nonetheless, they are effectively\nreferenced from platform and/or solutions code, hence I decided they\nshould be placed under `platform` folders.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"6a7c904f921434fe21dfa00eceabfb5e64e915dc","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","ci:project-deploy-observability","Team:obs-ux-infra_services","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"SKA: Relocate \"platform\" packages that remain on `/packages`","number":208704,"url":"https://github.com/elastic/kibana/pull/208704","mergeCommit":{"message":"SKA: Relocate \"platform\" packages that remain on `/packages` (#208704)\n\n## Summary\n\nThe `/packages` folder at the root of the Kibana repository used to\ncontain a lot of packages.\nIn the context of SKA, they have been gradually moved to various\nlocations:\n* `src/platform/packages`\n* `x-pack/platform/packages`\n* `src/core/packages`\n\nCurrently, only `devOnly: true` packages are left in this folder. This\ncomprises libraries for CLI scripts as well as testing utilities.\n\nWith this PR, we are moving ~half of these packages under\n`src/platform/packages/(private|shared)/`.\nIn particular, we are moving those packages that are being used from\nplatform and/or solutions.\n\nSince they are `\"devOnly\": true`, this means they are ONLY used from\ntests, cypress tests, storybook configs, ./scripts/ folders inside some\nmodules, or other non-prod-time logic. Nonetheless, they are effectively\nreferenced from platform and/or solutions code, hence I decided they\nshould be placed under `platform` folders.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"6a7c904f921434fe21dfa00eceabfb5e64e915dc"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/212224","number":212224,"state":"OPEN"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/208704","number":208704,"mergeCommit":{"message":"SKA: Relocate \"platform\" packages that remain on `/packages` (#208704)\n\n## Summary\n\nThe `/packages` folder at the root of the Kibana repository used to\ncontain a lot of packages.\nIn the context of SKA, they have been gradually moved to various\nlocations:\n* `src/platform/packages`\n* `x-pack/platform/packages`\n* `src/core/packages`\n\nCurrently, only `devOnly: true` packages are left in this folder. This\ncomprises libraries for CLI scripts as well as testing utilities.\n\nWith this PR, we are moving ~half of these packages under\n`src/platform/packages/(private|shared)/`.\nIn particular, we are moving those packages that are being used from\nplatform and/or solutions.\n\nSince they are `\"devOnly\": true`, this means they are ONLY used from\ntests, cypress tests, storybook configs, ./scripts/ folders inside some\nmodules, or other non-prod-time logic. Nonetheless, they are effectively\nreferenced from platform and/or solutions code, hence I decided they\nshould be placed under `platform` folders.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"6a7c904f921434fe21dfa00eceabfb5e64e915dc"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
6a6d3d61ca
|
[8.x] SKA: Update broken references and URLs (#206836) (#208479)
# Backport This will backport the following commits from `main` to `8.x`: - [SKA: Update broken references and URLs (#206836)](https://github.com/elastic/kibana/pull/206836) <!--- Backport version: 9.6.4 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Gerard Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2025-01-28T03:32:48Z","message":"SKA: Update broken references and URLs (#206836)\n\n## Summary\r\n\r\nUpdates a number of broken file references and broken links.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by: Alejandro Fernández Haro <afharo@gmail.com>","sha":"fb26c1c683453faa7f8218df094f90d9ad070a23","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","Feature:ExpressionLanguage","release_note:skip","Team:Fleet","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-infra_services","Team:obs-ux-management"],"title":"SKA: Update broken references and URLs","number":206836,"url":"https://github.com/elastic/kibana/pull/206836","mergeCommit":{"message":"SKA: Update broken references and URLs (#206836)\n\n## Summary\r\n\r\nUpdates a number of broken file references and broken links.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by: Alejandro Fernández Haro <afharo@gmail.com>","sha":"fb26c1c683453faa7f8218df094f90d9ad070a23"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/206836","number":206836,"mergeCommit":{"message":"SKA: Update broken references and URLs (#206836)\n\n## Summary\r\n\r\nUpdates a number of broken file references and broken links.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by: Alejandro Fernández Haro <afharo@gmail.com>","sha":"fb26c1c683453faa7f8218df094f90d9ad070a23"}}]}] BACKPORT--> |
||
|
434d008adb
|
[8.x] Update styled_components_files.js to include all files that import styled-components (#206084)
## Summary This is a manual backport of https://github.com/elastic/kibana/pull/205011 with regenerated `styled_components_files.js` to match `8.x` code. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> |
||
|
59a6cf6d4d
|
[8.x] [ftr] Speed up FTR code owner check (#205093) (#205415)
# Backport This will backport the following commits from `main` to `8.x`: - [[ftr] Speed up FTR code owner check (#205093)](https://github.com/elastic/kibana/pull/205093) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"David Olaru","email":"dolaru@elastic.co"},"sourceCommit":{"committedDate":"2025-01-02T17:10:20Z","message":"[ftr] Speed up FTR code owner check (#205093)\n\n## Summary\r\n\r\nSwitch to one matcher w/ all code owner patterns rather than separate\r\nmatchers for each code owner pattern. Reduces the run time of\r\n`scripts/check_ftr_code_owners.js` by ~10x.\r\n\r\n### Before\r\n```console\r\n▶ node scripts/check_ftr_code_owners.js\r\n info Reading CODEOWNERS file\r\n info Checking ownership for 8653 test files (this will take a while)\r\n info Ownership check complete (took 18.89 s)\r\n succ All test files have a code owner. 🥳\r\n```\r\n\r\n#### After\r\n```console\r\n▶ node scripts/check_ftr_code_owners.js\r\n info Checked 8653 test files in 1.59s\r\n succ All test files have a code owner 🥳\r\n```","sha":"a0eebb82c9ef8385cecd4a5f6c0d1ebd22561789","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","v8.18.0"],"title":"[ftr] Speed up FTR code owner check","number":205093,"url":"https://github.com/elastic/kibana/pull/205093","mergeCommit":{"message":"[ftr] Speed up FTR code owner check (#205093)\n\n## Summary\r\n\r\nSwitch to one matcher w/ all code owner patterns rather than separate\r\nmatchers for each code owner pattern. Reduces the run time of\r\n`scripts/check_ftr_code_owners.js` by ~10x.\r\n\r\n### Before\r\n```console\r\n▶ node scripts/check_ftr_code_owners.js\r\n info Reading CODEOWNERS file\r\n info Checking ownership for 8653 test files (this will take a while)\r\n info Ownership check complete (took 18.89 s)\r\n succ All test files have a code owner. 🥳\r\n```\r\n\r\n#### After\r\n```console\r\n▶ node scripts/check_ftr_code_owners.js\r\n info Checked 8653 test files in 1.59s\r\n succ All test files have a code owner 🥳\r\n```","sha":"a0eebb82c9ef8385cecd4a5f6c0d1ebd22561789"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/205093","number":205093,"mergeCommit":{"message":"[ftr] Speed up FTR code owner check (#205093)\n\n## Summary\r\n\r\nSwitch to one matcher w/ all code owner patterns rather than separate\r\nmatchers for each code owner pattern. Reduces the run time of\r\n`scripts/check_ftr_code_owners.js` by ~10x.\r\n\r\n### Before\r\n```console\r\n▶ node scripts/check_ftr_code_owners.js\r\n info Reading CODEOWNERS file\r\n info Checking ownership for 8653 test files (this will take a while)\r\n info Ownership check complete (took 18.89 s)\r\n succ All test files have a code owner. 🥳\r\n```\r\n\r\n#### After\r\n```console\r\n▶ node scripts/check_ftr_code_owners.js\r\n info Checked 8653 test files in 1.59s\r\n succ All test files have a code owner 🥳\r\n```","sha":"a0eebb82c9ef8385cecd4a5f6c0d1ebd22561789"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: David Olaru <dolaru@elastic.co> |
||
|
8d49feb271
|
[8.x] [kbn-scout] Custom event-oriented test reporter & persistence (#202906) (#204696)
# Backport This will backport the following commits from `main` to `8.x`: - [[kbn-scout] Custom event-oriented test reporter & persistence (#202906)](https://github.com/elastic/kibana/pull/202906) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"David Olaru","email":"dolaru@elastic.co"},"sourceCommit":{"committedDate":"2024-12-09T14:34:25Z","message":"[kbn-scout] Custom event-oriented test reporter & persistence (#202906)","sha":"ad4e8efd0f07f8f682709efce271493a4872e331","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","test:scout"],"number":202906,"url":"https://github.com/elastic/kibana/pull/202906","mergeCommit":{"message":"[kbn-scout] Custom event-oriented test reporter & persistence (#202906)","sha":"ad4e8efd0f07f8f682709efce271493a4872e331"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202906","number":202906,"mergeCommit":{"message":"[kbn-scout] Custom event-oriented test reporter & persistence (#202906)","sha":"ad4e8efd0f07f8f682709efce271493a4872e331"}}]}] BACKPORT--> --------- Co-authored-by: David Olaru <dolaru@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
1c7e33a4c7
|
[8.x] [kbn-scout] initial package implementation (playwright-test POC) (#194006) (#204572)
# Backport This will backport the following commits from `main` to `8.x`: - [[kbn-scout] initial package implementation (playwright-test POC) (#194006)](https://github.com/elastic/kibana/pull/194006) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Dzmitry Lemechko","email":"dzmitry.lemechko@elastic.co"},"sourceCommit":{"committedDate":"2024-11-26T16:33:49Z","message":"[kbn-scout] initial package implementation (playwright-test POC) (#194006)\n\n## Summary\r\n\r\nThis PR introduces a new package, **kbn-scout**, designed to streamline\r\nthe setup and execution of Playwright tests for Kibana. The `kbn-scout`\r\npackage consolidates server management and testing capabilities by\r\nwrapping both the Kibana/Elasticsearch server launcher and the\r\nPlaywright test runner. It includes:\r\n\r\n- Test and worker-scoped fixtures for reliable setup across test suites\r\n- Page objects combined into the fixture for Kibana UI interactions\r\n- Configurations for seamless test execution in both local and CI\r\nenvironments (`Cloud` execution is out of scope)\r\n- This package aims to simplify test setup and enhance modularity,\r\nmaking it easier to create, run, and maintain deployment-agnostic tests,\r\nthat are located in the plugin they actually test.\r\n\r\nTests example is available in `x-pack/plugins/discover_enhanced` plugin\r\nunder `ui_tests` folder\r\n\r\nHow to run:\r\n1) As a single script (servers + tests): \r\n```\r\nnode scripts/scout_test.js --config=x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts --serverless=es\r\n```\r\n\r\n2) Start servers first\r\n```\r\nnode scripts/scout_start_servers.js --serverless=es\r\n```\r\nthen run tests:\r\n```\r\nnpx playwright test --config=x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts\r\n```\r\nif you have Playwright plugin in IDEA, just use it to run tests files\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"310d922f137ed5c1117e2660ffa8af618810f350","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:skip","v9.0.0","test:scout"],"number":194006,"url":"https://github.com/elastic/kibana/pull/194006","mergeCommit":{"message":"[kbn-scout] initial package implementation (playwright-test POC) (#194006)\n\n## Summary\r\n\r\nThis PR introduces a new package, **kbn-scout**, designed to streamline\r\nthe setup and execution of Playwright tests for Kibana. The `kbn-scout`\r\npackage consolidates server management and testing capabilities by\r\nwrapping both the Kibana/Elasticsearch server launcher and the\r\nPlaywright test runner. It includes:\r\n\r\n- Test and worker-scoped fixtures for reliable setup across test suites\r\n- Page objects combined into the fixture for Kibana UI interactions\r\n- Configurations for seamless test execution in both local and CI\r\nenvironments (`Cloud` execution is out of scope)\r\n- This package aims to simplify test setup and enhance modularity,\r\nmaking it easier to create, run, and maintain deployment-agnostic tests,\r\nthat are located in the plugin they actually test.\r\n\r\nTests example is available in `x-pack/plugins/discover_enhanced` plugin\r\nunder `ui_tests` folder\r\n\r\nHow to run:\r\n1) As a single script (servers + tests): \r\n```\r\nnode scripts/scout_test.js --config=x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts --serverless=es\r\n```\r\n\r\n2) Start servers first\r\n```\r\nnode scripts/scout_start_servers.js --serverless=es\r\n```\r\nthen run tests:\r\n```\r\nnpx playwright test --config=x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts\r\n```\r\nif you have Playwright plugin in IDEA, just use it to run tests files\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"310d922f137ed5c1117e2660ffa8af618810f350"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194006","number":194006,"mergeCommit":{"message":"[kbn-scout] initial package implementation (playwright-test POC) (#194006)\n\n## Summary\r\n\r\nThis PR introduces a new package, **kbn-scout**, designed to streamline\r\nthe setup and execution of Playwright tests for Kibana. The `kbn-scout`\r\npackage consolidates server management and testing capabilities by\r\nwrapping both the Kibana/Elasticsearch server launcher and the\r\nPlaywright test runner. It includes:\r\n\r\n- Test and worker-scoped fixtures for reliable setup across test suites\r\n- Page objects combined into the fixture for Kibana UI interactions\r\n- Configurations for seamless test execution in both local and CI\r\nenvironments (`Cloud` execution is out of scope)\r\n- This package aims to simplify test setup and enhance modularity,\r\nmaking it easier to create, run, and maintain deployment-agnostic tests,\r\nthat are located in the plugin they actually test.\r\n\r\nTests example is available in `x-pack/plugins/discover_enhanced` plugin\r\nunder `ui_tests` folder\r\n\r\nHow to run:\r\n1) As a single script (servers + tests): \r\n```\r\nnode scripts/scout_test.js --config=x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts --serverless=es\r\n```\r\n\r\n2) Start servers first\r\n```\r\nnode scripts/scout_start_servers.js --serverless=es\r\n```\r\nthen run tests:\r\n```\r\nnpx playwright test --config=x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts\r\n```\r\nif you have Playwright plugin in IDEA, just use it to run tests files\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"310d922f137ed5c1117e2660ffa8af618810f350"}}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
e3c5e8ddb1
|
[8.x] Sustainable Kibana Architecture: Relocate script v5 (#204522)
## Summary Backport https://github.com/elastic/kibana/pull/204461 to `8.x` branch --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
09ab870c89
|
[Backport] Dependency Usage CLI (#201815)
## Summary Backport of https://github.com/elastic/kibana/pull/198920 |
||
|
9a7dafcf38
|
[8.x] [CodeQL] Local run script (#194272) (#197989)
# Backport This will backport the following commits from `main` to `8.x`: - [[CodeQL] Local run script (#194272)](https://github.com/elastic/kibana/pull/194272) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Elena Shostak","email":"165678770+elena-shostak@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-10-28T12:40:27Z","message":"[CodeQL] Local run script (#194272)\n\n## Summary\r\n\r\nThis PR introduces a script that allows developers to run CodeQL\r\nanalysis locally. It uses a Docker container with prebuilt CodeQL\r\nqueries to facilitate easy setup and execution.\r\nThe script has the following key steps:\r\n- Creating a CodeQL database from the source code. The database is\r\nessentially a representation of the codebase that CodeQL uses to analyze\r\nfor potential issues.\r\n- Running the analysis on the created database,\r\n`javascript-security-and-quality` suit is used.\r\n\r\n### Usage\r\n```\r\nbash scripts/codeql/quick_check.sh -s path/to/your-source-dir\r\n```\r\nFor example\r\n```\r\nbash scripts/codeql/quick_check.sh -s ./x-pack/plugins/security_solution/public/common/components/ml/conditional_links\r\n```\r\n\r\nThe `-s` option allows you to specify the path to the source code\r\ndirectory that you wish to analyze.\r\n\r\n### Why custom Docker file?\r\nChecked the ability to use MSFT image for local run\r\nhttps://github.com/microsoft/codeql-container. Turned out it has several\r\nproblems:\r\n1. The published one has an error with [execute\r\npermissions](https://github.com/microsoft/codeql-container/issues/53).\r\n2. Container has outdated nodejs version, so it didn't parse our syntax\r\n(like `??`) and failed.\r\n3. The technique used in the repository to download the CodeQL binaries\r\nand precompile the queries is outdated in the sense that GitHub now\r\noffers pre-compiled queries you can just download. Follow this\r\n[comment](https://github.com/microsoft/codeql-container/issues/53#issuecomment-1875879512).\r\n\r\nTaking this into consideration I have created a lightweight docker image\r\nwithout extraneous dependencies for go/.net/java.\r\n\r\n## Context and interdependencies issues\r\nThere are issues sometimes when analyze run returns no results,\r\nparticularly when analyzing a single folder.\r\nIt might be due to the missing context for the data flow graph CodeQL\r\ngenerates or context for interdependencies. This is actually a trade off\r\nof running it locally for a subset of source directories. We need to\r\nexplicitly state that in the documentation and advise to expand the\r\nscope of source code directories involved for local scan.\r\n\r\nDocumentation for triaging issues will be updated separately.\r\n\r\n__Closes: https://github.com/elastic/kibana/issues/195740__","sha":"9dd4205639ed16f9086a7c5d70e077b6db21d73b","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Security","enhancement","release_note:skip","v9.0.0","backport:prev-minor"],"title":"[CodeQL] Local run script","number":194272,"url":"https://github.com/elastic/kibana/pull/194272","mergeCommit":{"message":"[CodeQL] Local run script (#194272)\n\n## Summary\r\n\r\nThis PR introduces a script that allows developers to run CodeQL\r\nanalysis locally. It uses a Docker container with prebuilt CodeQL\r\nqueries to facilitate easy setup and execution.\r\nThe script has the following key steps:\r\n- Creating a CodeQL database from the source code. The database is\r\nessentially a representation of the codebase that CodeQL uses to analyze\r\nfor potential issues.\r\n- Running the analysis on the created database,\r\n`javascript-security-and-quality` suit is used.\r\n\r\n### Usage\r\n```\r\nbash scripts/codeql/quick_check.sh -s path/to/your-source-dir\r\n```\r\nFor example\r\n```\r\nbash scripts/codeql/quick_check.sh -s ./x-pack/plugins/security_solution/public/common/components/ml/conditional_links\r\n```\r\n\r\nThe `-s` option allows you to specify the path to the source code\r\ndirectory that you wish to analyze.\r\n\r\n### Why custom Docker file?\r\nChecked the ability to use MSFT image for local run\r\nhttps://github.com/microsoft/codeql-container. Turned out it has several\r\nproblems:\r\n1. The published one has an error with [execute\r\npermissions](https://github.com/microsoft/codeql-container/issues/53).\r\n2. Container has outdated nodejs version, so it didn't parse our syntax\r\n(like `??`) and failed.\r\n3. The technique used in the repository to download the CodeQL binaries\r\nand precompile the queries is outdated in the sense that GitHub now\r\noffers pre-compiled queries you can just download. Follow this\r\n[comment](https://github.com/microsoft/codeql-container/issues/53#issuecomment-1875879512).\r\n\r\nTaking this into consideration I have created a lightweight docker image\r\nwithout extraneous dependencies for go/.net/java.\r\n\r\n## Context and interdependencies issues\r\nThere are issues sometimes when analyze run returns no results,\r\nparticularly when analyzing a single folder.\r\nIt might be due to the missing context for the data flow graph CodeQL\r\ngenerates or context for interdependencies. This is actually a trade off\r\nof running it locally for a subset of source directories. We need to\r\nexplicitly state that in the documentation and advise to expand the\r\nscope of source code directories involved for local scan.\r\n\r\nDocumentation for triaging issues will be updated separately.\r\n\r\n__Closes: https://github.com/elastic/kibana/issues/195740__","sha":"9dd4205639ed16f9086a7c5d70e077b6db21d73b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194272","number":194272,"mergeCommit":{"message":"[CodeQL] Local run script (#194272)\n\n## Summary\r\n\r\nThis PR introduces a script that allows developers to run CodeQL\r\nanalysis locally. It uses a Docker container with prebuilt CodeQL\r\nqueries to facilitate easy setup and execution.\r\nThe script has the following key steps:\r\n- Creating a CodeQL database from the source code. The database is\r\nessentially a representation of the codebase that CodeQL uses to analyze\r\nfor potential issues.\r\n- Running the analysis on the created database,\r\n`javascript-security-and-quality` suit is used.\r\n\r\n### Usage\r\n```\r\nbash scripts/codeql/quick_check.sh -s path/to/your-source-dir\r\n```\r\nFor example\r\n```\r\nbash scripts/codeql/quick_check.sh -s ./x-pack/plugins/security_solution/public/common/components/ml/conditional_links\r\n```\r\n\r\nThe `-s` option allows you to specify the path to the source code\r\ndirectory that you wish to analyze.\r\n\r\n### Why custom Docker file?\r\nChecked the ability to use MSFT image for local run\r\nhttps://github.com/microsoft/codeql-container. Turned out it has several\r\nproblems:\r\n1. The published one has an error with [execute\r\npermissions](https://github.com/microsoft/codeql-container/issues/53).\r\n2. Container has outdated nodejs version, so it didn't parse our syntax\r\n(like `??`) and failed.\r\n3. The technique used in the repository to download the CodeQL binaries\r\nand precompile the queries is outdated in the sense that GitHub now\r\noffers pre-compiled queries you can just download. Follow this\r\n[comment](https://github.com/microsoft/codeql-container/issues/53#issuecomment-1875879512).\r\n\r\nTaking this into consideration I have created a lightweight docker image\r\nwithout extraneous dependencies for go/.net/java.\r\n\r\n## Context and interdependencies issues\r\nThere are issues sometimes when analyze run returns no results,\r\nparticularly when analyzing a single folder.\r\nIt might be due to the missing context for the data flow graph CodeQL\r\ngenerates or context for interdependencies. This is actually a trade off\r\nof running it locally for a subset of source directories. We need to\r\nexplicitly state that in the documentation and advise to expand the\r\nscope of source code directories involved for local scan.\r\n\r\nDocumentation for triaging issues will be updated separately.\r\n\r\n__Closes: https://github.com/elastic/kibana/issues/195740__","sha":"9dd4205639ed16f9086a7c5d70e077b6db21d73b"}}]}] BACKPORT--> Co-authored-by: Elena Shostak <165678770+elena-shostak@users.noreply.github.com> |
||
|
7b820130ab
|
[8.x] Add ESLINT constraints to detect inter-group dependencies (#194810) (#197670)
# Backport This will backport the following commits from `main` to `8.x`: - [Add ESLINT constraints to detect inter-group dependencies (#194810)](https://github.com/elastic/kibana/pull/194810) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Gerard Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2024-10-22T11:34:19Z","message":"Add ESLINT constraints to detect inter-group dependencies (#194810)\n\n## Summary\r\n\r\nAddresses https://github.com/elastic/kibana-team/issues/1175\r\n\r\nAs part of the **Sustainable Kibana Architecture** initiative, this PR\r\nsets the foundation to start classifying plugins in isolated groups,\r\nmatching our current solutions / project types:\r\n\r\n* It adds support for the following fields in the packages' manifests\r\n(kibana.jsonc):\r\n* `group?: 'search' | 'security' | 'observability' | 'platform' |\r\n'common'`\r\n * `visibility?: 'private' | 'shared'`\r\n\r\n* It proposes a folder structure to automatically infer groups:\r\n```javascript\r\n 'src/platform/plugins/shared': {\r\n group: 'platform',\r\n visibility: 'shared',\r\n },\r\n 'src/platform/plugins/internal': {\r\n group: 'platform',\r\n visibility: 'private',\r\n },\r\n 'x-pack/platform/plugins/shared': {\r\n group: 'platform',\r\n visibility: 'shared',\r\n },\r\n 'x-pack/platform/plugins/internal': {\r\n group: 'platform',\r\n visibility: 'private',\r\n },\r\n 'x-pack/solutions/observability/plugins': {\r\n group: 'observability',\r\n visibility: 'private',\r\n },\r\n 'x-pack/solutions/security/plugins': {\r\n group: 'security',\r\n visibility: 'private',\r\n },\r\n 'x-pack/solutions/search/plugins': {\r\n group: 'search',\r\n visibility: 'private',\r\n },\r\n```\r\n\r\n* If a plugin is moved to one of the specific locations above, the group\r\nand visibility in the manifest (if specified) must match those inferred\r\nfrom the path.\r\n* Plugins that are not relocated are considered: `group: 'common',\r\nvisibility: 'shared'` by default. As soon as we specify a custom\r\n`group`, the ESLINT rules will check violations against dependencies /\r\ndependants.\r\n\r\nThe ESLINT rules are pretty simple:\r\n* Plugins can only depend on:\r\n * Plugins in the same group\r\n * OR plugins with `'shared'` visibility\r\n* Plugins in `'observability', 'security', 'search'` groups are\r\nmandatorily `'private'`.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"2a085e103afe8c7bdfb626d0dc683fc8be0e6c05","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","backport missing","v9.0.0","release_note:feature","backport:prev-minor"],"number":194810,"url":"https://github.com/elastic/kibana/pull/194810","mergeCommit":{"message":"Add ESLINT constraints to detect inter-group dependencies (#194810)\n\n## Summary\r\n\r\nAddresses https://github.com/elastic/kibana-team/issues/1175\r\n\r\nAs part of the **Sustainable Kibana Architecture** initiative, this PR\r\nsets the foundation to start classifying plugins in isolated groups,\r\nmatching our current solutions / project types:\r\n\r\n* It adds support for the following fields in the packages' manifests\r\n(kibana.jsonc):\r\n* `group?: 'search' | 'security' | 'observability' | 'platform' |\r\n'common'`\r\n * `visibility?: 'private' | 'shared'`\r\n\r\n* It proposes a folder structure to automatically infer groups:\r\n```javascript\r\n 'src/platform/plugins/shared': {\r\n group: 'platform',\r\n visibility: 'shared',\r\n },\r\n 'src/platform/plugins/internal': {\r\n group: 'platform',\r\n visibility: 'private',\r\n },\r\n 'x-pack/platform/plugins/shared': {\r\n group: 'platform',\r\n visibility: 'shared',\r\n },\r\n 'x-pack/platform/plugins/internal': {\r\n group: 'platform',\r\n visibility: 'private',\r\n },\r\n 'x-pack/solutions/observability/plugins': {\r\n group: 'observability',\r\n visibility: 'private',\r\n },\r\n 'x-pack/solutions/security/plugins': {\r\n group: 'security',\r\n visibility: 'private',\r\n },\r\n 'x-pack/solutions/search/plugins': {\r\n group: 'search',\r\n visibility: 'private',\r\n },\r\n```\r\n\r\n* If a plugin is moved to one of the specific locations above, the group\r\nand visibility in the manifest (if specified) must match those inferred\r\nfrom the path.\r\n* Plugins that are not relocated are considered: `group: 'common',\r\nvisibility: 'shared'` by default. As soon as we specify a custom\r\n`group`, the ESLINT rules will check violations against dependencies /\r\ndependants.\r\n\r\nThe ESLINT rules are pretty simple:\r\n* Plugins can only depend on:\r\n * Plugins in the same group\r\n * OR plugins with `'shared'` visibility\r\n* Plugins in `'observability', 'security', 'search'` groups are\r\nmandatorily `'private'`.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"2a085e103afe8c7bdfb626d0dc683fc8be0e6c05"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194810","number":194810,"mergeCommit":{"message":"Add ESLINT constraints to detect inter-group dependencies (#194810)\n\n## Summary\r\n\r\nAddresses https://github.com/elastic/kibana-team/issues/1175\r\n\r\nAs part of the **Sustainable Kibana Architecture** initiative, this PR\r\nsets the foundation to start classifying plugins in isolated groups,\r\nmatching our current solutions / project types:\r\n\r\n* It adds support for the following fields in the packages' manifests\r\n(kibana.jsonc):\r\n* `group?: 'search' | 'security' | 'observability' | 'platform' |\r\n'common'`\r\n * `visibility?: 'private' | 'shared'`\r\n\r\n* It proposes a folder structure to automatically infer groups:\r\n```javascript\r\n 'src/platform/plugins/shared': {\r\n group: 'platform',\r\n visibility: 'shared',\r\n },\r\n 'src/platform/plugins/internal': {\r\n group: 'platform',\r\n visibility: 'private',\r\n },\r\n 'x-pack/platform/plugins/shared': {\r\n group: 'platform',\r\n visibility: 'shared',\r\n },\r\n 'x-pack/platform/plugins/internal': {\r\n group: 'platform',\r\n visibility: 'private',\r\n },\r\n 'x-pack/solutions/observability/plugins': {\r\n group: 'observability',\r\n visibility: 'private',\r\n },\r\n 'x-pack/solutions/security/plugins': {\r\n group: 'security',\r\n visibility: 'private',\r\n },\r\n 'x-pack/solutions/search/plugins': {\r\n group: 'search',\r\n visibility: 'private',\r\n },\r\n```\r\n\r\n* If a plugin is moved to one of the specific locations above, the group\r\nand visibility in the manifest (if specified) must match those inferred\r\nfrom the path.\r\n* Plugins that are not relocated are considered: `group: 'common',\r\nvisibility: 'shared'` by default. As soon as we specify a custom\r\n`group`, the ESLINT rules will check violations against dependencies /\r\ndependants.\r\n\r\nThe ESLINT rules are pretty simple:\r\n* Plugins can only depend on:\r\n * Plugins in the same group\r\n * OR plugins with `'shared'` visibility\r\n* Plugins in `'observability', 'security', 'search'` groups are\r\nmandatorily `'private'`.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"2a085e103afe8c7bdfb626d0dc683fc8be0e6c05"}}]}] BACKPORT--> |
||
|
abfed861e6
|
[8.x] [KB] create @kbn/product-doc-artifact-builder package (#193847) (#196206)
# Backport This will backport the following commits from `main` to `8.x`: - [[KB] create `@kbn/product-doc-artifact-builder` package (#193847)](https://github.com/elastic/kibana/pull/193847) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Pierre Gayvallet","email":"pierre.gayvallet@elastic.co"},"sourceCommit":{"committedDate":"2024-10-07T12:21:09Z","message":"[KB] create `@kbn/product-doc-artifact-builder` package (#193847)\n\n## Summary\r\n\r\nRelated https://github.com/elastic/kibana/issues/193473\r\n\r\nAdd initial implementation of the knowledge base artifact builder. This\r\nPR only introduces the builder script, it doesn't do anything about\r\nautomation.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"1ab1add68e15b4a227209952c6ab69b0f96ca456","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport missing","v9.0.0","backport:prev-minor","v8.16.0","Team:AI Infra"],"number":193847,"url":"https://github.com/elastic/kibana/pull/193847","mergeCommit":{"message":"[KB] create `@kbn/product-doc-artifact-builder` package (#193847)\n\n## Summary\r\n\r\nRelated https://github.com/elastic/kibana/issues/193473\r\n\r\nAdd initial implementation of the knowledge base artifact builder. This\r\nPR only introduces the builder script, it doesn't do anything about\r\nautomation.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"1ab1add68e15b4a227209952c6ab69b0f96ca456"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193847","number":193847,"mergeCommit":{"message":"[KB] create `@kbn/product-doc-artifact-builder` package (#193847)\n\n## Summary\r\n\r\nRelated https://github.com/elastic/kibana/issues/193473\r\n\r\nAdd initial implementation of the knowledge base artifact builder. This\r\nPR only introduces the builder script, it doesn't do anything about\r\nautomation.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"1ab1add68e15b4a227209952c6ab69b0f96ca456"}},{"branch":"8.x","label":"v8.16.0","labelRegex":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> |
||
|
b6287708f6
|
Adds AGPL 3.0 license (#192025)
Updates files outside of x-pack to be triple-licensed under Elastic License 2.0, AGPL 3.0, or SSPL 1.0. |
||
|
69665cecd0
|
[FTR] Refactor test/common/services/* -> packages/kbn-ftr-common-functional-[ui-]services/* (#191805)
## Summary
Moving common services to respective new homes.
This PR is revived from a previously
[merged](
|
||
|
9f70009d89
|
Revert "[FTR] Refactor test/common/services/* -> packages/kbn-ftr-com… (#191765)
Build failure https://buildkite.com/elastic/kibana-pull-request/builds/230868#01919ed7-15d5-425c-9b8e-146ed5fe9daf |
||
|
09a365850e
|
[FTR] Refactor test/common/services/* -> packages/kbn-ftr-common-functional-[ui-]services/* (#189051)
## Summary Moving common services to respective new homes. Resolves: https://github.com/elastic/kibana/issues/188541 --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> |
||
|
433cc1e3d8
|
chore(NA): avoid more native modules on production dependencies (#190183)
This PR is the final step needed for us to re-enable pointer compression on serverless. It introduces a cli later used in a CI check that will prevent the addition of new native modules on production as discussed and agreed with Luke and Brandon previously. It also removes the usages of `cbor-x` and replaces those with a wrapping package `@kbn/cbor` which relies on the implementation coming from `borc` with no native modules involved. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> |
||
|
a25433c394
|
[CI] Parallelize quick checks (#190401)
## Summary Use typescript's async processes to start quick checks in parallel 👍 Check out these for runs: - happy case: https://buildkite.com/elastic/kibana-pull-request/builds/227443#01914ca3-1f0d-4178-b539-263fbc588e98 - some broken checks: https://buildkite.com/elastic/kibana-pull-request/builds/228957#01917607-f7bd-4e08-8c70-7fdc3f9c12d1 Benefits: - with this (+more CPU) we can speed up the quick-check step's runtime, from ~15m to ~7m. - the added benefit is that all checks run so that we won't bail on the 1st one Disadvantage: - uglier error output, since we collect the logs asynchronously, and print it only upon failure - ~no output printed for happy checks (can be changed)~ Extra: - additionally, `yarn quick-checks` will now allow devs to run these checks locally (adjustments made so that the checks won't fail in local dev) - added the option to declare a 'context' for tooling loggers, so we can identify which script logs Solves 2/3 of https://github.com/elastic/kibana-operations/issues/124 (+speedup) |
||
|
bcc46b60e9
|
Changing load/dump in source files (#190641)
## Summary Updates usage of `js-yaml` `load` and `dump` to `safeLoad` and `safeDump`, in preparation for a major version update of dependency, where the default behavior will be that of the safe function variants. ## Note to reviewers `safeDump` will throw if it encounters invalid types (e.g. `undefined`), whereas the `dump` function will still write the file including the invalid types. This may have an affect within your use cases - if throwing is not acceptable or is unhandled. To avoid this the `skipInvalid` option can be used (see https://github.com/nodeca/js-yaml#dump-object---options-) - this will write the file, stripping out any invalid types from the input. Please consider this when reviewing the changes to your code. If the `skipInvalid` option is needed, please add it, or let us know to make the change. --------- Co-authored-by: Sid <siddharthmantri1@gmail.com> Co-authored-by: “jeramysoucy” <jeramy.soucy@elastic.co> Co-authored-by: Elena Shostak <elena.shostak@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Maxim Palenov <maxim.palenov@elastic.co> |
||
|
11b750b10a
|
Minimize shared-common everywhere (#188606)
## Summary  At the moment, our package generator creates all packages with the type `shared-common`. This means that we cannot enforce boundaries between server-side-only code and the browser, and vice-versa. - [x] I started fixing `packages/core/*` - [x] It took me to fixing `src/core/` type to be identified by the `plugin` pattern (`public` and `server` directories) vs. a package (either common, or single-scoped) - [x] Unsurprisingly, this extended to packages importing core packages hitting the boundaries eslint rules. And other packages importing the latter. - [x] Also a bunch of `common` logic that shouldn't be so _common_ 🙃 ### For maintainers - [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
88464e5b6d
|
[FTR] split configs by target into multiple manifest files (#187440)
## Summary Part of #186515 Split FTR configs manifest into multiple files based on distro (serverless/stateful) and area of testing (platform/solutions) Update the CI scripts to support the change, but without logic modification More context: With this change we will have a clear split of FTR test configs owned by Platform and Solutions. It is a starting point to make configs discoverable, our test pipelines be flexible and run tests based on distro/solution. |
||
|
7c6aa3fc8a
|
[i18n][system upgrade] Upgrade i18n tooling (#186519)
Update i18n tools after the main packages upgrade. This upgrade makes use of formatJS tooling instead of fully implementing the parsers ourselves. It also changes our custom AST parsing from babel to the typescript compiler. - [x] i18n exrtract - [x] i18n check - [x] i18n integrate - [x] add test cases for formatjs runner - [x] Make sure all CLI flags are handled properly - [x] Update tooling readme Closes https://github.com/elastic/kibana/issues/180616 Closes https://github.com/elastic/kibana/issues/187703 ### Note to reviewers Teams outside operations and core are probably requested to review because the `i18n_check` fixed malformed i18n messages in your plugins. Please check and approve :elasticheart: |
||
|
3c338a82c2
|
chore(NA): remove usage of re2 and replace it with a non native module (#188134)
This PR removes the usage of the native module version of `re2` and replaces it with a js port called `re2js`. It also ends our usage of native node modules in production and it removes the task from the build as well. Further steps will be taken along our strategy to avoid future usages of native node modules in prod environments. |
||
|
9575b3a17e
|
[Docs] Added OAS dev tutorial (#187573)
## Summary
<details>
<summary>Screenshot (slightly outdated)</summary>

Close https://github.com/elastic/kibana/issues/181992 ## Summary First iteration of a CLI to capture an OAS snapshot. ## How to test Run `node ./scripts/capture_oas_snapshot.js --update --include-path /api/status` and see result in `oas_docs/bundle.json`. If you have the [bump CLI](https://www.npmjs.com/package/bump-cli) installed you can preview the hosted output with `bump preview ./oas_docs/bundle.json` ## Notes * Added ability to filter by `version`, `access` (public/internal) and excluding paths explicitly to the OAS generation lib * Follows the same general pattern as our other "capture" CLIs like `packages/kbn-check-mappings-update-cli` * Result includes only `/api/status` for now, waiting for other paths to add missing parts --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
d7ae4b6cf5
|
chore(NA): remove prettier custom overrides across codebase (#180958)
This PR is just deleting 4 custom overrides `.prettierrc` files and applying the auto fixes resulting from those changes. We've found some automation tasks were broken because we don't have a common code style across the codebase and we want to optimize for that with that change. Required for: https://github.com/elastic/kibana-operations/pull/93 --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
c1f4821607
|
Fix SAML provider incorrectly added to Docker SSL (#178555)
## Summary The existence of `kibanaUrl` in the default parameters leads to the SAML role provider being enabled for `yarn es docker --ssl` and then ES crashing on startup. This option should only be a default for `yarn es serverless --ssl` |
||
|
7aff1f788f
|
[Ops] Create CLI for rewriting buildkite agent targeting rules (#174688)
## Summary Creates a CLI script to rewrite buildkite agent targeting rules to the ones we need to use with the Elastic-wide buildkite agents. This version tries to map all fittable fields from https://github.com/elastic/kibana-buildkite/blob/main/agents.json to |
||
|
2f92ce1d4a
|
[dx] Dependency check script for plugins (#171483)
## Summary Dealing with circular dependencies between plugins has become a sharp pain point for anyone developing plugins in Kibana. ### Providing dependencies to a plugin First, a plugin defines its dependencies in its `kibana.jsonc` file as one of three types: - `required` - the dependency must be present and enabled -- will be guaranteed in the lifecycle - `optional` - the dependency can be missing or disabled -- will be `undefined` in the lifecycle - `requiredBundle` - the dependency is required as static code only -- will not be present in the lifecycle Missing or circular dependencies are detected by the Kibana platform when it starts. ### Providing dependencies in code Our plugins are written in and type-checked by Typescript. As such, each plugin needs to maintain Typescript types defining what the platform is providing. This is done manually, and there is no enforcement mechanism between that and the plugin Typescript types. If these dependency definitions are inconsistent or stale, it can lead to host of issues: - optional plugins typed as required that are disabled crash the plugin at runtime; - plugins that are no longer used still included in dependency checks; - plugins marked as required or optional that are actually required bundles. - etc. ### Dependencies with side-effects One of the interesting things that has come out of this has been identifying plugins that provide dependent logic through side-effects, rather than lifecycles. As an example, `licensing` provides a lifecycle contracts, but also a [route handler context](https://github.com/elastic/kibana/blob/main/x-pack/plugins/licensing/server/licensing_route_handler_context.ts) as middleware for a dependent plugin. Unfortunately, while this dependency can be stated as `required` in a dependent plugin's `kibana.jsonc`, the fact that this is a side-effect makes it incredible difficult to understand the dependency without searching the code. <img width="735" alt="Screenshot 2023-12-13 at 10 08 00 AM" src=" |
||
|
6272d5af6f
|
Add script to check test file code ownership (#173411)
## Summary This PR adds a script that determines GitHub code ownership for functional test files in the Kibana repository. ### Why do we need this? We want to be able to determine test ownership to allow teams to get a better overview of their tests (number of tests, number of skipped tests, number of failures in the last x days, etc). ### What does this PR bring? This PR is a first step on closing the test ownership gaps. It adds functionality to determine the GitHub code owner for a given file (in the `@kbn/code-owners` package) and adds a script that makes use of this to check if all functional test files have a code owner, reporting the gaps. ### Future plans The idea is to include the test ownership information in our ingested test results, such that we can create dashboards, reports, etc based on it. At some point (once all ownership gaps are closed), we might consider running this check on CI to prevent new test files without owners. ### How to run? ``` node scripts/check_ftr_code_owners.js ``` The script lists the functional test files that are not covered by code owners and also gives a summary like this: ``` ERROR Found 2592 test files without code owner (checked 7550 test files in 12.73 s) ``` |
||
|
9220e4d20a
|
Add mock identity provider for serverless (2nd attempt) (#171513)
Attempting to merge #170852 again now that the release artefact step has been fixed as part of https://github.com/elastic/kibana/pull/171457 --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com> Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co> |
||
|
d09e47abbc |
Revert "Add mock identity provider for serverless (#170852)"
This reverts commit
|
||
|
1fb0313a52
|
Add mock identity provider for serverless (#170852)
Related to [#166340](https://github.com/elastic/kibana/issues/166340) ## Summary Add mock identity provider and utils to test serverless user roles. ## Screenshot ### 1. Login selector <img width="767" alt="Screenshot 2023-11-08 at 15 18 18" src=" |
||
|
227d7acae7
|
[Ops] Create SO migration snapshot comparion script (#168623)
## Summary Continuation on: #167980 Now that we have the snapshots created for merges, we can compare the existing snapshots. This PR creates a CLI for grabbing and comparing these snapshots. The CLI looks like this: ``` node scripts/snapshot_plugin_types compare --from <rev|filename|url> --to <rev|filename|url> [--outputPath <outputPath>] Compares two Saved Object snapshot files based on hashes, filenames or urls. Options: --from The source snapshot to compare from. Can be a revision, filename or url. --to The target snapshot to compare to. Can be a revision, filename or url. --outputPath The path to write the comparison report to. If omitted, raw JSON will be output to stdout. --verbose, -v Log verbosely ``` |
||
|
b95fcf00e2
|
[ci] Add node scripts/yarn_deduplicate check (#169165)
- Adds an entrypoint, `node scripts/yarn_deduplicate` for fixing duplicated packages via npm package `yarn-deduplicate` - Fixes existing duplicated packages - Adds a CI check verifying no duplicated packages have been added. There are currently two exclusions - all types packages which causes other checks to break, and axe-core, which does not follow semver. Closes https://github.com/elastic/kibana/issues/125712 |
||
|
6d88fb5f54
|
Add alerting_test_data package and a script to create rules for manual testing (#168493)
Closes https://github.com/elastic/actionable-observability/issues/140 ## Summary Add alerting_test_data package to create custom threshold and APM rules for manual testing. More information about the usage: https://github.com/elastic/actionable-observability/pull/156 --------- Co-authored-by: almudenasanz <almudena.sanz@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
ec0379848a
|
[Ops] Snapshot saved object migrations (#167983)
## Goal We'd like to increase visibility to when Saved Object migrations and schema changes are added to serverless releases. ## Plan - add post-build step to export Saved Object schema snapshot, upload it to google storage, by commit hash. - build comparison logic, that when given 2 hashes (e.g.: #current -> #to-be-released) it can highlight schema changes - display the output from the comparison where it would make most sense, ideas: - prior to release, as a script that can be ran (or a browser-based inspector) - prior to release, as a buildkite step, that displays the output, and waits for a confirmation on it - during the quality-gating, as an output during the quality-gate run, to be confirmed by the RM ## Summary The PR intends to satisfy the first step of the plan, to add a post-merge step to snapshot SO schema/migration states for later use. Example run: https://buildkite.com/elastic/kibana-pull-request/builds/165992#018b0583-c575-47f4-bade-7b45f6cf3f4d The files are not public, they require google cloud access, but could be accessed by scripts we create. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
38e6b76640
|
[Security Solution] Extract OpenAPI codegen to a package (#166269) | ||
|
4c41247f93
|
Upgrade re2 from v1.17.7 to v1.20.1 (#162880) | ||
|
0a7ee08362
|
[Console] Use ES specification for autocomplete definitions (#159241)
## Summary Fixes https://github.com/elastic/kibana/issues/159410 This PR adds a new package `kbn-generate-console-definitions` that will eventually replace the package `kbn-spec-to-console`. It also adds a new command to use the script in the new package. The new command can be used as following: - `node scripts/generate_console_definitions.js --source <PATH_TO_ES_SPECIFICATION_REPO>` where `PATH_TO_ES_SPECIFICATION_FOLDER` is the absolute path to the root of the [ES specification repo](https://github.com/elastic/elasticsearch-specification), for example `/Users/yulia/elastic/elasticsearch-specification`. This command will generate autocomplete definitions in the folder `KIBANA_ROOT/src/plugins/console/server/lib/json/generated`. - Optionally `--dest` parameter can be passed to generate definitions in a different folder, relative to `KIBANA_ROOT`. Basic script functionality was implemented in this PR: - [x] Create the folder if doesn't exist yet - [x] Remove all files in the folder before generating definitions - [x] Load the specification schema and parse each endpoint - [x] Create a file for each endpoint with the endpoint name, methods, patterns and doc urls. Functionality that will be added in follow up PRs: - Url paramaters - Request body parameters - Availability property - Unit test for script functions ### How to test 1. Checkout ES specification repo 2. Run the command with `node scripts/generate_console_definitions.js --source <ES_SPECIFICATION_REPO> --emptyDest` where `<ES_SPECIFICATION_REPO>` is the absolute path to the root of the ES specification repo 3. Check the changes to the generated files in the folder `/KIBANA_REPO/src/plugins/console/server/lib/spec_definitions/json/generated` and make sure they have a correct endpoint name, patterns, methods and doc links. We are not generating any url params, request body params or availability property for now. 4. Change the constant in the file `KIBANA_REPO/src/plugins/console/common/constants/autocomplete_definitions.ts` to a non-existent folder. Run the script `node scripts/generate_console_definitions.js --source <ES_SPECIFICATION_REPO>` and check that the folder has been created successfully 5. Re-run the command without `--emptyDest` flag targeting a folder that already contain some files. Check that the script fails and doesn't silently remove existing files 6. Run the help command `node scripts/generate_console_definitions.js --help` and check if the help message makes sense --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com> |
||
|
9b9d8cb347
|
Script to delete .kibana indices (#157491)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Gil Raphaelli <graphaelli@gmail.com> |
||
|
d1feb43722
|
[QA] Fixup flaky test (#156373)
## Summary Resolves https://github.com/elastic/kibana/issues/136856 - Add async keyword where it should have been. - Split archive into kbn and es archives... instigated by Pierre's comment: https://github.com/elastic/kibana/issues/136856#issuecomment-1253609280 - Note: Had to use both archive types as one archive is "hidden", and cannot be accessed via the kbn client. - Unload via Pierre's "new" clean method. - Add shell fn to print out server's currently loaded so's, with user and pass hardcoded for local dev. |
||
|
e9197ad359
|
[Saved Objects] Compatible mappings PR check (#148656)
## Summary This PR adds a technical control to prevent incompatible mappings changes. These include: 1. Removing mapped fields. For the foreseeable future we require that teams only introduce new fields - in short: this avoids the "reindex" step in our migrations. 2. Changing the type of a field. We leverage ES to determine whether a given set of mappings can be applied "on top" of another. Similarly, this avoids the "reindex" step in migrations. The above checks depend on a snapshot of the mappings from `main`, these are the "current" mappings and are extracted from plugin code. This PR will bootstrap `main` with an initial set of mappings extracted from plugins (bulk of new lines added). ## The new CLI See the added `README.md` for details on how the CLI works. ## How will it work? Any new PR that introduces compatible mappings changes will result in a new snapshot being captured, then merged to main for other PRs to merge and run the same checks against (currently committing new snapshots happens in the CI check so there is no manual step of maintaining the snapshot). ## Additional We should consider combining this CI check with the existing check in `src/core/server/integration_tests/saved_objects/migrations/check_registered_types.test.ts`. Hopefully we can automate the check such that no manual review is needed from Core, not sure how we might cover the hash of the non-mappings related fields. We could consider narrowing the Jest test to exclude mappings. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: spalger <spencer@elastic.co> |
||
|
a1c55c6f13
|
[ci] build next docs in PRs when relevant files change (#149991)
After chatting with @KOTungseth, @scottybollinger, and @glitteringkatie we've decided to add a CI step to the Kibana repo that will run when changes to next-doc related code is made. This step will checkout the repository containing configuration for the docs.elastic.dev website (which is currently private, sorry) and then ensure that the build can be completed with a local copy of all the repositories. It does this by reading the `config/content.js` files and cloning all of the repositories listed, then rewriting the content.js file with a map telling the build system to read files from the local repos (which are pre-cached by the packer cache job) and the local Kibana repo (which represents the changes in the PR). This script also runs locally by running `node scripts/validate_next_docs`. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
1b85815402
|
[packages] migrate all plugins to packages (#148130)
Fixes https://github.com/elastic/kibana/issues/149344 This PR migrates all plugins to packages automatically. It does this using `node scripts/lint_packages` to automatically migrate `kibana.json` files to `kibana.jsonc` files. By doing this automatically we can simplify many build and testing procedures to only support packages, and not both "packages" and "synthetic packages" (basically pointers to plugins). The majority of changes are in operations related code, so we'll be having operations review this before marking it ready for review. The vast majority of the code owners are simply pinged because we deleted all `kibana.json` files and replaced them with `kibana.jsonc` files, so we plan on leaving the PR ready-for-review for about 24 hours before merging (after feature freeze), assuming we don't have any blockers (especially from @elastic/kibana-core since there are a few core specific changes, though the majority were handled in #149370). --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
4e7560f19d
|
[ci-stats] move shipper to a package, validate limits in on-merge job (#149474)
We just had an issue where two PRs were merged and it caused the limit of the `triggerActionsUi` bundle to be exceeded, breaking PR builds. The issue is that we didn't see any indication of this in the on-merge jobs because we don't produce the PR report for on-merge jobs or ask ci-stats if we should fail the job. Instead, we just ship the metrics for baseline purposes. This fixes that problem by adding a `--validate` flag to `node scripts/ship_ci_stats`, which takes care of sending at least some ci-stats and will verify that the bundle limits are not exceeded. Since we didn't catch this issue in the on-merge job the limits were incorrect for over an hour and merged into many PRs, wasting engineering and CI time. Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
548da835a2
|
chore(NA): adds @kbn/whereis-pkg-cli to quickly find a pkg location (#148696)
This PR ads a new cli package to allow us to search for package locations by providing their IDs. I see this as useful as we start adding more and more packages across different locations. Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
d6be4a4b06
|
Implement package linter (#148496)
This PR implements a linter like the TS Project linter, except for packages in the repo. It does this by extracting the reusable bits from the TS Project linter and reusing them for the project linter. The only rule that exists for packages right now is that the "name" in the package.json file matches the "id" in Kibana.jsonc. The goal is to use a rule to migrate kibana.json files on the future. Additionally, a new rule for validating the indentation of tsconfig.json files was added. Validating and fixing violations is what has triggered review by so many teams, but we plan to treat those review requests as notifications of the changes and not as blockers for merging. Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
|
afb09ccf8a
|
Transpile packages on demand, validate all TS projects (#146212)
## Dearest Reviewers 👋 I've been working on this branch with @mistic and @tylersmalley and we're really confident in these changes. Additionally, this changes code in nearly every package in the repo so we don't plan to wait for reviews to get in before merging this. If you'd like to have a concern addressed, please feel free to leave a review, but assuming that nobody raises a blocker in the next 24 hours we plan to merge this EOD pacific tomorrow, 12/22. We'll be paying close attention to any issues this causes after merging and work on getting those fixed ASAP. 🚀 --- The operations team is not confident that we'll have the time to achieve what we originally set out to accomplish by moving to Bazel with the time and resources we have available. We have also bought ourselves some headroom with improvements to babel-register, optimizer caching, and typescript project structure. In order to make sure we deliver packages as quickly as possible (many teams really want them), with a usable and familiar developer experience, this PR removes Bazel for building packages in favor of using the same JIT transpilation we use for plugins. Additionally, packages now use `kbn_references` (again, just copying the dx from plugins to packages). Because of the complex relationships between packages/plugins and in order to prepare ourselves for automatic dependency detection tools we plan to use in the future, this PR also introduces a "TS Project Linter" which will validate that every tsconfig.json file meets a few requirements: 1. the chain of base config files extended by each config includes `tsconfig.base.json` and not `tsconfig.json` 1. the `include` config is used, and not `files` 2. the `exclude` config includes `target/**/*` 3. the `outDir` compiler option is specified as `target/types` 1. none of these compiler options are specified: `declaration`, `declarationMap`, `emitDeclarationOnly`, `skipLibCheck`, `target`, `paths` 4. all references to other packages/plugins use their pkg id, ie: ```js // valid { "kbn_references": ["@kbn/core"] } // not valid { "kbn_references": [{ "path": "../../../src/core/tsconfig.json" }] } ``` 5. only packages/plugins which are imported somewhere in the ts code are listed in `kbn_references` This linter is not only validating all of the tsconfig.json files, but it also will fix these config files to deal with just about any violation that can be produced. Just run `node scripts/ts_project_linter --fix` locally to apply these fixes, or let CI take care of automatically fixing things and pushing the changes to your PR. > **Example:** [` |
||
|
9f7db8f615
|
[scalability testing] typescript runner (#147002)
## Summary Closes #146546 This PR replaces bash script with node-based runner script. Script can take relative path to directory with scalability journey files or relative path to individual journey json file. `node scripts/run_scalability.js --journey-config-path scalability_traces/server` `node scripts/run_scalability.js --journey-config-path scalability_traces/server/api.core.capabilities.json` ### Checklist Delete any items that are not applicable to this PR. - [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [ ] Any UI touched in this PR is usable by keyboard only (learn more about [keyboard accessibility](https://webaim.org/techniques/keyboard/)) - [ ] Any UI touched in this PR does not create any new axe failures (run axe in browser: [FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/), [Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US)) - [ ] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker) - [ ] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server)) - [ ] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers) ### Risk Matrix Delete this section if it is not applicable to this PR. Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release. When forming the risk matrix, consider some of the following examples and how they may potentially impact the change: | Risk | Probability | Severity | Mitigation/Notes | |---------------------------|-------------|----------|-------------------------| | Multiple Spaces—unexpected behavior in non-default Kibana Space. | Low | High | Integration tests will verify that all features are still supported in non-default Kibana Space and when user switches between spaces. | | Multiple nodes—Elasticsearch polling might have race conditions when multiple Kibana nodes are polling for the same tasks. | High | Low | Tasks are idempotent, so executing them multiple times will not result in logical error, but will degrade performance. To test for this case we add plenty of unit tests around this logic and document manual testing procedure. | | Code should gracefully handle cases when feature X or plugin Y are disabled. | Medium | High | Unit tests will verify that any feature flag or plugin combination still results in our service operational. | | [See more potential risk examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx) | ### For maintainers - [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) |