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

update c/{common,image,storage,buildah} to latest #18999

Merged
merged 5 commits into from
Jun 27, 2023

Conversation

Luap99
Copy link
Member

@Luap99 Luap99 commented Jun 26, 2023

tests: fix "Storing signatures" check
After[1] c/image no longer prints "Storing signatures" so we should
not check for it.

[1] containers/image#2001

Does this PR introduce a user-facing change?

None

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 26, 2023

[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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 26, 2023
@@ -403,7 +403,6 @@ var _ = Describe("Podman images", func() {
Expect(output).To(ContainSubstring("Copying blob "))
Expect(output).To(ContainSubstring("Copying config "))
Expect(output).To(ContainSubstring("Writing manifest to image destination"))
Expect(output).To(ContainSubstring("Storing signatures"))
Copy link
Member

Choose a reason for hiding this comment

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

I don't know the reasoning behind this change, nor how important it is to preserve it for the future, but would it make sense to change at least some of these tests to NotTo(Contain() (<---- deliberate shortcut, not exact code) instead of removing the tests?

Copy link
Member Author

Choose a reason for hiding this comment

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

I can do that if checking that makes sense, @mtrmac WDYT?

Copy link
Member

Choose a reason for hiding this comment

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

Makes sense, that we should only see that line, when we are "Storing signatures"

Copy link
Member Author

Choose a reason for hiding this comment

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

Is there a easy way for us in podman to make a test that actually stores signatures? Then I can have a test which checks for the string and make the other ones check for not the string.

Copy link
Collaborator

Choose a reason for hiding this comment

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

but would it make sense to change at least some of these tests to NotTo(Contain()

I don’t have a strong opinion at all on the value of having tests for exact progress messages. Assuming that’s valuable, I’m tempted to say the tests should look for any unexpected lines, not just specifically the signature one. But that would be a larger change.


In this case (podman push), without --sign* options we really don’t expect “Storing signatures” to appear. (If it did appear on a push without --sign, we would be re-pushing signatures obtained during a pull, and that would almost certainly fail.)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a easy way for us in podman to make a test that actually stores signatures?

For pushes, a push with --sign*; e.g.

By("pushing and pulling with --sign-by-sigstore-private-key")
.

For pulls, a pull of a signed image (with registries.d set up to read signatures). One instance where that is guaranteed to happen is also that test. (Alternatively, we could pull UBI or something like that, relying on the registry to be up.)

Copy link
Member Author

Choose a reason for hiding this comment

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

Note In the interest of time I left this comment open, I don't like checking for something is not unless you have another test checking that it is. Given the release dance I like to get this PR in, if anyone thinks testing this is important I can follow-up with another PR.

@Luap99
Copy link
Member Author

Luap99 commented Jun 26, 2023

@edsantiago looks like I must patch the bud tests as well. I assume it is easiest to do that in buildah (since it will break there as well after a c/image update) and then vendor buildah in here again?

@edsantiago
Copy link
Member

Ugh. Yes, it can only be fixed in buildah, but for now you can add a skip directive to test/buildah-bud/apply-podman-deltas

@Luap99 Luap99 changed the title update c/image and c/storage to latest update c/{common,image,storage,buildah} to latest Jun 27, 2023
Luap99 and others added 5 commits June 27, 2023 18:04
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
After[1] c/image no longer prints "Storing signatures" so we should
not check for it.

[1] containers/image#2001

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit was automatically cherry-picked
by buildah-vendor-treadmill v0.3
from the buildah vendor treadmill PR, containers#13808

Changes since 2023-05-01:
  - skip a new test, it fails in remote
  - skip encrypted-FROM test, broken by buildah PR 4746

Signed-off-by: Ed Santiago <santiago@redhat.com>
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
@rhatdan
Copy link
Member

rhatdan commented Jun 27, 2023

LGTM

@edsantiago
Copy link
Member

LGTM and CI is green

@rhatdan
Copy link
Member

rhatdan commented Jun 27, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 27, 2023
@openshift-merge-robot openshift-merge-robot merged commit 089dbed into containers:main Jun 27, 2023
@Luap99 Luap99 deleted the vendor branch June 27, 2023 19:41
@Luap99 Luap99 mentioned this pull request Jul 1, 2023
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. release-note-none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants