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

Issue 15942016: Creates a new test running script test_runner.py (Closed)

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

Description

Creates a new test running script test_runner.py This new script serves as a unified entry point for all tests. The existing scripts are now just wrappers around the new script. Old commands should thus still work, but you can now make use of the new script to run various types of tests. There are a few TODOs left: * Add options to run Monkey tests. Miscellaneous notes: * --python_test_root is now a required flag when Python host-driven tests are being run. BUG=248351 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210035

Patch Set 1 #

Total comments: 33

Patch Set 2 : Fixes based on code review #

Total comments: 48

Patch Set 3 : Several more fixes #

Total comments: 42

Patch Set 4 : A few more updates from code review #

Total comments: 26

Patch Set 5 : Deprecates some options, updates some help text, and some miscellaneous things #

Total comments: 7

Patch Set 6 : Rebases the patch #

Total comments: 1

Patch Set 7 : Converts options to command-style format #

Total comments: 30

Patch Set 8 : Fixes help command and example text #

Total comments: 36

Patch Set 9 : Some name fixes and moving gtest_filter to gtest options #

Total comments: 4

Patch Set 10 : Changes host-driven logging, and other minor fixes #

Patch Set 11 : Renames run_all_tests.py to test_runner.py #

Total comments: 4

Patch Set 12 : Reverts flakiness server change, uses os.path.join #

Unified diffs Side-by-side diffs Delta from patch set Stats (+662 lines, -480 lines) Patch
M build/android/adb_install_apk.py View 1 2 3 3 chunks +30 lines, -2 lines 0 comments Download
M build/android/pylib/browsertests/dispatch.py View 1 2 3 4 5 6 7 4 chunks +14 lines, -5 lines 0 comments Download
M build/android/pylib/gtest/dispatch.py View 1 2 3 4 chunks +7 lines, -3 lines 0 comments Download
M build/android/pylib/gtest/test_package_apk.py View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M build/android/pylib/gtest/test_package_executable.py View 1 2 3 3 chunks +6 lines, -5 lines 0 comments Download
M build/android/pylib/host_driven/run_python_tests.py View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -4 lines 0 comments Download
M build/android/pylib/instrumentation/dispatch.py View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -4 lines 0 comments Download
M build/android/pylib/uiautomator/dispatch.py View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -6 lines 0 comments Download
M build/android/pylib/utils/test_options_parser.py View 1 2 3 3 chunks +8 lines, -236 lines 0 comments Download
M build/android/run_browser_tests.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +12 lines, -17 lines 0 comments Download
M build/android/run_instrumentation_tests.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -64 lines 0 comments Download
M build/android/run_tests.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +11 lines, -66 lines 0 comments Download
M build/android/run_uiautomator_tests.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -65 lines 0 comments Download
A build/android/test_runner.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +531 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (0 generated)
gkanwar
7 years, 6 months ago (2013-06-11 01:23:07 UTC) #1
frankf
This is a good start Tej. https://codereview.chromium.org/15942016/diff/1/build/android/run_all_tests.py File build/android/run_all_tests.py (right): https://codereview.chromium.org/15942016/diff/1/build/android/run_all_tests.py#newcode7 build/android/run_all_tests.py:7: Example: ./run_all_tests.py --gtest ...
7 years, 6 months ago (2013-06-11 01:51:47 UTC) #2
frankf
https://codereview.chromium.org/15942016/diff/1/build/android/run_browser_tests.py File build/android/run_browser_tests.py (right): https://codereview.chromium.org/15942016/diff/1/build/android/run_browser_tests.py#newcode13 build/android/run_browser_tests.py:13: args = ["./run_all_tests.py", "--browser"] + sys.argv[1:] Print a warning ...
7 years, 6 months ago (2013-06-11 01:53:21 UTC) #3
frankf
More comments. https://codereview.chromium.org/15942016/diff/1/build/android/pylib/gtest/test_package_apk.py File build/android/pylib/gtest/test_package_apk.py (right): https://codereview.chromium.org/15942016/diff/1/build/android/pylib/gtest/test_package_apk.py#newcode109 build/android/pylib/gtest/test_package_apk.py:109: self._CreateTestRunnerScript('--test_filter=%s %s' % (test_filter, gtest_filter is passed ...
7 years, 6 months ago (2013-06-11 02:50:15 UTC) #4
gkanwar
I uploaded several fixes based on the code review / try server failures (now the ...
7 years, 6 months ago (2013-06-12 01:27:32 UTC) #5
frankf
https://codereview.chromium.org/15942016/diff/27001/build/android/pylib/instrumentation/dispatch.py File build/android/pylib/instrumentation/dispatch.py (right): https://codereview.chromium.org/15942016/diff/27001/build/android/pylib/instrumentation/dispatch.py#newcode19 build/android/pylib/instrumentation/dispatch.py:19: def DispatchCore(options): Just inline this. https://codereview.chromium.org/15942016/diff/27001/build/android/pylib/uiautomator/dispatch.py File build/android/pylib/uiautomator/dispatch.py (right): ...
7 years, 6 months ago (2013-06-12 04:31:45 UTC) #6
craigdh
https://codereview.chromium.org/15942016/diff/27001/build/android/run_all_tests.py File build/android/run_all_tests.py (right): https://codereview.chromium.org/15942016/diff/27001/build/android/run_all_tests.py#newcode7 build/android/run_all_tests.py:7: """Runs all types of tests from one unified interface. ...
7 years, 6 months ago (2013-06-12 18:37:03 UTC) #7
gkanwar
https://codereview.chromium.org/15942016/diff/27001/build/android/pylib/instrumentation/dispatch.py File build/android/pylib/instrumentation/dispatch.py (right): https://codereview.chromium.org/15942016/diff/27001/build/android/pylib/instrumentation/dispatch.py#newcode19 build/android/pylib/instrumentation/dispatch.py:19: def DispatchCore(options): On 2013/06/12 04:31:46, frankf wrote: > Just ...
7 years, 6 months ago (2013-06-13 00:12:34 UTC) #8
frankf
https://codereview.chromium.org/15942016/diff/43001/build/android/pylib/host_driven/run_python_tests.py File build/android/pylib/host_driven/run_python_tests.py (right): https://codereview.chromium.org/15942016/diff/43001/build/android/pylib/host_driven/run_python_tests.py#newcode115 build/android/pylib/host_driven/run_python_tests.py:115: flakiness_server=options.flakiness_dashboard_server) Verify this works https://codereview.chromium.org/15942016/diff/43001/build/android/run_all_tests.py File build/android/run_all_tests.py (right): https://codereview.chromium.org/15942016/diff/43001/build/android/run_all_tests.py#newcode11 ...
7 years, 6 months ago (2013-06-13 23:17:48 UTC) #9
frankf
Also rebase often as there have been multiple patches in this area On 2013/06/13 23:17:48, ...
7 years, 6 months ago (2013-06-13 23:22:18 UTC) #10
gkanwar
https://codereview.chromium.org/15942016/diff/43001/build/android/pylib/host_driven/run_python_tests.py File build/android/pylib/host_driven/run_python_tests.py (right): https://codereview.chromium.org/15942016/diff/43001/build/android/pylib/host_driven/run_python_tests.py#newcode115 build/android/pylib/host_driven/run_python_tests.py:115: flakiness_server=options.flakiness_dashboard_server) On 2013/06/13 23:17:48, frankf wrote: > Verify this ...
7 years, 6 months ago (2013-06-17 21:04:43 UTC) #11
craigdh
https://codereview.chromium.org/15942016/diff/52001/build/android/run_all_tests.py File build/android/run_all_tests.py (right): https://codereview.chromium.org/15942016/diff/52001/build/android/run_all_tests.py#newcode53 build/android/run_all_tests.py:53: errorf('You must specify a test type. Options are: ' ...
7 years, 6 months ago (2013-06-17 22:37:05 UTC) #12
gkanwar
https://codereview.chromium.org/15942016/diff/52001/build/android/run_all_tests.py File build/android/run_all_tests.py (right): https://codereview.chromium.org/15942016/diff/52001/build/android/run_all_tests.py#newcode53 build/android/run_all_tests.py:53: errorf('You must specify a test type. Options are: ' ...
7 years, 6 months ago (2013-06-20 20:48:46 UTC) #13
gkanwar
Uploaded PS7 which converts the options to the command-style format.
7 years, 6 months ago (2013-06-22 00:06:59 UTC) #14
frankf
https://codereview.chromium.org/15942016/diff/57001/build/android/pylib/browsertests/dispatch.py File build/android/pylib/browsertests/dispatch.py (right): https://codereview.chromium.org/15942016/diff/57001/build/android/pylib/browsertests/dispatch.py#newcode5 build/android/pylib/browsertests/dispatch.py:5: """Dispatches Content Browser tests.""" -> content_browsertests, also in other ...
7 years, 5 months ago (2013-06-27 23:13:34 UTC) #15
gkanwar
https://codereview.chromium.org/15942016/diff/57001/build/android/pylib/browsertests/dispatch.py File build/android/pylib/browsertests/dispatch.py (right): https://codereview.chromium.org/15942016/diff/57001/build/android/pylib/browsertests/dispatch.py#newcode5 build/android/pylib/browsertests/dispatch.py:5: """Dispatches Content Browser tests.""" On 2013/06/27 23:13:35, frankf wrote: ...
7 years, 5 months ago (2013-06-28 22:09:45 UTC) #16
frankf
https://codereview.chromium.org/15942016/diff/57001/build/android/pylib/host_driven/run_python_tests.py File build/android/pylib/host_driven/run_python_tests.py (right): https://codereview.chromium.org/15942016/diff/57001/build/android/pylib/host_driven/run_python_tests.py#newcode117 build/android/pylib/host_driven/run_python_tests.py:117: test_type='HostDriven', Yes, this requires server-side changes. Let's not change ...
7 years, 5 months ago (2013-06-28 23:07:10 UTC) #17
craigdh
https://codereview.chromium.org/15942016/diff/76001/build/android/run_all_tests.py File build/android/run_all_tests.py (right): https://codereview.chromium.org/15942016/diff/76001/build/android/run_all_tests.py#newcode119 build/android/run_all_tests.py:119: help=('Address of the server that is hosting the ' ...
7 years, 5 months ago (2013-07-01 18:28:51 UTC) #18
gkanwar
https://codereview.chromium.org/15942016/diff/76001/build/android/run_all_tests.py File build/android/run_all_tests.py (right): https://codereview.chromium.org/15942016/diff/76001/build/android/run_all_tests.py#newcode86 build/android/run_all_tests.py:86: option_parser.add_option('-f', '--test_filter', '--gtest_filter', On 2013/06/28 23:07:10, frankf wrote: > ...
7 years, 5 months ago (2013-07-01 22:12:00 UTC) #19
frankf
Looking good. https://codereview.chromium.org/15942016/diff/76001/build/android/pylib/host_driven/run_python_tests.py File build/android/pylib/host_driven/run_python_tests.py (right): https://codereview.chromium.org/15942016/diff/76001/build/android/pylib/host_driven/run_python_tests.py#newcode122 build/android/pylib/host_driven/run_python_tests.py:122: return len(results.GetNotPass()) We don't want to show ...
7 years, 5 months ago (2013-07-01 22:36:21 UTC) #20
frankf
https://codereview.chromium.org/15942016/diff/76001/build/android/run_instrumentation_tests.py File build/android/run_instrumentation_tests.py (right): https://codereview.chromium.org/15942016/diff/76001/build/android/run_instrumentation_tests.py#newcode22 build/android/run_instrumentation_tests.py:22: logging.warning('The preferred command is: %s', ' '.join(args)) Also, let's ...
7 years, 5 months ago (2013-07-01 22:39:28 UTC) #21
gkanwar
https://codereview.chromium.org/15942016/diff/76001/build/android/pylib/host_driven/run_python_tests.py File build/android/pylib/host_driven/run_python_tests.py (right): https://codereview.chromium.org/15942016/diff/76001/build/android/pylib/host_driven/run_python_tests.py#newcode122 build/android/pylib/host_driven/run_python_tests.py:122: return len(results.GetNotPass()) On 2013/07/01 22:36:21, frankf wrote: > We ...
7 years, 5 months ago (2013-07-01 23:46:37 UTC) #22
frankf
lgtm w/ nit. Please run the downstream host-driven tests before cqing. Also wait for Craig. ...
7 years, 5 months ago (2013-07-02 20:51:10 UTC) #23
craigdh
lgtm w/ nit. https://codereview.chromium.org/15942016/diff/99001/build/android/run_tests.py File build/android/run_tests.py (right): https://codereview.chromium.org/15942016/diff/99001/build/android/run_tests.py#newcode18 build/android/run_tests.py:18: os.path.dirname(__file__) + '/test_runner.py', os.path.join() instead of ...
7 years, 5 months ago (2013-07-02 21:03:28 UTC) #24
gkanwar
https://codereview.chromium.org/15942016/diff/99001/build/android/pylib/utils/report_results.py File build/android/pylib/utils/report_results.py (right): https://codereview.chromium.org/15942016/diff/99001/build/android/pylib/utils/report_results.py#newcode46 build/android/pylib/utils/report_results.py:46: if test_type not in ['Instrumentation', 'HostDriven']: On 2013/07/02 20:51:10, ...
7 years, 5 months ago (2013-07-02 21:16:14 UTC) #25
craigdh
also update the issue title
7 years, 5 months ago (2013-07-02 21:17:34 UTC) #26
gkanwar
On 2013/07/02 21:17:34, craigdh wrote: > also update the issue title Done. Working on running ...
7 years, 5 months ago (2013-07-02 21:19:33 UTC) #27
gkanwar
On 2013/07/02 21:19:33, gkanwar wrote: > On 2013/07/02 21:17:34, craigdh wrote: > > also update ...
7 years, 5 months ago (2013-07-02 22:42:22 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gkanwar@google.com/15942016/109001
7 years, 5 months ago (2013-07-02 22:42:41 UTC) #29
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 5 months ago (2013-07-02 22:49:36 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gkanwar@google.com/15942016/109001
7 years, 5 months ago (2013-07-02 23:08:17 UTC) #31
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-07-03 02:17:15 UTC) #32
gkanwar
On 2013/07/03 02:17:15, I haz the power (commit-bot) wrote: > Sorry for I got bad ...
7 years, 5 months ago (2013-07-03 15:54:58 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gkanwar@google.com/15942016/109001
7 years, 5 months ago (2013-07-03 15:55:23 UTC) #34
commit-bot: I haz the power
Change committed as 210035
7 years, 5 months ago (2013-07-03 20:31:44 UTC) #35
Isaac (away)
Why didn't you update our buildbot code in this CL? You've broken the output of ...
7 years, 5 months ago (2013-07-05 02:26:25 UTC) #36
gkanwar
On 2013/07/05 02:26:25, Isaac wrote: > Why didn't you update our buildbot code in this ...
7 years, 5 months ago (2013-07-08 16:38:15 UTC) #37
gkanwar
On 2013/07/08 16:38:15, gkanwar wrote: > On 2013/07/05 02:26:25, Isaac wrote: > > Why didn't ...
7 years, 5 months ago (2013-07-08 17:15:18 UTC) #38
Isaac (away)
7 years, 5 months ago (2013-07-08 17:46:41 UTC) #39
Message was sent while issue was closed.
Thanks.  In general it is best to make these changes atomically.  And also to
check the logs of the trybots before landing. :-)

Powered by Google App Engine
This is Rietveld 408576698