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

Clean up running CI processes when killed #1207

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

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 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