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

Issue 23757033: GTTF: Support running browser tests in parallel (Closed)

Created:
7 years, 3 months ago by Paweł Hajdan Jr.
Modified:
7 years, 2 months ago
Reviewers:
jam, sky, loislo
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org
Visibility:
Public.

Description

GTTF: Support running browser tests in parallel This still defaults to serialized execution while I perform more testing. BUG=236893 R=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=224200

Patch Set 1 #

Patch Set 2 : retry #

Patch Set 3 : trybots #

Patch Set 4 : trybot #

Patch Set 5 : trybots #

Patch Set 6 : trybots #

Patch Set 7 : trybots #

Patch Set 8 : upload flakiness #

Patch Set 9 : upload flakiness #

Patch Set 10 : rebase #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+308 lines, -164 lines) Patch
M base/test/parallel_test_launcher.h View 1 2 3 4 5 6 7 8 9 3 chunks +22 lines, -4 lines 0 comments Download
M base/test/parallel_test_launcher.cc View 1 2 3 4 5 6 7 8 9 6 chunks +46 lines, -8 lines 0 comments Download
M base/test/test_launcher.h View 1 2 3 4 5 6 7 8 9 2 chunks +14 lines, -0 lines 0 comments Download
M base/test/test_launcher.cc View 1 2 3 4 5 6 7 8 9 2 chunks +34 lines, -2 lines 0 comments Download
M base/test/unit_test_launcher.cc View 1 2 3 4 5 6 7 8 9 5 chunks +11 lines, -31 lines 0 comments Download
M content/public/test/test_launcher.cc View 1 2 3 4 5 6 7 8 9 8 chunks +181 lines, -119 lines 3 comments Download

Messages

Total messages: 11 (0 generated)
Paweł Hajdan Jr.
7 years, 3 months ago (2013-09-12 00:10:37 UTC) #1
sky
LGTM
7 years, 3 months ago (2013-09-12 16:16:29 UTC) #2
Paweł Hajdan Jr.
Hey Scott, could you take another look? I needed to make some changes, mostly how ...
7 years, 3 months ago (2013-09-12 21:57:16 UTC) #3
sky
LGTM
7 years, 3 months ago (2013-09-12 23:32:56 UTC) #4
Paweł Hajdan Jr.
Committed patchset #10 manually as r224200.
7 years, 3 months ago (2013-09-19 20:56:57 UTC) #5
jam
looks like this broke the property that if Foo.PRE_Bar fails, Foo.Bar is not run. I've ...
7 years, 2 months ago (2013-09-25 20:02:02 UTC) #6
Paweł Hajdan Jr.
On 2013/09/25 20:02:02, jam wrote: > looks like this broke the property that if Foo.PRE_Bar ...
7 years, 2 months ago (2013-09-25 20:39:41 UTC) #7
jam
On 2013/09/25 20:39:41, Paweł Hajdan Jr. wrote: > On 2013/09/25 20:02:02, jam wrote: > > ...
7 years, 2 months ago (2013-09-25 20:55:28 UTC) #8
loislo
https://codereview.chromium.org/23757033/diff/37001/content/public/test/test_launcher.cc File content/public/test/test_launcher.cc (right): https://codereview.chromium.org/23757033/diff/37001/content/public/test/test_launcher.cc#newcode194 content/public/test/test_launcher.cc:194: if (std::string(kPreTestPrefix) + a.test_name == b.test_name) This comparer doesn't ...
7 years, 2 months ago (2013-09-26 05:47:33 UTC) #9
jam
https://codereview.chromium.org/23757033/diff/37001/content/public/test/test_launcher.cc File content/public/test/test_launcher.cc (right): https://codereview.chromium.org/23757033/diff/37001/content/public/test/test_launcher.cc#newcode194 content/public/test/test_launcher.cc:194: if (std::string(kPreTestPrefix) + a.test_name == b.test_name) On 2013/09/26 05:47:33, ...
7 years, 2 months ago (2013-09-26 21:36:03 UTC) #10
Paweł Hajdan Jr.
7 years, 2 months ago (2013-09-26 23:32:27 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/23757033/diff/37001/content/public/test/test_...
File content/public/test/test_launcher.cc (right):

https://codereview.chromium.org/23757033/diff/37001/content/public/test/test_...
content/public/test/test_launcher.cc:194: if (std::string(kPreTestPrefix) +
a.test_name == b.test_name)
On 2013/09/26 21:36:03, jam wrote:
> On 2013/09/26 05:47:33, loislo wrote:
> > This comparer doesn't work properly. It doesn't Transitive.
> > 
> > for the pair PRE_Indexed and Indexed it returns false. It is ok.
> > for the pair PRE_PRE_Indexed and PRE_Indexed it returns false. It is ok.
> > but for the pair PRE_PRE_Indexed and Indexed it returns true. It is wrong.
> > 
> > A < B and B < C but A > C
> > 
> > As a result sort produces wrong sequence of the tests.
> 
> Pawel: ping
> can this cause PRE tests to run in the wrong order?

Given this comparator is not StrictWeakOrdering, all kinds of undefined behavior
can happen, including crashing the binary. This is a good catch, and only proves
comparators are hard.

Fix is up at https://codereview.chromium.org/24892002/ . Please review.

Powered by Google App Engine
This is Rietveld 408576698