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

Microvm helpers for interactive usage #4081

Merged
merged 3 commits into from
Sep 20, 2023

Conversation

pb8o
Copy link
Contributor

@pb8o pb8o commented Aug 31, 2023

Changes

Some unrelated changes included:

  • a fix for the devctr sanity build
  • remove some dead code

Reason

This enables interactive use of Microvms, will follow up with a sandbox helper script.

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 self-assigned this Aug 31, 2023
@pb8o pb8o added Status: Awaiting author Indicates that an issue or pull request requires author action python Pull requests that update Python code labels Aug 31, 2023
@pb8o pb8o changed the title Vm helpers Microvm helpers for interactive usage Aug 31, 2023
@codecov
Copy link

codecov bot commented Aug 31, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.03% ⚠️

Comparison is base (e2aabc2) 82.26% compared to head (3010252) 82.24%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4081      +/-   ##
==========================================
- Coverage   82.26%   82.24%   -0.03%     
==========================================
  Files         225      225              
  Lines       28466    28466              
==========================================
- Hits        23417    23411       -6     
- Misses       5049     5055       +6     
Flag Coverage Δ
4.14-c7g.metal 77.66% <ø> (ø)
4.14-m5d.metal 79.55% <ø> (-0.03%) ⬇️
4.14-m6a.metal 78.67% <ø> (ø)
4.14-m6g.metal 77.66% <ø> (ø)
4.14-m6i.metal 79.55% <ø> (ø)
5.10-c7g.metal 80.57% <ø> (ø)
5.10-m5d.metal 82.22% <ø> (ø)
5.10-m6a.metal 81.44% <ø> (ø)
5.10-m6g.metal 80.57% <ø> (ø)
5.10-m6i.metal 82.22% <ø> (ø)
6.1-c7g.metal 80.57% <ø> (ø)
6.1-m5d.metal 82.22% <ø> (ø)
6.1-m6a.metal 81.44% <ø> (ø)
6.1-m6g.metal 80.57% <ø> (ø)
6.1-m6i.metal 82.22% <ø> (ø)

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

see 1 file with indirect coverage changes

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

@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 Aug 31, 2023
@pb8o pb8o closed this Sep 11, 2023
@pb8o pb8o reopened this Sep 11, 2023
@pb8o
Copy link
Contributor Author

pb8o commented Sep 11, 2023

Reopening as it was closed by mistake

wearyzen
wearyzen previously approved these changes Sep 15, 2023
Copy link
Contributor

@bchalios bchalios left a comment

Choose a reason for hiding this comment

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

That looks awesome! Just one comment. Would it be easy to add some documentation on how to use it to launch an interactive session and small examples with what you can do with it?

@pb8o
Copy link
Contributor Author

pb8o commented Sep 15, 2023

That looks awesome! Just one comment. Would it be easy to add some documentation on how to use it to launch an interactive session and small examples with what you can do with it?

Actually I had some docs written for a different change, but they belong here. I will update the PR.

@pb8o pb8o requested review from wearyzen and bchalios September 15, 2023 12:52
bchalios
bchalios previously approved these changes Sep 15, 2023
Copy link
Contributor

@bchalios bchalios left a comment

Choose a reason for hiding this comment

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

LGTM! 🍻

wearyzen
wearyzen previously approved these changes Sep 15, 2023
@wearyzen wearyzen self-requested a review September 15, 2023 17:08
@pb8o pb8o dismissed stale reviews from wearyzen and bchalios via df2d956 September 15, 2023 18:08
@pb8o pb8o force-pushed the vm-helpers branch 3 times, most recently from 7321629 to cf67f5a Compare September 15, 2023 18:22
@pb8o pb8o requested a review from bchalios September 19, 2023 16:16
We should run the `build_devctr` target to test the Dockerfile changes.

In addition, also test the release if we make any changes to it.

Signed-off-by: Pablo Barbáchano <[email protected]>
Some utility functions to help when interactively debugging tests,
including one to run gdb on the microvm.

Signed-off-by: Pablo Barbáchano <[email protected]>
If the process has disappeared before we can reach it, ignore the
failure when measuring memory.

Signed-off-by: Pablo Barbáchano <[email protected]>
@wearyzen wearyzen merged commit 9b41a9b into firecracker-microvm:main Sep 20, 2023
5 checks passed
@pb8o pb8o deleted the vm-helpers branch September 20, 2023 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests that update Python code 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.

3 participants