-
Notifications
You must be signed in to change notification settings - Fork 5.1k
vmnet: Move download-only check to start command #21682
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
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: nirs The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/ok-to-test |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Skipping validation in vment.ValidateHelper() was the simplest way to avoid validation when starting with --download-only flag, but it requires accessing viper outside of the commands using strings. This make the code fragile and makes testing harder since we depend on global state. Fixed by moving vment-helper validation to validateVmnetNetwork() helper in the minikube/cmd package. We skip the call to vment.ValidateHelper() in download-only mode. The helper is called for vfkit and krunkit when validating the --network flag. For krunkit the validation was part of Driver.Status check, which is good place to validate, but it does not have access to start command flags. Validating in the start command is little bit ugly since krunkit does not use the --network option, and it moves driver logic to the start command, but at least it is consistent with vfkit and qemu, and it avoids the trouble of passing start flags deep inside minikube.
55c7edf
to
7a78923
Compare
@nirs: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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-sigs/prow repository. I understand the commands that are listed here. |
Replaced by #21683 |
kvm2 driver with docker runtime
Times for minikube start: 45.7s 44.5s 46.6s 44.0s 42.6s Times for minikube ingress: 17.4s 15.9s 15.8s 20.3s 16.9s docker driver with docker runtime
Times for minikube ingress: 10.6s 10.6s 10.6s 11.6s 13.6s Times for minikube (PR 21682) start: 22.0s 22.2s 25.0s 20.4s 22.9s docker driver with containerd runtime
Times for minikube start: 22.2s 20.4s 20.2s 19.6s 19.3s Times for minikube (PR 21682) ingress: 21.1s 22.1s 20.2s 20.1s 20.1s |
Here are the number of top 10 failed tests in each environments with lowest flake rate. Besides the following environments also have failed tests: To see the flake rates of all tests by environment, click here. |
Skipping validation in vment.ValidateHelper() was the simplest way to avoid validation when starting with --download-only flag, but it requires accessing viper outside of the commands using strings. This make the code fragile and makes testing harder since we depend on global state.
Fixed by moving vment-helper validation to validateVmnetNetwork() helper in the minikube/cmd package. We skip the call to vment.ValidateHelper() in download-only mode. The helper is called for vfkit and krunkit when validating the --network flag.
For krunkit the validation was part of Driver.Status check, which is good place to validate, but it does not have access to start command flags. Validating in the start command is little bit ugly since krunkit does not use the --network option, and it moves driver logic to the start command, but at least it is consistent with vfkit and qemu, and it avoids the trouble of passing start flags deep inside minikube.
Part-of #21670