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

test: Drop push/pull ID preservation assumption #1477

Merged
merged 3 commits into from
Nov 7, 2023

Conversation

martinpitt
Copy link
Member

Until very recently, a cycle of podman push/pull preserved an
image's ID. Starting with containers-common 1-98 this is not the case
any more, as that changed the on-disk compression format. Quoting podman
devs: "The digests validate a specific image representation, not some
abstract "sameness" of an image."

Instead, remove the original busybox image for the user as well (that
already happend for the system user), and more explicitly check deletion
of an image with multiple tags.

Fixes containers/podman#20611

Obsoletes cockpit-project/bots#5515

Avoid general Fedora updates. We want to cover the latter during image
refreshes. This decouples the COPR changes from Fedora changes, makes
the test more reproducible, and also faster.
Interleaving the user and system tests in that way is really weird, and
almost surely a copy&paste bug.
Until very recently, a cycle of `podman push`/`pull` preserved an
image's ID. Starting with containers-common 1-98 this is not the case
any more, as that changed the on-disk compression format. Quoting podman
devs: "The digests validate a specific image _representation_, not some
abstract "sameness" of an image."

Instead, remove the original busybox image for the user as well (that
already happend for the system user), and more explicitly check deletion
of an image with multiple tags.

Fixes containers/podman#20611

Obsoletes cockpit-project/bots#5515
@rhatdan
Copy link

rhatdan commented Nov 7, 2023

LGTM

@martinpitt martinpitt merged commit c3c4a3f into cockpit-project:main Nov 7, 2023
18 checks passed
@martinpitt martinpitt deleted the image-push-pull branch November 7, 2023 12:12
martinpitt added a commit to martinpitt/bots that referenced this pull request Nov 7, 2023
martinpitt added a commit to cockpit-project/bots that referenced this pull request Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[rawhide+podman-next] podman push/pull registry roundtrip changes the image
3 participants