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

kill test: clean up warnings; document better #5334

Merged
merged 1 commit into from
Feb 27, 2020

Conversation

edsantiago
Copy link
Member

9f69c4e (part of the f31 pr, #3091) semi-broke the kill test,
there's now an ugly warning:

setup(): removing stray images quay.io/libpod/fedora-minimal:latest 7bb5a60e8a78

The comments also didn't actually explain the problem
being addressed, and included a misleading reference
to busybox.

Here we switch to using fedora-minimal only with podman-remote,
clean it up (rmi) when finished, and include an explanation in
the comments about why this is needed; making it clear that
this workaround can be removed once we get rid of podman-remote.
We also reformat back to 80 columns.

Signed-off-by: Ed Santiago santiago@redhat.com

9f69c4e (part of the f31 pr, containers#3091) semi-broke the kill test,
there's now an ugly warning:

    setup(): removing stray images quay.io/libpod/fedora-minimal:latest 7bb5a60e8a78

The comments also didn't actually explain the problem
being addressed, and included a misleading reference
to busybox.

Here we switch to using fedora-minimal only with podman-remote,
clean it up (rmi) when finished, and include an explanation in
the comments about why this is needed; making it clear that
this workaround can be removed once we get rid of podman-remote.
We also reformat back to 80 columns.

Signed-off-by: Ed Santiago <santiago@redhat.com>
@mheon
Copy link
Member

mheon commented Feb 26, 2020

LGTM
/approve

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: edsantiago, mheon

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-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 26, 2020

if [[ $_image != $IMAGE ]]; then
run_podman rmi $_image
fi
Copy link
Member

Choose a reason for hiding this comment

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

I'm not quite sure why you need to conditionalize this, couldn't you just always do the rmi?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, that would be un-nice. The entire rationale behind this test suite is to minimize pulling. In order to do so, all tests are guaranteed to have one and exactly one $IMAGE loaded at start-time; so it is courteous for each test to (absent any failures) leave state as they found it.

@TomSweeneyRedHat
Copy link
Member

One question, LGTM once the tests are happy.

@edsantiago
Copy link
Member Author

edsantiago commented Feb 26, 2020

Test failures: flake, I think, but am logging for posterity:

pkg/bindings/test/containers_test.go:238
.... sends POST /libpod/containers/sha/stop
.... sends GET /libpod/containers/name/json
....expects .State.Status to be "exited", but gets "stopped" instead

I've seen this before in system tests, basically podman ps showing "stopped" instead of "exited", but have never been able to reproduce it. This may be a real problem.

UPDATE (few minutes later): had to restart this once again (two restarts total). Passed after that.

@edsantiago
Copy link
Member Author

The other flake is the one we've been discussing in IRC, "timed out waiting for file".

@cevich
Copy link
Member

cevich commented Feb 26, 2020

UPDATE (few minutes later): had to restart this once again (two restarts total). Passed after that.

Thanks @edsantiago I appreciate the help with all these "new" flakes.

local _image=$IMAGE
local _sh_cmd="sh"
if is_remote; then
_image=quay.io/libpod/fedora-minimal:latest
Copy link
Member

Choose a reason for hiding this comment

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

FWIW and/or maybe a helpful addition to this comment. This image is built automatically from ./contrib/fedora-minimal/ (since the fedoraproject registry is so often flaky).

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks - I think the quay.io is enough to clue someone in that this is a special image; but in this test my goal is to minimize all pulls, even from quay. Every pull is a high-risk chance for a flake.

Copy link
Member

Choose a reason for hiding this comment

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

Yes I agree with the methodology.

Actually, something that occurred to me: When the ginkgo tests run, we cache image tarballs in /tmp with some very stable/well-known filenames. If those files exist, pulling could be completely avoided...just import them directly.

@rhatdan
Copy link
Member

rhatdan commented Feb 27, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 27, 2020
@openshift-merge-robot openshift-merge-robot merged commit 2f5d0d8 into containers:master Feb 27, 2020
@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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants