Commit Graph

5874 Commits

Author SHA1 Message Date
Ryan Macnak fcd6333e3c Update the test harness to GN's location for the host's dart_bootstrap.
R=fschneider@google.com

Review-Url: https://codereview.chromium.org/2623283004 .
2017-01-11 18:42:48 -08:00
Florian Schneider bef4967ea1 Remove dart_noopt and related parts from the VM.
dart_noopt is not needed anymore because we have testing
and builbot integration of the real precompilation pipeline in place now.

Fixes #24569
Fixes #25726
Fixes #25845

R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2624393002 .
2017-01-11 16:55:55 -08:00
Zachary Anderson cf069d2dfa Make build.py ensure that goma is started if it is enabled
R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2620113002 .
2017-01-10 15:09:34 -08:00
Terry Lucas 4b497fb319 Fixed checked mode error for resolvePackageUri.
TBR=asiva@google.com

Review-Url: https://codereview.chromium.org/2626643003 .
2017-01-10 09:00:16 -08:00
William Hesse 3f7a85e068 Remove 'pkg' from the default list of test suites
Allow 'exclude-suite' option of test.dart to include a suite not on
the default list, so existing '--exclude-suite=pkg' options are
ignored. This change does not need to be reversed later.

BUG=https://github.com/dart-lang/sdk/issues/28237
R=kustermann@google.com

Review-Url: https://codereview.chromium.org/2610943002 .
2017-01-10 16:51:22 +01:00
Terry Lucas 559ae993d1 Added VMLibraryHooks setup for Dartium to support resolvePackageUri.
BUG=25594
R=asiva@google.com

Review-Url: https://codereview.chromium.org/2611353002 .
2017-01-10 07:25:10 -08:00
Josh Triplett 2270d7c791 tools/create_pkg_manifest.py: Sort manifest entries for reproducibility (#28310)
tools/create_pkg_manifest.py currently outputs manifest entries in hash
order, which results in spurious reordering on updates, making it harder
to see the actual changes.  Sort the manifest entries, to make the
output reproducible.

This will result in a large diff for the next manifest update, but every
subsequent update should have a minimal diff showing only the actual
changes, with no spurious reordering.
2017-01-09 19:34:27 -08:00
Zachary Anderson 0962a0f6f5 GN: Add environment variables for sysroot, toolchain
Also accept a map instead of a single path for each so
the toolchain/sysroot can be set per-arch.

R=johnmccutchan@google.com

Review-Url: https://codereview.chromium.org/2625503002 .
2017-01-09 15:53:21 -08:00
Terry Lucas 510fd7d0db Updated to latest WebKit change
TBR=leafp@google.com,vsm@google.com

Review-Url: https://codereview.chromium.org/2625563002 .
2017-01-09 14:43:26 -08:00
William Hesse 4e6ac19b3c build.py should only use target 'All' on xcode
BUG=
R=leafp@google.com, ahe@google.com

Review-Url: https://codereview.chromium.org/2622543002 .
2017-01-09 13:21:02 +01:00
Leaf Petersen 7ab0daeedf Make EventStreamSubscription DDC safe.
EventStreamSubscription.listen does a cast which is only working in
DDC because we're ignoring the failure.  This wraps the listener to
check the argument rather than casting the function.  Also picks up a
few misc changes to the main SDK that hadn't been merged into DDC.

BUG=
R=jacobr@google.com

Review-Url: https://codereview.chromium.org/2609633002 .
2017-01-09 04:13:36 -08:00
Zachary Anderson 632b744046 GN: Make GN the default
Ryan landed a fix for #28200 so we can try to land this again.

Tests on Debug builds will be slower until

https://codereview.chromium.org/2614003003/

lands, but we didn't notice an uptick in bot timeouts when we tried
this before, so I suspect the bots will continue to be unaffected.

R=whesse@google.com

Review-Url: https://codereview.chromium.org/2617803003 .
2017-01-06 15:35:54 -08:00
William Hesse cfcaf39538 Add to FAKE_COMMITS to trigger github mirror 2017-01-06 15:31:51 +01:00
Siva Annamalai b583d74608 Add flutter_engine runtime to the test script so we can run standard dart tests from the test suite against the flutter engine on linux/x64
The test suite can be invoked as :
tools/test.py -rflutter --packages=<path_to_packages_dir>/.packages --flutter=<path_to_flutter_engine_workspace>/sky-shell --exclude-suite=pkg

Currently the sky_shell executable does not yet support the proper return
codes:
Success - 0
API error - 253
Compilation error - 254
Unhandled error - 255
Once this is fixed we can start running the tests against our
dart/flutter engine bleeding edge build bot.

R=zra@google.com

Review-Url: https://codereview.chromium.org/2602783002 .
2017-01-05 14:41:27 -08:00
Martin Kustermann 8347d26d7e Make task_kill.py try to dump stacks of left-over/hanging processes
R=vegorov@google.com

Review-Url: https://codereview.chromium.org/2613713004 .
2017-01-04 16:59:54 +01:00
Stephen Adams 20a9824605 Force inlining for _ElementCssClassSet.add() / .remove()
BUG=
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2614593002 .
2017-01-03 17:23:00 -08:00
Zachary Anderson 375322d3ab GN: Add option to build with TSAN
fixes #28216

R=asiva@google.com

Review-Url: https://codereview.chromium.org/2614493002 .
2017-01-03 14:37:27 -08:00
Bob Nystrom 87139576e9 A little more work on the DDC bot script.
It runs and passes on my Mac now even when I don't have a local /gen/
directory, which was the main missing piece.

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

Review-Url: https://codereview.chromium.org/2602443002 .
2017-01-03 14:36:46 -08:00
William Hesse 31e96a85c9 Update package_resolver version in DEPS
BUG=https://github.com/dart-lang/package_resolver/issues/1
R=kustermann@google.com

Review-Url: https://codereview.chromium.org/2606353002 .
2017-01-03 15:00:16 +01:00
William Hesse 2980316246 Update FAKE_COMMITS file to trigger github mirror
The mirror gets triggered by commits to github, and may have had a temporary outage.
2017-01-03 11:45:43 +01:00
Zachary Anderson 02447e5b80 Revert "GN: Make GN the default"
This reverts commit ca864e93a1.

Reverting for unforseen failures in dart2js testing.

Review-Url: https://codereview.chromium.org/2599673004 .
2016-12-22 13:43:01 -08:00
Zachary Anderson ca864e93a1 GN: Make GN the default
R=whesse@google.com

Review-Url: https://codereview.chromium.org/2592153002 .
2016-12-22 12:10:27 -08:00
Zachary Anderson 566ed7ff55 GN: Fix armsimdbc target. Add armsimdbc64
R=johnmccutchan@google.com

Review-Url: https://codereview.chromium.org/2596333002 .
2016-12-22 10:24:24 -08:00
Kevin Millikin d9f80a9ac1 Turn the VM's dart:typed_data into a patch
Before, the VM's dart:typed_data was a complete replacement of the SDK's
dart:typed_data implementation instead of a patch.  This is unlike all
the other SDK libraries.  This difference requires special-casing for
dart:typed_data in tools that handle the SDK libraries (e.g., the
Analyzer's patching support, the GN build).

This change makes dart:typed_data back into a patch to the SDK's
implementation.  It reintroduces a distinction between abstract
interface and concrete implementation classes, so there are more
classes.

BUG=
R=fschneider@google.com, vegorov@google.com

Committed: https://github.com/dart-lang/sdk/commit/a9b906d319c32525a0600c75c008c92753591d86
Review-Url: https://codereview.chromium.org/2571563005 .
2016-12-22 10:57:21 +01:00
William Hesse 3adfc397ba Dummy commit (no changes) to trigger mirroring
BUG=
TBR=kasperl@google.com

Review-Url: https://codereview.chromium.org/2601433002 .
2016-12-22 10:43:54 +01:00
Jacob Richman 3659aaf181 Fix bug in Blob creation from workers.
Fixes https://github.com/dart-lang/sdk/issues/28155

BUG=

Review-Url: https://codereview.chromium.org/2592813003 .
2016-12-21 08:45:48 -08:00
Kevin Millikin f97440848f Revert "Turn the VM's dart:typed_data into a patch"
This reverts commit a9b906d319.

A lot of things were broken by the changes to implementation class
names.

BUG=

Review-Url: https://codereview.chromium.org/2598603002 .
2016-12-21 12:28:33 +01:00
William Hesse edbcd63813 Update pub to revision d7649be15213c43669a40c33af516d8eb210e876
BUG=
R=sortie@google.com

Review-Url: https://codereview.chromium.org/2590273003 .
2016-12-21 11:20:20 +01:00
Kevin Millikin a9b906d319 Turn the VM's dart:typed_data into a patch
Before, the VM's dart:typed_data was a complete replacement of the SDK's
dart:typed_data implementation instead of a patch.  This is unlike all
the other SDK libraries.  This difference requires special-casing for
dart:typed_data in tools that handle the SDK libraries (e.g., the
Analyzer's patching support, the GN build).

This change makes dart:typed_data back into a patch to the SDK's
implementation.  It reintroduces a distinction between abstract
interface and concrete implementation classes, so there are more
classes.

BUG=
R=fschneider@google.com

Review-Url: https://codereview.chromium.org/2571563005 .
2016-12-21 08:34:52 +01:00
Jacob Richman 7f26211c26 Correct handling of cross-frame functions in ddc.
Misc fixes of dart:js support on ddc.
Work around issue with Blob constructor on ddc.
Fix incorrect dart:js test on dart2js (fixes https://github.com/dart-lang/sdk/issues/26197)

BUG=
R=alanknight@google.com, leafp@google.com, rnystrom@google.com

Review-Url: https://codereview.chromium.org/2587203002 .
2016-12-19 15:00:55 -08:00
Asger Feldthaus 2e718613aa Add 'self_check' runtime for running self-checking unit tests
Some of the kernel unit tests can now be run using:

  tools/test.py -cdartk -rself_check language co19

This will search the pkg/ folder for files matching *_self_check.dart
and run each program with the compiled output as argument. If there is
no compiler, the test case itself is given as argument. These testers
are always run in batch-mode.

This type of test has no expected output, but is intended to check
itself by testing that certain invariants are not violated while
processing the given data set.

The 'self_check' runtime is not specifically tied to kernel,
although only kernel is using it at the moment.

There is also a new option --skip-compilation which skips the
compiler step.  It doesn't interact nicely with the status files,
but can still be useful for a quick offline test.

Current limitations:
- All self-check tests are treated as the same test case. If one fails,
  the remaining self-check testers don't run for that input.
- There is no way to run a subset of the self-check tests, or filter
  them based on what compiler was used.
- Tests that are expected to fail in the compiler show up as
  errors when skipping compilation.

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

Review-Url: https://codereview.chromium.org/2549793002 .
2016-12-15 13:07:03 +01:00
Asger Feldthaus 31d5860c81 Enable strong-mode test suite for dartk.
This adds status files for skipping tests that are not yet strong, and
a status file with the tests that fail with the dartk-vm configuration.

To test:

  tools/test.py -cdartk --strong {language,lib,corelib}_strong

BUG=
R=kmillikin@google.com

Review-Url: https://codereview.chromium.org/2583453002 .
2016-12-15 12:50:08 +01:00
Martin Kustermann e9f0db2ba1 Start re-trying dartk compilations if they crash
Every crash of a dartk invocation will cause 1 more re-try. This is independent
of whether the crash was caused by the entire batch runner or just that single
compilation caused an exception.

The unfortunate side-effect of this is that ./tools/test.py will now print
warnings every time it retries the command.

R=vegorov@google.com

Review-Url: https://codereview.chromium.org/2576693002 .
2016-12-15 12:37:24 +01:00
Kevin Millikin 9e0a4bc2df Do not generate a duplicate ExternalName class
In https://github.com/dart-lang/sdk/commit/f7b6f0cf1c188bbc375de2a37f9a4129cb845428
some of the VM's libraries were modified to work the the analyzer's
patching support.  This requires the class ExternalName, which used as
an annotation, to be present in the SDK.

Before: it was injected by dart code as part of a build step.  Now, it
just appears as code in the SDK and we should not inject a (duplicate)
definition.

BUG=
R=kustermann@google.com

Review-Url: https://codereview.chromium.org/2580783002 .
2016-12-15 11:24:27 +01:00
Zachary Anderson 7f55ad8b86 Fuchsia: Allows building the full SDK for host and target.
R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2571713004 .
2016-12-13 13:02:52 -08:00
Zachary Anderson ccfafee023 Make list_files.py and list_dart_files.py return absolute paths for GN
This makes doing an SDK build in the Fuchsia tree easier.

The previous attempt at this change failed in gyp builds targeting xcode.
They failed because input lists for actions of the same target (e.g. the
actions for dartanalyzer) are merged and de-duped when the lists contain
relative paths, but merged and *not* de-duped when the lists contain
absolute paths. gyp rejects xcode files that it generated itself
when they contain duplicate entries.

This CL works around that bug, by using absolute paths in the GN build
and keeping relative paths in the gyp build.

R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2567213002 .
2016-12-13 10:01:28 -08:00
Ryan Macnak 6051488ad9 Cleanup dead compiler and runtime aliases from the test framework.
R=fschneider@google.com

Review-Url: https://codereview.chromium.org/2570633002 .
2016-12-12 13:42:35 -08:00
Zachary Anderson b873e2b8e3 Revert "Make list_files.py and list_dart_files.py return absolute paths"
This reverts commit a858542c89.

mac gyp build fails.

Review-Url: https://codereview.chromium.org/2574523002 .
2016-12-12 13:14:53 -08:00
Zachary Anderson a858542c89 Make list_files.py and list_dart_files.py return absolute paths
This makes doing an SDK build in the Fuchsia tree easier

R=johnmccutchan@google.com

Review-Url: https://codereview.chromium.org/2564413004 .
2016-12-12 13:09:26 -08:00
Zachary Anderson 9c77f4af2f GN: Pass a better -j option when using goma
When using goma, we can pass a big -j to ninja.

R=asiva@google.com, floitsch@google.com, whesse@google.com

Review-Url: https://codereview.chromium.org/2559303002 .
2016-12-09 22:11:55 -08:00
Martin Kustermann 6a30db5997 Remove sub-errortype DartkMissingCompileTimeError: Since there is a very big overlap between missing CTEs from dartk and from dart_bootstrap
R=vegorov@google.com

Review-Url: https://codereview.chromium.org/2563983002 .
2016-12-09 10:55:03 +01:00
Zachary Anderson 82f3ca2b1d Fuchsia: Re-land build of VM with Observatory with better debug output.
Review URL: https://codereview.chromium.org/2555813004 .
2016-12-07 13:01:59 -08:00
William Hesse b214f5fa7e Start working on Version 1.22 of Dart
BUG=
R=floitsch@google.com

Review URL: https://codereview.chromium.org/2552373003 .
2016-12-07 18:03:20 +01:00
Zachary Anderson 571bbaade0 Fuchsia: Adds a script to make a jiri manifest for third_party/pkg stuff
Building the Observatory and the full SDK requires the third_party Dart
packages that we DEPS into a standalone SDK checkout. Fuchsia uses jiri
manifests rather than DEPS files, so this CL adds a script that
translates the DEPS for third_party/pkg stuff into a jiri manifest.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2548173002 .
2016-12-06 13:45:24 -08:00
Zachary Anderson 63cb4565d7 Fuchsia: Adds a script to download the prebuild SDK
The Fuchsia world doesn't run gclient runhooks or use depot_tools so
the advice is to check in a custom script to pull the prebuilt SDK
from google storage.

R=asiva@google.com, phosek@chromium.org, rmacnak@google.com

Review URL: https://codereview.chromium.org/2541123006 .
2016-12-02 13:18:54 -08:00
William Hesse 191184ba3d Remove dead code with analyzer warning in test scripts
BUG=

Review URL: https://codereview.chromium.org/2548773002 .
2016-12-02 11:29:45 +01:00
Ryan Macnak 1ebeb79942 Remove runtime 'dart_app' as it became identical to 'vm'.
Merge compiler 'dart2app' and 'dart2appjit' and rename to 'app_jit' since they came to mean the same thing.

Update status files to reflect these changes.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2541533004 .
2016-12-01 16:47:33 -08:00
Jonas Termansen c0172aba48 Don't store git commit in observatory version string
The observatory assets tarball would be different every time due to the
version string, which makes it compress to a different size. The size
changes would then move the program data around, making it much more
difficult to determine if dart builds of different revisions are
actually identical.

Google Analytics doesn't need to know the exact version numbers, it will
be fine to say they are bleeding edge builds of a particular version.

BUG=
R=whesse@google.com

Review URL: https://codereview.chromium.org/2540383003 .
2016-12-01 14:16:23 +01:00
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