Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(136)

Issue 5071044: code review 5071044: testing: Add support for running tests in parallel (t.P... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 6 months ago by tebeka
Modified:
13 years, 3 months ago
Reviewers:
CC:
golang-dev, bradfitz, dvyukov, rog, r, r2, borman
Visibility:
Public.

Description

testing: Add support for running tests in parallel (t.Parallel API). See discussion at https://groups.google.com/d/topic/golang-dev/RAKiqi44GEU/discussion

Patch Set 1 #

Patch Set 2 : diff -r b80728111ff9 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r b80728111ff9 https://go.googlecode.com/hg/ #

Total comments: 5

Patch Set 4 : diff -r 86d557761c45 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 5 : diff -r 722a1d98acc0 https://go.googlecode.com/hg/ #

Total comments: 7

Patch Set 6 : diff -r 8cbe5194c6e9 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 8cbe5194c6e9 https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r 8cbe5194c6e9 https://go.googlecode.com/hg/ #

Total comments: 10

Patch Set 9 : diff -r 8cbe5194c6e9 https://go.googlecode.com/hg/ #

Patch Set 10 : diff -r 8cbe5194c6e9 https://go.googlecode.com/hg/ #

Total comments: 16

Patch Set 11 : diff -r f400d3afc555 https://go.googlecode.com/hg/ #

Total comments: 12

Patch Set 12 : diff -r f400d3afc555 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 13 : diff -r 5dc686c3dda8 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 14 : diff -r 3c7f031ee62b https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -35 lines) Patch
M src/cmd/gotest/flag.go View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M src/pkg/testing/testing.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +71 lines, -35 lines 0 comments Download

Messages

Total messages: 47
tebeka
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 6 months ago (2011-09-19 22:51:51 UTC) #1
bradfitz
http://codereview.appspot.com/5071044/diff/4001/src/pkg/testing/testing.go File src/pkg/testing/testing.go (right): http://codereview.appspot.com/5071044/diff/4001/src/pkg/testing/testing.go#newcode151 src/pkg/testing/testing.go:151: // Signal that this test can be run in ...
13 years, 6 months ago (2011-09-19 22:56:43 UTC) #2
dvyukov
http://codereview.appspot.com/5071044/diff/4001/src/pkg/testing/testing.go File src/pkg/testing/testing.go (right): http://codereview.appspot.com/5071044/diff/4001/src/pkg/testing/testing.go#newcode155 src/pkg/testing/testing.go:155: t.ch = t.pch So parallel tests run in parallel ...
13 years, 6 months ago (2011-09-19 23:57:30 UTC) #3
tebeka
http://codereview.appspot.com/5071044/diff/4001/src/pkg/testing/testing.go File src/pkg/testing/testing.go (right): http://codereview.appspot.com/5071044/diff/4001/src/pkg/testing/testing.go#newcode151 src/pkg/testing/testing.go:151: // Signal that this test can be run in ...
13 years, 6 months ago (2011-09-20 17:26:44 UTC) #4
tebeka
Hello golang-dev@googlegroups.com, bradfitz@golang.org, dvyukov@google.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 6 months ago (2011-09-20 17:27:53 UTC) #5
tebeka
Any comments?
13 years, 5 months ago (2011-09-20 23:18:46 UTC) #6
dvyukov
LGTM
13 years, 5 months ago (2011-09-21 00:15:19 UTC) #7
rog
i wonder whether it's right that all the parallel tests should run at once. it ...
13 years, 5 months ago (2011-09-21 08:22:45 UTC) #8
rog
http://codereview.appspot.com/5071044/diff/12001/src/pkg/testing/testing.go File src/pkg/testing/testing.go (right): http://codereview.appspot.com/5071044/diff/12001/src/pkg/testing/testing.go#newcode243 src/pkg/testing/testing.go:243: t := &T{ch: make(chan *T), pch: pch, name: testName, ...
13 years, 5 months ago (2011-09-21 08:35:38 UTC) #9
tebeka
On 2011/09/21 08:22:45, rog wrote: > i wonder whether it's right that all the parallel ...
13 years, 5 months ago (2011-09-21 19:08:35 UTC) #10
tebeka
On 2011/09/21 08:35:38, rog wrote: > http://codereview.appspot.com/5071044/diff/12001/src/pkg/testing/testing.go#newcode243 > src/pkg/testing/testing.go:243: t := &T{ch: make(chan *T), pch: ...
13 years, 5 months ago (2011-09-21 19:10:36 UTC) #11
rog
On 21 September 2011 20:10, <miki.tebeka@gmail.com> wrote: > On 2011/09/21 08:35:38, rog wrote: > > ...
13 years, 5 months ago (2011-09-21 19:25:31 UTC) #12
tebeka
Hello golang-dev@googlegroups.com, bradfitz@golang.org, dvyukov@google.com, rogpeppe@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 5 months ago (2011-09-21 19:54:48 UTC) #13
rog
i've tried to be a bit more explicit about what i mean here. http://codereview.appspot.com/5071044/diff/6002/src/pkg/testing/testing.go File ...
13 years, 5 months ago (2011-09-21 20:22:53 UTC) #14
tebeka
Hello golang-dev@googlegroups.com, bradfitz@golang.org, dvyukov@google.com, rogpeppe@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 5 months ago (2011-09-22 01:53:10 UTC) #15
tebeka
Please ignore this patch, sorry
13 years, 5 months ago (2011-09-22 01:57:16 UTC) #16
tebeka
Hello golang-dev@googlegroups.com, bradfitz@golang.org, dvyukov@google.com, rogpeppe@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 5 months ago (2011-09-22 02:09:15 UTC) #17
rog
http://codereview.appspot.com/5071044/diff/23001/src/pkg/testing/testing.go File src/pkg/testing/testing.go (right): http://codereview.appspot.com/5071044/diff/23001/src/pkg/testing/testing.go#newcode212 src/pkg/testing/testing.go:212: }() i don't think there's any need for this. ...
13 years, 5 months ago (2011-09-22 08:13:20 UTC) #18
tebeka
http://codereview.appspot.com/5071044/diff/23001/src/pkg/testing/testing.go File src/pkg/testing/testing.go (right): http://codereview.appspot.com/5071044/diff/23001/src/pkg/testing/testing.go#newcode212 src/pkg/testing/testing.go:212: }() On 2011/09/22 08:13:20, rog wrote: > i don't ...
13 years, 5 months ago (2011-09-22 20:30:35 UTC) #19
tebeka
Hello golang-dev@googlegroups.com, bradfitz@golang.org, dvyukov@google.com, rogpeppe@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 5 months ago (2011-09-22 20:31:08 UTC) #20
tebeka
Any more comments? I'd really like to get this into a coming release.
13 years, 5 months ago (2011-09-27 15:19:23 UTC) #21
rog
LGTM On 27 September 2011 16:19, Miki Tebeka <miki.tebeka@gmail.com> wrote: > Any more comments? I'd ...
13 years, 5 months ago (2011-09-27 15:56:55 UTC) #22
r
This needs a rethink. http://codereview.appspot.com/5071044/diff/26003/src/pkg/testing/testing.go File src/pkg/testing/testing.go (right): http://codereview.appspot.com/5071044/diff/26003/src/pkg/testing/testing.go#newcode95 src/pkg/testing/testing.go:95: errors string s/errors/error/ add // ...
13 years, 5 months ago (2011-09-28 15:45:01 UTC) #23
rog
http://codereview.appspot.com/5071044/diff/26003/src/pkg/testing/testing.go File src/pkg/testing/testing.go (right): http://codereview.appspot.com/5071044/diff/26003/src/pkg/testing/testing.go#newcode238 src/pkg/testing/testing.go:238: close(startParallel) // Release parallel tests On 2011/09/28 15:45:01, r ...
13 years, 5 months ago (2011-09-28 16:59:40 UTC) #24
dvyukov
> that said, this is not acceptable. if i have 1000 parallel tests, it will ...
13 years, 5 months ago (2011-09-28 17:40:08 UTC) #25
r2
On Sep 28, 2011, at 10:40 AM, dvyukov@google.com wrote: >> that said, this is not ...
13 years, 5 months ago (2011-09-28 17:42:53 UTC) #26
dvyukov
On Wed, Sep 28, 2011 at 9:42 PM, Rob 'Commander' Pike <r@google.com> wrote: > > ...
13 years, 5 months ago (2011-09-28 18:07:36 UTC) #27
borman
I tend to agree with Dmitry. Given the foundations of Go, I think the arguments ...
13 years, 5 months ago (2011-09-28 18:59:24 UTC) #28
tebeka
> > that said, this is not acceptable. if i have 1000 parallel tests, it ...
13 years, 5 months ago (2011-09-29 17:03:15 UTC) #29
tebeka
Is there a way to move this forward?
13 years, 5 months ago (2011-09-30 22:06:09 UTC) #30
r2
On Sep 30, 2011, at 3:06 PM, Miki Tebeka wrote: > Is there a way ...
13 years, 5 months ago (2011-09-30 23:39:52 UTC) #31
tebeka
Hello golang-dev@googlegroups.com, bradfitz@golang.org, dvyukov@google.com, rogpeppe@gmail.com, r@golang.org, r@google.com, borman@google.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 5 months ago (2011-10-04 00:18:45 UTC) #32
tebeka
http://codereview.appspot.com/5071044/diff/26003/src/pkg/testing/testing.go File src/pkg/testing/testing.go (right): http://codereview.appspot.com/5071044/diff/26003/src/pkg/testing/testing.go#newcode95 src/pkg/testing/testing.go:95: errors string On 2011/09/28 15:45:01, r wrote: > s/errors/error/ ...
13 years, 5 months ago (2011-10-04 00:19:09 UTC) #33
r
http://codereview.appspot.com/5071044/diff/35001/src/pkg/testing/testing.go File src/pkg/testing/testing.go (right): http://codereview.appspot.com/5071044/diff/35001/src/pkg/testing/testing.go#newcode97 src/pkg/testing/testing.go:97: errors string // Accumlation of messages from Log calls. ...
13 years, 5 months ago (2011-10-04 02:42:56 UTC) #34
tebeka
http://codereview.appspot.com/5071044/diff/35001/src/pkg/testing/testing.go File src/pkg/testing/testing.go (right): http://codereview.appspot.com/5071044/diff/35001/src/pkg/testing/testing.go#newcode97 src/pkg/testing/testing.go:97: errors string // Accumlation of messages from Log calls. ...
13 years, 5 months ago (2011-10-04 03:51:19 UTC) #35
tebeka
Hello golang-dev@googlegroups.com, bradfitz@golang.org, dvyukov@google.com, rogpeppe@gmail.com, r@golang.org, r@google.com, borman@google.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 5 months ago (2011-10-04 03:51:37 UTC) #36
r
http://codereview.appspot.com/5071044/diff/40001/src/pkg/testing/testing.go File src/pkg/testing/testing.go (right): http://codereview.appspot.com/5071044/diff/40001/src/pkg/testing/testing.go#newcode253 src/pkg/testing/testing.go:253: finished++ i missed the continue. still, it's the same ...
13 years, 5 months ago (2011-10-04 03:53:03 UTC) #37
rog
http://codereview.appspot.com/5071044/diff/40001/src/pkg/testing/testing.go File src/pkg/testing/testing.go (right): http://codereview.appspot.com/5071044/diff/40001/src/pkg/testing/testing.go#newcode253 src/pkg/testing/testing.go:253: finished++ On 2011/10/04 03:53:04, r wrote: > i missed ...
13 years, 5 months ago (2011-10-04 07:47:01 UTC) #38
r2
the problem with that renaming is it decouples from the function call, Parallel(). plus i ...
13 years, 5 months ago (2011-10-04 14:19:39 UTC) #39
tebeka
Hello golang-dev@googlegroups.com, bradfitz@golang.org, dvyukov@google.com, rogpeppe@gmail.com, r@golang.org, r@google.com, borman@google.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 5 months ago (2011-10-06 02:04:21 UTC) #40
tebeka
13 years, 5 months ago (2011-10-06 02:04:30 UTC) #41
r
Now we're down to one keystroke :) Also please fill in the CLA as described ...
13 years, 5 months ago (2011-10-06 03:33:31 UTC) #42
tebeka
Hello golang-dev@googlegroups.com, bradfitz@golang.org, dvyukov@google.com, rogpeppe@gmail.com, r@golang.org, r@google.com, borman@google.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 5 months ago (2011-10-06 16:49:08 UTC) #43
tebeka
http://codereview.appspot.com/5071044/diff/43001/src/pkg/testing/testing.go File src/pkg/testing/testing.go (right): http://codereview.appspot.com/5071044/diff/43001/src/pkg/testing/testing.go#newcode244 src/pkg/testing/testing.go:244: numParallel -- On 2011/10/06 03:33:31, r wrote: > did ...
13 years, 5 months ago (2011-10-06 16:49:11 UTC) #44
tebeka
> Now we're down to one keystroke :) Finally, this has been a humbling experience. ...
13 years, 5 months ago (2011-10-06 16:52:44 UTC) #45
r
*** Submitted as http://code.google.com/p/go/source/detail?r=9ef736cf7b93 *** testing: Add support for running tests in parallel (t.Parallel API). ...
13 years, 5 months ago (2011-10-06 16:58:41 UTC) #46
tebeka
13 years, 3 months ago (2011-12-15 18:35:08 UTC) #47
*** Abandoned ***
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b