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

Issue 2743873003: [Android] Add support for external sharding to the test runner. (Closed)

Created:
3 years, 9 months ago by jbudorick
Modified:
3 years, 9 months ago
CC:
agrieve+watch_chromium.org, chromium-reviews, jbudorick+watch_chromium.org, mikecase+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Add support for external sharding to the test runner. This adds support for sharding via GTEST_SHARD_INDEX and GTEST_TOTAL_SHARDS (along with their equivalent --test-launcher-* command-line options), matching the behavior of //base/test/launcher for both gtests and instrumentation tests. BUG=692200 Review-Url: https://codereview.chromium.org/2743873003 Cr-Commit-Position: refs/heads/master@{#457001} Committed: https://chromium.googlesource.com/chromium/src/+/84188b5c73a3bd70944aac7028dbdd449e9e5b73

Patch Set 1 #

Total comments: 1

Patch Set 2 : fix instrumentation tests #

Total comments: 9

Patch Set 3 : bpastene comments #

Patch Set 4 : Remove chromium.linux shards and add chromium.swarm shards #

Total comments: 2

Patch Set 5 : move shards into swarming spec #

Patch Set 6 : borked rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -22 lines) Patch
M build/android/pylib/gtest/gtest_test_instance.py View 3 chunks +13 lines, -3 lines 0 comments Download
M build/android/pylib/instrumentation/instrumentation_test_instance.py View 1 5 3 chunks +11 lines, -0 lines 0 comments Download
M build/android/pylib/local/device/local_device_gtest_run.py View 2 chunks +6 lines, -2 lines 0 comments Download
M build/android/pylib/local/device/local_device_instrumentation_test_run.py View 1 chunk +5 lines, -1 line 0 comments Download
M build/android/pylib/local/device/local_device_test_run.py View 1 2 4 chunks +22 lines, -4 lines 0 comments Download
M build/android/test_runner.py View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M testing/buildbot/chromium.swarm.json View 1 2 3 4 12 chunks +24 lines, -12 lines 0 comments Download

Messages

Total messages: 29 (15 generated)
jbudorick
https://codereview.chromium.org/2743873003/diff/1/testing/buildbot/chromium.linux.json File testing/buildbot/chromium.linux.json (right): https://codereview.chromium.org/2743873003/diff/1/testing/buildbot/chromium.linux.json#newcode279 testing/buildbot/chromium.linux.json:279: "shards": 2 This is for demonstration purposes only.
3 years, 9 months ago (2017-03-11 01:06:37 UTC) #6
mikecase (-- gone --)
https://codereview.chromium.org/2743873003/diff/20001/build/android/pylib/local/device/local_device_test_run.py File build/android/pylib/local/device/local_device_test_run.py (right): https://codereview.chromium.org/2743873003/diff/20001/build/android/pylib/local/device/local_device_test_run.py#newcode183 build/android/pylib/local/device/local_device_test_run.py:183: if hash(self._GetUniqueTestName(t)) % total_shards == shard_index] I was curious ...
3 years, 9 months ago (2017-03-13 18:44:50 UTC) #8
jbudorick
https://codereview.chromium.org/2743873003/diff/20001/build/android/pylib/local/device/local_device_test_run.py File build/android/pylib/local/device/local_device_test_run.py (right): https://codereview.chromium.org/2743873003/diff/20001/build/android/pylib/local/device/local_device_test_run.py#newcode183 build/android/pylib/local/device/local_device_test_run.py:183: if hash(self._GetUniqueTestName(t)) % total_shards == shard_index] On 2017/03/13 18:44:50, ...
3 years, 9 months ago (2017-03-13 19:02:20 UTC) #9
bpastene
https://codereview.chromium.org/2743873003/diff/20001/build/android/pylib/local/device/local_device_test_run.py File build/android/pylib/local/device/local_device_test_run.py (right): https://codereview.chromium.org/2743873003/diff/20001/build/android/pylib/local/device/local_device_test_run.py#newcode180 build/android/pylib/local/device/local_device_test_run.py:180: def _ApplyExternalSharding(self, tests, shard_index, total_shards): It might be helpful ...
3 years, 9 months ago (2017-03-14 01:03:47 UTC) #10
jbudorick
https://codereview.chromium.org/2743873003/diff/20001/build/android/pylib/local/device/local_device_test_run.py File build/android/pylib/local/device/local_device_test_run.py (right): https://codereview.chromium.org/2743873003/diff/20001/build/android/pylib/local/device/local_device_test_run.py#newcode180 build/android/pylib/local/device/local_device_test_run.py:180: def _ApplyExternalSharding(self, tests, shard_index, total_shards): On 2017/03/14 01:03:46, bpastene ...
3 years, 9 months ago (2017-03-14 15:36:01 UTC) #11
bpastene
lgtm
3 years, 9 months ago (2017-03-14 17:36:26 UTC) #12
jbudorick
ptal at shards
3 years, 9 months ago (2017-03-14 20:54:12 UTC) #13
bpastene
lgtm + comment https://codereview.chromium.org/2743873003/diff/60001/testing/buildbot/chromium.swarm.json File testing/buildbot/chromium.swarm.json (right): https://codereview.chromium.org/2743873003/diff/60001/testing/buildbot/chromium.swarm.json#newcode9 testing/buildbot/chromium.swarm.json:9: "shards": 7, I'm pretty sure "shards" ...
3 years, 9 months ago (2017-03-14 21:02:13 UTC) #14
jbudorick
+dpranke for //testing/buildbot stamp https://codereview.chromium.org/2743873003/diff/60001/testing/buildbot/chromium.swarm.json File testing/buildbot/chromium.swarm.json (right): https://codereview.chromium.org/2743873003/diff/60001/testing/buildbot/chromium.swarm.json#newcode9 testing/buildbot/chromium.swarm.json:9: "shards": 7, On 2017/03/14 21:02:13, ...
3 years, 9 months ago (2017-03-14 22:15:16 UTC) #16
Dirk Pranke
lgtm
3 years, 9 months ago (2017-03-14 23:48:08 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2743873003/80001
3 years, 9 months ago (2017-03-14 23:52:43 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/136845)
3 years, 9 months ago (2017-03-15 00:54:58 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2743873003/70008
3 years, 9 months ago (2017-03-15 04:30:41 UTC) #26
commit-bot: I haz the power
3 years, 9 months ago (2017-03-15 05:30:26 UTC) #29
Message was sent while issue was closed.
Committed patchset #6 (id:70008) as
https://chromium.googlesource.com/chromium/src/+/84188b5c73a3bd70944aac7028db...

Powered by Google App Engine
This is Rietveld 408576698