Merge ~ubuntu-release/autopkgtest/+git/development:kill-harder into ~ubuntu-release/autopkgtest/+git/development:master
Proposed by
Brian Murray
Status: | Merged |
---|---|
Merge reported by: | Brian Murray |
Merged at revision: | 396dc57a5b0def6b4a822c678413cf666524c98b |
Proposed branch: | ~ubuntu-release/autopkgtest/+git/development:kill-harder |
Merge into: | ~ubuntu-release/autopkgtest/+git/development:master |
Diff against target: |
30 lines (+18/-0) 1 file modified
lib/adt_testbed.py (+18/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paride Legovini (community) | Approve | ||
Julian Andres Klode (community) | Needs Fixing | ||
Ubuntu Release Team | Pending | ||
Review via email: mp+423316@code.launchpad.net |
Commit message
kill processes with SIGKILL if SIGTERM fails
When trying to kill long running test processes on armhf they don't always get killed so if the process is still running kill it again with SIGKILL.
Description of the change
Tests on armhf were continuing to run after a timeout was reached. I added some debugging to the autopkgtest code on the lxd worker and noticed that that SIGTERM call wasn't actually killing the process. This change uses SIGKILL if SIGTERM doesn't work out.
I cowboy'ed this in production and we can now see that the apport tests on armhf are now getting killed.
To post a comment you must log in.
There should be some delay between those checks, as it might take a couple of seconds to complete a SIGTERM.
Alternatively, if we deem it safe to kill without waiting, we don't need to send SIGTERM in the first place and can directly send SIGKILL.