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

Update devctr to 24.04 #4784

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Conversation

pb8o
Copy link
Contributor

@pb8o pb8o commented Sep 6, 2024

Changes

  • Update devctr to Ubuntu 24.04
  • Refresh Python dependencies
  • Adapt tests to match the new userspace, particularly the new iperf3 version
  • Make devctr smaller

Reason

  • Keep up to date with the latest Ubuntu LTS and benefit from the updating tooling.
    In addition also

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

  • 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.
  • 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.
  • Commits meet
    contribution quality standards.

  • This functionality cannot be added in rust-vmm.

@pb8o pb8o added Priority: Low Indicates that an issue or pull request should be resolved behind issues or pull requests labelled ` Status: Awaiting author Indicates that an issue or pull request requires author action labels Sep 6, 2024
@pb8o pb8o self-assigned this Sep 6, 2024
@pb8o pb8o force-pushed the devctr-2404 branch 4 times, most recently from 5a11652 to a06fb20 Compare September 13, 2024 05:55
Copy link

codecov bot commented Sep 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.36%. Comparing base (7803c42) to head (b4af84d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4784   +/-   ##
=======================================
  Coverage   84.36%   84.36%           
=======================================
  Files         249      249           
  Lines       27501    27501           
=======================================
  Hits        23202    23202           
  Misses       4299     4299           
Flag Coverage Δ
5.10-c5n.metal 84.60% <ø> (ø)
5.10-m5n.metal 84.58% <ø> (ø)
5.10-m6a.metal 83.87% <ø> (ø)
5.10-m6g.metal 80.93% <ø> (ø)
5.10-m6i.metal 84.58% <ø> (-0.01%) ⬇️
5.10-m7g.metal 80.93% <ø> (ø)
6.1-c5n.metal 84.60% <ø> (ø)
6.1-m5n.metal 84.58% <ø> (-0.01%) ⬇️
6.1-m6a.metal 83.87% <ø> (ø)
6.1-m6g.metal 80.93% <ø> (+<0.01%) ⬆️
6.1-m6i.metal 84.58% <ø> (ø)
6.1-m7g.metal 80.93% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pb8o pb8o force-pushed the devctr-2404 branch 6 times, most recently from b0a29c2 to a1edc07 Compare September 18, 2024 08:53
@pb8o pb8o added Status: Awaiting review Indicates that a pull request is ready to be reviewed and removed Status: Awaiting author Indicates that an issue or pull request requires author action labels Sep 18, 2024
@pb8o pb8o marked this pull request as ready for review September 18, 2024 10:40
It doesn't end up much shorter but at least it is more readable.

Signed-off-by: Pablo Barbáchano <[email protected]>
Rewrite the only test that needs pandas.

pandas is a heavy dependency that weighs in around 50MB. It also
recently started printing a warning that in the future it will require
pyarrow, which is another 40 MB.

Pandas is great, however our usage of it is minimal.

Size of devctr does not change much, but we avoid the warning, and not
having to deal with pyarrow in the future.

Example output:
```
MSR removed 0x13 before=0x0
MSR changed 0x179 before=0x20ffff after=0x20
MSR added 0x17 after=0x0
MSR added 0x11 after=0x25ba008
```

Signed-off-by: Pablo Barbáchano <[email protected]>
Capture stdout in those tests. There is no reason why we should run
those tests differently than the others.

Also add worksteal option to xdist.

Signed-off-by: Pablo Barbáchano <[email protected]>
This was reverted in 157b739, but since
then we have added more Rust toolchains, so it adds up. Removing reduces
the image size quite a bit:

Uncompressed: 4.57GiB -> 3.31 GiB (-28%)
Compressed: 1213MiB -> 1058MiB (-13%)

Signed-off-by: Pablo Barbáchano <[email protected]>
This was partially done in c839707. We
can also drop it from the dependency list.

Fixes: c839707

Signed-off-by: Pablo Barbáchano <[email protected]>
This is to be able to manipulate squashfs images during test runs.

Signed-off-by: Pablo Barbáchano <[email protected]>
Notably, Python and poetry required some changes to keep working the way
it was, as installing Python modules via pip outside a venv is getting
more and more difficult.

Raised the versions of Python dependencies, and updated some pinned
versions.

Signed-off-by: Pablo Barbáchano <[email protected]>
Remove some assignments without purpose.

Signed-off-by: Pablo Barbáchano <[email protected]>
New version of Pylint complains about a few
`possibly-used-before-assignment`.

Signed-off-by: Pablo Barbáchano <[email protected]>
iperf3 3.16 needs to send more data to reliably detect the throughtput.

Signed-off-by: Pablo Barbáchano <[email protected]>
Use the new devctr from latest changes

Signed-off-by: Pablo Barbáchano <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Low Indicates that an issue or pull request should be resolved behind issues or pull requests labelled ` Status: Awaiting review Indicates that a pull request is ready to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants