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

Issue 9834070: Shard tests run by test.dart, so they can be distributed to multiple machines. (Closed)

Created:
8 years, 9 months ago by Bill Hesse
Modified:
8 years, 9 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Shard tests run by test.dart, so they can be distributed to multiple machines. This adds the --shards and --shard option. Shards is the number of shards, and shard is the 1-based index of this shard. BUG= TEST=tools/test.py --shards=3 --shard=1 Committed: https://code.google.com/p/dart/source/detail?r=5960

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address comments. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -2 lines) Patch
M tools/testing/dart/test_options.dart View 1 3 chunks +21 lines, -1 line 1 comment Download
M tools/testing/dart/test_suite.dart View 1 3 chunks +38 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Bill Hesse
https://chromiumcodereview.appspot.com/9834070/diff/1/tools/testing/dart/test_options.dart File tools/testing/dart/test_options.dart (right): https://chromiumcodereview.appspot.com/9834070/diff/1/tools/testing/dart/test_options.dart#newcode154 tools/testing/dart/test_options.dart:154: new Platform().numberOfProcessors(), Fix this stray indentation. https://chromiumcodereview.appspot.com/9834070/diff/1/tools/testing/dart/test_suite.dart File tools/testing/dart/test_suite.dart ...
8 years, 9 months ago (2012-03-23 22:33:56 UTC) #1
Mads Ager (google)
LGTM with a couple of comments and the indentation issues you have pointed out. https://chromiumcodereview.appspot.com/9834070/diff/1/tools/testing/dart/test_options.dart ...
8 years, 9 months ago (2012-03-23 23:38:20 UTC) #2
kasperl
I suggested using a single '--shard 3:5' option to Bill -- rather than having a ...
8 years, 9 months ago (2012-03-24 15:22:53 UTC) #3
Bill Hesse
8 years, 9 months ago (2012-03-28 22:46:19 UTC) #4
https://chromiumcodereview.appspot.com/9834070/diff/1/tools/testing/dart/test...
File tools/testing/dart/test_suite.dart (right):

https://chromiumcodereview.appspot.com/9834070/diff/1/tools/testing/dart/test...
tools/testing/dart/test_suite.dart:249: if (configuration['shards'] > 1) {
On 2012/03/23 23:38:20, Mads Ager wrote:
> You should add a comment about how this works for sharding. No tests are
> actually enqueued and when all tests have been listed the doDone function is
> called because there are no tests enqueued to run. At that point, all tests
are
> know and we compute the shard and enqueue the tests for this shard. 

Done.

https://chromiumcodereview.appspot.com/9834070/diff/1/tools/testing/dart/test...
tools/testing/dart/test_suite.dart:887: * and if there are n shards and we are
shard number i, only the tests at indices equal to
On 2012/03/23 22:33:56, Bill Hesse wrote:
> Fix long lines in this function.

Done.

https://chromiumcodereview.appspot.com/9834070/diff/1/tools/testing/dart/test...
tools/testing/dart/test_suite.dart:896: cachedTests = cachedTests.filter((t) =>
++current % n == i - 1);
On 2012/03/23 23:38:20, Mads Ager wrote:
> I would add some parenthesis here to help the reader.

Done.

https://chromiumcodereview.appspot.com/9834070/diff/7001/tools/testing/dart/t...
File tools/testing/dart/test_options.dart (right):

https://chromiumcodereview.appspot.com/9834070/diff/7001/tools/testing/dart/t...
tools/testing/dart/test_options.dart:168: new _TestOptionSpecification(
Since nobody replied to Kasper's suggestion of --shard 4:6, I didn't change the
options.

Powered by Google App Engine
This is Rietveld 408576698