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

tests for exit status on podman run --rm #3804

Merged
merged 1 commit into from
Aug 15, 2019

Conversation

edsantiago
Copy link
Member

...and on a container killed by 'podman rm -f'. See #3795

Signed-off-by: Ed Santiago [email protected]

@edsantiago
Copy link
Member Author

I've confirmed that these tests fail when run against podman < d3a4331

@rhatdan
Copy link
Member

rhatdan commented Aug 13, 2019

Nice clever work on this.
LGTM

@mheon
Copy link
Member

mheon commented Aug 13, 2019 via email

@mheon
Copy link
Member

mheon commented Aug 13, 2019 via email

@rhatdan
Copy link
Member

rhatdan commented Aug 13, 2019

Just need to get them to pass... :^)

@edsantiago
Copy link
Member Author

OOF! I thought I had tested podman-remote; turns out I fat-fingered my test.

Looks like we have the same broken-exit-status issue with podman-remote. Should I reopen #3795 or open a new one?

@mheon
Copy link
Member

mheon commented Aug 13, 2019

Prooobably a separate issue... I'd open a new issue for it

@mheon
Copy link
Member

mheon commented Aug 13, 2019

Actually - did --rm exit codes with remote ever work?

I sort of suspect the answer is "no"

@haircommander
Copy link
Collaborator

@mheon I know that I had to wire a bunch of stuff together to get exec exit codes. I'd believe --rm exit codes were never implemented.

@edsantiago
Copy link
Member Author

Actually - did --rm exit codes with remote ever work?

test/system/030-run.bats has worked fine with podman-remote since the day I wrote it. So, yes, I am expecting exit codes to work. I'll open a new issue.

@mheon
Copy link
Member

mheon commented Aug 13, 2019

@edsantiago I meant specifically exit codes with podman run --rm or containers force-removed while running

@mheon
Copy link
Member

mheon commented Aug 13, 2019

(Because I'm fairly certain our mitigation for missing exit codes only ever worked locally - the files never existed on the remote system)

@edsantiago
Copy link
Member Author

I meant specifically exit codes with podman run --rm or containers force-removed while running

Since we've never had tests, and I've never had a working podman-remote on RHEL8 to run docker-autotest on, I don't know. I still kind of think it might be a good idea to have them, but I can skip_if_remote the new tests in this PR if it is too difficult.

@mheon
Copy link
Member

mheon commented Aug 13, 2019

Ummm.
@baude We have remote events, right? We can probably hack up something similar to what we're doing here by calling that varlink endpoint

@edsantiago
Copy link
Member Author

/retest

...and on a container killed by 'podman rm -f'. See containers#3795

Disable when testing podman-remote; see containers#3808

Signed-off-by: Ed Santiago <[email protected]>
@edsantiago
Copy link
Member Author

Rebased, and disabled the new tests in podman-remote mode. Will enable if/when #3808 gets fixed.

Tests finally green after hours of clicking Re-run on flakes.

@mheon
Copy link
Member

mheon commented Aug 14, 2019

We need to talk about flakes sometime... If I remember, I'll bring it up tomorrow at scrum.

@mheon
Copy link
Member

mheon commented Aug 14, 2019

/approve
Tests LGTM

@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 Aug 14, 2019
@rhatdan
Copy link
Member

rhatdan commented Aug 15, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 15, 2019
@openshift-merge-robot openshift-merge-robot merged commit f9ddf91 into containers:master Aug 15, 2019
@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 26, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 26, 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.

6 participants