-
Notifications
You must be signed in to change notification settings - Fork 124
Defer cleanup flag #175
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
Defer cleanup flag #175
Conversation
As expected it decreased the total execution time from ~9m to ~7m. |
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 this very much — it decouples the cleanup sleep from the log level, making it useable regardless of log level. 👍
I noticed that there is a bit of code duplication between the pipeline test runner and the system test runner. When we introduce the Asset Test Runner in #168, we would have to duplicate the logic there as well. I wonder if we could somehow prevent this, maybe by making the teardown step part of the API of a test runner?
Are you referring to the part of |
Yes, I'm wondering if we can:
Thinking about this more, this might be a lot easier to implement when the changes in #168 get merged, where I introduce an interface type for test runners to implement: https://github.com/elastic/elastic-package/pull/168/files#diff-348effe2edd1aca63ec29394369029f7844afde24cd36ce7210fae5c55729bb5R22. So we can leave this PR as-is for now, or extract the interface type out of #168 into this PR, or do something else in this PR — up to you. |
Yes, I was thinking about the same. Could we postpone this refactor change then? |
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.
This PR modifies the condition for sleeping before tear down and makes it test runner wide.
It adds a new command option:
--defer-cleanup
.