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

Issue 12302016: Refactoring of ProgressIndicator (Closed)

Created:
7 years, 10 months ago by kustermann
Modified:
7 years, 9 months ago
Reviewers:
ricow1, ahe
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Refactoring of ProgressIndicator Currently ProcessQueue creates and depends on exactly ONE ProgressIndicator. This is not optimal for the following reasons: a) The used ProgressIndicator has several responsibilities (printing timing information, setting 'io.exitCode', printing test failures, ...) Splitting these responsibilities into different classes makes the code cleaner and more testable. b) If we make ProcessQueue depended on an abstract EventListener object (or a list of them) and make it send events to those listeners would make it easier to test ProcessQueue itself. Issue: 8095 Committed: https://code.google.com/p/dart/source/detail?r=19867

Patch Set 1 #

Patch Set 2 : Added the ExitCodeSetter EventListener #

Patch Set 3 : Removed obsolete SilentProgressIndicator #

Patch Set 4 : Added the SummaryPrinter EventListener #

Patch Set 5 : Simplified LineProgressIndicator #

Patch Set 6 : Added the TimingPrinter EventListener #

Total comments: 1

Patch Set 7 : Added SkippedCompilationsPrinter and FlakyLogWriter #

Patch Set 8 : Removed no longer used DiffProgressIndicator #

Patch Set 9 : Removed StatusProgressIndicator (since it doesn't do anything) #

Patch Set 10 : Added TestFailurePrinter #

Patch Set 11 : Removed obsolete ColorProgressIndicator and introduced Formatter/ColorFormatter #

Patch Set 12 : Rebased & Added LeftOverTempDirPrinter and StatusFileUpdatePrinter #

Total comments: 9

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+443 lines, -381 lines) Patch
D tests/standalone/io/test_runner_exit_code_test.dart View 1 1 chunk +0 lines, -31 lines 0 comments Download
M tests/standalone/io/test_runner_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tools/test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +31 lines, -2 lines 0 comments Download
M tools/test-runtime.dart View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +31 lines, -2 lines 0 comments Download
M tools/testing/dart/test_progress.dart View 1 2 3 4 5 6 7 8 9 10 11 12 9 chunks +336 lines, -331 lines 0 comments Download
M tools/testing/dart/test_runner.dart View 1 2 3 4 5 6 7 8 9 10 11 11 chunks +43 lines, -13 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
kustermann
Request for initial comments about the approach.
7 years, 10 months ago (2013-02-19 09:54:38 UTC) #1
ahe
I like this approach. https://codereview.chromium.org/12302016/diff/3002/tools/testing/dart/test_progress.dart File tools/testing/dart/test_progress.dart (right): https://codereview.chromium.org/12302016/diff/3002/tools/testing/dart/test_progress.dart#newcode71 tools/testing/dart/test_progress.dart:71: // TODO: We should take ...
7 years, 10 months ago (2013-02-19 11:43:42 UTC) #2
kustermann
Now you could review my CL. I've broken the changes up, so you should use ...
7 years, 10 months ago (2013-02-20 16:54:55 UTC) #3
ricow1
LGTM, very nice https://codereview.chromium.org/12302016/diff/35001/tools/testing/dart/test_progress.dart File tools/testing/dart/test_progress.dart (right): https://codereview.chromium.org/12302016/diff/35001/tools/testing/dart/test_progress.dart#newcode12 tools/testing/dart/test_progress.dart:12: import "test_suite.dart"; Martin: for future reference, ...
7 years, 9 months ago (2013-03-12 10:31:47 UTC) #4
kustermann
https://codereview.chromium.org/12302016/diff/35001/tools/testing/dart/test_progress.dart File tools/testing/dart/test_progress.dart (right): https://codereview.chromium.org/12302016/diff/35001/tools/testing/dart/test_progress.dart#newcode137 tools/testing/dart/test_progress.dart:137: _failingTest = _failingTest || test.lastCommandOutput.unexpectedOutput; On 2013/03/12 10:31:47, ricow1 ...
7 years, 9 months ago (2013-03-12 13:59:16 UTC) #5
kustermann
7 years, 9 months ago (2013-03-12 14:09:14 UTC) #6
Message was sent while issue was closed.
Committed patchset #13 manually as r19867 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698