-
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
Use absolute path when calling crictl version #15642
Conversation
Some legacy systems don't have /usr/local/bin in secure_path So they are not able to find any locally installed tools...
/ok-to-test |
kvm2 driver with docker runtime
Times for minikube ingress: 28.7s 29.8s 28.8s 28.3s 26.2s Times for minikube start: 56.0s 53.8s 53.9s 53.3s 56.5s docker driver with docker runtime
Times for minikube start: 28.5s 25.9s 25.9s 26.6s 26.0s Times for minikube ingress: 19.0s 21.5s 19.5s 21.0s 22.5s docker driver with containerd runtime
Times for minikube ingress: 26.0s 26.0s 26.0s 26.5s 27.0s Times for minikube start: 22.4s 23.7s 22.4s 37.5s 23.0s |
These are the flake rates of all failed tests.
Too many tests failed - See test logs for more details. To see the flake rates of all tests by environment, click here. |
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 but would look better with TrimSpace
if err != nil { | ||
return err | ||
} | ||
crictl := strings.TrimSuffix(rr.Stdout.String(), "\n") |
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.
maybe use "TrimSpace" ? for removing all sort of unexpected spaces ?
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.
There is no whitespace expected, except for the newline from the which
command
$ which crictl | cat -vte
/usr/local/bin/crictl$
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: afbjorklund, medyagh 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 |
Some legacy systems don't have /usr/local/bin in secure_path
So they are not able to find any locally installed tools...
Regression: