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

libimage tests: try to avoid docker.io images #2250

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

Luap99
Copy link
Member

@Luap99 Luap99 commented Nov 19, 2024

These images can and will change at any time and thus can break our CI without any external changes which is very bad. The TestPush test is failing because it expects two not one image as it converts from docker to oci on push. However the upstream docker.io/library/alpine was switched to an oci image thus the test started failing as the local storage now has the same id and just stores two different tags for the same image.

Switch to our own controlled quay.io images where possible. This is neither complete nor do I fully understand the tests here. I did a quick search and replace and will see what works or not.

Copy link
Contributor

openshift-ci bot commented Nov 19, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99

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

@mheon
Copy link
Member

mheon commented Nov 19, 2024

LGTM

These images can and will change at any time and thus can break our CI
without any external changes which is very bad. The TestPush test is
failing because it expects two not one image as it converts from docker
to oci on push. However the upstream docker.io/library/alpine was
switched to an oci image thus the test started failing as the local
storage now has the same id and just stores two different tags for the
same image.

Switch to our own controlled quay.io images where possible. This is
neither complete nor do I fully understand the tests here. I did a quick
search and replace and will see what works or not.

Signed-off-by: Paul Holzinger <[email protected]>
@Luap99
Copy link
Member Author

Luap99 commented Nov 19, 2024

@baude @rhatdan @mtrmac PTAL, needed to get CI passing again here

@rhatdan
Copy link
Member

rhatdan commented Nov 19, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Nov 19, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 132a2c6 into containers:main Nov 19, 2024
16 checks passed
@Luap99 Luap99 mentioned this pull request Nov 19, 2024
Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the tests didn't pull from Docker Hub (see https://github.com/containers/common/blob/main/libimage/testdata/registries.conf). Was the GCR mirror playing funny things?

@Luap99 Luap99 deleted the docker.io branch November 21, 2024 11:47
@Luap99
Copy link
Member Author

Luap99 commented Nov 21, 2024

Note that the tests didn't pull from Docker Hub (see https://github.com/containers/common/blob/main/libimage/testdata/registries.conf). Was the GCR mirror playing funny things?

The commit message explains everything or was that not clear:

These images can and will change at any time and thus can break our CI without any external changes which is very bad. The TestPush test is failing because it expects two not one image as it converts from docker to oci on push. However the upstream docker.io/library/alpine was switched to an oci image thus the test started failing as the local storage now has the same id and just stores two different tags for the same image.

It doesn't matter what cache is used, any image not under our control WILL BREAK US one day when it gets updated (or removed). I would like to switch everything to quay.io/libpod but that seems much more complex as here there is some special docker.io handling around the name which cannot be changed without loosing the test coverage I guess so that needs a much longer investigation how to address that.

@vrothberg
Copy link
Member

I think we could rewrite docker.io/library to our libpod repo. That will preserve the docker.io reference but pull images under our control. See https://github.com/containers/common/blob/main/tests/registries.conf#L12-L17 for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants