Skip to content
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

fix flaky docs tests get-lifecycle (#95529) #95567

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

HiDAl
Copy link
Contributor

@HiDAl HiDAl commented Apr 26, 2023

The data-streams/downsampling.asciidoc test was missing a teardown clean of the ILM policies created. Due to this tests do not have the string ilm in its name, the automatic teardown process that cleans up the resources (check ESRestTestCase.java#L815 & DocsClientYamlTestSuiteIT.java lines 177 & 195) is not executed for this specific test. In the case this test runs right before the get-lifecycle test, the policy won't be automatically deleted hence the test checking the version will fail. Finally, the order of execution of the test is not guaranteed by the suite.

The `data-streams/downsampling.asciidoc` test was missing a teardown clean of the ILM policies created. Due to this tests *do not have* the string `ilm` in its name, the automatic teardown process that cleans up the resources (check `ESRestTestCase.java#L815` & `DocsClientYamlTestSuiteIT.java` lines 177 & 195) is not executed for this specific test. In the case this test runs right before the `get-lifecycle` test, the policy won't be automatically deleted hence the test checking the version will fail. Finally, the order of execution of the test is not guaranteed by the suite.
@HiDAl HiDAl added :Data Management/ILM+SLM Index and Snapshot lifecycle management backport Team:Data Management Meta label for data/management team labels Apr 26, 2023
@HiDAl HiDAl marked this pull request as ready for review April 26, 2023 10:24
@github-actions
Copy link
Contributor

Documentation preview:

@HiDAl HiDAl added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Apr 26, 2023
@elasticsearchmachine elasticsearchmachine merged commit 3c77f00 into elastic:8.7 Apr 26, 2023
@HiDAl HiDAl deleted the fix-95128 branch April 26, 2023 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Data Management/ILM+SLM Index and Snapshot lifecycle management Team:Data Management Meta label for data/management team v8.7.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants