[Migrations] Fix integration tests that use ZIP archives that are not compatible with 9.0.0#193856
Conversation
|
Pinging @elastic/kibana-core (Team:Core) |
afharo
left a comment
There was a problem hiding this comment.
LGTM. I just added a few nits for your consideration.
| @@ -0,0 +1,292 @@ | |||
| /* | |||
There was a problem hiding this comment.
nit: this one might need its own group, as starting multiple Kibanas, with delays increase the execution time, and the chances of failing due to timeouts (and retrying the whole CI job).
There was a problem hiding this comment.
It already has its own group, there aren't any other tests in group2 anymore 😛 .
I will increase jest timeout though, thanks for raising the poing
| afterEach(async () => { | ||
| checkMigratorsResults(); | ||
| await checkIndicesInfo(); | ||
| await checkSavedObjectDocuments(); | ||
| await checkMigratorsSteps(); | ||
| await checkUpToDateOnRestart(); | ||
| }); | ||
|
|
||
| afterEach(async () => { | ||
| await esServer?.stop(); | ||
| await delay(5); // give it a few seconds... cause we always do ¯\_(ツ)_/¯ | ||
| }); |
There was a problem hiding this comment.
2 afterEach where esServer can be stopped before completing the checks in the other afterEach.
There was a problem hiding this comment.
Oh, that's a good catch, will put them together + finally block.
| afterEach(async () => { | ||
| checkMigratorsResults(); | ||
| await checkIndicesInfo(); | ||
| await checkSavedObjectDocuments(); | ||
| await checkMigratorsSteps(); | ||
| await checkUpToDateOnRestart(); | ||
| }); |
There was a problem hiding this comment.
I love the shared piece of code, but it feels weird to run the validations in the after phase.
I wonder if an it.each with a table format (description and delay) that runs startWithDelay + these checks is better.
There was a problem hiding this comment.
I like the idea, will update it
| @@ -0,0 +1,292 @@ | |||
| /* | |||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | |||
There was a problem hiding this comment.
nit: there's another file multiple_es_nodes. Should we specify this one to be multi_kb_node_split?
There was a problem hiding this comment.
Accepted proposal, will rename to to multiple_kb_nodes
multi_node_split testmultiple_kb_nodes test
multiple_kb_nodes test… failing on next minor)
|
Already backported with #194013 |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
In fact #194013 will backport multiple of the tests' updates:
There are dependencies between them, and on top of that I need to generate the 8.16.0 baseline zip archives (wrote a test for that). If I backport them one by one it'll take ages. |
Summary
Part of https://github.com/elastic/kibana-team/issues/1113