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

Issue 256743009: Cache output of dart2js compilations that went wrong on disk. (Closed)

Created:
6 years, 7 months ago by ricow1
Modified:
6 years, 7 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Cache output of dart2js compilations that went wrong on disk. This change adds a out.js.cached_output (or equivalent) for compilations that fails. There are two cases where this helps: Commits where the sdk does not change and but we would normally recompile since we don't have the dart2js output Runs on the buildbot where we do several runs on different runtimes in serial Additionally, this introduces a check on multitest files so we don't copy the file if the content is already correct. The reason for this is that a bunch of tests depend on the copied import which will then trigger a recompilation. This will help in the same two cases as above. This change also changes dart2js to always output the deps file, otherwise we have no way of knowing if we can reuse the output. R=floitsch@google.com, kustermann@google.com, whesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=36162

Patch Set 1 #

Patch Set 2 : #

Total comments: 18

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -31 lines) Patch
M sdk/lib/_internal/compiler/implementation/dart2js.dart View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/source_file_provider.dart View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M tests/standalone/io/skipping_dart2js_compilations_test.dart View 1 2 3 4 5 6 9 chunks +47 lines, -9 lines 0 comments Download
M tools/testing/dart/multitest.dart View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M tools/testing/dart/test_runner.dart View 1 2 3 4 5 6 8 chunks +83 lines, -18 lines 0 comments Download
M tools/testing/dart/test_suite.dart View 1 2 3 4 5 6 2 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
ricow1
6 years, 7 months ago (2014-04-29 13:38:38 UTC) #1
Bill Hesse
LGTM. https://codereview.chromium.org/256743009/diff/20001/tools/testing/dart/multitest.dart File tools/testing/dart/multitest.dart (right): https://codereview.chromium.org/256743009/diff/20001/tools/testing/dart/multitest.dart#newcode254 tools/testing/dart/multitest.dart:254: Future copy = TestUtils.isContentEqual(srcPath, targetPath).then((equal) { It seems ...
6 years, 7 months ago (2014-04-29 17:51:55 UTC) #2
floitsch
dart2js changes LGTM.
6 years, 7 months ago (2014-04-29 18:07:04 UTC) #3
kustermann
I took a brief look, since I implemented the normal caching back in the old ...
6 years, 7 months ago (2014-04-29 21:20:44 UTC) #4
ricow1
Thank you for your comments. Updated the cl to take them into account. Especially thanks ...
6 years, 7 months ago (2014-04-30 06:51:01 UTC) #5
ricow1
This is still pending info about dart2js on missing files
6 years, 7 months ago (2014-04-30 06:51:19 UTC) #6
ricow1
I added now a "fix" for the missing imports case - please let me know ...
6 years, 7 months ago (2014-05-01 16:40:38 UTC) #7
kustermann
lgtm But you should incorporate this also into the test (see tests/standalone/io/skipping_dart2js_compilations_test.dart) https://codereview.chromium.org/256743009/diff/100001/tools/testing/dart/test_runner.dart File tools/testing/dart/test_runner.dart ...
6 years, 7 months ago (2014-05-01 17:02:43 UTC) #8
kustermann
Another comment (see also previous one). https://codereview.chromium.org/256743009/diff/100001/tools/testing/dart/test_runner.dart File tools/testing/dart/test_runner.dart (right): https://codereview.chromium.org/256743009/diff/100001/tools/testing/dart/test_runner.dart#newcode1644 tools/testing/dart/test_runner.dart:1644: 'stderr': stderr, Are ...
6 years, 7 months ago (2014-05-01 22:50:04 UTC) #9
ricow1
On 2014/05/01 22:50:04, kustermann wrote: > Another comment (see also previous one). > > https://codereview.chromium.org/256743009/diff/100001/tools/testing/dart/test_runner.dart ...
6 years, 7 months ago (2014-05-02 07:20:44 UTC) #10
ricow1
6 years, 7 months ago (2014-05-14 12:54:14 UTC) #11
Message was sent while issue was closed.
Committed patchset #7 manually as r36162 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698