Skip to content

Clean up running CI processes when killed#1207

Draft
TimoWilken wants to merge 1 commit intoalisw:masterfrom
TimoWilken:ci-kill-process-group
Draft

Clean up running CI processes when killed#1207
TimoWilken wants to merge 1 commit intoalisw:masterfrom
TimoWilken:ci-kill-process-group

Conversation

@TimoWilken
Copy link
Contributor

This should make restarting CI processes on Mac much more reliable, as Nomad cannot reliably kill the whole tree itself there. This should also solve the annoyance of CI jobs leaving behind running build containers when they are killed.

The behaviour relies on any long-running processes in the CI scripts being wrapped in a short_timeout or long_timeout call, which I think they all are.

Draft because I've not tested this yet.

This should make restarting CI processes on Mac much more reliable, as Nomad
cannot reliably kill the whole tree itself there. This should also solve the
annoyance of CI jobs leaving behind running build containers when they are
killed.

The behaviour relies on any long-running processes in the CI scripts being
wrapped in a short_timeout or long_timeout call, which I think they all are.
@TimoWilken TimoWilken force-pushed the ci-kill-process-group branch from 9e5354b to 21956e3 Compare October 20, 2022 12:08
TimoWilken added a commit to TimoWilken/ali-bot that referenced this pull request Nov 7, 2022
This conflicts with the change in alisw#1207.
@TimoWilken
Copy link
Contributor Author

So far, this doesn't fail when run in normal operation on Linux, but I want to test this change on Mac (and test the behaviour when killed, as well, not just normal operation) before this can be merged.

ktf pushed a commit that referenced this pull request Nov 7, 2022
This conflicts with the change in #1207.
@TimoWilken
Copy link
Contributor Author

Found a problem with this on the M1 Mac: wait returns 0 even if the aliBuild process that was put into the background earlier exits with an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant