mirror of
https://github.com/elastic/kibana.git
synced 2025-04-22 17:04:01 -04:00
# Backport This will backport the following commits from `main` to `8.10`: - [[esArchiver] Do not perform SO migration on cleanup (#163302)](https://github.com/elastic/kibana/pull/163302) <!--- Backport version: 8.9.7 --> ### 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":"2023-09-01T10:41:20Z","message":"[esArchiver] Do not perform SO migration on cleanup (#163302)\n\n## Summary\r\n\r\nAttempt at fixing https://github.com/elastic/kibana/issues/127545\r\n\r\nThe failing tests use `esArchiver` to cleanup Saved Object indices\r\nbetween tests.\r\nStrangely, the cleanup method calls the migration logic to update the SO\r\nindices.\r\n\r\nIn this particular source of flakiness, a test fails during the\r\nmigration (problem is tracked by\r\nhttps://github.com/elastic/kibana/issues/163289).\r\n\r\nPerforming a migration as part of the cleanup does not make too much\r\nsense (at least in this test suite), so the goal of this PR is to\r\nsimplify the cleanup operation, getting rid of the call to\r\n`migrateSavedObjectIndices`.\r\n\r\n50 runs flaky test runner\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2850\r\n✅","sha":"f8303ec7cf57aa8787331ada397dfa853de969c9","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","Team:Core","Team:Operations","release_note:skip","test-failure-flaky","backport:all-open","v8.11.0"],"number":163302,"url":"https://github.com/elastic/kibana/pull/163302","mergeCommit":{"message":"[esArchiver] Do not perform SO migration on cleanup (#163302)\n\n## Summary\r\n\r\nAttempt at fixing https://github.com/elastic/kibana/issues/127545\r\n\r\nThe failing tests use `esArchiver` to cleanup Saved Object indices\r\nbetween tests.\r\nStrangely, the cleanup method calls the migration logic to update the SO\r\nindices.\r\n\r\nIn this particular source of flakiness, a test fails during the\r\nmigration (problem is tracked by\r\nhttps://github.com/elastic/kibana/issues/163289).\r\n\r\nPerforming a migration as part of the cleanup does not make too much\r\nsense (at least in this test suite), so the goal of this PR is to\r\nsimplify the cleanup operation, getting rid of the call to\r\n`migrateSavedObjectIndices`.\r\n\r\n50 runs flaky test runner\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2850\r\n✅","sha":"f8303ec7cf57aa8787331ada397dfa853de969c9"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/163302","number":163302,"mergeCommit":{"message":"[esArchiver] Do not perform SO migration on cleanup (#163302)\n\n## Summary\r\n\r\nAttempt at fixing https://github.com/elastic/kibana/issues/127545\r\n\r\nThe failing tests use `esArchiver` to cleanup Saved Object indices\r\nbetween tests.\r\nStrangely, the cleanup method calls the migration logic to update the SO\r\nindices.\r\n\r\nIn this particular source of flakiness, a test fails during the\r\nmigration (problem is tracked by\r\nhttps://github.com/elastic/kibana/issues/163289).\r\n\r\nPerforming a migration as part of the cleanup does not make too much\r\nsense (at least in this test suite), so the goal of this PR is to\r\nsimplify the cleanup operation, getting rid of the call to\r\n`migrateSavedObjectIndices`.\r\n\r\n50 runs flaky test runner\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2850\r\n✅","sha":"f8303ec7cf57aa8787331ada397dfa853de969c9"}}]}] BACKPORT--> Co-authored-by: Gerard Soldevila <gerard.soldevila@elastic.co> |
||
---|---|---|
.. | ||
src | ||
index.ts | ||
jest.config.js | ||
kibana.jsonc | ||
package.json | ||
README.mdx | ||
tsconfig.json |
--- id: kibDevDocsOpsEsArchiver slug: /kibana-dev-docs/ops/es-archiver title: "ES Archiver" description: A tool which helps developers capture and restore ES indexes tags: ['kibana', 'dev', 'contributor', 'operations', 'ci'] --- The ES Archiver is a service primarily used by the Functional Tests to load up ES indexes using the bulk API which makes the archives more resilient to ES upgrades and easier to inspect/edit locally because they are just plain text files containing newline-delimited JSON (though they are sometimes compressed). ## CLI This tool also has a CLI which can be used to save indexes to new archives or load additional archives into a specific ES instance. To teach the ES Archiver how to talk to ES and Kibana it is ideal to start ES and Kibana using `node scripts/functional_test_servers --config some/config/file.ts` and then use the same `--config` flag when running `node scripts/es_archiver` so that it can access the location and authorization information about the ES instace from the FTR config file. Additional information about what functionality the CLI provides can be found by running `node scripts/es_archiver --help`