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

Stopped and running machines should count as existing #6629

Merged
merged 1 commit into from
Feb 14, 2020

Conversation

sharifelgamal
Copy link
Collaborator

No description provided.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 14, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sharifelgamal

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 14, 2020
@codecov-io
Copy link

Codecov Report

Merging #6629 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6629      +/-   ##
==========================================
+ Coverage   38.52%   38.52%   +<.01%     
==========================================
  Files         142      142              
  Lines        8603     8605       +2     
==========================================
+ Hits         3314     3315       +1     
- Misses       4875     4876       +1     
  Partials      414      414
Impacted Files Coverage Δ
pkg/minikube/machine/fix.go 32.59% <100%> (+0.26%) ⬆️

Copy link
Contributor

@tstromberg tstromberg left a comment

Choose a reason for hiding this comment

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

This seems reasonable to me. It makes me think that perhaps machine.machineExists was called when perhaps a machine.IsFixable would have been more appropriate. I'm curious to see if anything breaks.

@@ -199,6 +199,9 @@ func adjustGuestClock(h hostRunner, t time.Time) error {
// machineExists checks if virtual machine does not exist
// if the virtual machine exists, return true
func machineExists(d string, s state.State, err error) (bool, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe this should be called 'exists'?

@tstromberg
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Feb 14, 2020
@minikube-pr-bot
Copy link

All Times minikube: [ 96.846810 94.520474 93.335631]
All Times Minikube (PR 6629): [ 91.749140 91.917069 91.735168]

Average minikube: 94.900972
Average Minikube (PR 6629): 91.800459

Averages Time Per Log

+----------------------+-----------+--------------------+
|         LOG          | MINIKUBE  | MINIKUBE (PR 6629) |
+----------------------+-----------+--------------------+
| minikube v           |  0.198970 |           0.198569 |
| Creating kvm2        | 20.740530 |          19.546198 |
| Preparing Kubernetes | 50.802966 |          49.081276 |
| Pulling images       |           |                    |
| Launching Kubernetes | 21.107632 |          21.253736 |
| Waiting for cluster  |  0.060173 |           0.054020 |
+----------------------+-----------+--------------------+

@medyagh
Copy link
Member

medyagh commented Feb 14, 2020

thank you

@medyagh medyagh merged commit be33c7e into kubernetes:master Feb 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants