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

Issue 306603002: Don't run tests against pinned barback versions in third_party. (Closed)

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

Description

Don't run tests against pinned barback versions in third_party. These packages are kept around to ensure that pub continues working with historic barback versions, but pub's test suite handles loading and testing against them manually. Other test suites (pkgbuild in particular) can safely ignore them. TBR Committed: https://code.google.com/p/dart/source/detail?r=36718

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M tools/testing/dart/test_suite.dart View 1 chunk +5 lines, -0 lines 2 comments Download

Messages

Total messages: 4 (0 generated)
nweiz
6 years, 6 months ago (2014-05-27 23:05:09 UTC) #1
nweiz
Committed patchset #1 manually as r36718 (presubmit successful).
6 years, 6 months ago (2014-05-27 23:05:22 UTC) #2
kustermann
lgtm with comments. https://codereview.chromium.org/306603002/diff/1/tools/testing/dart/test_suite.dart File tools/testing/dart/test_suite.dart (right): https://codereview.chromium.org/306603002/diff/1/tools/testing/dart/test_suite.dart#newcode421 tools/testing/dart/test_suite.dart:421: if (packageName.contains('-')) continue; I'd prefer if ...
6 years, 6 months ago (2014-05-27 23:28:16 UTC) #3
nweiz
6 years, 6 months ago (2014-05-27 23:56:21 UTC) #4
Message was sent while issue was closed.
Follow-up CL: https://codereview.chromium.org/303693006

https://codereview.chromium.org/306603002/diff/1/tools/testing/dart/test_suit...
File tools/testing/dart/test_suite.dart (right):

https://codereview.chromium.org/306603002/diff/1/tools/testing/dart/test_suit...
tools/testing/dart/test_suite.dart:421: if (packageName.contains('-')) continue;
On 2014/05/27 23:28:17, kustermann wrote:
> I'd prefer if you move this logic into the "isValid(packageName)" function
above
> and constrain it more, something like:
> 
> isValid(packageName) {
>   return !['third_party', 'barback-0.13.0'].contains(packageName);
> }

Done.

> You're more familiar with the package name constraints: Is "-" disallowed in
the
> directory names for pub packages? If so, I'm also fine with "-", but I'd still
> move it up to "isValid(...)" and extend the comment saying that directories
> containing "-" are not valid pub packages.

Package names can't contain "-"; they have to be valid Dart identifiers. I think
it's better to check for "-" because we're likely to add more pinned versions of
barback in the future.

Powered by Google App Engine
This is Rietveld 408576698