-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
trap INT and TERM in CI #1627
trap INT and TERM in CI #1627
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: BenTheElder 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 |
@@ -37,7 +37,7 @@ install_kind() { | |||
main() { | |||
# create temp dir and setup cleanup | |||
TMP_DIR=$(mktemp -d) | |||
trap cleanup EXIT | |||
trap cleanup INT TERM EXIT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one should already be doing this because it's bash, but the other script may be ash/dash (it's using sh)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this comment is confusing me regarding trapping EXIT
https://unix.stackexchange.com/a/149093
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's also what
@Shawn
said: Ash and Dash don't trap signals with EXIT.
that's the only relevant part really.
POSIX has requirements about what it looks like when EXIT is called, but when it is called is under specified. we explicitly want these
/lgtm |
/hold we were lucky to hit a timeout https://prow.k8s.io/view/gcs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kind/1627/pull-kind-e2e-kubernetes/1265745915679870979 and is not working :/ |
2 jobs timed out without logs :/ |
/hold cancel |
/retest |
notably I'm concerned about how podutils / our config is handling these, I think we need a longer grace period.
note those times, 15s is not even enough time for the ginkgo after-suite to finish. |
/test all |
2 similar comments
/test all |
/test all |
New changes are detected. LGTM label has been removed. |
/test all |
Jordan merged a PR related to the test with timeouts, I don't think it will show up again, if I read it correctly the test should timeout now, not the job |
timeouts are happening on other branches too. |
@BenTheElder: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
At the very least this doesn't misbehave so far, merging so we can maybe start collecting logs elsewhere |
EXIT is not handled consistently across shells
this will be obviated by #986 but the need to debug some timeouts is a bit more pressing and this change is tiny ...