[core] fix cleanup logic for rolling file tests#90797
Merged
mshustov merged 5 commits intoelastic:masterfrom Feb 11, 2021
Merged
[core] fix cleanup logic for rolling file tests#90797mshustov merged 5 commits intoelastic:masterfrom
mshustov merged 5 commits intoelastic:masterfrom
Conversation
Contributor
|
Pinging @elastic/kibana-core (Team:Core) |
mshustov
commented
Feb 9, 2021
| await rmdir(testDir); | ||
| await rmdir(testDir, { recursive: true }); | ||
| } catch (e) { | ||
| /* trap */ |
Contributor
Author
There was a problem hiding this comment.
@pgayvallet Why we swallow an exception here?
Contributor
Author
|
@elasticmachine merge upstream |
rudolf
approved these changes
Feb 9, 2021
Contributor
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
Contributor
|
Backport result |
kibanamachine
added a commit
to kibanamachine/kibana
that referenced
this pull request
Feb 11, 2021
* fix cleanup for rolling file tests * do not swallow errors Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
mshustov
added a commit
that referenced
this pull request
Feb 11, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
I noticed several
rolling-testOe2nnTlike folders after I ranintegration_tests. It's turned out the cleanup stage failed silently due toThis PR fixes the problem and adds logging for the cases when
fs.rmdirthrows an exception.