-
Notifications
You must be signed in to change notification settings - Fork 94
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
test: refactor to benchmark suite and add test-benchmark target #383
Conversation
Signed-off-by: Ziwen Ning <ningziwe@amazon.com>
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.
Maybe out of scope, but you might want to delete the persistent volume before/after the container tests, or between tests in general.
LGTM other than the comments I left
Is it necessary to delete persistent volume? I already removed the container and image. |
It's probably not strictly necessary, but there could be other things cached in nerdctl's data stores from previous runs of the e2e tests or benchmarks. Also, when you run It's up to you, I don't really have a strong opinion one way or the other. You may or may not notice weird bugs in the future if there are any issues with lingering images/containers/layers, but I guess we don't need to address that until it actually happens. |
I see. Benchmarking should measure whatever the users experience daily. If something is cached in persistent disk, as users don't clean up persistent disk daily, it also applies to the users. So I think we can start from the direct scenarios now and add cleaner scenarios later if needed. |
I agree with that generally, but you also want to have a static reference point so that benchmarks can be compared over time. If there is any corruption or weird artifacts left on the persistent disk over time, it may skew the benchmark results. We don't need to act on that right now though, we can wait and see if that type of issue presents itself first. |
#345
Description of changes:
Refactor to benchmark suite so we can insert vm init between vm benchmark and container benchmark.
Testing done:
License Acceptance
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.