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

fix: devtool install --path broken #4890

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

mpbb
Copy link
Contributor

@mpbb mpbb commented Nov 5, 2024

This ensures binaries are installed in the directory specified by --path.

Previously if --path specified a non existent directory it would create a single file.

Changes

When using devtool install --path interpret the path as a directory and create one if it does not exist.
...

Reason

Previously devtool install --path would attempt to install all binaries, using path as a file name if path was not the name of a directory.
...

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.

tools/devtool Outdated Show resolved Hide resolved
@mpbb mpbb requested a review from pb8o November 10, 2024 02:15
@mpbb mpbb force-pushed the fix-devtool-install branch from f72280d to 5c7ddaa Compare November 10, 2024 02:34
Copy link

codecov bot commented Nov 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.07%. Comparing base (350d617) to head (735fbcb).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4890   +/-   ##
=======================================
  Coverage   84.07%   84.07%           
=======================================
  Files         251      251           
  Lines       28067    28067           
=======================================
  Hits        23597    23597           
  Misses       4470     4470           
Flag Coverage Δ
5.10-c5n.metal 84.64% <ø> (+<0.01%) ⬆️
5.10-m5n.metal 84.62% <ø> (ø)
5.10-m6a.metal 83.93% <ø> (ø)
5.10-m6g.metal 80.75% <ø> (ø)
5.10-m6i.metal 84.62% <ø> (ø)
5.10-m7g.metal 80.75% <ø> (ø)
6.1-c5n.metal 84.64% <ø> (+<0.01%) ⬆️
6.1-m5n.metal 84.62% <ø> (ø)
6.1-m6a.metal 83.93% <ø> (ø)
6.1-m6g.metal 80.75% <ø> (+<0.01%) ⬆️
6.1-m6i.metal 84.62% <ø> (ø)
6.1-m7g.metal 80.75% <ø> (ø)

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.


🚨 Try these New Features:

tools/devtool Outdated Show resolved Hide resolved
tools/devtool Outdated Show resolved Hide resolved
@mpbb mpbb force-pushed the fix-devtool-install branch 2 times, most recently from c371994 to fddf4f0 Compare November 11, 2024 14:20
@pb8o pb8o self-assigned this Nov 12, 2024
@pb8o pb8o added Type: Fix Indicates a fix to existing code Status: Awaiting review Indicates that a pull request is ready to be reviewed labels Nov 12, 2024
@pb8o
Copy link
Contributor

pb8o commented Nov 12, 2024

@mpbb It looks like our style checks fail. Could you change the commit body to have lines shorter than 72 characters? I usually do git commit --amend to do that. You can also run the style checks on your end with ./tools/devtool checkstyle.

Sorry about that.

ensures binaries are installed in the directory specified by --path.

previously binaries could be overwriten during installation.

Signed-off-by: Matthew Buckingham-Bishop <[email protected]>
@mpbb mpbb force-pushed the fix-devtool-install branch from 7fc67c9 to 41f1bea Compare November 20, 2024 00:37
@mpbb
Copy link
Contributor Author

mpbb commented Nov 20, 2024

@pb8o Thanks for your help, fixed my commit message.

@pb8o pb8o merged commit 5487c06 into firecracker-microvm:main Nov 20, 2024
7 checks passed
@pb8o
Copy link
Contributor

pb8o commented Nov 20, 2024

Merged! Thanks a lot for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting review Indicates that a pull request is ready to be reviewed Type: Fix Indicates a fix to existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants