-
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
Prevent panic if docker version returns exit code 0 with unexpected output #15851
Conversation
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.
look good, might look better if possible to add cases to unit test if not thats fine too
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: medyagh, spowelljr 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 |
I really like the refactor and simpllfying and huge increase in code readability , thank you ! @spowelljr |
/ok-to-test |
kvm2 driver with docker runtime
Times for minikube start: 51.0s 53.8s 55.2s 54.9s 50.7s Times for minikube ingress: 25.6s 29.2s 27.3s 28.2s 24.7s docker driver with docker runtime
Times for minikube start: 27.3s 26.7s 27.4s 26.6s 26.2s Times for minikube (PR 15851) ingress: 22.1s 20.1s 19.1s 21.1s 82.6s docker driver with containerd runtime
Times for minikube (PR 15851) start: 21.3s 22.5s 22.5s 21.7s 22.3s Times for minikube ingress: 31.6s 31.6s 19.6s 19.6s 20.6s |
These are the flake rates of all failed tests.
To see the flake rates of all tests by environment, click here. |
There exists a way that
docker version --format {{.Server.Os}}-{{.Server.Version}}:{{.Server.Platform.Name}}
returns exit code 0 but does not return the expected output, such that it doesn't contain a:
. This causes an error as we split on:
as assuming that we'd have a length of 2 ifdocker version
returns successfully. But since this assumption is incorrect, we need to prevent a panic.