[Webkit-unassigned] [Bug 57724] test_kill_process is hanging on the EWS bots

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 5 14:24:13 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=57724





--- Comment #10 from Dirk Pranke <dpranke at chromium.org>  2011-05-05 14:24:13 PST ---
There probably isn't an "easy" way to do this, but here are some thoughts.

sigalarms are dicey in the best of cases and won't work on windows at all. A "unix command" wouldn't really help either.

Don't use subprocess.call() or communicate(), use Popen() or some other variant and implement an explicit timeout via sleep and poll(). It is unfortunate that subprocess doesn't give you a way to wait(timeout), but that wouldn't really help anyway, because ...

you will need to distinguish between a process that is hung and a process that is just slow. I believe the way buildbot does this (at least on the Chromium bots) is to ensure that the process is generating output periodically, and we only kill the process if we've gotten no input for 10 minutes. You can probably steal the code from buildbot.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list