-
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
fix: trim docker.io to prevent always writing to daemon #14956
fix: trim docker.io to prevent always writing to daemon #14956
Conversation
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
|
Welcome @g1eny0ung! |
Hi @g1eny0ung. 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? |
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
@medyagh Have a look when you have time? 👀 |
Thanks for the PR, I am curious, could we add docker.io to all docker hub images instead of trimming it ? |
@medyagh Makes sense to me. This problem is due to using the But for now, the |
@medyagh PTAL again? This problem currently affects me every time I run |
@blueelvis Hi, mind taking a look at this please? |
/ok-to-test |
kvm2 driver with docker runtime
Times for minikube ingress: 26.2s 28.2s 28.7s 25.7s 29.7s Times for minikube start: 58.5s 56.2s 56.7s 56.4s 56.2s docker driver with docker runtime
Times for minikube start: 27.5s 27.1s 27.7s 26.8s 27.9s Times for minikube ingress: 21.5s 23.5s 23.0s 24.0s 21.5s docker driver with containerd runtime
Times for minikube (PR 14956) start: 35.4s 24.8s 24.4s 27.2s 26.8s Times for minikube (PR 14956) ingress: 27.0s 27.5s 27.0s 27.5s 27.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. |
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
kvm2 driver with docker runtime
Times for minikube (PR 14956) start: 56.8s 58.4s 57.4s 56.3s 58.0s Times for minikube ingress: 29.2s 28.7s 28.7s 29.2s 28.7s docker driver with docker runtime
Times for minikube ingress: 22.5s 20.5s 23.0s 22.0s 23.0s Times for minikube start: 28.8s 28.7s 27.3s 26.9s 29.1s docker driver with containerd runtime
Times for minikube (PR 14956) ingress: 27.0s 27.5s 27.0s 27.0s 27.0s Times for minikube start: 24.4s 24.5s 24.3s 24.2s 25.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.
Hi @g1eny0ung, this looks good, but could you move the trim function to: https://github.com/kubernetes/minikube/blob/master/pkg/minikube/image/image.go
The functions in that file seem to fit more in line with what you're doing here.
@spowelljr Sure. Thanks for pointing out, I'll update it now. |
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
kvm2 driver with docker runtime
Times for minikube start: 56.1s 53.4s 53.5s 53.8s 53.1s Times for minikube (PR 14956) ingress: 25.2s 85.7s 24.6s 25.1s 27.7s docker driver with docker runtime
Times for minikube start: 26.5s 25.5s 26.0s 24.7s 27.7s Times for minikube ingress: 21.5s 22.0s 22.5s 23.0s 23.0s docker driver with containerd runtime
Times for minikube ingress: 27.0s 27.0s 27.0s 27.5s 58.0s Times for minikube start: 23.0s 22.7s 23.5s 21.9s 25.9s |
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. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: g1eny0ung, 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 |
Signed-off-by: Yue Yang g1enyy0ung@gmail.com
Since the
docker images
will outputRepository
without thedocker.io
prefix. I originally decided to trim this prefix from theimg
param inImageExistsInDaemon
.But then I discovered the
trimDockerIO
function, so I move it from thepkg/minikube/cruntime
package intopkg/minikube/download
to achieve code reuse.Thanks for the review. 😃