commit | 3ffc0d0376652a1e196513a959ebb8a8b9160dd4 | [log] [tgz] |
---|---|---|
author | Robert Ma <robertma@chromium.org> | Wed Jan 09 16:14:49 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jan 09 16:14:49 2019 |
tree | bf9a47cadc1951be246c0a4bd2722c211080b35d | |
parent | f0a80f388730ce083c3f7746ed5f8dc89ee8d8aa [diff] |
Reland "[blinkpy] Manage the lifecycle of wptserve better" Changes in blinkpy/web_tests/servers/apache_http.py are reverted from the original change, because on Windows the Apache process runs in foreground; everything else is unchanged. Original change's description: > During a recent roll of wpt tools, wptserve was broken and it was very > hard to debug. A few changes are made to improve the debuggability and > overall code health of wptserve management in blinkpy. > > * Stop discarding the output of wptserve. Set the logging level to info > (the default is debug) and preserve the output, so that it can be > dumped out when something goes wrong. > * When checking and killing wptserve, we now poll the process before > sending the null signal, as `kill -0` a defunct process will still > succeed. We can now reap zombies much faster :) > * Lastly, _check_and_kill no longer does blocking wait inside. Now, > _wait_for_action(_check_and_kill) makes more sense and matches the > pattern in ServerBase better; and we send SIGKILL as a last resort > (on POSIX). > apache_http.py is modified by the way to replace an unnecessary popen > with run_command. httpd exits immediately after it spawns the daemon, > so there's no use holding onto the defunct main process. > > Change-Id: I441d36739451ad1e37afc6afe8f3c089cf224822 > Reviewed-on: https://chromium-review.googlesource.com/1026889 > Reviewed-by: Quinten Yearsley <qyearsley@chromium.org> > Commit-Queue: Robert Ma <robertma@chromium.org> > Cr-Commit-Position: refs/heads/master@{#553619} Change-Id: Ic5476726a1f65d75e6e3bc23a9824d1d6ac70c0e Reviewed-on: https://chromium-review.googlesource.com/c/1401449 Reviewed-by: Quinten Yearsley <qyearsley@chromium.org> Commit-Queue: Robert Ma <robertma@chromium.org> Cr-Commit-Position: refs/heads/master@{#621164}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .