-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 cross-kernel snapshot/restore tests #4632
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4632 +/- ##
=======================================
Coverage 82.10% 82.10%
=======================================
Files 255 255
Lines 31280 31280
=======================================
Hits 25681 25681
Misses 5599 5599
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
b643012
to
ee88c2a
Compare
27b0b11
to
a402224
Compare
I really love this PR!! Just for future reference, let me post before/after for "we see one test case for each directory, instead of one test per CPU template, so it is clear what is being restored." Before:
After:
|
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.
We might want to split the first commit into two (one for rewrite and another one for removal of some combinations).
Since PR#3896 this test always succeeded because it did not find any snapshot directories. Rewrite and fix the test so that - we see one test case for each directory, instead of one test per CPU template, so it is clear what is being restored. - switch to creating the microvm through the API rather than a JSON file so that the Microvm/Snapshot classes can account for all the devices. Signed-off-by: Pablo Barbáchano <pablob@amazon.com>
Remove the combinations that were added while this test was falsely working but never worked: - x86 snapshot in host 6.1 -> restore in host 5.10 - arm m6g all combinations, m7g host 4.14 and host 5.10 Signed-off-by: Pablo Barbáchano <pablob@amazon.com>
Re-use the logic that other tests use to get the list of templates. This starts testing T2A and T2CL templates when applicable. Signed-off-by: Pablo Barbáchano <pablob@amazon.com>
Changes
fix: ensure snapshot_restore cross kernel test runs
Since PR#3896 this test always succeeded because it did not find any snapshot directories.
Rewrite and fix the test so that
In addition, remove the combinations that were added while this test was falsely working but never worked:
Also add templates that were not being exercised before: T2A, T2CL
Reason
The test was succeeding falsely.
License Acceptance
By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license. For more information on following Developer
Certificate of Origin and signing off your commits, please check
CONTRIBUTING.md
.PR Checklist
PR.
CHANGELOG.md
.TODO
s link to an issue.contribution quality standards.
rust-vmm
.