Skip to content

Conversation

ricab
Copy link
Collaborator

@ricab ricab commented Mar 12, 2019

Reissue of #663

This can be merged presently. Client side to come separately.

ricab added 16 commits March 7, 2019 12:35
Place instance creation in a separate method that is called when launching, in preparation for an RPC create operation.
Add a `create` "lane" to the RPC protocol, reusing `launch` messages.
Moves instance name derivation and starting into (existing) auxiliary method, to facilitate merging changes in master.
Extend the original client with a basic `create` command, to use in daemon tests. Implement the skeleton of said command, with the goal of using it as the test interface to the corresponding RPC method. Test whether `create` is called (still failing).
Fills in overridden `run` method in TestCreate command. Fixes corresponding request and reply types.
Makes failing test pass.
@codecov
Copy link

codecov bot commented Mar 12, 2019

Codecov Report

Merging #676 into master will decrease coverage by 0.04%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #676      +/-   ##
==========================================
- Coverage   66.39%   66.34%   -0.05%     
==========================================
  Files         165      166       +1     
  Lines        5912     5927      +15     
==========================================
+ Hits         3925     3932       +7     
- Misses       1987     1995       +8
Impacted Files Coverage Δ
src/daemon/daemon_rpc.h 0% <ø> (ø) ⬆️
src/daemon/daemon.h 33.33% <ø> (ø) ⬆️
src/client/client.cpp 87.5% <100%> (-0.26%) ⬇️
src/daemon/daemon_rpc.cpp 86.56% <100%> (+0.41%) ⬆️
src/client/client.h 75% <75%> (ø)
src/daemon/daemon.cpp 21.48% <82.35%> (+0.54%) ⬆️
include/multipass/cli/command.h 48.57% <0%> (-14.29%) ⬇️

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 8f01ed3...fcdd90c. Read the comment docs.

@codecov
Copy link

codecov bot commented Mar 12, 2019

Codecov Report

Merging #676 into master will decrease coverage by 0.05%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #676      +/-   ##
==========================================
- Coverage   66.64%   66.59%   -0.06%     
==========================================
  Files         167      168       +1     
  Lines        5928     5943      +15     
==========================================
+ Hits         3951     3958       +7     
- Misses       1977     1985       +8
Impacted Files Coverage Δ
src/daemon/daemon_rpc.h 0% <ø> (ø) ⬆️
src/daemon/daemon.h 33.33% <ø> (ø) ⬆️
src/client/client.cpp 87.5% <100%> (-0.26%) ⬇️
src/daemon/daemon_rpc.cpp 86.56% <100%> (+0.41%) ⬆️
src/client/client.h 75% <75%> (ø)
src/daemon/daemon.cpp 21.69% <82.35%> (+0.54%) ⬆️
include/multipass/cli/command.h 48.57% <0%> (-14.29%) ⬇️

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 05a27c5...92e7789. 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.

Looks ok overall. Just a couple of comments.

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.

bors r+

bors bot added a commit that referenced this pull request Mar 21, 2019
676: Extract instance creation from launch and provide it over RPC r=gerboland a=ricab

Reissue of #663 

This can be merged presently. Client side to come separately.

Co-authored-by: Ricardo Abreu <ricab@ricabhome.org>
@Saviq Saviq merged commit 92e7789 into master Mar 21, 2019
@bors bors bot deleted the pet-env-extract-create branch March 21, 2019 13:39
@bors
Copy link
Contributor

bors bot commented Mar 21, 2019

Build failed

@Saviq Saviq restored the pet-env-extract-create branch March 21, 2019 13:54
@Saviq Saviq deleted the pet-env-extract-create branch March 21, 2019 13:55
@Saviq
Copy link
Collaborator

Saviq commented Mar 21, 2019

Sorry, got confused with bors here. All in business now.

ricab added a commit that referenced this pull request May 8, 2025
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.

3 participants