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

refector: remove pause/result from provider interface #329

Merged
merged 1 commit into from
Dec 20, 2021
Merged

refector: remove pause/result from provider interface #329

merged 1 commit into from
Dec 20, 2021

Conversation

richardcase
Copy link
Member

What this PR does / why we need it:

As we are not supporting pausing / resuming microvms at this stage these
functions have been removed from the microvm provider interface. The
firecracker implementation has these removed as well and any tests have
been updated.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

Checklist:

  • squashed commits into logical changes
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

@richardcase richardcase added the kind/refactor Only refactoring changes label Dec 20, 2021
}

// Stop will stop a paused or running microvm.
// Stop will stop a running microvm.
func (p *fcProvider) Stop(ctx context.Context, id string) error {
Copy link
Member

Choose a reason for hiding this comment

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

are we using stop anywhere?

Copy link
Member Author

Choose a reason for hiding this comment

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

No we are not. I did also consider deleting it but decided to leave and just make it do the same as delete.

Copy link
Member

Choose a reason for hiding this comment

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

can we not just remove it if it serves no purpose?

Copy link
Member Author

Choose a reason for hiding this comment

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

Why not. I did make me wonder if we should be doing different things in stop and delete. For example, in Stop should we stop the firecracker process and then in Delete we delete the files. But lets create a ticket for follow up and remove stop for the time being. wdyt?

Copy link
Member

Choose a reason for hiding this comment

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

sounds good 👍

Copy link
Member Author

Choose a reason for hiding this comment

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

Added #330

As we are not supporting pausing / resuming microvms at this stage these
functions have been removed from the microvm provider interface. The
firecracker implementation has these removed as well and any tests have
been updated.

Signed-off-by: Richard Case <[email protected]>
@codecov-commenter
Copy link

Codecov Report

Merging #329 (5515eb9) into main (5f8d70c) will increase coverage by 0.01%.
The diff coverage is 0.00%.

❗ Current head 5515eb9 differs from pull request most recent head 1d99f7a. Consider uploading reports for the commit 1d99f7a to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main     #329      +/-   ##
==========================================
+ Coverage   58.03%   58.04%   +0.01%     
==========================================
  Files          51       51              
  Lines        2509     2510       +1     
==========================================
+ Hits         1456     1457       +1     
- Misses        936      938       +2     
+ Partials      117      115       -2     
Impacted Files Coverage Δ
infrastructure/firecracker/provider.go 0.00% <0.00%> (ø)
infrastructure/containerd/event_service.go 56.14% <0.00%> (-3.51%) ⬇️
pkg/process/process.go 39.62% <0.00%> (+1.88%) ⬆️
pkg/queue/queue.go 100.00% <0.00%> (+6.06%) ⬆️

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 5f8d70c...1d99f7a. Read the comment docs.

@richardcase richardcase merged commit aef9e33 into liquidmetal-dev:main Dec 20, 2021
@richardcase richardcase deleted the remove_pause branch December 20, 2021 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/refactor Only refactoring changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants