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

In a concurrent removal test, don't remove concurrently with builds #18664

Merged
merged 1 commit into from
May 23, 2023

Conversation

mtrmac
Copy link
Collaborator

@mtrmac mtrmac commented May 23, 2023

This test is intended to test concurrent removals, so don't risk a removal breaking a build.

Fixes #18659 .

(The situation that removals can break a build in progress is a real problem that should be fixed, but that's not a target of this test.)

Cc: @vrothberg , the test was added in #9266, to make sure I didn’t misunderstand the purpose.

Does this PR introduce a user-facing change?

None

This test is intended to test concurrent removals, so don't
risk a removal breaking a build.

Fixes containers#18659 .

(The sitaution that removals can break a build WIP is a real
problem that should be fixed, but that's not a target of this test.)

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 23, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mtrmac

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 May 23, 2023
@edsantiago
Copy link
Member

The duplication in defining imageName irks me a little, but it's not worth refactoring.

/lgtm

Thanks!

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 23, 2023
@openshift-merge-robot openshift-merge-robot merged commit c08ecd6 into containers:main May 23, 2023
@mtrmac mtrmac deleted the rm-concurrent-flake branch May 23, 2023 20:11
@mtrmac
Copy link
Collaborator Author

mtrmac commented May 23, 2023

Yeah, that and the 4 copies of 10.

I’m… trying to balance keeping Podman running, and getting at least a chance to work on my supposedly-primary projects.

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.

LGTM

edsantiago added a commit to edsantiago/libpod that referenced this pull request May 30, 2023
"image rm concurrent" test is still failing, even after containers#18664:

    Error: no contents in "/tmp/podman_test967723851/Dockerfile"

Probable cause: the images are built in parallel, and p.BuildImage()
writes one single Dockerfile. (This almost certainly renders the
test less effective than intended, since the generated images
might end up being identical).

Solution: write and use a uniquely-named Dockerfile

Signed-off-by: Ed Santiago <santiago@redhat.com>
edsantiago added a commit to edsantiago/libpod that referenced this pull request May 30, 2023
"image rm concurrent" test is still failing, even after containers#18664:

    Error: no contents in "/tmp/podman_test967723851/Dockerfile"

Probable cause: the images are built in parallel, and p.BuildImage()
writes one single Dockerfile. (This almost certainly renders the
test less effective than intended, since the generated images
might end up being identical).

Solution: write and use a uniquely-named Dockerfile

Signed-off-by: Ed Santiago <santiago@redhat.com>
edsantiago added a commit to edsantiago/libpod that referenced this pull request May 30, 2023
"image rm concurrent" test is still failing, even after containers#18664:

    Error: no contents in "/tmp/podman_test967723851/Dockerfile"

Probable cause: the images are built in parallel, and p.BuildImage()
writes one single Dockerfile. (This almost certainly renders the
test less effective than intended, since the generated images
might end up being identical).

Solution: write and use a uniquely-named Dockerfile

Signed-off-by: Ed Santiago <santiago@redhat.com>
@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 Aug 23, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 23, 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.

"podman image rm - concurrent with shared layers" seems racy
4 participants