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

Issue 12879015: Provisionally stop working around issues 9252 and 9253. (Closed)

Created:
7 years, 9 months ago by nweiz
Modified:
7 years, 9 months ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Provisionally stop working around issues 9252 and 9253. We're removing these workarounds in the hopes that the pub tests won't resume flaking. If they do, this CL should be rolled back. Committed: https://code.google.com/p/dart/source/detail?r=20286

Patch Set 1 #

Total comments: 8

Patch Set 2 : Code review changes. #

Patch Set 3 : Code review changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -160 lines) Patch
M pkg/http/test/utils.dart View 1 chunk +0 lines, -35 lines 0 comments Download
M pkg/scheduled_test/test/descriptor_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/scheduled_test/test/scheduled_process_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/scheduled_test/test/utils.dart View 1 chunk +0 lines, -34 lines 0 comments Download
M utils/pub/entrypoint.dart View 3 chunks +15 lines, -14 lines 0 comments Download
M utils/pub/hosted_source.dart View 1 chunk +3 lines, -2 lines 0 comments Download
M utils/pub/io.dart View 1 3 chunks +22 lines, -66 lines 0 comments Download
M utils/pub/source.dart View 1 chunk +2 lines, -1 line 0 comments Download
utils/pub/system_cache.dart View 1 1 chunk +4 lines, -6 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
nweiz
7 years, 9 months ago (2013-03-20 01:24:22 UTC) #1
Bob Nystrom
Couple of nits then LGTM. https://codereview.chromium.org/12879015/diff/1/utils/pub/entrypoint.dart File utils/pub/entrypoint.dart (right): https://codereview.chromium.org/12879015/diff/1/utils/pub/entrypoint.dart#newcode134 utils/pub/entrypoint.dart:134: return new Future.of(() { ...
7 years, 9 months ago (2013-03-20 16:33:42 UTC) #2
nweiz
https://codereview.chromium.org/12879015/diff/1/utils/pub/entrypoint.dart File utils/pub/entrypoint.dart (right): https://codereview.chromium.org/12879015/diff/1/utils/pub/entrypoint.dart#newcode134 utils/pub/entrypoint.dart:134: return new Future.of(() { On 2013/03/20 16:33:42, Bob Nystrom ...
7 years, 9 months ago (2013-03-20 19:45:46 UTC) #3
nweiz
Committed patchset #3 manually as r20286 (presubmit successful).
7 years, 9 months ago (2013-03-20 19:49:17 UTC) #4
Bob Nystrom
7 years, 9 months ago (2013-03-20 19:49:34 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/12879015/diff/1/utils/pub/entrypoint.dart
File utils/pub/entrypoint.dart (right):

https://codereview.chromium.org/12879015/diff/1/utils/pub/entrypoint.dart#new...
utils/pub/entrypoint.dart:134: return new Future.of(() {
On 2013/03/20 19:45:46, nweiz wrote:
> On 2013/03/20 16:33:42, Bob Nystrom wrote:
> > For consistency's sake, how about using defer() here?
> 
> Done, although I think we should remove defer() at some point in favor of
> Future.of (or Future.immediate if asynchrony is important).

I'm fine with that (though defer() is a good bit more terse). We added it before
Future.of() existed.

https://codereview.chromium.org/12879015/diff/1/utils/pub/io.dart
File utils/pub/io.dart (right):

https://codereview.chromium.org/12879015/diff/1/utils/pub/io.dart#newcode586
utils/pub/io.dart:586: return new Future.of(() => fn(tempDir))
On 2013/03/20 19:45:46, nweiz wrote:
> On 2013/03/20 16:33:42, Bob Nystrom wrote:
> > What's this change for? Is it just to handle fn() not returning a future? If
> so,
> > document that in the doc comment.
> 
> Yes; I think we should have the general heuristic that callbacks that are
typed
> to return a Future can also return null. I'd like to allow them to return
> anything the [Future.then] callback can return, but that makes typing them
> awkward.

I think the way I tend to approach this is to just have it return a Future and
then wrap the whole body in defer() which will ensure that translation happens.

Powered by Google App Engine
This is Rietveld 408576698