]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: allow builders to control granularity of test/ directory sharding
authorBrad Fitzpatrick <bradfitz@golang.org>
Sun, 5 May 2019 02:25:42 +0000 (02:25 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 6 May 2019 23:02:29 +0000 (23:02 +0000)
commit6b1ac8290f189709273c9d4b402e14421f21eda0
tree85935de699d0bac04e818f8ba12592011063e460
parented7f323c8f4f6bc61a75146bf34f5b8f73063a17
cmd/dist: allow builders to control granularity of test/ directory sharding

Even with 10 shards on builders, it still takes about ~2.5 minutes per
shard (and getting slower all the time as the test/ directory grows).
I'm currently experimenting with massively sharding out testing on
Cloud Run (each dist test & normal TestFoo func all running in
parallel), and in such a setup, 2.5 minutes is an eternity. I'd like
to increase that dist test's sharding from 10 to more like 1,000.

Updates golang/go#31834

Change-Id: I8b02989727793b5b5b2013d67e1eb01ef4786e28
Reviewed-on: https://go-review.googlesource.com/c/go/+/175297
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/dist/test.go
src/run.bash