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

Issue 18770008: [Android] Redesigns the sharder to allow replicated vs distributed tests (Closed)

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

Description

[Android] Redesigns the sharder to allow replicated vs distributed tests In addition, cleans up dispatch. BUG=259063, 259128 NOTRY=True Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=212663

Patch Set 1 : Adds tagging of tests (for replication) #

Total comments: 17

Patch Set 2 : Combines ShardAndRunTests and ReplicateAndRunTests #

Total comments: 18

Patch Set 3 : Fixes running multiple gtest suites #

Total comments: 8

Patch Set 4 : Small fixes to formatting #

Total comments: 49

Patch Set 5 : Adds support for cleanup_test_files #

Total comments: 4

Patch Set 6 : Fixes python tests #

Total comments: 6

Patch Set 7 : Rebases, cleans up fallout from rebase #

Total comments: 4

Patch Set 8 : Rebases again #

Total comments: 2

Patch Set 9 : Re-adds -f short form to gtest_filter switch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+694 lines, -1643 lines) Patch
M build/android/pylib/base/base_test_result.py View 1 2 3 3 chunks +21 lines, -5 lines 0 comments Download
D build/android/pylib/base/shard.py View 1 2 3 4 5 6 7 1 chunk +0 lines, -302 lines 0 comments Download
M build/android/pylib/base/shard_unittest.py View 1 chunk +0 lines, -183 lines 0 comments Download
A + build/android/pylib/base/test_dispatcher.py View 1 2 3 4 5 6 7 12 chunks +128 lines, -38 lines 0 comments Download
A + build/android/pylib/base/test_dispatcher_unittest.py View 1 2 3 4 5 6 6 chunks +54 lines, -20 lines 0 comments Download
D build/android/pylib/browsertests/dispatch.py View 1 2 3 4 5 6 1 chunk +0 lines, -96 lines 0 comments Download
A + build/android/pylib/browsertests/setup.py View 1 2 3 4 5 6 7 2 chunks +53 lines, -59 lines 0 comments Download
D build/android/pylib/gtest/dispatch.py View 1 2 3 4 5 6 1 chunk +0 lines, -435 lines 0 comments Download
A + build/android/pylib/gtest/setup.py View 1 2 3 4 5 6 7 11 chunks +65 lines, -156 lines 0 comments Download
M build/android/pylib/gtest/test_package.py View 1 2 3 4 5 6 7 1 chunk +13 lines, -7 lines 0 comments Download
M build/android/pylib/gtest/test_package_apk.py View 1 2 3 4 5 6 7 4 chunks +13 lines, -8 lines 0 comments Download
M build/android/pylib/gtest/test_package_exe.py View 1 2 3 4 5 6 7 6 chunks +15 lines, -14 lines 0 comments Download
M build/android/pylib/gtest/test_runner.py View 1 2 3 4 5 6 7 7 chunks +11 lines, -11 lines 0 comments Download
M build/android/pylib/host_driven/python_test_base.py View 1 2 3 4 5 1 chunk +11 lines, -1 line 0 comments Download
M build/android/pylib/host_driven/python_test_sharder.py View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M build/android/pylib/host_driven/run_python_tests.py View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M build/android/pylib/instrumentation/dispatch.py View 1 chunk +0 lines, -62 lines 0 comments Download
A + build/android/pylib/instrumentation/setup.py View 1 2 3 4 2 chunks +29 lines, -34 lines 0 comments Download
M build/android/pylib/instrumentation/test_runner.py View 1 2 3 4 5 6 7 2 chunks +26 lines, -25 lines 0 comments Download
M build/android/pylib/uiautomator/dispatch.py View 1 chunk +0 lines, -57 lines 0 comments Download
A + build/android/pylib/uiautomator/setup.py View 1 2 3 4 2 chunks +28 lines, -27 lines 0 comments Download
M build/android/pylib/uiautomator/test_runner.py View 1 2 3 4 2 chunks +10 lines, -8 lines 0 comments Download
M build/android/pylib/utils/report_results.py View 1 2 3 4 5 6 7 3 chunks +5 lines, -5 lines 0 comments Download
M build/android/test_runner.py View 1 2 3 4 5 6 7 8 9 chunks +206 lines, -88 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
gkanwar
This issue pulls out the sharding-related code changes from issue 18444004. Some significant changes on ...
7 years, 5 months ago (2013-07-12 23:45:40 UTC) #1
gkanwar
On 2013/07/12 23:45:40, gkanwar wrote: > This issue pulls out the sharding-related code changes from ...
7 years, 5 months ago (2013-07-15 23:27:04 UTC) #2
frankf
https://codereview.chromium.org/18770008/diff/8001/build/android/pylib/base/dispatch.py File build/android/pylib/base/dispatch.py (right): https://codereview.chromium.org/18770008/diff/8001/build/android/pylib/base/dispatch.py#newcode5 build/android/pylib/base/dispatch.py:5: """Implements test sharding logic.""" rename to test_dispatcher.py https://codereview.chromium.org/18770008/diff/8001/build/android/pylib/base/dispatch.py#newcode352 build/android/pylib/base/dispatch.py:352: ...
7 years, 5 months ago (2013-07-16 00:02:18 UTC) #3
gkanwar
https://codereview.chromium.org/18770008/diff/8001/build/android/pylib/base/dispatch.py File build/android/pylib/base/dispatch.py (right): https://codereview.chromium.org/18770008/diff/8001/build/android/pylib/base/dispatch.py#newcode5 build/android/pylib/base/dispatch.py:5: """Implements test sharding logic.""" On 2013/07/16 00:02:18, frankf wrote: ...
7 years, 5 months ago (2013-07-16 00:47:03 UTC) #4
gkanwar
https://codereview.chromium.org/18770008/diff/8001/build/android/pylib/gtest/setup.py File build/android/pylib/gtest/setup.py (right): https://codereview.chromium.org/18770008/diff/8001/build/android/pylib/gtest/setup.py#newcode255 build/android/pylib/gtest/setup.py:255: deps_dir = _GenerateDepsDirUsingIsolate(suite_name, build_type) On 2013/07/16 00:02:18, frankf wrote: ...
7 years, 5 months ago (2013-07-16 17:44:36 UTC) #5
gkanwar
On 2013/07/16 17:44:36, gkanwar wrote: > https://codereview.chromium.org/18770008/diff/8001/build/android/pylib/gtest/setup.py > File build/android/pylib/gtest/setup.py (right): > > https://codereview.chromium.org/18770008/diff/8001/build/android/pylib/gtest/setup.py#newcode255 > ...
7 years, 5 months ago (2013-07-16 17:45:18 UTC) #6
frankf
https://codereview.chromium.org/18770008/diff/12021/build/android/pylib/base/test_dispatcher.py File build/android/pylib/base/test_dispatcher.py (right): https://codereview.chromium.org/18770008/diff/12021/build/android/pylib/base/test_dispatcher.py#newcode5 build/android/pylib/base/test_dispatcher.py:5: """Implements test sharding logic.""" Update https://codereview.chromium.org/18770008/diff/12021/build/android/pylib/base/test_dispatcher.py#newcode145 build/android/pylib/base/test_dispatcher.py:145: '%s_%s' % ...
7 years, 5 months ago (2013-07-16 18:42:32 UTC) #7
frankf
https://codereview.chromium.org/18770008/diff/20001/build/android/pylib/browsertests/setup.py File build/android/pylib/browsertests/setup.py (right): https://codereview.chromium.org/18770008/diff/20001/build/android/pylib/browsertests/setup.py#newcode5 build/android/pylib/browsertests/setup.py:5: """Generate test runner factory and tests for content_browsertests.""" Do ...
7 years, 5 months ago (2013-07-16 18:51:34 UTC) #8
gkanwar
https://codereview.chromium.org/18770008/diff/12021/build/android/pylib/base/test_dispatcher.py File build/android/pylib/base/test_dispatcher.py (right): https://codereview.chromium.org/18770008/diff/12021/build/android/pylib/base/test_dispatcher.py#newcode5 build/android/pylib/base/test_dispatcher.py:5: """Implements test sharding logic.""" On 2013/07/16 18:42:32, frankf wrote: ...
7 years, 5 months ago (2013-07-16 20:27:31 UTC) #9
gkanwar
https://codereview.chromium.org/18770008/diff/20001/build/android/pylib/browsertests/setup.py File build/android/pylib/browsertests/setup.py (right): https://codereview.chromium.org/18770008/diff/20001/build/android/pylib/browsertests/setup.py#newcode5 build/android/pylib/browsertests/setup.py:5: """Generate test runner factory and tests for content_browsertests.""" On ...
7 years, 5 months ago (2013-07-16 20:48:32 UTC) #10
frankf
https://codereview.chromium.org/18770008/diff/28001/build/android/pylib/base/base_test_result.py File build/android/pylib/base/base_test_result.py (right): https://codereview.chromium.org/18770008/diff/28001/build/android/pylib/base/base_test_result.py#newcode25 build/android/pylib/base/base_test_result.py:25: def __init__(self, name, test_type, tag='', log=''): Why all this ...
7 years, 5 months ago (2013-07-17 04:07:20 UTC) #11
frankf
https://codereview.chromium.org/18770008/diff/28001/build/android/pylib/gtest/setup.py File build/android/pylib/gtest/setup.py (left): https://codereview.chromium.org/18770008/diff/28001/build/android/pylib/gtest/setup.py#oldcode266 build/android/pylib/gtest/setup.py:266: if not ports.ResetTestServerPortAllocation(): What happened to the calls to ...
7 years, 5 months ago (2013-07-17 06:02:17 UTC) #12
gkanwar
https://codereview.chromium.org/18770008/diff/28001/build/android/pylib/base/base_test_result.py File build/android/pylib/base/base_test_result.py (right): https://codereview.chromium.org/18770008/diff/28001/build/android/pylib/base/base_test_result.py#newcode25 build/android/pylib/base/base_test_result.py:25: def __init__(self, name, test_type, tag='', log=''): On 2013/07/17 04:07:20, ...
7 years, 5 months ago (2013-07-17 20:31:26 UTC) #13
frankf
https://codereview.chromium.org/18770008/diff/28001/build/android/pylib/base/test_dispatcher.py File build/android/pylib/base/test_dispatcher.py (right): https://codereview.chromium.org/18770008/diff/28001/build/android/pylib/base/test_dispatcher.py#newcode330 build/android/pylib/base/test_dispatcher.py:330: TestRunner object. We diverge from the style guide for ...
7 years, 5 months ago (2013-07-17 21:08:40 UTC) #14
gkanwar
https://codereview.chromium.org/18770008/diff/46001/build/android/pylib/base/test_dispatcher.py File build/android/pylib/base/test_dispatcher.py (right): https://codereview.chromium.org/18770008/diff/46001/build/android/pylib/base/test_dispatcher.py#newcode16 build/android/pylib/base/test_dispatcher.py:16: generated from the test collection factory until there are ...
7 years, 5 months ago (2013-07-17 21:16:50 UTC) #15
gkanwar
On 2013/07/17 21:16:50, gkanwar wrote: > https://codereview.chromium.org/18770008/diff/46001/build/android/pylib/base/test_dispatcher.py > File build/android/pylib/base/test_dispatcher.py (right): > > https://codereview.chromium.org/18770008/diff/46001/build/android/pylib/base/test_dispatcher.py#newcode16 > ...
7 years, 5 months ago (2013-07-17 22:39:06 UTC) #16
gkanwar
On 2013/07/17 22:39:06, gkanwar wrote: > On 2013/07/17 21:16:50, gkanwar wrote: > > > https://codereview.chromium.org/18770008/diff/46001/build/android/pylib/base/test_dispatcher.py ...
7 years, 5 months ago (2013-07-17 22:41:40 UTC) #17
frankf
lgtm Please wait for Craig.
7 years, 5 months ago (2013-07-17 22:52:50 UTC) #18
craigdh
lgtm w/ nits. https://codereview.chromium.org/18770008/diff/67002/build/android/pylib/base/test_dispatcher.py File build/android/pylib/base/test_dispatcher.py (right): https://codereview.chromium.org/18770008/diff/67002/build/android/pylib/base/test_dispatcher.py#newcode350 build/android/pylib/base/test_dispatcher.py:350: shard: True if we should shard, ...
7 years, 5 months ago (2013-07-17 23:10:25 UTC) #19
gkanwar
https://codereview.chromium.org/18770008/diff/67002/build/android/pylib/base/test_dispatcher.py File build/android/pylib/base/test_dispatcher.py (right): https://codereview.chromium.org/18770008/diff/67002/build/android/pylib/base/test_dispatcher.py#newcode350 build/android/pylib/base/test_dispatcher.py:350: shard: True if we should shard, False if we ...
7 years, 5 months ago (2013-07-17 23:24:19 UTC) #20
gkanwar
On 2013/07/17 23:24:19, gkanwar wrote: > https://codereview.chromium.org/18770008/diff/67002/build/android/pylib/base/test_dispatcher.py > File build/android/pylib/base/test_dispatcher.py (right): > > https://codereview.chromium.org/18770008/diff/67002/build/android/pylib/base/test_dispatcher.py#newcode350 > ...
7 years, 5 months ago (2013-07-17 23:25:35 UTC) #21
gkanwar
On 2013/07/17 23:25:35, gkanwar wrote: > On 2013/07/17 23:24:19, gkanwar wrote: > > > https://codereview.chromium.org/18770008/diff/67002/build/android/pylib/base/test_dispatcher.py ...
7 years, 5 months ago (2013-07-17 23:35:48 UTC) #22
gkanwar
On 2013/07/17 23:35:48, gkanwar wrote: > On 2013/07/17 23:25:35, gkanwar wrote: > > On 2013/07/17 ...
7 years, 5 months ago (2013-07-18 17:37:04 UTC) #23
frankf
Some nits. Still lgtm. https://codereview.chromium.org/18770008/diff/98001/build/android/pylib/gtest/setup.py File build/android/pylib/gtest/setup.py (right): https://codereview.chromium.org/18770008/diff/98001/build/android/pylib/gtest/setup.py#newcode150 build/android/pylib/gtest/setup.py:150: """Get a list of absolute ...
7 years, 5 months ago (2013-07-18 18:08:47 UTC) #24
gkanwar
https://codereview.chromium.org/18770008/diff/98001/build/android/pylib/gtest/setup.py File build/android/pylib/gtest/setup.py (right): https://codereview.chromium.org/18770008/diff/98001/build/android/pylib/gtest/setup.py#newcode150 build/android/pylib/gtest/setup.py:150: """Get a list of absolute paths to test suite ...
7 years, 5 months ago (2013-07-18 18:48:10 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gkanwar@google.com/18770008/114001
7 years, 5 months ago (2013-07-18 20:36:31 UTC) #26
gkanwar
On 2013/07/18 20:36:31, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
7 years, 5 months ago (2013-07-19 16:31:30 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gkanwar@google.com/18770008/110002
7 years, 5 months ago (2013-07-19 16:31:51 UTC) #28
commit-bot: I haz the power
Failed to apply patch for build/android/pylib/base/test_dispatcher.py: While running patch -p1 --forward --force --no-backup-if-mismatch; A build/android/pylib/base/test_dispatcher.py ...
7 years, 5 months ago (2013-07-19 16:31:56 UTC) #29
gkanwar
Looks like I have to rebase. Will do when I get into the office.
7 years, 5 months ago (2013-07-19 16:33:39 UTC) #30
gkanwar
On 2013/07/19 16:33:39, gkanwar wrote: > Looks like I have to rebase. Will do when ...
7 years, 5 months ago (2013-07-19 17:08:58 UTC) #31
frankf
Make sure you do git cl try -r <revision> since you're conflicting with LKGR. https://codereview.chromium.org/18770008/diff/148002/build/android/test_runner.py ...
7 years, 5 months ago (2013-07-19 17:32:10 UTC) #32
gkanwar
https://codereview.chromium.org/18770008/diff/148002/build/android/test_runner.py File build/android/test_runner.py (right): https://codereview.chromium.org/18770008/diff/148002/build/android/test_runner.py#newcode110 build/android/test_runner.py:110: option_parser.add_option('--gtest_filter', dest='test_filter', On 2013/07/19 17:32:10, frankf wrote: > -f ...
7 years, 5 months ago (2013-07-19 17:34:36 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/18770008/155003
7 years, 5 months ago (2013-07-19 22:04:55 UTC) #34
commit-bot: I haz the power
7 years, 5 months ago (2013-07-19 22:08:40 UTC) #35
Message was sent while issue was closed.
Change committed as 212663

Powered by Google App Engine
This is Rietveld 408576698