Commit graph

4212 commits

Author SHA1 Message Date
William Hesse 3e78c9bd31 Update test script short reproduction command to not print --packages flag.
Also run dartfmt on test_options.dart

BUG=
R=eernst@google.com

Review URL: https://codereview.chromium.org/2522513002 .
2016-11-21 18:27:11 +01:00
pq dbb3cd590a Add front_end sources to the SDK (#27857).
R=brianwilkerson@google.com, whesse@google.com

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

Fixes: https://github.com/dart-lang/sdk/issues/27857
2016-11-21 08:57:03 -08:00
Martin Kustermann 13f7e93c7e Add wrapper shell script to invoke dartk with checked-in binary
R=vegorov@google.com

Review URL: https://codereview.chromium.org/2516433004 .
2016-11-18 17:35:35 +01:00
William Hesse 373db1aba9 Revert "Roll co19 tests and update status files"
This reverts commit 2a947db2ea.
We will update the status files using buildbot logs, and try again.

BUG=
TBR=sortie@google.com

Review URL: https://codereview.chromium.org/2508863004 .
2016-11-17 13:38:09 +01:00
William Hesse 2a947db2ea Roll co19 tests and update status files
This commit will be rolled back after running on all builders to collect
error logs.

R=sortie@google.com

Review URL: https://codereview.chromium.org/2508803006 .
2016-11-17 11:56:47 +01:00
William Hesse 1580d6d73f Print hashes of uploaded files into the builder log, for later verification.
BUG=
R=sortie@google.com

Review URL: https://codereview.chromium.org/2506473003 .
2016-11-17 11:44:44 +01:00
Sigmund Cherem d89dab56b5 Fix IE11 issue: this complements the CL I sent last week. It turns out that
there are two places where we do this check. This is why the test that I added
appears to be failing in the bots.

BUG=
R=jakemac@google.com

Review URL: https://codereview.chromium.org/2504883002 .
2016-11-16 08:38:24 -08:00
Vyacheslav Egorov 23fd1a184b VM: Support bootstrapping core libraries from Kernel binaries instead of source.
BUG=http://dartbug.com/27590
R=asiva@google.com

Review URL: https://codereview.chromium.org/2485993002 .
2016-11-16 13:56:20 +01:00
Zachary Anderson c172f60bd4 Adds an environment variable that makes generate_buildfiles.py a no-op
R=whesse@google.com

Review URL: https://codereview.chromium.org/2507483002 .
2016-11-15 12:54:49 -08:00
Ryan Macnak 30517b2d1e Also push process_test when testing on Android hardware.
R=fschneider@google.com

Review URL: https://codereview.chromium.org/2505483002 .
2016-11-15 09:26:36 -08:00
Zachary Anderson 22ff72161f GN: Remove bogus argument to gn.py
Review URL: https://codereview.chromium.org/2507463002 .
2016-11-15 07:59:41 -08:00
Zachary Anderson f765e1498f GN: Make sure we use clang when ASAN is specificed for ia32 Linux
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2496383002 .
2016-11-14 13:29:30 -08:00
Sigmund Cherem 008da86c03 Support extending TemplateElement in IE11 + webcomponents-lite.js
Addresses issue reported in the polymer repo: https://github.com/dart-lang/polymer-dart/issues/682

R=jakemac@google.com, sra@google.com

Review URL: https://codereview.chromium.org/2493703004 .
2016-11-14 07:32:09 -08:00
William Hesse d498781077 Update URL to download dartium and content shell for testing
BUG=
R=sortie@google.com, lrn@google.com

Review URL: https://codereview.chromium.org/2496213002 .
2016-11-14 14:10:33 +01:00
James Robinson 7a43c648c3 [gn] Consolidate exec_script calls to speed up generation
Calling out to python from GN to process gypi files is relatively
expensive with a 20-45ms fixed overhead for setup/teardown regardless
of what the script does. This makes runtime/vm/BUILD.gn take 1-1.5s
(per toolchain) to run as the template for libraries expands
out to 25 calls to gypi_to_gn.py, even though the actual time spent
processing the gypi files is negligible.

This replaces those repeated calls to gypi_to_gn.py with a call to a
custom script that process all of the gypi files needed for runtime/vm
and places the results into a single scope which can then be read from
in the template and replaces a few other scattered calls to
gypi_to_gn.py with a smaller number of calls that process multiple
gypi files and place the results into a single scope.

The end result is processing all of dart's GN files in a fuchsia build
takes ~250ms instead of >3 seconds.

R=zra@google.com

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

Committed: ad86d6ed26
2016-11-12 10:57:01 -08:00
Zachary Anderson 43a506bcc8 Adds some error handling to the socket implementation.
I'm starting to try to track down the hang in socket_test in
a call to read() on Mac. We weren't checking that the calls
to set fds non-blocking were successful, so I'll start with
adding code to do that.

This CL also fixes the GN arm android build.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2495003003 .
2016-11-11 21:15:16 -08:00
Bob Nystrom f2c5a3c402 Don't hardcode "dart" executable name.
BUG=
R=whesse@google.com

Review URL: https://codereview.chromium.org/2488363002 .
2016-11-10 16:51:55 -08:00
James Robinson e18404fd3b Revert "[gn] Consolidate exec_script calls to speed up generation"
Appears to break builds with errors like:

ninja -C xcodebuild/ProductX64 runtime
ninja: Entering directory `xcodebuild/ProductX64'
ninja: error: '../../runtime/vm/async_patch.dart', needed by 'obj/runtime/vm/concatenate_async_patch.inputdeps.stamp', missing and no known rule to make it
BUILD FAILED
step returned non-zero exit code: 1
@@@STEP_FAILURE@@@

This reverts commit ad86d6ed26.

BUG=

Review URL: https://codereview.chromium.org/2492053002 .
2016-11-10 15:17:38 -08:00
James Robinson ad86d6ed26 [gn] Consolidate exec_script calls to speed up generation
Calling out to python from GN to process gypi files is relatively
expensive with a 20-45ms fixed overhead for setup/teardown regardless
of what the script does. This makes runtime/vm/BUILD.gn take 1-1.5s
(per toolchain) to run as the template for libraries expands
out to 25 calls to gypi_to_gn.py, even though the actual time spent
processing the gypi files is negligible.

This replaces those repeated calls to gypi_to_gn.py with a call to a
custom script that process all of the gypi files needed for runtime/vm
and places the results into a single scope which can then be read from
in the template and replaces a few other scattered calls to
gypi_to_gn.py with a smaller number of calls that process multiple
gypi files and place the results into a single scope.

The end result is processing all of dart's GN files in a fuchsia build
takes ~250ms instead of >3 seconds.

R=zra@google.com

Review URL: https://codereview.chromium.org/2472813002 .
2016-11-10 15:10:45 -08:00
Zachary Anderson 90d3962ca3 Don't depend on dart_bootstrap if there is a usable prebuilt sdk
Also replace invoke_dart() with compiled_action(), and some other
cleanups.

fixes #27781

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2493833002 .
2016-11-10 11:16:24 -08:00
Bob Nystrom 1383286a35 Here's a first draft of a bot script for running the DDC tests.
As you can see, it requires "npm" to already be installed. Travis, I
think already has that on images. How should we handle this on the
Chrome bots?

What else did I do here that's wrong?

R=whesse@google.com

Review URL: https://codereview.chromium.org/2490013003 .
2016-11-10 10:40:59 -08:00
William Hesse 63b1016e90 Revert "Status and DEPS files updated (#27792)"
This reverts commit be4426a9c1.
This roll of co19 tests to the latest version is tested on the
buildbots, and then reverted so any necessary status updates can
be worked on offline.

BUG=
TBR=sortie@google.com

Review URL: https://codereview.chromium.org/2488253002 .
2016-11-10 11:39:42 +01:00
Sergey G. Grekhov be4426a9c1 Status and DEPS files updated (#27792)
* Analyzer and VM status files are updated according last versions of co19 and sdk

* dart2js status file updated according the last tests run on Chrome and FF

* dart2js status file updated according the last tests run on FF

* Status files updated according latest Dartium run

* status file updated according Linux run

* DEPS and VM status files updated

* dart2js files updated for FF and Chrome on Linux

* Status files updated according the latest Chrome run
2016-11-10 11:30:53 +01:00
Ryan Macnak f7ed0eb832 GN: Run a small portion of the test suite for dart2js and the analyzer.
R=zra@google.com

Review URL: https://codereview.chromium.org/2484083002 .
2016-11-08 10:04:45 -08:00
Zachary Anderson 7b86880b01 GN: Add an option to build against the Debian wheezy sysroot
Set the environment variable DART_USE_WHEEZY to build against
the wheezy sysroot on Linux.

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2476343004 .
2016-11-07 13:09:45 -08:00
Zachary Anderson 02cb4a0003 GN: Take asan default from an environment variable
If DART_USE_ASAN is defined, then the GN build will have ASAN
enabled after a 'gclient runhooks'

R=whesse@google.com

Review URL: https://codereview.chromium.org/2480333002 .
2016-11-07 09:01:14 -08:00
Jennifer Messerly 2e8d011ca3 fix #27607, add dev_compiler summary to the SDK and move JS files
R=vsm@google.com

Review URL: https://codereview.chromium.org/2474523003 .
2016-11-01 18:17:43 -07:00
Zachary Anderson f7799da7c5 GN: Fall back on dart_bootstrap where appropriate.
Review URL: https://codereview.chromium.org/2464153003 .
2016-11-01 12:59:36 -07:00
Vyacheslav Egorov d96c11fcdd Emit patched_sdk in the root output directory.
Previously it was emitted in the directory used for intermediate files, which
is build system specific.

test.py script needs to locate patched_sdk thus its location must be aligned
between build systems.

Use checked in SDK if available and fallback on dart_boostrap if not available to speed up Debug builds

BUG=
R=kustermann@google.com

Review URL: https://codereview.chromium.org/2469683002 .
2016-11-01 17:34:27 +01:00
Ryan Macnak 625a8157c8 Update Dartium's Blink to "Update to new API for getting the VM service's address."
Review URL: https://codereview.chromium.org/2462243003 .
2016-10-31 16:48:35 -07:00
Vyacheslav Egorov 2cd737abab Fix Debian builder.
Do not rely on checked in Dart SDK for patch_sdk.py.

Use dart_boostrap instead just like observatory does.

R=kustermann@google.com, whesse@google.com
BUG=

Review URL: https://codereview.chromium.org/2464833002 .
2016-10-31 14:13:33 +01:00
Jan-Hendrik Dolling 89560c68a0 change "the the" to the 2016-10-28 21:47:50 +02:00
Adam Barth 0ea1c155ae Fix the Fuchsia build
Python scripts need to be marked executable to run in the Fuchsia build.

TBR=zra@google.com
2016-10-27 09:59:58 -07:00
Vyacheslav Egorov eb8c24e133 Reland "Merge more Kernel infrastructure from kernel_sdk SDK fork."
R=zra@google.com
BUG=

Review URL: https://codereview.chromium.org/2451623006 .
2016-10-27 10:09:22 +02:00
Zachary Anderson c1313a5ec7 Format GN files and add a presubmit check that GN is properly formatted
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2451613005 .
2016-10-26 08:50:54 -07:00
Vyacheslav Egorov 12968edb9c Revert "Reland "Merge more Kernel infrastructure from kernel_sdk SDK fork.""
This reverts commit 4e7a31262e.

Windows bots are broken now.

R=zra@google.com
BUG=

Review URL: https://codereview.chromium.org/2451893004 .
2016-10-26 17:07:18 +02:00
Zachary Anderson 1ed9dc3ac0 GN: Fix arm cross build to match gyp build
R=vegorov@google.com

Review URL: https://codereview.chromium.org/2456463003 .
2016-10-26 07:58:42 -07:00
Vyacheslav Egorov 4e7a31262e Reland "Merge more Kernel infrastructure from kernel_sdk SDK fork."
This relands commit 2fed1c3905 with fixes to ensure that analyzer summaries are correctly created and XARM build does not try to use target binaries on the host.

R=zra@google.com
BUG=

Review URL: https://codereview.chromium.org/2453773002 .
2016-10-26 16:48:28 +02:00
Vyacheslav Egorov cf7ff42e60 Revert "Merge more Kernel infrastructure from kernel_sdk SDK fork."
This reverts commit 2fed1c3905.

SDK builds are failing

TBR=zra@google.com

Review URL: https://codereview.chromium.org/2455593002 .
2016-10-26 13:06:27 +02:00
Vyacheslav Egorov 2fed1c3905 Merge more Kernel infrastructure from kernel_sdk SDK fork.
- bring patched SDK generation scripts and VM patch tweaks that allow VM patch files to be parsed by analyzer front-end;
  Patched SDK is an SDK with all VM patches spliced into it. Kernel compiler is based on the analyzer front-end which does
  not have any patch files support/model so for it to produce Kernel files that match VM we need to generate a such patched SDKs.

- bring test script modifications that allow to test Kernel pipeline

BUG=
R=asiva@google.com, kmillikin@google.com, whesse@google.com, zra@google.com

Review URL: https://codereview.chromium.org/2434123003 .
2016-10-26 13:02:54 +02:00
Ryan Macnak e109c9bb0e Change build.py to invoke gn with '--check' to match the build bot's script and Flutter's usage.
R=zra@google.com

Review URL: https://codereview.chromium.org/2449503002 .
2016-10-25 09:43:37 -07:00
Zachary Anderson c39525802e GN: Fix build
GN is unhappy when a rule that consumes a file generated by
another rule doesn't depend directly on that rule.

This change also quiets output from invoking Dart to follow the
rule of GN builds that a successful build generates no output.

Review URL: https://codereview.chromium.org/2446473002 .
2016-10-22 00:05:39 -07:00
William Hesse edc7ca7517 Don't run pkg tests on GN builders
BUG=
R=sortie@google.com

Review URL: https://codereview.chromium.org/2442703002 .
2016-10-21 12:53:35 +02:00
Siva Annamalai af4d246ef1 Cleanup options for use of application snapshots
- unified kAppAfterRun and kAppJITAfterRun to kAppJIT
 - adjusted the test configuration to make dart2app and dart2appjit to mean
   the same
 - delete GenerateFullSnapshot function as it is not used anymore

R=rmacnak@google.com

Review URL: https://codereview.chromium.org/2429023002 .
2016-10-19 17:42:01 -07:00
Florian Schneider b85f900cb7 test.dart: Push all required files to Android device when running AOT tests
Some tests have resources in sub-directories (e.g. certificates/)

Remove status file lines for tests that are now passing.

Fixes #26376,#26377.

R=rmacnak@google.com

Review URL: https://codereview.chromium.org/2434123002 .
2016-10-19 16:50:23 -07:00
Stephen Adams c9c3c203c1 Minor tweaks to dart:html for better dart2js codegen
- Allow 'document' to be reused (GVN-ed).
- Allow inlining of 'new Comment'.
- 'new Text' and 'new Comment' have no effects.

BUG=
R=alanknight@google.com, sigmund@google.com

Review URL: https://codereview.chromium.org/2422293002 .
2016-10-17 13:35:17 -07:00
Zachary Anderson c1b1151f54 GN: Fix builder test script
Review URL: https://codereview.chromium.org/2423783002 .
2016-10-16 15:18:54 -07:00
Ryan Macnak 572eb0ce7a Apparently co19 tests have their own separate annotation parsing.
Review URL: https://codereview.chromium.org/2419613007 .
2016-10-14 16:43:20 -07:00
Ryan Macnak 656964107b Update AOT Android harness for single-file app snapshots.
R=fschneider@google.com

Review URL: https://codereview.chromium.org/2419183002 .
2016-10-14 16:23:19 -07:00
Ryan Macnak fe04737a77 Add test directive to include other files used by a test in its compiled output directory.
Fixes #27591

R=fschneider@google.com

Review URL: https://codereview.chromium.org/2423593002 .
2016-10-14 16:11:25 -07:00