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

Issue 2998993002: Use timeout to read most recent build from http (Closed)

Created:
3 years, 4 months ago by Johnni Winther
Modified:
3 years, 4 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Fix test #

Total comments: 4

Patch Set 3 : Updated cf. comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -19 lines) Patch
M tools/gardening/bin/current_summary.dart View 1 chunk +0 lines, -2 lines 0 comments Download
M tools/gardening/lib/src/buildbot_loading.dart View 1 chunk +3 lines, -2 lines 0 comments Download
M tools/gardening/lib/src/client.dart View 1 2 1 chunk +31 lines, -7 lines 0 comments Download
M tools/gardening/lib/src/compare_failures_impl.dart View 1 6 chunks +16 lines, -6 lines 0 comments Download
M tools/gardening/lib/src/util.dart View 1 2 1 chunk +7 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Johnni Winther
3 years, 4 months ago (2017-08-15 09:17:03 UTC) #2
floitsch
LGTM. https://codereview.chromium.org/2998993002/diff/20001/tools/gardening/lib/src/util.dart File tools/gardening/lib/src/util.dart (right): https://codereview.chromium.org/2998993002/diff/20001/tools/gardening/lib/src/util.dart#newcode67 tools/gardening/lib/src/util.dart:67: class TimeoutException implements Exception { I would have ...
3 years, 4 months ago (2017-08-15 11:26:35 UTC) #3
Johnni Winther
Committed patchset #3 (id:40001) manually as aa7f14aed3907e251bc90fdabc9fefe0a5a219cd (presubmit successful).
3 years, 4 months ago (2017-08-15 12:36:34 UTC) #5
Johnni Winther
3 years, 4 months ago (2017-08-15 12:51:28 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/2998993002/diff/20001/tools/gardening/lib/src...
File tools/gardening/lib/src/util.dart (right):

https://codereview.chromium.org/2998993002/diff/20001/tools/gardening/lib/src...
tools/gardening/lib/src/util.dart:67: class TimeoutException implements
Exception {
On 2017/08/15 11:26:35, floitsch wrote:
> I would have used the builtin TimeoutException class.
> 
> It doesn't have a uri field, but it doesn't look like that one is used anyway.

Done.

https://codereview.chromium.org/2998993002/diff/20001/tools/gardening/lib/src...
tools/gardening/lib/src/util.dart:87: StreamSubscription subscription =
response.listen((List<int> buffer) {
On 2017/08/15 11:26:35, floitsch wrote:
> You could consider using .timeout from the Stream class.
> 
> return response
>     .timeout(timeout)
>     .toList()
>     .then((chunks) => chunks.expand((x) => x).toList());
> 
> 
> The expand might be too expensive, but then you could just do a small loop in
> the .then (calling `addAll` on a fresh list.

Done.

Powered by Google App Engine
This is Rietveld 408576698