-
Notifications
You must be signed in to change notification settings - Fork 24
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
limit the number of artifacts directories retained on disk #314
limit the number of artifacts directories retained on disk #314
Conversation
Signed-off-by: Dasha Komsa <komsa.darya@gmail.com>
a078f9c
to
2807ad0
Compare
integration test is very welcome :) |
Signed-off-by: Dasha Komsa <komsa.darya@gmail.com>
6e79322
to
7d81d24
Compare
Since there's no prior art, are you thinking something like this: https://github.com/crossplane/crossplane/blob/master/test/e2e/README.md? e.g. run the provider against a |
Thanks, overall LGTM
I think it is fine to go with unit test for the moment. let's introduce integration test in a follow-up PR! we can be inspired from other projects such as aws provider |
Signed-off-by: Dasha Komsa <komsa.darya@gmail.com>
Added a couple unit tests. I know I mentioned in the beginning using the actual ansible-runner, but when I looked closer, there's no good way to do that without running the test in a container with a custom dockerfile: ansible-runner install requires python, and that's not something we can't just So the tests I added are your typical unit tests using dummy commands, just checking that the runner settings and command args are set correctly. |
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.
Thanks
Description of your changes
Fixes #311
This prevents too much data from accumulating on disk, especially now that retries are happening since each retry creates an artifacts directory.
I have:
make reviewable
to ensure this PR is ready for review.backport release-x.y
labels to auto-backport this PR if necessary.How has this code been tested
ansibleDir/$UID-of-the-run/artifacts