Commit graph

21 commits

Author SHA1 Message Date
Bob Nystrom 0b2c9b048d 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

Review-Url: https://codereview.chromium.org/2955513002 .
2017-06-29 13:45:57 -07:00
Vijay Menon 075158557e Allow canary to timeout
This is running for me locally, but timing out consistently on travis.

TBR=jmesserly@google.com

Review-Url: https://codereview.chromium.org/2856953002 .
2017-05-02 10:02:51 -07:00
Vijay Menon 6cf2ac1f62 Fix FF test status and re-enable
With sra's num parse fixes and couple more, FF should be green again (as well as Chrome Canary).

R=alanknight@google.com

Review-Url: https://codereview.chromium.org/2750503009 .
2017-03-14 09:28:10 -07:00
Vijay Menon dd0a1395b2 Allow breakage on FF / Travis
Looks like FF 52 might have some regressions?

https://s3.amazonaws.com/archive.travis-ci.org/jobs/208767362/log.txt

TBR=alanknight@google.com

Review-Url: https://codereview.chromium.org/2731263005 .
2017-03-07 16:11:19 -08:00
Vijay Menon 9d31aed38b Update node for travis
TBR=jmesserly@google.com

Review-Url: https://codereview.chromium.org/2734893002 .
2017-03-06 09:18:35 -08:00
Vijay Menon 5dffba506e Use bleeding edge analyzer to analyze DDC
Note, we were getting this from building the SDK from scratch, but we
can just call it directly. :-)

Travis try-run here:

https://travis-ci.org/dart-lang/sdk/builds/197045751

R=jmesserly@google.com

Review-Url: https://codereview.chromium.org/2669623002 .
2017-01-31 12:05:37 -08:00
Vijay Menon f2b4114f08 Allow clang travis build to fail
Probably need to switch this to use GN if we want to keep it.

TBR=jmesserly@google.com

Review-Url: https://codereview.chromium.org/2653673008 .
2017-01-24 15:56:41 -08:00
Vijay Menon c1725c5b7f Fix for travis
Seeing a break on runhooks after the switch to GN (I think).  We don't
actually need to runhooks if we're not doing a full SDK build - except
for pulling unittest.  For the full build config, falling back to GYP
for now.

TBR=rnystrom@google.com,whesse@google.com

Review-Url: https://codereview.chromium.org/2618143003 .
2017-01-07 07:33:31 -08:00
Vijay Menon 00f813800e Remove travis g++ config
The shipped SDK is built with clang.  g++ is tested on the chromebots.
We don't get much value out of testing it again here, and it takes 30
min.

See try-run:
https://travis-ci.org/dart-lang/sdk/builds/182115562

R=kevmoo@google.com

Review URL: https://codereview.chromium.org/2558093003 .
2016-12-08 06:35:04 -08:00
Vijay Menon 3b4854ac7d Allow canary to fail for DDC tests
This has been pretty flaky recently.  Almost all intermittent failures are this config.

R=rnystrom@google.com

Review URL: https://codereview.chromium.org/2509363002 .
2016-11-17 12:57:21 -08:00
Bob Nystrom 926df1e5b3 Rewrite build_pkgs.sh and build_test_pkgs.sh in Dart.
The bots need to run these before running the tests, so I'm porting them
to Dart so they'll run on Windows.

As a nice bonus, they're much faster now, I'm assuming because we use
one warmed up VM for all of the packages.

build_test_pkgs.sh on my machine went from ~12 seconds to ~4.

R=jmesserly@google.com, vsm@google.com

Review URL: https://codereview.chromium.org/2498673003 .
2016-11-15 11:14:37 -08:00
Vijay Menon 4874480d55 Move FF and Canary to green on travis
Try run is here:
https://travis-ci.org/dart-lang/sdk/builds/172400947

R=rnystrom@google.com

Review URL: https://codereview.chromium.org/2467063002 .
2016-11-03 07:44:27 -07:00
Vijay Menon 830cf7c3ea Test packages with ddc on travis
Here's a setup to test build of various SDK packages with DDC and strong mode per commit on travis.

It's not an ideal setup:
- If deps / files change, this will need updating.
- It only breaks on error, not warning.
- It doesn't actually run any package tests.

I haven't gone through all packages either.  Might be worth automating something like this.

See try-run here:

https://travis-ci.org/dart-lang/sdk/builds/172066040

R=jmesserly@google.com

Review URL: https://codereview.chromium.org/2465923003 .
2016-11-01 06:01:45 -07:00
Vijay Menon a7f53aca4d Mark canary as failing
Looks like a test (audiocontext) is behaving different on stable vs canary.

TBR=jmesserly@google.com,alanknight@google.com

Review URL: https://codereview.chromium.org/2444773003 .
2016-10-24 09:10:36 +02:00
Vijay Menon 8846988b1d Travis / chrome fixes
- Use google-chrome-stable by default
- Use google-chrome-unstable as Canary (instead of trying to determine last-known-good-revision - we has issues with that yesterday)
- Test chrome stable and unstable separately on travis

Try bot:
https://travis-ci.org/dart-lang/sdk/builds/165541943

R=kevmoo@google.com

Review URL: https://codereview.chromium.org/2396433007 .
2016-10-06 08:33:06 -07:00
Vijay Menon 68d2121fd0 Use .packages instead of pubspec.yaml
This runs tests against sdk versions of packages instead of whatever
random version we have in pubspec.yaml.

Travis may be unhappy with the lack of a pubspec.yaml.  Here's the try:

https://travis-ci.org/dart-lang/sdk/builds/163270204

R=jmesserly@google.com, rnystrom@google.com

Review URL: https://codereview.chromium.org/2371113004 .
2016-09-28 09:49:31 -07:00
Vijay Menon 1305077353 Allow full builds to fail on travis for now
This may be related to ongoing VM build work.

TBR=jmesserly@google.com

Review URL: https://codereview.chromium.org/2362213003 .
2016-09-23 08:42:26 -07:00
Vijay Menon 9732138317 Testing support for FF and Safari
Also travis support for testing FF.  See:

https://travis-ci.org/dart-lang/sdk/builds/159331789

On FF 48, 1965 out of 1979 tests are passing.  Run locally:
DDC_BROWSERS=Firefox npm test

On Safari 10 (tech preview), it fails immediately due to a static method named "caller".  We disallow it as a field, but not a method right now.  If I hack that out, 1972 out of 1979 tests appear to pass.

Run locally by installing tech preview and running:
DDC_BROWSERS=Safari SAFARI_BIN=/Applications/Safari\ Technology\ Preview.app/Contents/MacOS/Safari\ Technology\ Preview npm test
R=jmesserly@google.com, rnystrom@google.com

Review URL: https://codereview.chromium.org/2334763002 .
2016-09-14 08:41:43 -07:00
John Messerly bdf38439e9 fix DDC travis mails, take 3
Review URL: https://codereview.chromium.org/2318283003 .
2016-09-07 14:11:26 -07:00
John Messerly 5968e2b9e9 configure travis notifications for DDC, take 2
deletes the obsolete travis.yml file

R=vsm@google.com

Review URL: https://codereview.chromium.org/2316983003 .
2016-09-07 11:57:23 -07:00
Vijay Menon b220f63954 Travis config
See try-run here: https://travis-ci.org/dart-lang/sdk/builds/156699868

R=kevmoo@google.com

Review URL: https://codereview.chromium.org/2301833002 .
2016-09-01 08:33:50 -07:00