-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Migrations] Fix integration tests that use ZIP archives that are not compatible with 9.0.0 #193856
[Migrations] Fix integration tests that use ZIP archives that are not compatible with 9.0.0 #193856
Conversation
Pinging @elastic/kibana-core (Team:Core) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I just added a few nits for your consideration.
@@ -0,0 +1,292 @@ | |||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 afterEach
where esServer
can be stopped before completing the checks in the other afterEach
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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