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

Issue 15151003: Use a single Python Forwarder instance for each base test runner instance. (Closed)

Created:
7 years, 7 months ago by Philippe
Modified:
7 years, 7 months ago
Reviewers:
craigdh, bulach, frankf
CC:
chromium-reviews, craigdh+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org, klundberg+watch_chromium.org, frankf+watch_chromium.org, digit1, felipeg
Visibility:
Public.

Description

Use a single Python Forwarder instance for each base test runner instance. This is achieved by having BaseTestRunner instantiate a single Forwarder instance and inject it into SpawningServer. This makes the test server spawner instance use an already configured Forwarder instance for every single unit test rather than instantiating Forwarder every time (which also meant unnecessarily running 'adb forward' for every single unit test). Note that this CL also makes Forwarder thread-safe. This is due to the fact that the test server spawner does its work on a worker thread and not to the fact that a single Forwarder instance can be shared accross multiple shards as one could think. BUG=229685, 239014 R=bulach@chromium.org, craigdh@chromium.org, frankf@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=200500

Patch Set 1 #

Total comments: 9

Patch Set 2 : Address Frank's comments #

Total comments: 1

Patch Set 3 : Address Craig + Frank comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -68 lines) Patch
M build/android/pylib/base/base_test_runner.py View 1 2 4 chunks +13 lines, -17 lines 0 comments Download
M build/android/pylib/chrome_test_server_spawner.py View 1 8 chunks +8 lines, -8 lines 0 comments Download
M build/android/pylib/forwarder.py View 1 2 7 chunks +80 lines, -43 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Philippe
FYI, this depends on https://codereview.chromium.org/15008004.
7 years, 7 months ago (2013-05-14 17:58:06 UTC) #1
Philippe
7 years, 7 months ago (2013-05-14 17:58:15 UTC) #2
bulach
lgtm but please wait for frankf and craig, I haven't been changing this in a ...
7 years, 7 months ago (2013-05-14 18:21:53 UTC) #3
Philippe
Thanks Marcus! I'm waiting for Frank and Craig. https://chromiumcodereview.appspot.com/15151003/diff/1/build/android/pylib/forwarder.py File build/android/pylib/forwarder.py (right): https://chromiumcodereview.appspot.com/15151003/diff/1/build/android/pylib/forwarder.py#newcode184 build/android/pylib/forwarder.py:184: pass ...
7 years, 7 months ago (2013-05-15 08:32:23 UTC) #4
Philippe
On 2013/05/15 08:32:23, Philippe wrote: > Thanks Marcus! I'm waiting for Frank and Craig. > ...
7 years, 7 months ago (2013-05-15 15:37:37 UTC) #5
frankf
https://chromiumcodereview.appspot.com/15151003/diff/1/build/android/pylib/base/base_test_runner.py File build/android/pylib/base/base_test_runner.py (right): https://chromiumcodereview.appspot.com/15151003/diff/1/build/android/pylib/base/base_test_runner.py#newcode187 build/android/pylib/base/base_test_runner.py:187: for i in xrange(0, 3): Could you explain this ...
7 years, 7 months ago (2013-05-15 17:24:30 UTC) #6
Philippe
Thanks Frank! https://chromiumcodereview.appspot.com/15151003/diff/1/build/android/pylib/base/base_test_runner.py File build/android/pylib/base/base_test_runner.py (right): https://chromiumcodereview.appspot.com/15151003/diff/1/build/android/pylib/base/base_test_runner.py#newcode187 build/android/pylib/base/base_test_runner.py:187: for i in xrange(0, 3): On 2013/05/15 ...
7 years, 7 months ago (2013-05-15 17:57:41 UTC) #7
frankf
lgtm https://chromiumcodereview.appspot.com/15151003/diff/1/build/android/pylib/base/base_test_runner.py File build/android/pylib/base/base_test_runner.py (right): https://chromiumcodereview.appspot.com/15151003/diff/1/build/android/pylib/base/base_test_runner.py#newcode187 build/android/pylib/base/base_test_runner.py:187: for i in xrange(0, 3): sg. Please add ...
7 years, 7 months ago (2013-05-15 18:00:35 UTC) #8
craigdh
https://chromiumcodereview.appspot.com/15151003/diff/17001/build/android/pylib/forwarder.py File build/android/pylib/forwarder.py (right): https://chromiumcodereview.appspot.com/15151003/diff/17001/build/android/pylib/forwarder.py#newcode175 build/android/pylib/forwarder.py:175: tool: Tool class to use to get wrapper, if ...
7 years, 7 months ago (2013-05-15 18:34:00 UTC) #9
craigdh
On 2013/05/15 18:34:00, craigdh wrote: > https://chromiumcodereview.appspot.com/15151003/diff/17001/build/android/pylib/forwarder.py > File build/android/pylib/forwarder.py (right): > > https://chromiumcodereview.appspot.com/15151003/diff/17001/build/android/pylib/forwarder.py#newcode175 > ...
7 years, 7 months ago (2013-05-15 18:34:29 UTC) #10
Philippe
On 2013/05/15 18:34:29, craigdh wrote: > On 2013/05/15 18:34:00, craigdh wrote: > > > https://chromiumcodereview.appspot.com/15151003/diff/17001/build/android/pylib/forwarder.py ...
7 years, 7 months ago (2013-05-16 09:24:22 UTC) #11
Philippe
7 years, 7 months ago (2013-05-16 09:27:48 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 manually as r200500 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698