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

Issue 11421149: Ensure host_forwarder is killed when setting up/tearing down sharding. (Closed)

Created:
8 years ago by Philippe
Modified:
8 years ago
Reviewers:
felipeg, bulach
CC:
chromium-reviews, ilevy+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, peter+watch_chromium.org, klundberg+watch_chromium.org, frankf+watch_chromium.org
Visibility:
Public.

Description

Ensure host_forwarder is killed when setting up sharding. This fixes the following issue: - TestSharder.SetupSharding() in run_java_tests.py wasn't calling the super class' SetupSharding() method which kills host_forwarder. The call to Forwarder.KillHost() was moved to RunShardedTest() which isn't supposed to be overridden. This should be more robust. Additionally in case '$ host_forwarder kill-server' failed for any reason, Forwarder.KillHost() now falls back to pkill. BUG=163036 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170437

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address Marcus' comments #

Total comments: 2

Patch Set 3 : Address Marcus' comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -3 lines) Patch
M build/android/pylib/base_test_sharder.py View 1 2 3 chunks +6 lines, -1 line 0 comments Download
M build/android/pylib/forwarder.py View 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Philippe
8 years ago (2012-11-29 14:01:31 UTC) #1
felipeg
lgtm
8 years ago (2012-11-29 14:56:15 UTC) #2
Philippe
On 2012/11/29 14:56:15, felipeg1 wrote: > lgtm I'm waiting for you Marcus :)
8 years ago (2012-11-29 15:00:27 UTC) #3
bulach
lgtm, but a suggestion below... if possible, I'd prefer avoiding introducing "atexit" in "library" components ...
8 years ago (2012-11-29 15:50:30 UTC) #4
Philippe
Please take another look Marcus. https://chromiumcodereview.appspot.com/11421149/diff/1/build/android/pylib/base_test_sharder.py File build/android/pylib/base_test_sharder.py (right): https://chromiumcodereview.appspot.com/11421149/diff/1/build/android/pylib/base_test_sharder.py#newcode72 build/android/pylib/base_test_sharder.py:72: """Notifies that we completed ...
8 years ago (2012-11-29 17:53:31 UTC) #5
bulach
lgtm, but one suggestion below.. just to clarify: since this script can be called (and ...
8 years ago (2012-11-29 18:36:24 UTC) #6
Philippe
Thanks Marcus! https://chromiumcodereview.appspot.com/11421149/diff/2006/build/android/pylib/base_test_sharder.py File build/android/pylib/base_test_sharder.py (right): https://chromiumcodereview.appspot.com/11421149/diff/2006/build/android/pylib/base_test_sharder.py#newcode92 build/android/pylib/base_test_sharder.py:92: try: On 2012/11/29 18:36:24, bulach wrote: > ...
8 years ago (2012-11-30 09:01:54 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pliard@chromium.org/11421149/8001
8 years ago (2012-11-30 09:03:07 UTC) #8
commit-bot: I haz the power
8 years ago (2012-11-30 10:56:34 UTC) #9
Message was sent while issue was closed.
Change committed as 170437

Powered by Google App Engine
This is Rietveld 408576698