Skip to content
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

Rust toolchain upgrade 1.64 -> 1.66 for Firecracker v1.1 #3342

Conversation

andreitraistaru
Copy link
Contributor

@andreitraistaru andreitraistaru commented Dec 29, 2022

Reason

Rust toolchain upgrade from 1.64 to 1.66.

License Acceptance

By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license.

PR Checklist

  • All commits in this PR are signed (git commit -s).
  • If a specific issue led to this PR, this PR closes the issue.
  • The description of changes is clear and encompassing.
  • Any required documentation changes (code and docs) are included in this PR.
  • New unsafe code is documented.
  • API changes follow the Runbook for Firecracker API changes.
  • User-facing changes are mentioned in CHANGELOG.md.
  • All added/changed functionality is tested.
  • New TODOs link to an issue.

  • This functionality can be added in rust-vmm.

@andreitraistaru andreitraistaru force-pushed the firecracker-v1.1 branch 4 times, most recently from a022d39 to ddbdff2 Compare December 29, 2022 11:38
@andreitraistaru andreitraistaru self-assigned this Dec 29, 2022
@andreitraistaru andreitraistaru force-pushed the firecracker-v1.1 branch 4 times, most recently from 0ea70c1 to 59a1e22 Compare December 29, 2022 14:05
@andreitraistaru andreitraistaru marked this pull request as ready for review December 29, 2022 14:12
@andreitraistaru andreitraistaru changed the title Firecracker v1.1 Rust toolchain upgrade 1.64 -> 1.66 for Firecracker v1.1 Dec 29, 2022
@JonathanWoollett-Light
Copy link
Contributor

I would suggest adding a .git-blame-ignore-revs like this with cdad961 since this commit is mostly an auto-formatting.

@andreitraistaru andreitraistaru force-pushed the firecracker-v1.1 branch 2 times, most recently from 5e96bdf to 75adbbd Compare December 29, 2022 15:03
@andreitraistaru
Copy link
Contributor Author

Fixed that. Thank you!

@JonathanWoollett-Light
Copy link
Contributor

Some extra nits:

  • Rename 6d6ac61 to Update Rust 1.66 to match the title of e01e6db (or vice-versa).
  • Add conventional commit tags.

Signed-off-by: Jonathan Woollett-Light <jcawl@amazon.co.uk>
(cherry picked from commit 4ae37a4)
Signed-off-by: Trăistaru Andrei Cristian <atc@amazon.com>
(cherry picked from commit f67ef5c)
As a result of the Rust toolchain upgrade from 1.65 to 1.66,
several clippy errors appeared (most of them being
clippy::unneccesary_cast). This commit fixes these errors.

Signed-off-by: Traistaru Andrei Cristian <atc@amazon.com>
(cherry picked from commit 0de96ce)
The previous approach was to iterate through the known attached file
descriptors, we now instead iterate through and attempt to close all
possible attached file descriptors. This offers a more robust
and safe implementation.

This fixes a bug which arises in Rust versions >=1.65.0 from a file
descriptor being closed twice.

Signed-off-by: Jonathan Woollett-Light <jcawl@amazon.co.uk>
(cherry picked from commit f79c94d)
This commit switches to black for checking python checkstyle. The
code changes done in the *py files are generated automatically by
runnig `black .` from the firecracker/tests directory in the devctr.

Signed-off-by: Traistaru Andrei Cristian <atc@amazon.com>
Signed-off-by: Traistaru Andrei Cristian <atc@amazon.com>
Signed-off-by: Traistaru Andrei Cristian <atc@amazon.com>
@andreitraistaru andreitraistaru merged commit 42484dd into firecracker-microvm:firecracker-v1.1 Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants