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

Issue 19537004: [Android] Converts host driven tests to common test_dispatcher (Closed)

Created:
7 years, 5 months ago by gkanwar1
Modified:
7 years, 4 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, craigdh
Base URL:
https://chromium.googlesource.com/chromium/src.git@sharding_refactoring
Visibility:
Public.

Description

Converts host driven tests to common test_dispatcher Also renames several files in pylib/host_driven to match the general file naming scheme. This change will break existing host-driven tests downstream which are run though scripts other than test_runner. NOTRY=True BUG=176323 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215944

Patch Set 1 #

Total comments: 11

Patch Set 2 : Renames InstrumentationPythonTestBase, renames python to host-driven globally #

Total comments: 14

Patch Set 3 : Fixes naming scheme to match unittest naming, adds exception handling to host-driven test_runner #

Total comments: 18

Patch Set 4 : Several minor changes to variable names / comments #

Total comments: 12

Patch Set 5 : Cleans up many comments and naming issues #

Patch Set 6 : Adds tagging of host-driven, re-adds exception handling #

Total comments: 14

Patch Set 7 : More renaming and updating commetns #

Patch Set 8 : Attempts to clean up comments in host_driven/setup.py #

Total comments: 3

Patch Set 9 : Removes uiautomator host-driven interface #

Total comments: 1

Patch Set 10 : Merges instrumentation_test_case back into test_case #

Total comments: 2

Patch Set 11 : Cleans up _RunJavaTest #

Total comments: 4

Patch Set 12 : Updates a couple of docstrings #

Patch Set 13 : Fixes host-driven test logging #

Patch Set 14 : Fixes host-driven official flag #

Patch Set 15 : Makes __RunJavaTest private #

Patch Set 16 : Converts --official-build into a boolean flag #

Unified diffs Side-by-side diffs Delta from patch set Stats (+390 lines, -1175 lines) Patch
M build/android/buildbot/bb_device_steps.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
D build/android/pylib/base/sharded_tests_queue.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -35 lines 0 comments Download
M build/android/pylib/base/test_dispatcher.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -1 line 0 comments Download
D build/android/pylib/host_driven/java_unittest_utils.py View 1 chunk +0 lines, -27 lines 0 comments Download
D build/android/pylib/host_driven/python_test_base.py View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -152 lines 0 comments Download
D build/android/pylib/host_driven/python_test_caller.py View 1 chunk +0 lines, -115 lines 0 comments Download
D build/android/pylib/host_driven/python_test_sharder.py View 6 7 8 9 1 chunk +0 lines, -203 lines 0 comments Download
D build/android/pylib/host_driven/run_python_tests.py View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -234 lines 0 comments Download
A + build/android/pylib/host_driven/setup.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +98 lines, -129 lines 0 comments Download
A + build/android/pylib/host_driven/test_case.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +75 lines, -76 lines 0 comments Download
M build/android/pylib/host_driven/test_info_collection.py View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
A + build/android/pylib/host_driven/test_runner.py View 1 2 3 4 5 6 3 chunks +92 lines, -72 lines 0 comments Download
M build/android/pylib/host_driven/tests_annotations.py View 1 3 chunks +3 lines, -3 lines 0 comments Download
M build/android/pylib/instrumentation/test_jar.py View 1 3 chunks +3 lines, -3 lines 0 comments Download
M build/android/pylib/utils/run_tests_helper.py View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M build/android/run_monkey_test.py View 1 2 3 4 5 6 7 8 9 4 chunks +68 lines, -64 lines 0 comments Download
M build/android/test_runner.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 8 chunks +41 lines, -46 lines 0 comments Download
M chrome/android/host_driven_tests/DummyTest.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -10 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
gkanwar1
7 years, 5 months ago (2013-07-23 17:01:11 UTC) #1
bulach
good stuff, thanks for clearing this up! I have some suggestions below: some of them ...
7 years, 5 months ago (2013-07-23 17:27:52 UTC) #2
gkanwar1
Please hold off on further review while I make the changes suggested by bulach. Thanks! ...
7 years, 5 months ago (2013-07-23 18:38:55 UTC) #3
gkanwar1
Patch set 2 has several fixes, ptal. Thanks.
7 years, 5 months ago (2013-07-23 20:45:05 UTC) #4
frankf
https://codereview.chromium.org/19537004/diff/1/build/android/pylib/host_driven/instrumentation_test_base.py File build/android/pylib/host_driven/instrumentation_test_base.py (right): https://codereview.chromium.org/19537004/diff/1/build/android/pylib/host_driven/instrumentation_test_base.py#newcode26 build/android/pylib/host_driven/instrumentation_test_base.py:26: class InstrumentationPythonTestBase(python_test_base.PythonTestBase): I think we should follow the accepted ...
7 years, 5 months ago (2013-07-24 01:04:54 UTC) #5
gkanwar1
https://codereview.chromium.org/19537004/diff/1/build/android/pylib/host_driven/instrumentation_test_base.py File build/android/pylib/host_driven/instrumentation_test_base.py (right): https://codereview.chromium.org/19537004/diff/1/build/android/pylib/host_driven/instrumentation_test_base.py#newcode26 build/android/pylib/host_driven/instrumentation_test_base.py:26: class InstrumentationPythonTestBase(python_test_base.PythonTestBase): On 2013/07/24 01:04:55, frankf wrote: > I ...
7 years, 5 months ago (2013-07-24 17:38:04 UTC) #6
frankf
https://codereview.chromium.org/19537004/diff/18001/build/android/pylib/host_driven/instrumentation_test_case.py File build/android/pylib/host_driven/instrumentation_test_case.py (right): https://codereview.chromium.org/19537004/diff/18001/build/android/pylib/host_driven/instrumentation_test_case.py#newcode94 build/android/pylib/host_driven/instrumentation_test_case.py:94: A TestRunResults object containing a result for this host-driven ...
7 years, 5 months ago (2013-07-24 23:33:42 UTC) #7
gkanwar1
Uploaded a new patch set to address issues, ptal. https://codereview.chromium.org/19537004/diff/18001/build/android/pylib/host_driven/instrumentation_test_case.py File build/android/pylib/host_driven/instrumentation_test_case.py (right): https://codereview.chromium.org/19537004/diff/18001/build/android/pylib/host_driven/instrumentation_test_case.py#newcode94 build/android/pylib/host_driven/instrumentation_test_case.py:94: ...
7 years, 5 months ago (2013-07-25 00:27:55 UTC) #8
frankf
https://codereview.chromium.org/19537004/diff/25001/build/android/pylib/host_driven/instrumentation_test_case.py File build/android/pylib/host_driven/instrumentation_test_case.py (right): https://codereview.chromium.org/19537004/diff/25001/build/android/pylib/host_driven/instrumentation_test_case.py#newcode9 build/android/pylib/host_driven/instrumentation_test_case.py:9: tests, each one on a unique instrumentation TestRunner object. ...
7 years, 5 months ago (2013-07-25 01:24:21 UTC) #9
gkanwar1
Dealt with the outstanding comments, also ran gpylint on all the files and made a ...
7 years, 5 months ago (2013-07-25 21:15:40 UTC) #10
gkanwar1
On 2013/07/25 21:15:40, gkanwar1 wrote: > Dealt with the outstanding comments, also ran gpylint on ...
7 years, 5 months ago (2013-07-25 21:17:03 UTC) #11
gkanwar1
https://codereview.chromium.org/19537004/diff/18001/build/android/pylib/host_driven/test_runner.py File build/android/pylib/host_driven/test_runner.py (right): https://codereview.chromium.org/19537004/diff/18001/build/android/pylib/host_driven/test_runner.py#newcode19 build/android/pylib/host_driven/test_runner.py:19: class HostDrivenExceptionTestResult(test_result.InstrumentationTestResult): On 2013/07/25 00:27:55, gkanwar1 wrote: > On ...
7 years, 5 months ago (2013-07-25 21:58:55 UTC) #12
gkanwar1
Fixed exception handling, added tagging of host-driven tests, and rebased onto master. ptal, thanks!
7 years, 5 months ago (2013-07-25 22:30:01 UTC) #13
frankf
https://codereview.chromium.org/19537004/diff/49001/build/android/pylib/host_driven/instrumentation_test_case.py File build/android/pylib/host_driven/instrumentation_test_case.py (right): https://codereview.chromium.org/19537004/diff/49001/build/android/pylib/host_driven/instrumentation_test_case.py#newcode67 build/android/pylib/host_driven/instrumentation_test_case.py:67: suite: Name of the Java test suite (e.g. FooTest) ...
7 years, 5 months ago (2013-07-25 22:50:06 UTC) #14
gkanwar1
https://codereview.chromium.org/19537004/diff/49001/build/android/pylib/host_driven/instrumentation_test_case.py File build/android/pylib/host_driven/instrumentation_test_case.py (right): https://codereview.chromium.org/19537004/diff/49001/build/android/pylib/host_driven/instrumentation_test_case.py#newcode67 build/android/pylib/host_driven/instrumentation_test_case.py:67: suite: Name of the Java test suite (e.g. FooTest) ...
7 years, 5 months ago (2013-07-26 01:39:06 UTC) #15
frankf
lgtm. Please wait for Craig as well.
7 years, 5 months ago (2013-07-26 23:21:37 UTC) #16
craigdh
lgtm with a very minor nit. https://codereview.chromium.org/19537004/diff/61001/build/android/pylib/host_driven/instrumentation_test_case.py File build/android/pylib/host_driven/instrumentation_test_case.py (right): https://codereview.chromium.org/19537004/diff/61001/build/android/pylib/host_driven/instrumentation_test_case.py#newcode46 build/android/pylib/host_driven/instrumentation_test_case.py:46: other args: All ...
7 years, 5 months ago (2013-07-26 23:38:01 UTC) #17
gkanwar1
https://codereview.chromium.org/19537004/diff/61001/build/android/pylib/host_driven/instrumentation_test_case.py File build/android/pylib/host_driven/instrumentation_test_case.py (right): https://codereview.chromium.org/19537004/diff/61001/build/android/pylib/host_driven/instrumentation_test_case.py#newcode46 build/android/pylib/host_driven/instrumentation_test_case.py:46: other args: All passed through to the instrumentation test ...
7 years, 5 months ago (2013-07-26 23:43:43 UTC) #18
craigdh
https://codereview.chromium.org/19537004/diff/61001/build/android/pylib/host_driven/instrumentation_test_case.py File build/android/pylib/host_driven/instrumentation_test_case.py (right): https://codereview.chromium.org/19537004/diff/61001/build/android/pylib/host_driven/instrumentation_test_case.py#newcode46 build/android/pylib/host_driven/instrumentation_test_case.py:46: other args: All passed through to the instrumentation test ...
7 years, 5 months ago (2013-07-26 23:46:10 UTC) #19
gkanwar1
On 2013/07/26 23:46:10, craigdh wrote: > https://codereview.chromium.org/19537004/diff/61001/build/android/pylib/host_driven/instrumentation_test_case.py > File build/android/pylib/host_driven/instrumentation_test_case.py (right): > > https://codereview.chromium.org/19537004/diff/61001/build/android/pylib/host_driven/instrumentation_test_case.py#newcode46 > ...
7 years, 5 months ago (2013-07-26 23:48:19 UTC) #20
bulach
I'm obviously fine if you guys want to go ahead with this :) however, I ...
7 years, 4 months ago (2013-07-29 09:30:57 UTC) #21
gkanwar1
Based on the discussion in the doc, I merged instrumentation_test_case back into test_case. This also ...
7 years, 4 months ago (2013-08-02 17:47:30 UTC) #22
frankf
lgtm https://codereview.chromium.org/19537004/diff/74001/chrome/android/host_driven_tests/DummyTest.py File chrome/android/host_driven_tests/DummyTest.py (right): https://codereview.chromium.org/19537004/diff/74001/chrome/android/host_driven_tests/DummyTest.py#newcode18 chrome/android/host_driven_tests/DummyTest.py:18: """Dummy host-driven test for testing the framework itself.""" ...
7 years, 4 months ago (2013-08-02 18:18:38 UTC) #23
frankf
On 2013/08/02 18:18:38, frankf wrote: > lgtm > > https://codereview.chromium.org/19537004/diff/74001/chrome/android/host_driven_tests/DummyTest.py > File chrome/android/host_driven_tests/DummyTest.py (right): > ...
7 years, 4 months ago (2013-08-02 18:50:40 UTC) #24
gkanwar1
https://codereview.chromium.org/19537004/diff/74001/chrome/android/host_driven_tests/DummyTest.py File chrome/android/host_driven_tests/DummyTest.py (right): https://codereview.chromium.org/19537004/diff/74001/chrome/android/host_driven_tests/DummyTest.py#newcode18 chrome/android/host_driven_tests/DummyTest.py:18: """Dummy host-driven test for testing the framework itself.""" On ...
7 years, 4 months ago (2013-08-02 19:56:21 UTC) #25
bulach
lgtm, good stuff! some small suggestions re: docs, feel free to go ahead once frank ...
7 years, 4 months ago (2013-08-05 10:18:20 UTC) #26
gkanwar1
https://codereview.chromium.org/19537004/diff/109001/build/android/pylib/host_driven/test_case.py File build/android/pylib/host_driven/test_case.py (left): https://codereview.chromium.org/19537004/diff/109001/build/android/pylib/host_driven/test_case.py#oldcode17 build/android/pylib/host_driven/test_case.py:17: Tests can basically do whatever they want in the ...
7 years, 4 months ago (2013-08-05 17:35:49 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gkanwar@chromium.org/19537004/129001
7 years, 4 months ago (2013-08-06 19:08:33 UTC) #28
commit-bot: I haz the power
7 years, 4 months ago (2013-08-06 19:10:18 UTC) #29
Message was sent while issue was closed.
Change committed as 215944

Powered by Google App Engine
This is Rietveld 408576698