Skip to content

Update Rust toolchain to 1.46.0 #2323

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

Merged
merged 4 commits into from
Dec 9, 2020

Conversation

acatangiu
Copy link
Contributor

@acatangiu acatangiu commented Dec 7, 2020

Description of Changes

Ideally we would update to the latest stable which is 1.48.0 - which has also promoted aarch64-unknown-linux-musl to Tier 2.

Unfortunately that's not possible because of compiler and linker issues rust-lang/rust#79789 and rust-lang/rust#79791.

Latest stable we can use now is 1.46.0 - the version targeted by this PR.

Binary size decreases along with covered lines because of aggressive LTO code deduplication.

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

[Author TODO: Meet these criteria.]
[Reviewer TODO: Verify that these criteria are met. Request changes if not]

  • All commits in this PR are signed (git commit -s).
  • The reason for this PR is clearly provided (issue no. or explanation).
  • The description of changes is clear and encompassing.
  • Any required documentation changes (code and docs) are included in this PR.
  • Any newly added unsafe code is properly documented.
  • Any API changes are reflected in firecracker/swagger.yaml.
  • Any user-facing changes are mentioned in CHANGELOG.md.
  • All added/changed functionality is tested.

@acatangiu acatangiu self-assigned this Dec 7, 2020
acatangiu and others added 4 commits December 9, 2020 16:02
Signed-off-by: Adrian Catangiu <[email protected]>
Upon exec, a mprotect call is triggered. Since
this syscall is not whitelisted the CI would fail
with "Bad System Call". This is needed only in the CI.

Signed-off-by: Diana Popa <[email protected]>
@dianpopa dianpopa requested a review from a team December 9, 2020 14:02
Copy link
Contributor

@georgepisaltu georgepisaltu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@@ -18,7 +18,7 @@ pub(crate) fn compact_page_frame_numbers(v: &mut Vec<u32>) -> Vec<(u32, u32)> {
// received at once from a single descriptor is `MAX_PAGES_IN_DESC`,
// this sort does not change the complexity of handling
// an inflation.
v.sort();
v.sort_unstable();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@@ -4,8 +4,7 @@ FROM ubuntu:18.04
# The Rust toolchain layer will get updated most frequently, but we could keep the system
# dependencies layer intact for much longer.

ARG RUST_TOOLCHAIN="1.43.1"
ARG RUST_TOOLCHAIN_AUDIT="1.47.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this change mean auditing will always be done with the latest stable version (instead of the previously hard-coded value)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yass

@@ -23,7 +23,7 @@
# this contains the frequency while on AMD it does not.
# Checkout the cpuid crate. In the future other
# differences may appear.
COVERAGE_DICT = {"Intel": 85.25, "AMD": 84.50, "ARM": 82.72}
COVERAGE_DICT = {"Intel": 85.04, "AMD": 84.27, "ARM": 82.98}
Copy link
Contributor

@georgepisaltu georgepisaltu Dec 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

x86 coverage dropping while the ARM one is rising. Maybe they are trending towards the mean value?

@luminitavoicu luminitavoicu merged commit 8553d64 into firecracker-microvm:master Dec 9, 2020
@acatangiu acatangiu deleted the rust-vers-bump branch December 15, 2020 12:08
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.

4 participants