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

Support sig-proxy for podman-remote attach and start #16985

Merged
merged 1 commit into from
Jan 4, 2023

Conversation

ashley-cui
Copy link
Member

Signals were not proxied for attach and start for podman-remote. Now they are.

Signed-off-by: Ashley Cui [email protected]

Fixes: #16662

Does this PR introduce a user-facing change?

Sig-proxy is now supported for podman-remote attach and start

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 3, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ashley-cui

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 Jan 3, 2023
@ashley-cui
Copy link
Member Author

@rhatdan PTAL :)

@ashley-cui ashley-cui force-pushed the attachsig branch 2 times, most recently from 9055919 to a201e20 Compare January 3, 2023 20:38
@@ -40,4 +40,99 @@ load helpers
run_podman rm -f -t0 foo
}

@test "podman start sigkill" {

$PODMAN create --name foo $IMAGE sh -c 'trap "echo BYE;exit 0" INT;echo READY;while :;do sleep 0.1;done'
Copy link
Member

Choose a reason for hiding this comment

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

Please don't use $PODMAN unless it's absolutely an emergency. (The next line, 46, might count as such. I'll look into it closer tomorrow. This line, 45, should use run_podman.

Copy link
Member

Choose a reason for hiding this comment

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

Never mind, I see what happened. It's copypasta nastiness. Fix in progress, I will report back later this morning.

Copy link
Member

Choose a reason for hiding this comment

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

@ashley-cui try this 032-sigproxy.bats. I've confirmed that it passes (including remote) on your branch, and the two new tests fail on main.

Suggestion: I encourage you to form a new habit. Any time you find yourself copypasting more than a handful of lines, or if you see someone doing so, take a step back to evaluate what common elements you can refactor. Over time you will find your brain screaming at these aberrations, and you'll take time to fix them, and you will become a much better programmer. (You already are, but we all have room for improvement!)

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 so much Ed!

Signals were not proxied for attach and start for podman-remote. Now
they are.

Signed-off-by: Ashley Cui <[email protected]>
@rhatdan
Copy link
Member

rhatdan commented Jan 4, 2023

LGTM
@containers/podman-maintainers PTAL

@rhatdan
Copy link
Member

rhatdan commented Jan 4, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 4, 2023
@openshift-merge-robot openshift-merge-robot merged commit 49075c3 into containers:main Jan 4, 2023
@ashley-cui ashley-cui deleted the attachsig branch February 9, 2023 20:10
@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 10, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 10, 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.

Ctrl+C doesn't kill the container using podman attach with podman machine
4 participants