-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
hyperkit driver should be happy with current minimum verison #9365
hyperkit driver should be happy with current minimum verison #9365
Conversation
…version of the hyperkit driver
Hi @ilya-zuyev. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Can one of the admins verify this patch? |
Travis tests have failedHey @ilya-zuyev, 1st Buildmake test
TravisBuddy Request Identifier: fe54dbd0-0360-11eb-8abf-036a378110f7 |
Travis tests have failedHey @ilya-zuyev, 1st Buildmake test
TravisBuddy Request Identifier: 7ce81e30-0361-11eb-8abf-036a378110f7 |
…p/permissions. This change lets run more integration tests without sudo
/ok-to-test |
Travis tests have failedHey @ilya-zuyev, 1st Buildmake test
2nd Buildmake test
TravisBuddy Request Identifier: 81f2d920-0f18-11eb-9bff-abeacd856cb9 |
kvm2 Driver Times for Minikube (PR 9365): 62.2s 61.7s 57.1s Averages Time Per Log
docker Driver Times for Minikube (PR 9365): 29.2s 28.3s 28.3s Averages Time Per Log
|
Travis tests have failedHey @ilya-zuyev, 1st Buildmake test
2nd Buildmake test
TravisBuddy Request Identifier: 0b1533b0-0f19-11eb-9bff-abeacd856cb9 |
Travis tests have failedHey @ilya-zuyev, 1st Buildmake test
2nd Buildmake test
TravisBuddy Request Identifier: d78b1ef0-0f19-11eb-9bff-abeacd856cb9 |
Travis tests have failedHey @ilya-zuyev, 1st Buildmake test
2nd Buildmake test
TravisBuddy Request Identifier: 50996330-0f1d-11eb-9bff-abeacd856cb9 |
}() | ||
|
||
// start "minikube start --download-only --interactive=false --driver=hyperkit --preload=false" | ||
cmd := exec.Command(Target(), "start", "--download-only", "--interactive=false", "--driver=hyperkit", "--preload=false") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when setting preload=false it will still download those things except they are not preloaded (slightly bigger tar file) but TestDownloadOnly runs before all the tests and downloads the preload tar file so this test will not redownload it
but if you set preload=false the extra images will be downloaded here:
ls ~/.minikube/cache/images/k8s.gcr.io/
@@ -0,0 +1,221 @@ | |||
/* | |||
Copyright 2020 The Kubernetes Authors All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still think we should use shorter filename and also youse T.Skip
this will give us visibiliity how many tests were skipped in the gopogh report
for example when running on windows, we will see a list of skipped tests so the tester would be more aware of what they are not testing on this platform.
how about driver_download_test.go ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Returned T.Skip checks and moved my tests to driver_install_or_update_tst.go. It's an existent has and has other tests related to driver upgrades, so probably makes sense to keep all such tests in one place
return "", "", fmt.Errorf("failed to setup current hyperkit driver: %v", err) | ||
} | ||
// change permission to allow driver to be executable | ||
if err = os.Chmod(testDriverPath, 0777); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dont see the updated code here
kvm2 Driver Times for Minikube (PR 9365): 62.0s 62.5s 61.8s Averages Time Per Log
docker Driver Times for Minikube (PR 9365): 28.2s 28.1s 28.4s Averages Time Per Log
|
Travis tests have failedHey @ilya-zuyev, 1st Buildmake test
TravisBuddy Request Identifier: fd7438e0-0f1e-11eb-9bff-abeacd856cb9 |
kvm2 Driver Times for Minikube (PR 9365): 60.7s 60.3s 62.2s Averages Time Per Log
docker Driver Times for Minikube (PR 9365): 29.3s 28.2s 29.8s Averages Time Per Log
|
} | ||
}() | ||
|
||
// start "minikube start --download-only --interactive=false --driver=hyperkit --preload=false" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get rid of these comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, whenever you feel comfortable with a last touch
Cleanup comments
kvm2 Driver Times for Minikube (PR 9365): 61.6s 58.4s 61.4s Averages Time Per Log
docker Driver Times for Minikube (PR 9365): 27.8s 27.8s 29.1s Averages Time Per Log
|
kvm2 Driver Times for Minikube (PR 9365): 60.6s 59.8s 61.7s Averages Time Per Log
docker Driver Times for Minikube (PR 9365): 29.6s 28.3s 30.9s Averages Time Per Log
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ilya-zuyev, medyagh, tstromberg 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 |
@@ -133,6 +132,7 @@ func validateDriver(executable string, v semver.Version) (string, error) { | |||
if err != nil { | |||
return path, errors.Wrap(err, "can't parse driver version") | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that we allow version mismatches, could you please add a log sttatement declaring what driver version we are using? This will help for future debugging;
klog.Infof("%s version is %s", path, driverVersion)
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. Done.
kvm2 Driver Times for Minikube (PR 9365): 62.6s 62.5s 55.8s Averages Time Per Log
docker Driver Times for Minikube (PR 9365): 28.9s 28.6s 28.7s Averages Time Per Log
|
thank you |
This PR adds an ability to keep using the installed hyperkit driver after minikube upgrade, if the drives is capable with the new version of minikube
Fixes #7422
The PR adds a new function
minDriverVersion(dirver, mkVersion)
to get the lowest version of driverdriver
compatible with the current code.The minimum supported hyperkit driver version is set to
1.11.0
Before:
After:
1.11.0 -> 1.13.1 The driver is NOT upgraded
1.2.0 -> 1.13.1 The driver IS upgraded
closes
#8775