kibana/x-pack/test
Kibana Machine 97610fbc3e
[8.8] FTR: delete .kibana mappings from archives to avoid recreating SO indexes (#159957) (#160435)
# Backport

This will backport the following commits from `main` to `8.8`:
- [FTR: delete .kibana mappings from archives to avoid recreating SO
indexes (#159957)](https://github.com/elastic/kibana/pull/159957)

<!--- Backport version: 8.9.7 -->

### 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":"2023-06-23T16:04:11Z","message":"FTR:
delete .kibana mappings from archives to avoid recreating SO indexes
(#159957)\n\n## Summary\r\n\r\nRelated to #159582\r\n\r\nTo better
understand the PR, we need to have a look at
`esArchiver.load`\r\nfunction and how it handles `mappings.json`:\r\n-
It processes the file and if it finds saved object index
(e.g.\r\n`.kibana`), it will delete all SO indexes
(.kibana,\r\n.kibana_task_manager, .kibana_alerting_cases, etc.) created
on Kibana\r\nstart. Then esArchiver will re-create all indexes according
to defined\r\nmappings.\r\n\r\nIn order to keep our tests relevant to
the latest code changes, it is\r\ngood to avoid re-creating SO indexes
and use \"official\" ones whenever it\r\nis possible. This PR
removes/cleans `mappings.json` files where it seems\r\nreasonable. I
also deleted few not used archives:\r\n-
es_archiver/saved_objects/ui_counters\r\n-
es_archiver/saved_objects/usage_counters\r\n-
security_solution_cypress/es_archives/empty_kibana","sha":"88871faf60ec5a62c4aea48911883a6d7f937777","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v8.9.0","v8.8.2","v8.10.0"],"number":159957,"url":"https://github.com/elastic/kibana/pull/159957","mergeCommit":{"message":"FTR:
delete .kibana mappings from archives to avoid recreating SO indexes
(#159957)\n\n## Summary\r\n\r\nRelated to #159582\r\n\r\nTo better
understand the PR, we need to have a look at
`esArchiver.load`\r\nfunction and how it handles `mappings.json`:\r\n-
It processes the file and if it finds saved object index
(e.g.\r\n`.kibana`), it will delete all SO indexes
(.kibana,\r\n.kibana_task_manager, .kibana_alerting_cases, etc.) created
on Kibana\r\nstart. Then esArchiver will re-create all indexes according
to defined\r\nmappings.\r\n\r\nIn order to keep our tests relevant to
the latest code changes, it is\r\ngood to avoid re-creating SO indexes
and use \"official\" ones whenever it\r\nis possible. This PR
removes/cleans `mappings.json` files where it seems\r\nreasonable. I
also deleted few not used archives:\r\n-
es_archiver/saved_objects/ui_counters\r\n-
es_archiver/saved_objects/usage_counters\r\n-
security_solution_cypress/es_archives/empty_kibana","sha":"88871faf60ec5a62c4aea48911883a6d7f937777"}},"sourceBranch":"main","suggestedTargetBranches":["8.9","8.8"],"targetPullRequestStates":[{"branch":"8.9","label":"v8.9.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.8","label":"v8.8.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/159957","number":159957,"mergeCommit":{"message":"FTR:
delete .kibana mappings from archives to avoid recreating SO indexes
(#159957)\n\n## Summary\r\n\r\nRelated to #159582\r\n\r\nTo better
understand the PR, we need to have a look at
`esArchiver.load`\r\nfunction and how it handles `mappings.json`:\r\n-
It processes the file and if it finds saved object index
(e.g.\r\n`.kibana`), it will delete all SO indexes
(.kibana,\r\n.kibana_task_manager, .kibana_alerting_cases, etc.) created
on Kibana\r\nstart. Then esArchiver will re-create all indexes according
to defined\r\nmappings.\r\n\r\nIn order to keep our tests relevant to
the latest code changes, it is\r\ngood to avoid re-creating SO indexes
and use \"official\" ones whenever it\r\nis possible. This PR
removes/cleans `mappings.json` files where it seems\r\nreasonable. I
also deleted few not used archives:\r\n-
es_archiver/saved_objects/ui_counters\r\n-
es_archiver/saved_objects/usage_counters\r\n-
security_solution_cypress/es_archives/empty_kibana","sha":"88871faf60ec5a62c4aea48911883a6d7f937777"}}]}]
BACKPORT-->

Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>
2023-06-23 10:42:54 -07:00
..
accessibility [8.8] [Ingest Pipelines] Unskip functional and a11y tests (#157173) (#157257) 2023-05-10 05:59:49 -07:00
alerting_api_integration [Security solution] Second attempt at 8.8.1 GenAi Connector Feature Flag :) (#158939) 2023-06-02 14:26:06 -06:00
api_integration [ML] [8.8] fix saved object sync check for jobs in different space (#160402) 2023-06-23 15:21:30 +01:00
api_integration_basic [Cases] Refactor integration helper functions (#149640) 2023-02-08 13:02:32 -07:00
apm_api_integration [APM] Use transaction.duration.histogram for percentile aggs (#158909) 2023-06-02 15:59:42 +02:00
banners_functional [Archive Migration] x-pack-banners/multispace (#135783) 2022-09-27 12:03:01 +01:00
cases_api_integration [8.8] [Cases] Fixing a few more integration tests with arraysToEqual (#155942) (#156034) 2023-04-27 09:24:27 -07:00
cloud_integration [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
cloud_security_posture_api [Cloud Security] fetch k8s version and account id for telemetry 2023-03-28 11:27:08 +03:00
cloud_security_posture_functional [Cloud Posture] Dashboard initial FTR (#155163) 2023-04-23 11:51:44 +03:00
common Split the .kibana saved objects index into multiple indices (#154888) 2023-04-25 09:43:42 +02:00
custom_branding [Custom Branding] Add custom branding settings to Global settings (#150080) 2023-02-16 08:13:42 +01:00
defend_workflows_cypress [Security Solution][Endpoint] Cypress test to validate that Endpoint can stream alerts to ES/Kibana (#155455) 2023-04-25 09:16:09 -04:00
detection_engine_api_integration [8.8] [Security Solution][Detection Engine] fixes wildcard in field names issue for query language in detection rules (#157981) (#158539) 2023-05-26 03:59:28 -07:00
encrypted_saved_objects_api_integration [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
endpoint_api_integration_no_ingest [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
examples skip flaky suite (#156106) 2023-05-09 16:46:54 +01:00
fleet_api_integration [8.8] [Fleet] Include hidden data streams in package upgrade (#158654) (#158698) 2023-05-31 05:11:15 -07:00
fleet_cypress [ftr] rework kibana arg parsing, extend loggers correctly (#135944) 2022-07-08 08:54:56 -05:00
fleet_functional basic smoke test for Fleet installation package (#145475) 2022-11-17 14:53:54 -07:00
fleet_packages [Fleet] improvements to install packages script run by daily job (#148517) 2023-01-09 16:00:26 +01:00
ftr_apis [FTR] KbnClientSavedObjects improvements (#149582) 2023-01-30 09:05:53 -07:00
functional [8.8] FTR: delete .kibana mappings from archives to avoid recreating SO indexes (#159957) (#160435) 2023-06-23 10:42:54 -07:00
functional_basic [ftr] split 'x-pack/test/functional_basic/config.ts' into small config files (#149617) 2023-01-31 17:48:56 +01:00
functional_cloud [8.8] [Guided onboarding] Fix the missing help link (#156399) (#156550) 2023-05-03 08:38:31 -07:00
functional_cors [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
functional_embedded [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
functional_enterprise_search [Enterprise Search] Enterprise Search Cypress configuration (#155398) 2023-04-21 17:06:41 +02:00
functional_execution_context Make rule type param validation required (#154257) 2023-04-20 19:23:47 +02:00
functional_with_es_ssl [8.8] [RO] Incorrect Deletion of Webhook Actions in Kibana Rules (#159204) (#159443) 2023-06-12 03:06:47 -07:00
kubernetes_security [8.4] [Kubernetes Security] Tree nav group by both cluster id and name (#137858) 2022-08-04 13:14:31 -04:00
licensing_plugin [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
lists_api_integration [8.8] [Detection Engine][Exceptions] - Fix exception item update route (#159223) (#159420) 2023-06-21 16:57:59 +01:00
load Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
localization [Discover] Drag & drop for adding columns to the table (#153538) 2023-04-19 19:17:54 +02:00
monitoring_api_integration [Stack Monitoring] fix beat api tests (#153466) 2023-03-23 12:26:12 +01:00
observability_api_integration [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
observability_functional [8.8] Attempt to make Cases FTR tests less fragile (#156972) (#156983) 2023-05-08 06:29:00 -07:00
osquery_cypress Osquery cypress optimizations (#152332) 2023-03-07 16:05:17 +01:00
plugin_api_integration [Security solution] Second attempt at 8.8.1 GenAi Connector Feature Flag :) (#158939) 2023-06-02 14:26:06 -06:00
plugin_api_perf [Versioned HTTP] Add response runtime and type-level validation (#153011) 2023-03-13 10:54:42 -03:00
plugin_functional [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
reporting_api_integration skip failing es promotion suites (#156902) 2023-05-05 19:08:17 +01:00
reporting_functional skip flaky suite. #135309 2022-11-10 09:09:06 -06:00
rule_registry Revert "[8.8] [RAM] [PERF] Remove endpoint browserFields (#156869)" (#157442) 2023-05-12 12:24:23 -04:00
saved_object_api_integration [8.8] [Failing Tests] Skips and comments tests failing with no_shard_available_action (#159039) (#159546) 2023-06-13 02:30:17 -07:00
saved_object_tagging Fix failing test: X-Pack Saved Object Tagging Functional Tests.x-pack/test/saved_object_tagging/functional/tests/dashboard_integration·ts (#154191) 2023-04-03 11:42:14 -04:00
saved_objects_field_count [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
scalability [scalability testing] get the correct Gatling report (#153089) 2023-03-10 13:55:34 +01:00
screenshot_creation [8.8] [DOCS] Automate maintenance window screenshot (#157816) (#158283) 2023-05-24 14:32:59 -07:00
search_sessions_integration [8.8] FTR: delete .kibana mappings from archives to avoid recreating SO indexes (#159957) (#160435) 2023-06-23 10:42:54 -07:00
security_api_integration [Failing Test] Fixes intermittent failures in audit log integration tests (#154935) 2023-04-19 16:22:30 -04:00
security_functional [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
security_solution_cypress [8.8] FTR: delete .kibana mappings from archives to avoid recreating SO indexes (#159957) (#160435) 2023-06-23 10:42:54 -07:00
security_solution_endpoint [8.8] [Security Solution][Testing] Improve policy related endpoint regression test coverage (#157412) (#159482) 2023-06-12 08:13:49 -07:00
security_solution_endpoint_api_int [8.8] [functional tests] split fleet_api_integration config into smaller ones (#156407) (#156559) 2023-05-03 08:33:03 -07:00
security_solution_ftr [8.8] [Defend Workflows][Bug] Case flyout z-index (#153219) (#156505) 2023-05-03 08:31:46 -07:00
session_view [Session View] Fixes to slow process event queries + xterm.js updated. (#155326) 2023-04-25 09:25:01 -07:00
spaces_api_integration [8.8] [Failing Tests] Skips and comments tests failing with no_shard_available_action (#159039) (#159546) 2023-06-13 02:30:17 -07:00
stack_functional_integration [Stack Functional Integration] Fix test from #154115 (#154289) 2023-04-03 15:16:18 -07:00
threat_intelligence_cypress [Security Solution] Remove detection rules distributed via the file system (#143839) 2022-12-06 16:12:52 +01:00
timeline [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
ui_capabilities [8.8][Backport][Enterprise Search] Move Search Applications to Applications module (#156725) 2023-05-04 12:36:22 -07:00
upgrade Migrate reporting FTRs from the Stats Usage API (#151808) 2023-02-23 03:53:27 -07:00
upgrade_assistant_integration [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
usage_collection [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
tsconfig.json [Guided onboarding] Change the API prefix to /internal (#155643) 2023-04-25 11:21:20 -06:00