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

Podman pull --all-tags shorthand option #14932

Merged
merged 1 commit into from
Jul 15, 2022

Conversation

jakecorrenti
Copy link
Member

I added the shorthand option for podman pull --all-tags. Like Docker,
Podman can now do podman pull -a.

Addresses a task from #14917

Signed-off-by: Jake Correnti jcorrenti13@gmail.com

Does this PR introduce a user-facing change?

Added `podman pull -a` as a shorthand for `podman pull --all-tags`

@rhatdan
Copy link
Member

rhatdan commented Jul 14, 2022

LGTM
Make sure you check this off once it merges.

Comment on lines 113 to 120
It("podman pull check all tags shorthand", func() {
session := podmanTest.Podman([]string{"pull", "-a", "quay.io/libpod/testdigest_v2s2"})
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))

session = podmanTest.Podman([]string{"images"})
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
Expect(len(session.OutputToStringArray())).To(BeNumerically(">=", 2), "Expected at least two images")
})
Copy link
Member

Choose a reason for hiding this comment

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

Actually pulling images is slow and result in flakes. Do we actually have to test this twice with the short and log flag name? I think at least it would make sense to move this into the other --all-tags test so it can skip the downloaded layers instead of having to download everything again.

Copy link
Member

Choose a reason for hiding this comment

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

Yes if we have more then one --all-tags test, just change one to -a and you don't have ot add more tests.

Copy link
Member

Choose a reason for hiding this comment

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

We only have one --all-tags test, what I want is to move the command with the new flag into the same test so it uses the same storage and does not need to repull all layers.

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 the latest change what you wanted?

@mheon
Copy link
Member

mheon commented Jul 14, 2022

Code LGTM, but I'd like the test comment from @Luap99 addressed before we merge.

I added the shorthand option for `podman pull --all-tags`. Like Docker,
Podman can now do `podman pull -a`.

Signed-off-by: Jake Correnti <jcorrenti13@gmail.com>
Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

LGTM

@Luap99
Copy link
Member

Luap99 commented Jul 14, 2022

/lgtm
/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 14, 2022
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 14, 2022
@mheon
Copy link
Member

mheon commented Jul 14, 2022

Test failures look like a registry issue

@rhatdan
Copy link
Member

rhatdan commented Jul 14, 2022

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 14, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jakecorrenti, rhatdan

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 Jul 14, 2022
@TomSweeneyRedHat
Copy link
Member

The buildah-bud tests are failing which I'm not parsing as the changes are in pull? Otherwise LGTM

@jakecorrenti
Copy link
Member Author

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 15, 2022
@openshift-ci openshift-ci bot merged commit 98b22e2 into containers:main Jul 15, 2022
@jakecorrenti jakecorrenti deleted the pull-all-tags-shorthand branch July 15, 2022 16:52
@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 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants