Commit graph

4226 commits

Author SHA1 Message Date
Martin Kustermann abd77cab64 Refactor kernel-related status files
To make it clear in the status file whether a crash (or other issues) are coming
from the dartk compiler or from the vm, this CL introduces new status file
markers which are the normal markers prefixed with Dartk (e.g. DartkCrash).

Furthermore this CL groups common failures
  * compiler: dartk & dartkp
  * runtime: vm & dart_precompiled
into shared status file blocks, thereby deduplicating failures (which removes around 500 lines).

R=vegorov@google.com

Review URL: https://codereview.chromium.org/2543973002 .
2016-12-01 13:48:35 +01:00
Asger Feldthaus 04c66f8bab Support --strong when running dartk from test.py.
BUG=
R=kmillikin@google.com

Review URL: https://codereview.chromium.org/2536143003 .
2016-11-30 08:25:53 +01:00
Zachary Anderson 2644362215 GN: Reset default for fallback root certs to false.
R=johnmccutchan@google.com, rmacnak@google.com

Review URL: https://codereview.chromium.org/2536273002 .
2016-11-29 12:24:48 -08:00
keertip bb74bc6a49 fix arguments for dartdoc run
BUG=
R=whesse@google.com

Review URL: https://codereview.chromium.org/2534173003 .
2016-11-29 08:43:14 -08:00
William Hesse 6f7005ee71 Update status for co19 tests on browsers.
BUG=
R=kustermann@google.com

Review URL: https://codereview.chromium.org/2538443002 .
2016-11-28 16:32:41 +01:00
Martin Kustermann aaec324001 Add more flags to the blacklist of reproduction commands
Currently failures on the buildbot will look for example like this:

Short reproduction command (experimental):
    python tools/test.py -cdartk -t120 --write-debug-log --write-test-outcome-log --copy-coredumps --exclude-suite pkg language/transitive_private_library_access_test

But developers only would like to see

    python tools/test.py -cdartk -t120 language/transitive_private_library_access_test

R=whesse@google.com

Review URL: https://codereview.chromium.org/2532123002 .
2016-11-28 14:18:27 +01:00
Asger Feldthaus 8f12489839 Add --verify-ir flag to dartk and test.py.
This replaces the old --sanity-check flag from dartk. Some files have
been renamed to avoid the wording "sanity check".

Compared to --sanity-check, the following checks have been added:
- variables are not referenced out of scope
- variables are not redeclared
- class type parameters are not referenced from static context

A unit test has been added to check that the verifier rejects certain
invalid ASTs.

BUG=
R=kmillikin@google.com

Review URL: https://codereview.chromium.org/2531873002 .
2016-11-28 12:21:19 +01:00
Sergey G. Grekhov 76425f920f Update co19 test suite dependency to commit f05d5aee5930
co19 test suite updated to commit f05d5aee5930bfd487aedf832fbd7b832f502b15 of dart-lang/co19 repository, dated Nov 21 2016.

Status files are updated for this roll.
2016-11-25 12:06:39 +01:00
William Hesse 81b71e74f8 Revert "Roll co19 tests and status files"
This reverts commit 27883bfbc0.
We will reland this once the status file updates are (nearly) perfect.

BUG=
R=sortie@google.com

Review URL: https://codereview.chromium.org/2530863002 .
2016-11-24 15:19:31 +01:00
William Hesse 27883bfbc0 Roll co19 tests and status files
This updates co19 to commit 2e98931a4d40781110220d4b2d131efa6fc4669d
Merge branch 'co19patch' into rebased_co19_patch

Sort status lines ignoring alphabetical order

Status files updated according lates buildbot run results

Status files updated according the latest Chrome run

dart2js files updated for FF and Chrome on Linux

DEPS and VM status files updated

status file updated according Linux run

Status files updated according latest Dartium run

dart2js status file updated according the last tests run on FF

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

Analyzer and VM status files are updated according last versions of co19 and sdk

BUG=
R=sortie@google.com

Review URL: https://codereview.chromium.org/2528953002 .
2016-11-24 15:01:53 +01:00
Ryan Macnak 8d57e3d540 Enable SecureSocket on Fuchsia using BoringSSL and compiled-in certificates from dart-sdk/root_certificates.
Implement OS::CurrentTimeMicros in terms of gettimeofday.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2519133005 .
2016-11-23 10:48:18 -08:00
Asger Feldthaus ce428a1f20 Complete merge of kernel repo into SDK.
This removes third_party/pkg/kernel and changes dependencies to
refer to pkg/kernel instead.

Some status files are updated to reflect new test outcomes.
2016-11-23 12:46:29 +01:00
Martin Kustermann b1c04f0538 Avoid random stacktraces being printed from tools/test.py during test runs
Previously the testing script was just printing interleaved stack traces with
all the other output. Which means it's not associatable with a single test and
is highly confusing!

This CL associates the stack trace information of tests which time out to the
particular test which timed out.

R=whesse@google.com

Review URL: https://codereview.chromium.org/2524733004 .
2016-11-23 08:39:27 +01:00
Vyacheslav Egorov 2cb8640ac1 Kernel: fix -c dartkp -r dart_precompiled testing configuration.
Pass full snapshot path to the dart_precompiled_runtime executable.

BUG=
R=kustermann@google.com

Review URL: https://codereview.chromium.org/2517243004 .
2016-11-22 19:34:58 +01:00
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