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

Issue 126173002: Use a real package-root for all of our samples (and tests inside a package) instead of buildDir/pac… (Closed)

Created:
6 years, 11 months ago by kustermann
Modified:
6 years, 11 months ago
CC:
reviews_dartlang.org, Bill Hesse
Visibility:
Public.

Description

Use a real package-root for all of our samples (and tests inside a package) instead of buildDir/packages/ For all tests that depend on other packages (e.g. samples) we can - use packages from pub.dartlang.org - use packages from pub.dartlang.org with overrides for the packages we have in the dart repository. This CL does NOT include test-specific package-roots for dartium. Dartium will request a URL containing "packages" when it encounters a package import. Our HTTP server will then serve from buildDir/packages. This needs to change when we have test specific VMOptions for dartium. For normal tests (without a pubspec.yaml on the path to dart/, we still use buildDir/packages). R=ricow@google.com, whesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=31691

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 18

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -16 lines) Patch
M dart/pkg/pkg.status View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
M dart/pkg/polymer/example/canonicalization/pubspec.yaml View 1 chunk +1 line, -2 lines 0 comments Download
M dart/tools/testing/dart/test_runner.dart View 1 2 5 chunks +68 lines, -2 lines 0 comments Download
M dart/tools/testing/dart/test_suite.dart View 1 2 10 chunks +139 lines, -12 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
kustermann
The CL isn't completely finished (but 95%). Feedback is welcome.
6 years, 11 months ago (2014-01-07 17:16:37 UTC) #1
ricow1
Didn't I alrady review parts of this before? https://codereview.chromium.org/126173002/diff/1/dart/tools/testing/dart/test_runner.dart File dart/tools/testing/dart/test_runner.dart (right): https://codereview.chromium.org/126173002/diff/1/dart/tools/testing/dart/test_runner.dart#newcode533 dart/tools/testing/dart/test_runner.dart:533: }).then((_) ...
6 years, 11 months ago (2014-01-08 11:48:48 UTC) #2
kustermann
PTAL https://codereview.chromium.org/126173002/diff/1/dart/tools/testing/dart/test_runner.dart File dart/tools/testing/dart/test_runner.dart (right): https://codereview.chromium.org/126173002/diff/1/dart/tools/testing/dart/test_runner.dart#newcode533 dart/tools/testing/dart/test_runner.dart:533: }).then((_) { On 2014/01/08 11:48:48, ricow1 wrote: > ...
6 years, 11 months ago (2014-01-09 13:10:48 UTC) #3
kustermann
6 years, 11 months ago (2014-01-09 13:11:16 UTC) #4
ricow1
LGTM https://codereview.chromium.org/126173002/diff/70001/dart/tools/testing/dart/test_suite.dart File dart/tools/testing/dart/test_suite.dart (right): https://codereview.chromium.org/126173002/diff/70001/dart/tools/testing/dart/test_suite.dart#newcode878 dart/tools/testing/dart/test_suite.dart:878: .append('pkg').append('expect').append('lib'); bob: Please be aware of this, if ...
6 years, 11 months ago (2014-01-09 13:58:29 UTC) #5
Bill Hesse
LGTM. https://codereview.chromium.org/126173002/diff/70001/dart/tools/testing/dart/test_runner.dart File dart/tools/testing/dart/test_runner.dart (right): https://codereview.chromium.org/126173002/diff/70001/dart/tools/testing/dart/test_runner.dart#newcode536 dart/tools/testing/dart/test_runner.dart:536: return link.delete().then((_) => link.create(_target)); This could be written ...
6 years, 11 months ago (2014-01-09 14:40:08 UTC) #6
kustermann
Committed patchset #3 manually as r31691 (presubmit successful).
6 years, 11 months ago (2014-01-10 12:30:03 UTC) #7
kustermann
https://codereview.chromium.org/126173002/diff/70001/dart/tools/testing/dart/test_runner.dart File dart/tools/testing/dart/test_runner.dart (right): https://codereview.chromium.org/126173002/diff/70001/dart/tools/testing/dart/test_runner.dart#newcode536 dart/tools/testing/dart/test_runner.dart:536: return link.delete().then((_) => link.create(_target)); On 2014/01/09 14:40:08, Bill Hesse ...
6 years, 11 months ago (2014-01-10 12:30:07 UTC) #8
Bill Hesse
6 years, 11 months ago (2014-01-10 15:12:41 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/126173002/diff/70001/dart/tools/testing/dart/...
File dart/tools/testing/dart/test_suite.dart (right):

https://codereview.chromium.org/126173002/diff/70001/dart/tools/testing/dart/...
dart/tools/testing/dart/test_suite.dart:870: // pubspec.yaml if there is no lib
directory.
OK, it is unclear.  I wouldn't say "if there is no lib directory", I would say
"since the lib directory in the source is not copied to the checkout directory".
 Because you only make the link if there _is_ a directory in the source
directory.

On 2014/01/10 12:30:08, kustermann wrote:
> On 2014/01/09 14:40:08, Bill Hesse wrote:
> > This comment seems backwards, since the code that uses packageLinkTarget
> creates
> > the link if there _is_ a lib directory.
> 
> That comment is fine. Look here:
> 
> dart $ l samples/clock      
> -rw-r----- 1 kustermann eng  160 Dec 19 10:18 pubspec.yaml
> drwxr-x--- 2 kustermann eng 4.0K Dec 19 10:18 test/
> drwxr-x--- 3 kustermann eng 4.0K Dec 19 10:18 web/
> 
> dart $ l
> out/ReleaseIA32/generated_pubspec_checkouts/repo_packages-sdk/samples_clock/
> drwxr-x--- 2 kustermann eng 4.0K Jan 10 13:17 packages/
> -rw-r----- 1 kustermann eng 8.6K Jan 10 13:17 pubspec.lock
> -rw-r----- 1 kustermann eng 4.8K Jan 10 13:17 pubspec.yaml
> 
> We copy the directory to out/ReleaseIA32/.... and make a modified pubspec.yaml
> file in there. When running 'pub get' inside that directory, the directory
> itself doesn't contain a lib directory, so pub doesn't create a link in
> packages/clock -> ...
> What this code means that if there is a lib directory inside samples/clock/lib
> then we'll create a link from out/..../packages to samples/clock/lib.

Powered by Google App Engine
This is Rietveld 408576698