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

Issue 3423012: Cleanup orphaned testserver processes on posix. (Closed)

Created:
10 years, 3 months ago by Raghu Simha
Modified:
9 years, 7 months ago
CC:
chromium-reviews, pam+watch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org, cbentzel+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Cleanup orphaned testserver processes on posix. If a chrome test that uses a testserver were to crash, the testserver process ends up being orphaned, potentially affecting subsequent tests. This patch causes child processes of a test case to be killed along with the test case if it were to be abruptly terminated. BUG=55808 TEST=sync_integration_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=60192

Patch Set 1 #

Patch Set 2 : LaunchApp with new pgid; KillProcesses by pgid. #

Patch Set 3 : Fixing compile error. #

Total comments: 10

Patch Set 4 : CR feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -3 lines) Patch
M base/process_util.h View 1 2 3 3 chunks +16 lines, -1 line 0 comments Download
M base/process_util_posix.cc View 1 2 3 4 chunks +37 lines, -2 lines 0 comments Download
M chrome/test/test_launcher/out_of_proc_test_runner.cc View 2 3 2 chunks +18 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Raghu Simha
Sending this out for preliminary review. I can think of a couple of ways of ...
10 years, 3 months ago (2010-09-17 05:20:20 UTC) #1
Paweł Hajdan Jr.
+agl I'm somewhat worried about making this behavior automatic and implicit.
10 years, 3 months ago (2010-09-17 15:51:39 UTC) #2
agl
NACK. We don't want to change the default behaviour of these functions. Least surprise and ...
10 years, 3 months ago (2010-09-17 15:58:41 UTC) #3
Raghu Simha
Thanks for the review. I've reimplemented this fix as you suggested, with the default behavior ...
10 years, 3 months ago (2010-09-21 02:06:45 UTC) #4
Paweł Hajdan Jr.
You should also modify the test server launcher in net/test/test_server. http://codereview.chromium.org/3423012/diff/11005/14001 File base/process_util.h (right): http://codereview.chromium.org/3423012/diff/11005/14001#newcode232 ...
10 years, 3 months ago (2010-09-21 08:55:48 UTC) #5
Raghu Simha
On 2010/09/21 08:55:48, Paweł Hajdan Jr. wrote: > You should also modify the test server ...
10 years, 3 months ago (2010-09-21 18:39:44 UTC) #6
Raghu Simha
http://codereview.chromium.org/3423012/diff/11005/14001 File base/process_util.h (right): http://codereview.chromium.org/3423012/diff/11005/14001#newcode232 base/process_util.h:232: bool LaunchApp(const std::vector<std::string>& argv, Good idea. This should be ...
10 years, 3 months ago (2010-09-21 18:40:11 UTC) #7
Raghu Simha
I ran this patch on the trybots with an additional test (not in this patch) ...
10 years, 3 months ago (2010-09-22 01:36:38 UTC) #8
Paweł Hajdan Jr.
10 years, 3 months ago (2010-09-22 09:24:54 UTC) #9
Yay LGTM! Thanks so much for working on this.

Powered by Google App Engine
This is Rietveld 408576698