Commit graph

4364 commits

Author SHA1 Message Date
John McCutchan 6c0a2af761 Have observatory_tool always invoke pub with no HTTP_PROXY environment variable set
Fixes #28865

R=zra@google.com

Review-Url: https://codereview.chromium.org/2724483003 .
2017-02-28 07:59:55 -08:00
Zach Anderson 7af47d5ea9 [test.dart]: Fix output encoding in case of non-utf8 test output
R=kustermann@google.com

Review-Url: https://codereview.chromium.org/2721683002 .
2017-02-28 07:50:28 -08:00
Florian Schneider 74d2f37a86 Improve ctrl-C handling in ninja.py.
This enables interrupting by pressing ctrl-C.

BUG=
R=zra@google.com

Review-Url: https://codereview.chromium.org/2725493002 .
2017-02-27 15:38:45 -08:00
Zachary Anderson 6c08487f47 [Fuchsia] Adds an option to create_sdk.py to skip binary stripping
create_sdk.py tries to use the host 'strip' instead of the
'strip' from the build's toolchain.

fixes #28900

R=whesse@google.com

Review-Url: https://codereview.chromium.org/2720613004 .
2017-02-27 15:35:11 -08:00
Zachary Anderson 1f0168b95c Adds tools/ninja.py that runs goma builds in parallel
This CL adds a script tools/ninja.py that runs Goma enabled builds
in parallel. Non-goma builds are run serially, as before.

Conflating this feature with gyp support in tools/build.py
got to be a bit of a mess, which is why this is split off as a
separate script. This script can replace build.py after gyp support
is removed.

With a warm goma:
$ time ./tools/build.py -m debug,release -a x64,ia32 runtime runtime_precompiled
...
real	4m25.627s
user	3m30.740s
sys	1m3.873s

$ ./tools/ninja.py -m debug,release -a x64,ia32 runtime runtime_precompiled
...
The build took 108.900 seconds

R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2712743009 .
2017-02-27 10:55:01 -08:00
Vyacheslav Egorov b026aed3cf Remove dartk and DFE workers support from testing scripts and kernel-service.
We only support running -c dark and -c dartkp configuration through Kernel isolate and fasta in non-batch mode.

R=kustermann@google.com
BUG=

Review-Url: https://codereview.chromium.org/2721543003 .
2017-02-27 13:31:03 +01:00
Vyacheslav Egorov de56824429 Switch -c dartk/dartkp configuration to use fasta.
R=kustermann@google.com
BUG=

Review-Url: https://codereview.chromium.org/2721443002 .
2017-02-26 20:39:02 +01:00
Stephen Adams 14c7c3c556 Redo "Refined types for most HtmlElement factory constructors"
Fix: ShadowElement is not always present.

Original:
Committed: b7b12b564a
Reverted:  963df1e3e1

BUG=

Review-Url: https://codereview.chromium.org/2718713003 .
2017-02-24 14:28:58 -08:00
Stephen Adams 963df1e3e1 Revert "Refined types for most HtmlElement factory constructors"
Need to fix ShadowElement

TBR=alanknight@google.com

Review-Url: https://codereview.chromium.org/2710323004 .
2017-02-24 14:15:37 -08:00
Stephen Adams b7b12b564a Refined types for most HtmlElement factory constructors
The body of new DivElement() is marked as returning a DivElement, instead of inferred to return Element.
The more precise receiver type allows svg polyfills to be excluded, allowsing the HtmlElement methods to be identified as the single target and inlined.

This tends to improve the code generated for idioms like

    new DivElement()..classes.add('foo')

    var e1 = new DivElement();
    e1.children.add(e2);

BUG=
R=alanknight@google.com

Review-Url: https://codereview.chromium.org/2705213003 .
2017-02-24 11:23:06 -08:00
Martin Kustermann eb903b955e Add more debugging support to coredump archiving code
It seems sometimes we cannot find the coredumps but we are unable to
reproduce it (even on the bots). So let's add some more debugging
information.

R=vegorov@google.com

Review-Url: https://codereview.chromium.org/2713193002 .
2017-02-24 17:06:28 +01:00
Martin Kustermann cc45d27027 Disable usage of site_config boto file
R=vegorov@google.com

Review-Url: https://codereview.chromium.org/2710333004 .
2017-02-24 17:04:40 +01:00
Martin Kustermann f3bef9983b Convert arguments to ''.join() to strings in tools/utils.py
R=vegorov@google.com

Review-Url: https://codereview.chromium.org/2710333003 .
2017-02-24 12:23:26 +01:00
Vyacheslav Egorov cb530221cf Pass patched_sdk path down to fasta as an Uri.
R=kmillikin@google.com
BUG=

Review-Url: https://codereview.chromium.org/2719453002 .
2017-02-24 11:08:03 +01:00
Vyacheslav Egorov 0e11683bd8 Fix the placement of the platform.dill file generated by patch_sdk.
R=kmillikin@google.com
BUG=

Review-Url: https://codereview.chromium.org/2716793003 .
2017-02-24 10:45:54 +01:00
Ben Konyi 2b81624bb2 Revert "Revert "[test.dart] Complain if there is non-utf8 formatted data in test output""
This reverts commit 7af8f320a7.

TBR=zra@google.com
BUG=

Review-Url: https://codereview.chromium.org/2710603009 .
2017-02-23 17:08:15 -08:00
Ben Konyi 7af8f320a7 Revert "[test.dart] Complain if there is non-utf8 formatted data in test output"
This reverts commit c294dec5e6.

TBR=zra@google.com
BUG=

Review-Url: https://codereview.chromium.org/2705213006 .
2017-02-23 16:57:31 -08:00
Zach Anderson c294dec5e6 [test.dart] Complain if there is non-utf8 formatted data in test output
related #28872

R=ahe@google.com

Review-Url: https://codereview.chromium.org/2710003005 .
2017-02-23 14:15:26 -08:00
Martin Kustermann 8b7f7b242c Temporarily suppress fasta compiler hints/warnings/errors during compilation of platform.dill for the patched_sdk target
R=ahe@google.com

Review-Url: https://codereview.chromium.org/2711963002 .
2017-02-23 20:01:15 +01:00
Vyacheslav Egorov 1f00947ea8 In patch_sdk when passing --packages down to fasta turn it into an URI.
R=kustermann@google.com
BUG=

Review-Url: https://codereview.chromium.org/2709033005 .
2017-02-23 17:38:23 +01:00
Vyacheslav Egorov 80c3247f99 Make patch_sdk step invoke fasta's compile_platform to generate patched_sdk/platform.dill.
This is where Kernel isolate expects to find it currently.

This is a preparation for flipping DFE_USE_FASTA to true.

R=ahe@google.com, kustermann@google.com

Review-Url: https://codereview.chromium.org/2710943006 .
2017-02-23 17:12:45 +01:00
Devon Carew 1da570c215 Remove and hide analyzer cli flags.
BUG=
R=brianwilkerson@google.com

Review-Url: https://codereview.chromium.org/2713723003 .
2017-02-22 14:09:41 -08:00
Peter von der Ahé b13b8d872a Add YAML file with VM patch file information.
R=vegorov@google.com

Review-Url: https://codereview.chromium.org/2698003003 .
2017-02-21 13:56:28 +01:00
Devon Carew 6e9adf2624 Remove older deprecated flags; more cleanup to the cli help args.
BUG=
R=brianwilkerson@google.com

Review-Url: https://codereview.chromium.org/2692203010 .
2017-02-17 13:30:37 -08:00
Vyacheslav Egorov 364b8575de VM: Restore old implementation of ClassID.cid* fields.
When we were implementing bootstraping from Kernel in 23fd1a184b we switched ClassID.cid* fields to become 'static final' lazily initialized fields instead of constants as they were before. This was mainly done to allow dartk compile patched_sdk - because these fields were previously injected in runtime and never existed in the text form.

However this regressed code quality for app-jit and app-aot snapshots because 'static final' fields are reset by snapshotting so resulting code contains InitStaticField and LoadStaticField instructions.

BUG=
R=kustermann@google.com

Review-Url: https://codereview.chromium.org/2693863006 .
2017-02-16 17:43:42 +01:00
Martin Kustermann fa36b34887 Add dart_bootstrap/gen_snapshot/dart_precompiled_runtime to task_kill.py (by default)
On Windows we had hanging dart_bootstrap.exe which prevented builds. So
with this change will we ensure to kill these leaked processes if they
occur.

R=fschneider@google.com

Review-Url: https://codereview.chromium.org/2698943002 .
2017-02-16 12:48:59 +01:00
William Hesse 389fa95320 Remove two flags from dartanalyzer running in test.dart
BUG=
R=devoncarew@google.com

Review-Url: https://codereview.chromium.org/2691393004 .
2017-02-16 01:55:59 +01:00
Ryan Macnak 1ed4c27c01 Roll Dartium blink to "Update invocation of create_snapshot_bin.py."
Review-Url: https://codereview.chromium.org/2694413004 .
2017-02-15 14:42:44 -08:00
Jens Johansen 7b11ede8c2 [Kernel] Replace --use-dfe with --no-dfe
Replace --use-dfe (defaulting to true) with --no-dfe (defaulting to false)
so that it is still used by default, but it is actually possible to
_not_ run with the kernel isolate and instead use dartk.

BUG=
R=vegorov@google.com

Review-Url: https://codereview.chromium.org/2689213006 .
2017-02-15 11:08:31 +01:00
Sigmund Cherem 91796be231 Add mode to test.dart to run dart2js with kernel, and include initial set of
failures in status files

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

Review-Url: https://codereview.chromium.org/2688413004 .
2017-02-14 14:37:23 -08:00
Martin Kustermann affb786582 Enable support for coredump archiving on windows
BUG=https://github.com/dart-lang/sdk/issues/28648
R=vegorov@google.com

Review-Url: https://codereview.chromium.org/2692883002 .
2017-02-14 16:34:31 +01:00
Martin Kustermann d93928a6ce Make dartk-{release,debug} builders work properly again
R=vegorov@google.com

Review-Url: https://codereview.chromium.org/2696613003 .
2017-02-14 14:01:58 +01:00
Peter von der Ahé cb10fc984b Add a new kind of suite to ease test.dart integration.
R=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/2693893002 .
2017-02-14 10:45:44 +01:00
Kevin Moore cbdf0aec6f DEPS: Updated to latest dart2js_info
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2682083006 .
2017-02-10 14:34:41 -08:00
Zach Anderson 8a9a98073f [dart:io] flush() stdin before close()ing
Calls to close() on an IOSink do not imply that writes buffered by the
underlying StreamConsumer have been flushed. This CL adds a note
indicating this to the IOSink docs, and adds calls to flush() before
calls to close() for some calls to stdin.close() for spawned
processes in our tests.

related #28737

R=fschneider@google.com

Review-Url: https://codereview.chromium.org/2687963003 .
2017-02-10 09:55:16 -08:00
Martin Kustermann a00684d6c0 Run pub get with --verbose to debug flaky timeouts on pkg tests
BUG=https://github.com/dart-lang/sdk/issues/28734
R=vegorov@google.com

Review-Url: https://codereview.chromium.org/2683353003 .
2017-02-10 13:41:51 +01:00
Martin Kustermann be2942a279 Significantly reduce the timeout app_jit is given on the buildbot
Currently tests in the app_jit-debug configuration are given 16 minutes
timeout. This caused us to run into a global timeout of test.dart (it's
"debug timer" which is set to 10 minutes of inactivity).

Even the slowest tests run in the app_jit-debug configuration within around 1:30 m on the buildbot.

This CL changes the timeout from 16 minutes to 4 minutes.

R=vegorov@google.com

Review-Url: https://codereview.chromium.org/2685303002 .
2017-02-10 12:56:44 +01:00
Florian Schneider eccfcdf787 Remove left-over from bad merge.
BUG=
R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2687943003 .
2017-02-09 16:17:28 -08:00
Florian Schneider 20e736e6ca test.dart: Dump stack traces for child processes on timeout.
This should help flaky timeout debugging for tests that spawn child processes.

R=zra@google.com

Review-Url: https://codereview.chromium.org/2682373004 .
2017-02-09 15:34:24 -08:00
William Hesse eb0502e62d Add "Chrome Helper" to taskkill script on macos
BUG=
R=terry@google.com

Review-Url: https://codereview.chromium.org/2684993007 .
2017-02-09 20:09:19 +01:00
Terry Lucas a25be8f890 Update DEPS to latest WebKit change - fix iframe debugging.
TBR=jacobr@google.com

Review-Url: https://codereview.chromium.org/2687533009 .
2017-02-09 09:25:26 -08:00
Terry Lucas 338a0cdc33 Updated to point to latest CL (1/24) in WebKit.
TBR=jacobr@google.com,whesse@google.com

Review-Url: https://codereview.chromium.org/2679423005 .
2017-02-09 06:09:39 -08:00
Vyacheslav Egorov d5a11f3d34 [Kernel] Enable Kernel Isolate to use Fasta instead of DartK.
We are not switching yet, but now everybody can try fasta by doing:

$ dart -DDFE_USE_FASTA=true --dfe=utils/kernel-service.dart hello.dart

Note that when using fasta we expect that patched_sdk contains platform.dill
Kernel binary containing compiled patched sdk. This file can be obtained by
doing:

$ export DART_AOT_SDK=<path-to-patched_sdk>
$ dart pkg/front_end/lib/src/fasta/bin/compile_platform.dart \
  ${DART_AOT_SDK}/platform.dill

We are also adding --use-fasta to testing script to allow end-to-end testing
of fasta (though platform.dill file needs to be generated manually prior to
running tests):

$ tools/test.py -c dartk -m release -a x64 --nobatch --use-fasta

Current test status:

$ tools/test.py -c dartk -m release -a x64 --nobatch --use-fasta
[27:34 | 100% | +12566 | - 1941]

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

Review-Url: https://codereview.chromium.org/2684943003 .
2017-02-08 16:48:35 +01:00
Florian Schneider 973adc3ea5 Fix failure of test_runner_test on Windows.
test_runner_test does not set up the configuration like a regular test
run with test.dart.

R=zra@google.com

Review-Url: https://codereview.chromium.org/2686453003 .
2017-02-07 11:34:49 -08:00
Florian Schneider f1d76fce1c test.dart: Find cdb.exe automatically from depot_tools when running Windows tests
cdb is used to dump a stack trace when a test times out.

Instead of relying on cdb.exe being in the PATH, find it from the installed
depot_tools.

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

Review-Url: https://codereview.chromium.org/2672243005 .
2017-02-07 10:21:04 -08:00
Bob Nystrom e826303741 Get rid of --use-repository-packages and --use-public-packages.
The former doesn't seem to tell us anything useful, and is broken. The
latter is no longer needed as a flag without the former. The pkgbuild
suite implies it and other suites don't support it.

R=whesse@google.com

Review-Url: https://codereview.chromium.org/2673133002 .
2017-02-06 10:40:53 -08:00
Alan Knight de05077537 Revert "Add Selection.toString() calling the native method"
This reverts commit 01e6e00499.

BUG=

Review URL: https://codereview.chromium.org/2678593002 .
2017-02-03 17:02:06 -08:00
Alan Knight b1552f9ef9 Revert "Re-submit Range.toString() and test status changes"
This reverts commit 95d409e3ed.

BUG=

Review URL: https://codereview.chromium.org/2678543002 .
2017-02-03 13:05:18 -08:00
Alan Knight 01e6e00499 Add Selection.toString() calling the native method
BUG=
R=terry@google.com

Review URL: https://codereview.chromium.org/2669103003 .
2017-02-03 10:24:18 -08:00
Alan Knight 95d409e3ed Re-submit Range.toString() and test status changes
https://codereview.chromium.org/2632363002
https://github.com/dart-lang/sdk/pull/28376

R=whesse@google.com

Review URL: https://codereview.chromium.org/2672843003 .
2017-02-03 09:55:59 -08:00