Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(521)

Issue 2624093003: Remove the overridden _stop_running_server method in WPTServe. (Closed)

Created:
3 years, 11 months ago by qyearsley
Modified:
3 years, 11 months ago
Reviewers:
tkent, Dirk Pranke
CC:
blink-reviews, burnik, chromium-reviews, Dirk Pranke, jeffcarp, sunjian
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove the overridden _stop_running_server method in WPTServe. Background: When support for wptserve was originally added [1], WPTServe had a _stop_running_server to override the version in ServerBase, which tries to kill the existing process with Executive.interrupt instead of Executive.kill_process on non-Windows platforms. Later this method was changed in http://crrev.com/2511013002 and now when interrupt fails to kill the process, there's an infinite loop which results in the job stalling for days. But, I'm not sure why it was necessary to use Executive.interrupt rather than Executive.kill_process. If the overridden method is removed, then ServerBase._stop_running_server would be used, which is: def _stop_running_server(self): self._wait_for_action(self._check_and_kill) if self._filesystem.exists(self._pid_file): self._filesystem.remove(self._pid_file) [1] https://chromium.googlesource.com/chromium/src/+/0129094b0ad431a2aee9cf5ea9225037283f3c37/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/servers/wptserve.py Note, the actual change to behavior here is in webkitpy/layout_tests/servers/wptserve.py -- the rest of the changes are related to unit testing; I could also put those changes in a separate CL. BUG=669802 Review-Url: https://codereview.chromium.org/2624093003 Cr-Commit-Position: refs/heads/master@{#443083} Committed: https://chromium.googlesource.com/chromium/src/+/66e610ba7ddabd8f30757b0378aa4185b893cdf4

Patch Set 1 #

Total comments: 1

Messages

Total messages: 16 (9 generated)
qyearsley
https://codereview.chromium.org/2624093003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/servers/wptserve.py File third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/servers/wptserve.py (left): https://codereview.chromium.org/2624093003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/servers/wptserve.py#oldcode52 third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/servers/wptserve.py:52: self._keep_process_reference = True This is also unused, but removing ...
3 years, 11 months ago (2017-01-11 23:52:23 UTC) #5
tkent
lgtm
3 years, 11 months ago (2017-01-12 00:02:25 UTC) #6
Dirk Pranke
lgtm
3 years, 11 months ago (2017-01-12 00:11:15 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2624093003/1
3 years, 11 months ago (2017-01-12 00:13:38 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/66e610ba7ddabd8f30757b0378aa4185b893cdf4
3 years, 11 months ago (2017-01-12 00:36:16 UTC) #14
Marijn Kruisselbrink
After this change for me trying to run tests locally no longer kills wptserve, i.e. ...
3 years, 11 months ago (2017-01-19 19:52:15 UTC) #15
qyearsley
3 years, 11 months ago (2017-01-19 20:34:06 UTC) #16
Message was sent while issue was closed.
On 2017/01/19 at 19:52:15, mek wrote:
> After this change for me trying to run tests locally no longer kills wptserve,
i.e. if I run run-webkit-tests external/wpt/some-wpt-test.html twice in a row,
the second run fails because wptserve from the first run is still running.
Reverting this CL and wptserve gets killed correctly. Not sure if this is
something special about my local setup?

I don't think that it's something special about your local setup, it's been
reproduced by others (including me); see http://crbug.com/682711.

Powered by Google App Engine
This is Rietveld 408576698