-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[1.11] backport Kani fixes #5107
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
[1.11] backport Kani fixes #5107
Conversation
In some cases running kani steps is not useful and only results in longer pipeline runs. Add option to disable it if needed. (cherry picked from commit 83119b8) Signed-off-by: Egor Lazarchuk <[email protected]>
Kani tests run very close to the current timeout values. Increase timeout to 1h. (cherry picked from commit ed0d202) Signed-off-by: Egor Lazarchuk <[email protected]>
--enable-unstable and --restrict-vtable got deprecated in kani 0.59.0 in favor of variants based on -Z flags. So use the -Z flags instead (cherry picked from commit 8495af9) Signed-off-by: Patrick Roy <[email protected]>
rebuilding the docker container can upgrade kani, and we'd like to know at the PR stage if that causes issues (such as timeouts). (cherry picked from commit 0fff2c8) Signed-off-by: Patrick Roy <[email protected]>
Instead of copying the buffers byte-by-byte in a loop, just use copy_from_slice, which compiles to a memcpy. While we're at it, drop some unused function definitions. Also remove the special snowflake functions for dealing with i8 slices, and instead just use zerocopy to safely transmute these into u8 slices, on which the normal functions work. (cherry picked from commit 35d6afd) Signed-off-by: Patrick Roy <[email protected]>
with the byte_order modules no longer using loops, this is no longer needed. (cherry picked from commit dd0d932) Signed-off-by: Patrick Roy <[email protected]>
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 think #5069 isnt strictly needed, but cant hurt
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## firecracker-v1.11 #5107 +/- ##
=====================================================
- Coverage 83.19% 83.19% -0.01%
=====================================================
Files 247 247
Lines 26641 26636 -5
=====================================================
- Hits 22165 22160 -5
Misses 4476 4476
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I just didn't want to resolve the merge conflict by hand. |
b5ee7be
into
firecracker-microvm:firecracker-v1.11
Changes
Backport #5069 and #5078 .
Reason
Bumping devctr version (75b1a1d) brought Kani timeouts that we observed in main.
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
tools/devtool checkstyle
to verify that the PR passes theautomated style checks.
how they are solving the problem in a clear and encompassing way.
[ ] I have updated any relevant documentation (both in code and in the docs)in the PR.
[ ] I have mentioned all user-facing changes inCHANGELOG.md
.[ ] If a specific issue led to this PR, this PR closes the issue.[ ] When making API changes, I have followed theRunbook for Firecracker API changes.
[ ] I have tested all new and changed functionalities in unit tests and/orintegration tests.
[ ] I have linked an issue to every newTODO
.rust-vmm
.