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

Issue 2955513002: Dynamically load packages for dartdevc tests in test.dart. (Closed)

Created:
3 years, 6 months ago by Bob Nystrom
Modified:
3 years, 5 months ago
Reviewers:
vsm, zra, Bill Hesse
CC:
reviews_dartlang.org, zra
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Dynamically load packages for dartdevc tests in test.dart. This involves a few pieces: - Add support to DDC for specifying the module name associated with a given summary. This lets test.dart invoke DDC using summaries in the build directory outside of the directory containing the test itself. - Add support to the build scripts for building the packages. This adds a new GN target that builds everything needed to run test.dart with dartdevc. In particular, it invokes build_pkgs.dart to compile the relevant packages to JS+summary so that the tests can use them. This requires some changes to build_pkgs.dart so it can output to a given directory. - In test.dart, when tests are compiled with dartdevc, pass in the summaries for the packages so they don't get compiled in. Then, when the test is run, configure require.js with the right paths to their JS files so they can be loaded. I also removed a bunch of unneeded buildDir parameters being passed around the various CompilerConfiguration class methods now that they have direct access to the configuration. Fix #29923. R=vsm@google.com, whesse@google.com, zra@google.com Committed: https://github.com/dart-lang/sdk/commit/0b2c9b048d613bd81caf07acd285f61cd01b79dd

Patch Set 1 #

Total comments: 11

Patch Set 2 : Revise based on review. #

Patch Set 3 : use $target_gen_dir for generated stuff. #

Total comments: 2

Patch Set 4 : Remove TODO that's TODONE. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+311 lines, -180 lines) Patch
M .travis.yml View 1 chunk +1 line, -1 line 0 comments Download
M pkg/dev_compiler/lib/src/analyzer/context.dart View 3 chunks +21 lines, -0 lines 0 comments Download
M pkg/dev_compiler/lib/src/compiler/command.dart View 2 chunks +13 lines, -4 lines 0 comments Download
M pkg/dev_compiler/lib/src/compiler/compiler.dart View 2 chunks +5 lines, -5 lines 0 comments Download
M pkg/dev_compiler/test/options/options_test.dart View 1 chunk +17 lines, -0 lines 0 comments Download
M pkg/dev_compiler/tool/build_pkgs.dart View 7 chunks +31 lines, -18 lines 0 comments Download
M pkg/dev_compiler/tool/build_pkgs.sh View 1 chunk +1 line, -1 line 0 comments Download
M pkg/dev_compiler/tool/build_test_pkgs.sh View 1 1 chunk +0 lines, -5 lines 0 comments Download
M pkg/dev_compiler/tool/test.sh View 1 chunk +1 line, -1 line 0 comments Download
M tools/testing/dart/browser_test.dart View 1 2 3 5 chunks +22 lines, -5 lines 0 comments Download
M tools/testing/dart/compiler_configuration.dart View 1 2 22 chunks +96 lines, -89 lines 0 comments Download
M tools/testing/dart/test_suite.dart View 1 2 7 chunks +7 lines, -35 lines 0 comments Download
M tools/testing/dart/utils.dart View 1 chunk +13 lines, -0 lines 0 comments Download
M utils/dartdevc/BUILD.gn View 1 2 4 chunks +83 lines, -16 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
Bob Nystrom
vsm for dev_compiler stuff, zra for GN changes, and whesse for the rest. Thank you!
3 years, 6 months ago (2017-06-22 23:43:45 UTC) #2
zra
https://codereview.chromium.org/2955513002/diff/1/utils/dartdevc/BUILD.gn File utils/dartdevc/BUILD.gn (right): https://codereview.chromium.org/2955513002/diff/1/utils/dartdevc/BUILD.gn#newcode87 utils/dartdevc/BUILD.gn:87: ":dartdevc", deps from the current file should come first. ...
3 years, 6 months ago (2017-06-23 05:00:39 UTC) #3
vsm
lgtm on ddc part https://codereview.chromium.org/2955513002/diff/1/pkg/dev_compiler/lib/src/analyzer/context.dart File pkg/dev_compiler/lib/src/analyzer/context.dart (right): https://codereview.chromium.org/2955513002/diff/1/pkg/dev_compiler/lib/src/analyzer/context.dart#newcode35 pkg/dev_compiler/lib/src/analyzer/context.dart:35: final Map<String, String> customSummaryModules = ...
3 years, 6 months ago (2017-06-23 14:29:12 UTC) #4
Bob Nystrom
Thanks! https://codereview.chromium.org/2955513002/diff/1/pkg/dev_compiler/lib/src/analyzer/context.dart File pkg/dev_compiler/lib/src/analyzer/context.dart (right): https://codereview.chromium.org/2955513002/diff/1/pkg/dev_compiler/lib/src/analyzer/context.dart#newcode35 pkg/dev_compiler/lib/src/analyzer/context.dart:35: final Map<String, String> customSummaryModules = {}; On 2017/06/23 ...
3 years, 6 months ago (2017-06-24 00:29:37 UTC) #5
zra
https://codereview.chromium.org/2955513002/diff/1/utils/dartdevc/BUILD.gn File utils/dartdevc/BUILD.gn (right): https://codereview.chromium.org/2955513002/diff/1/utils/dartdevc/BUILD.gn#newcode113 utils/dartdevc/BUILD.gn:113: "$root_gen_dir/dartdevc/pkg/async_helper.js", On 2017/06/24 00:29:36, Bob Nystrom wrote: > On ...
3 years, 5 months ago (2017-06-26 05:47:33 UTC) #6
Bob Nystrom
Friendly ping for Bill to look at the test.dart stuff. https://codereview.chromium.org/2955513002/diff/1/utils/dartdevc/BUILD.gn File utils/dartdevc/BUILD.gn (right): https://codereview.chromium.org/2955513002/diff/1/utils/dartdevc/BUILD.gn#newcode113 ...
3 years, 5 months ago (2017-06-28 23:04:03 UTC) #7
Bill Hesse
test files LGTM https://codereview.chromium.org/2955513002/diff/40001/tools/testing/dart/browser_test.dart File tools/testing/dart/browser_test.dart (right): https://codereview.chromium.org/2955513002/diff/40001/tools/testing/dart/browser_test.dart#newcode71 tools/testing/dart/browser_test.dart:71: // TODO(29923): Add paths to the ...
3 years, 5 months ago (2017-06-29 14:18:46 UTC) #8
zra
GN lgtm https://codereview.chromium.org/2955513002/diff/1/utils/dartdevc/BUILD.gn File utils/dartdevc/BUILD.gn (right): https://codereview.chromium.org/2955513002/diff/1/utils/dartdevc/BUILD.gn#newcode113 utils/dartdevc/BUILD.gn:113: "$root_gen_dir/dartdevc/pkg/async_helper.js", On 2017/06/28 23:04:03, Bob Nystrom wrote: ...
3 years, 5 months ago (2017-06-29 15:06:01 UTC) #9
Bob Nystrom
Committed patchset #4 (id:60001) manually as 0b2c9b048d613bd81caf07acd285f61cd01b79dd (presubmit successful).
3 years, 5 months ago (2017-06-29 20:46:01 UTC) #11
Bob Nystrom
3 years, 5 months ago (2017-06-29 20:46:37 UTC) #12
Message was sent while issue was closed.
https://codereview.chromium.org/2955513002/diff/40001/tools/testing/dart/brow...
File tools/testing/dart/browser_test.dart (right):

https://codereview.chromium.org/2955513002/diff/40001/tools/testing/dart/brow...
tools/testing/dart/browser_test.dart:71: // TODO(29923): Add paths to the
packages that are used in tests once they
On 2017/06/29 14:18:46, Bill Hesse wrote:
> Remove this TODO?

Done.

Powered by Google App Engine
This is Rietveld 408576698