Skip to content
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

Remove "docker.io/" prefixing when listing Docker images #19344

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thomasjm
Copy link
Contributor

@thomasjm thomasjm commented Jul 29, 2024

This PR removes the use of the addDockerIO / TrimDockerIO functions when working with Docker images, in order to address #19343.

closes #19343

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: thomasjm
Once this PR has been reviewed and has the lgtm label, please assign prezha for approval. For more information see the Kubernetes Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jul 29, 2024
@k8s-ci-robot
Copy link
Contributor

Hi @thomasjm. 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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 29, 2024
@minikube-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@medyagh
Copy link
Member

medyagh commented Jul 29, 2024

@thomasjm thank you for this PR, do you mind sharing the output an example, before/after this PR ?

@medyagh
Copy link
Member

medyagh commented Jul 29, 2024

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jul 29, 2024
@minikube-pr-bot
Copy link

kvm2 driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 19344) |
+----------------+----------+---------------------+
| minikube start | 52.0s    | 51.4s               |
| enable ingress | 27.8s    | 26.7s               |
+----------------+----------+---------------------+

Times for minikube start: 53.5s 52.5s 52.4s 51.7s 50.0s
Times for minikube (PR 19344) start: 50.9s 52.3s 52.0s 50.3s 51.8s

Times for minikube ingress: 28.1s 27.0s 28.1s 28.1s 28.0s
Times for minikube (PR 19344) ingress: 25.1s 27.5s 27.5s 25.5s 28.0s

docker driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 19344) |
+----------------+----------+---------------------+
| minikube start | 23.2s    | 24.1s               |
| enable ingress | 22.4s    | 21.9s               |
+----------------+----------+---------------------+

Times for minikube start: 24.6s 22.7s 22.0s 25.1s 21.7s
Times for minikube (PR 19344) start: 25.5s 24.8s 24.5s 21.6s 24.1s

Times for minikube ingress: 22.3s 22.9s 21.9s 22.8s 22.3s
Times for minikube (PR 19344) ingress: 20.8s 25.3s 21.3s 20.8s 21.3s

docker driver with containerd runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 19344) |
+----------------+----------+---------------------+
| minikube start | 21.0s    | 21.9s               |
| enable ingress | 48.4s    | 39.4s               |
+----------------+----------+---------------------+

Times for minikube start: 20.3s 23.9s 20.2s 19.7s 20.8s
Times for minikube (PR 19344) start: 21.9s 22.9s 20.8s 22.9s 21.1s

Times for minikube ingress: 47.3s 47.8s 48.8s 49.3s 48.8s
Times for minikube (PR 19344) ingress: 32.8s 32.3s 50.3s 48.8s 32.8s

@thomasjm
Copy link
Contributor Author

do you mind sharing the output an example, before/after this PR ?

Before PR:

tom@desktop2 ~ » minikube image ls                                                        
...
registry.k8s.io/coredns/coredns:v1.11.1                                                                                                                                                                            
gcr.io/k8s-minikube/storage-provisioner:v5                                                                                                                                                                         
docker.io/library/busybox:1.36.1-musl

After PR:

tom@desktop2 ~ » ~/tools/minikube/out/minikube image ls                                                        
...
registry.k8s.io/coredns/coredns:v1.11.1
gcr.io/k8s-minikube/storage-provisioner:v5
busybox:1.36.1-musl

Notice how only the busybox image, which doesn't have a domain name, is affected.

I see there are some test failures, I'll look into these when I get a minute.

@minikube-pr-bot
Copy link

Here are the number of top 10 failed tests in each environments with lowest flake rate.

Environment Test Name Flake Rate
Docker_Cloud_Shell (9 failed) TestFunctional/parallel/ImageCommands/ImageLoadDaemon(gopogh) 0.00% (chart)
Docker_Cloud_Shell (9 failed) TestFunctional/parallel/ImageCommands/ImageReloadDaemon(gopogh) 0.00% (chart)
Docker_Cloud_Shell (9 failed) TestFunctional/parallel/ImageCommands/ImageTagAndLoadDaemon(gopogh) 0.00% (chart)
Docker_Cloud_Shell (9 failed) TestFunctional/parallel/ImageCommands/ImageLoadFromFile(gopogh) 0.00% (chart)
KVM_Linux (4 failed) TestFunctional/parallel/ImageCommands/ImageLoadDaemon(gopogh) 0.00% (chart)
KVM_Linux (4 failed) TestFunctional/parallel/ImageCommands/ImageReloadDaemon(gopogh) 0.00% (chart)
KVM_Linux (4 failed) TestFunctional/parallel/ImageCommands/ImageTagAndLoadDaemon(gopogh) 0.00% (chart)
KVM_Linux (4 failed) TestFunctional/parallel/ImageCommands/ImageLoadFromFile(gopogh) 0.00% (chart)
Docker_Linux (4 failed) TestFunctional/parallel/ImageCommands/ImageLoadDaemon(gopogh) 0.00% (chart)
Docker_Linux (4 failed) TestFunctional/parallel/ImageCommands/ImageReloadDaemon(gopogh) 0.00% (chart)
Docker_Linux (4 failed) TestFunctional/parallel/ImageCommands/ImageTagAndLoadDaemon(gopogh) 0.00% (chart)
Docker_Linux (4 failed) TestFunctional/parallel/ImageCommands/ImageLoadFromFile(gopogh) 0.00% (chart)
Docker_Linux_docker_arm64 (4 failed) TestFunctional/parallel/ImageCommands/ImageLoadDaemon(gopogh) 0.00% (chart)
Docker_Linux_docker_arm64 (4 failed) TestFunctional/parallel/ImageCommands/ImageReloadDaemon(gopogh) 0.00% (chart)
Docker_Linux_docker_arm64 (4 failed) TestFunctional/parallel/ImageCommands/ImageTagAndLoadDaemon(gopogh) 0.00% (chart)
Docker_Linux_docker_arm64 (4 failed) TestFunctional/parallel/ImageCommands/ImageLoadFromFile(gopogh) 0.00% (chart)

Besides the following environments also have failed tests:

To see the flake rates of all tests by environment, click here.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 8, 2024
@k8s-ci-robot
Copy link
Contributor

PR needs rebase.

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.

@medyagh
Copy link
Member

medyagh commented Oct 21, 2024

@thomasjm do you mind taking a look at the failed tests for Docker_Linux ?

TestFunctional/parallel/ImageCommands/ImageLoadDaemon

@thomasjm
Copy link
Contributor Author

Oh, I wasn't sure if this PR is still desired after the discussion on #19343.

I don't totally understand the full picture, but it sounds like it's believed that this PR might break things for more strict runtimes like containerd.

If we still want to move ahead with this I can look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"minikube image ls" confusingly adds "docker.io/" prefix
5 participants