Commit Graph

25 Commits

Author SHA1 Message Date
rnystrom@google.com fe1c97ddf4 Pass logs through transformer groups.
BUG=https://code.google.com/p/dart/issues/detail?id=15189
R=nweiz@google.com

Review URL: https://codereview.chromium.org//108853003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30963 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-06 20:23:03 +00:00
jmesserly@google.com 489f51a41b fix barback and polymer build warnings
R=nweiz@google.com, sigmund@google.com

Review URL: https://codereview.chromium.org//50073007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29631 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 02:41:01 +00:00
kevmoo@j832.com 7802e835ae fix for Set.add tweak in r28863
R=blois@google.com

Review URL: https://codereview.chromium.org//29463002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28866 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-18 17:54:21 +00:00
nweiz@google.com 96e9dce1d4 Make PhaseOutput emit a new AssetNode whenever it changes outputs.
Previously, PhaseOutput produced a single AssetNode whose value it
would update whenever the forwarded output changed. This worked well
for a while, but once Phase started caring about the AssetNode's
origin, it became problematic. PhaseOutput would change the origin,
but Phase would have no way of knowing this, and the AssetNode would
end up sorted into the wrong place (treated as a forwarded node when
it shouldn't be, or vice versa).

This CL fixes that issue by removing the possibility of modifying an
AssetNode's origin. PhaseOutput now just creates a new AssetNode
instead. This has the additional benefit of cleaning up some
duplicated code in Phase.

R=rnystrom@google.com
BUG=

Review URL: https://codereview.chromium.org//26413003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28386 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-08 22:20:28 +00:00
nweiz@google.com 0e195d3994 Add support for transformer clusters to barback.
A cluster encapsulates a transformation graph in a form that can be used
similarly to a plain transformer.

R=rnystrom@google.com
BUG=

Review URL: https://codereview.chromium.org//25376003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28344 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-08 00:30:50 +00:00
rnystrom@google.com 193dfd7481 Make Transform a little more pleasant to use:
- Provide the primaryInput asset synchronously (#12515).
- Add convenience methods for reading input assets (#12516).

R=nweiz@google.com, sigmund@google.com

Review URL: https://codereview.chromium.org//23543005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26822 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-28 22:37:40 +00:00
nweiz@google.com 9300846114 Use filtered stacks in pub, barback, and watcher tests.
This also exposes more unittest stuff to users of scheduled_test.

R=rnystrom@google.com
BUG=

Review URL: https://codereview.chromium.org//23582003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26751 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 23:13:30 +00:00
floitsch@google.com 35d7140e66 Remove Encoding-enum from dart:io and add interface in dart:convert.
BUG= http://dartbug.com/6284
BUG= http://dartbug.com/7966
R=nweiz@google.com, sgjesse@google.com

Review URL: https://codereview.chromium.org//22872012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26632 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-26 10:37:25 +00:00
rnystrom@google.com d922bc34b8 Start sketching out a buildAll() method.
BUG=
R=nweiz@google.com

Review URL: https://codereview.chromium.org//22824023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26452 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-21 18:09:39 +00:00
nweiz@google.com b56d5196b8 Add the ability to dynamically modify transforms to barback.
R=rnystrom@google.com
BUG=

Review URL: https://codereview.chromium.org//23311006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26403 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-20 22:31:41 +00:00
nweiz@google.com 6812f7c10a Add more metadata to non-programmatic barback exceptions.
This also adds a BarbackException superclass for errors that come from the
package graph or from transformers.

R=rnystrom@google.com

Review URL: https://codereview.chromium.org//22961002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26133 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-14 18:12:17 +00:00
nweiz@google.com 5395c1e611 Consistently schedule operations in the barback tests.
R=rnystrom@google.com

Review URL: https://codereview.chromium.org//22371005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25978 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-09 20:35:59 +00:00
nweiz@google.com 12207b384d Support cross-package transforms in barback.
R=rnystrom@google.com

Review URL: https://codereview.chromium.org//22265002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25937 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-08 18:27:44 +00:00
nweiz@google.com c12a5cad3a Refactor the barback tests somewhat.
This makes each transformer capable of relatively fine-grained pausing
and resuming of processing. They no longer use MockAsset, instead
using [Asset.fromString] to better simulate real-world transformers.

This also adds several new utility functions to
barback/test/utils.dart.

R=rnystrom@google.com

Review URL: https://codereview.chromium.org//21226004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25652 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-30 23:57:16 +00:00
nweiz@google.com 133814b67b Remove calls to [new Future] work around issue 11911.
BUG=11911
R=gram@google.com, rnystrom@google.com

Review URL: https://codereview.chromium.org//19841002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25365 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-23 20:26:04 +00:00
nweiz@google.com 962d3fddb6 Rename several classes in barback.
AssetProvider     -> PackageProvider
AssetGraphManager -> PackageGraph
AssetGraph        -> AssetCascade

R=rnystrom@google.com

Review URL: https://codereview.chromium.org//19402003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25080 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-17 00:34:33 +00:00
nweiz@google.com d28b8251f6 Make barback more package-aware.
This makes AssetGraph package-specific, but doesn't yet support cross-package asset usage.

R=rnystrom@google.com

Review URL: https://codereview.chromium.org//5695057915019264

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25079 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-16 22:56:53 +00:00
rnystrom@google.com a9d24edd0f Rename "pathos" package to "path".
R=ajohnsen@google.com

Review URL: https://codereview.chromium.org//18356011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24964 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-12 17:54:48 +00:00
rnystrom@google.com bfbfc432ca Tweak unittest compact config a bit and don't use it on bots.
R=sigmund@google.com

Review URL: https://codereview.chromium.org//18811008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24924 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-11 18:34:53 +00:00
nweiz@google.com 5cae6e7aae Split AssetGraph.results into two streams.
R=rnystrom@google.com

Review URL: https://codereview.chromium.org//18178021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24892 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-10 22:15:23 +00:00
rnystrom@google.com 8d8db43bd6 Binary assets and more unit tests for Asset.
R=nweiz@google.com

Review URL: https://codereview.chromium.org//18854007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24848 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-09 16:25:16 +00:00
rnystrom@google.com c770061ecc Make Assets know their ID.
R=nweiz@google.com

Review URL: https://codereview.chromium.org//18650004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24819 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-08 21:20:43 +00:00
rnystrom@google.com 0886dc6dba Make Asset.readAsString() async.
R=nweiz@google.com

Review URL: https://codereview.chromium.org//18478004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24743 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-03 19:44:38 +00:00
rnystrom@google.com a3d0f52274 Clean up barback tests.
This defines a more DSL-like API for AssetGraph tests. It also handles
build results more cleanly.

R=nweiz@google.com

Review URL: https://codereview.chromium.org//17507003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24734 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-03 17:44:14 +00:00
rnystrom@google.com 81e2bed5c5 First pass at build dependency graph for barback.
BUG=
R=nweiz@google.com

Review URL: https://codereview.chromium.org//16854005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24257 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-21 00:21:53 +00:00