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

Issue 1859523002: Start browsers sequentially in testing scripts, as needed. (Closed)

Created:
4 years, 8 months ago by Bill Hesse
Modified:
4 years, 8 months ago
Reviewers:
ahe
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Start browsers sequentially in testing scripts, as needed. BUG=https://github.com/dart-lang/sdk/issues/26060 R=ahe@google.com Committed: https://github.com/dart-lang/sdk/commit/7407ecded4c5ad884a3708d6a0e31b05155e0f83

Patch Set 1 #

Patch Set 2 : Fix problems #

Total comments: 26

Patch Set 3 : Address comments, rename things #

Patch Set 4 : Refactor per discussions #

Patch Set 5 : Remove "requestBrowser" call from removeBrowser. #

Total comments: 24

Patch Set 6 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -203 lines) Patch
M tools/testing/dart/browser_controller.dart View 1 2 3 4 5 18 chunks +156 lines, -191 lines 0 comments Download
M tools/testing/dart/test_runner.dart View 1 2 3 4 5 1 chunk +5 lines, -12 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Bill Hesse
4 years, 8 months ago (2016-04-05 12:29:36 UTC) #2
ahe
https://codereview.chromium.org/1859523002/diff/20001/tools/testing/dart/browser_controller.dart File tools/testing/dart/browser_controller.dart (right): https://codereview.chromium.org/1859523002/diff/20001/tools/testing/dart/browser_controller.dart#newcode856 tools/testing/dart/browser_controller.dart:856: // If the test has been empty within this ...
4 years, 8 months ago (2016-04-05 13:19:42 UTC) #3
Bill Hesse
https://codereview.chromium.org/1859523002/diff/20001/tools/testing/dart/browser_controller.dart File tools/testing/dart/browser_controller.dart (right): https://codereview.chromium.org/1859523002/diff/20001/tools/testing/dart/browser_controller.dart#newcode856 tools/testing/dart/browser_controller.dart:856: // If the test has been empty within this ...
4 years, 8 months ago (2016-04-05 14:51:22 UTC) #4
ahe
lgtm I feel like there's a lot of opportunity to iterate on the design here, ...
4 years, 8 months ago (2016-04-05 16:14:08 UTC) #5
Bill Hesse
Committed patchset #6 (id:100001) manually as 7407ecded4c5ad884a3708d6a0e31b05155e0f83 (presubmit successful).
4 years, 8 months ago (2016-04-06 09:34:59 UTC) #7
Bill Hesse
4 years, 8 months ago (2016-04-07 15:24:11 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/1859523002/diff/80001/tools/testing/dart/brow...
File tools/testing/dart/browser_controller.dart (right):

https://codereview.chromium.org/1859523002/diff/80001/tools/testing/dart/brow...
tools/testing/dart/browser_controller.dart:847: * The interface is rather
simple. After starting, the runner tests
On 2016/04/05 16:14:08, ahe wrote:
> Remove "The interface is rather simple."

Done.

Added info about starting browsers and starting test server.

https://codereview.chromium.org/1859523002/diff/80001/tools/testing/dart/brow...
tools/testing/dart/browser_controller.dart:860: BrowserTestingServer
testingServer;
On 2016/04/05 16:14:07, ahe wrote:
> What is a testingServer?

Added to class documentation.

https://codereview.chromium.org/1859523002/diff/80001/tools/testing/dart/brow...
tools/testing/dart/browser_controller.dart:872: bool testServerStarted = false;
On 2016/04/05 16:14:08, ahe wrote:
> What is a testServer? Is it the same as a testingServer?

Changed to testingServerStarted.

https://codereview.chromium.org/1859523002/diff/80001/tools/testing/dart/brow...
tools/testing/dart/browser_controller.dart:894: // no other browser instance
currently starting up.
On 2016/04/05 16:14:08, ahe wrote:
> Let's say that the queue hasn't been empty recently, but you recently started
a
> browser. Should that also delay starting a new browser?

No, except that a new browser shouldn't start until the previously started one
requests a test (and gets it, so the queue is more likely to be empty if there
are now enough browsers).

https://codereview.chromium.org/1859523002/diff/80001/tools/testing/dart/brow...
tools/testing/dart/browser_controller.dart:921: * overwritten with handlers for
this specific configuration, in that case.
On 2016/04/05 16:14:07, ahe wrote:
> This comment is confusing and not balanced (missing close parenthesis).

Rewritten

https://codereview.chromium.org/1859523002/diff/80001/tools/testing/dart/brow...
tools/testing/dart/browser_controller.dart:929: if (browserName == 'ff')
browserName = 'firefox';
On 2016/04/05 16:14:07, ahe wrote:
> This looks like a hack.

It is. I recall that there was a failure if we normalized the name at the
beginning of the program, in test_options, which is why this is local.

https://codereview.chromium.org/1859523002/diff/80001/tools/testing/dart/brow...
tools/testing/dart/browser_controller.dart:942: ..nextTestCallBack =
getNextTest;
On 2016/04/05 16:14:07, ahe wrote:
> Indent all .. lines by four.

Done.  Will be reformatted by the follow-up autoformatting CL.

https://codereview.chromium.org/1859523002/diff/80001/tools/testing/dart/brow...
tools/testing/dart/browser_controller.dart:971: final url =
testingServer.getDriverUrl(id);
On 2016/04/05 16:14:08, ahe wrote:
> Is this a String or a Uri? Add type to make it clear?

Done.

https://codereview.chromium.org/1859523002/diff/80001/tools/testing/dart/brow...
tools/testing/dart/browser_controller.dart:1176: /// This creates a timer that
is active while a test is running on a browser.
On 2016/04/05 16:14:07, ahe wrote:
> Remove "this" which is implied.

Done.

https://codereview.chromium.org/1859523002/diff/80001/tools/testing/dart/brow...
tools/testing/dart/browser_controller.dart:1182: /// This creates a timer that
is active while no test is running on the
On 2016/04/05 16:14:08, ahe wrote:
> Ditto.

Done.

https://codereview.chromium.org/1859523002/diff/80001/tools/testing/dart/brow...
tools/testing/dart/browser_controller.dart:1207: void queueTest(BrowserTest
test) {
On 2016/04/05 16:14:08, ahe wrote:
> enqueueTest?

Done.

Powered by Google App Engine
This is Rietveld 408576698