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

Refactor common cli functions #468

Merged
merged 11 commits into from
Nov 8, 2018
Merged

Conversation

townsend2010
Copy link
Contributor

No description provided.

@townsend2010 townsend2010 mentioned this pull request Nov 7, 2018
@townsend2010 townsend2010 force-pushed the refactor-common-cli-functions branch from c0bf25e to ae2d1e6 Compare November 8, 2018 13:13
@codecov
Copy link

codecov bot commented Nov 8, 2018

Codecov Report

Merging #468 into master will increase coverage by 0.18%.
The diff coverage is 63.94%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #468      +/-   ##
==========================================
+ Coverage   66.44%   66.63%   +0.18%     
==========================================
  Files         142      144       +2     
  Lines        5602     5523      -79     
==========================================
- Hits         3722     3680      -42     
+ Misses       1880     1843      -37
Impacted Files Coverage Δ
src/client/cmd/info.h 100% <ø> (ø) ⬆️
src/client/cmd/list.h 100% <ø> (ø) ⬆️
src/client/cmd/mount.h 100% <ø> (ø) ⬆️
include/multipass/cli/argparser.h 100% <ø> (ø) ⬆️
src/client/cmd/start.h 100% <ø> (ø) ⬆️
src/client/cmd/launch.cpp 54.47% <0%> (ø) ⬆️
src/daemon/daemon.cpp 22.87% <0%> (ø) ⬆️
src/client/cmd/mount.cpp 80.85% <0%> (+9.82%) ⬆️
src/client/cmd/recover.cpp 100% <100%> (+7.89%) ⬆️
src/client/cmd/common_cli.h 100% <100%> (ø)
... and 19 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ba67cda...a0919c9. Read the comment docs.

Copy link
Contributor

@gerboland gerboland left a comment

Choose a reason for hiding this comment

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

I've played with this, not noticing any changes in cli behaviour. LGTM, just a few niggles that aren't blockers

src/client/cmd/common_cli.cpp Outdated Show resolved Hide resolved
src/client/cmd/common_cli.cpp Outdated Show resolved Hide resolved
src/client/cmd/list.h Show resolved Hide resolved
Change function name to be more descriptive.
Add comment to explain empty string.
@townsend2010
Copy link
Contributor Author

Merging manually since bors will fail due to the failing MacOS build.

@townsend2010 townsend2010 merged commit e4afd98 into master Nov 8, 2018
@bors bors bot deleted the refactor-common-cli-functions branch November 8, 2018 16:57
@Saviq Saviq mentioned this pull request Dec 20, 2018
bors bot added a commit that referenced this pull request Dec 20, 2018
551: Release 2018.12.1 r=townsend2010 a=Saviq

### Highlights

- On Linux, suspending/resuming the instance to/from disk is now supported. (#374)
- Better handling of delayed shutdown including posting `wall` messages to logged in users and allowing log ins to the instance unless 1 minute or less remains until shutdown. (#461, #50) 
- On Linux, all CPU flags should be passed into the running instance on newly created instances. (#516)
- Fixed some races around mount handling. (#514, #520)

### Bugs fixed:

- make the recover command idempotent (#528)
- explicitly stop mounts when deleting an instance to avoid a race (#520)
- be smarter about what group owns the multipass socket (#513, #523) 
- pass through all CPU flags when launching QEMU or libvirt instances (#516)
- use `info` log level for metrics issues (#515)
- fix potential race when starting a mount (#514)
- use `wall` shutdown messages for users logged into VM when delayed shutdown is initiated (#501)
- fix crash if exception during daemon start up (#487)
- refactor CLI code (#468)
- add default uid/gid mapping (#331)
- fix file metadata passthrough
- display uid/gid maps in info command (#439)
- add support for the suspend command (#374)
- shell to machine in delayed stop state (#461)
- improve uid/gid validation (#479)
- avoid leaking the libvirt bridge (#327, #413)
- add a restart command (#217)
- upgrade 3rd-party versions (#471)

Co-authored-by: bors[bot] <bors[bot]@users.noreply.github.com>
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.

2 participants