Commit graph

5292 commits

Author SHA1 Message Date
Zach Anderson d0510501d2 [build] Add -a kbc for interpreter
This CL adds support to build.py and test.py for building/testing
a VM with the interpreter on x64, e.g.:

$ ./tools/gn.py -m release -a x64 --bytecode
$ ./tools/build.py -m release -a x64 --bytecode runtime
$ ./tools/test.py -m release -a x64 -r vm -c dartkb language_2

Change-Id: I956d23790636609d4a2e71129481fcbd7afef9a0
Reviewed-on: https://dart-review.googlesource.com/65206
Commit-Queue: Zach Anderson <zra@google.com>
Reviewed-by: Régis Crelier <regis@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2018-07-17 21:51:41 +00:00
William Hesse 5eea3942e6 [CQ] Remove pkg-linux-release from the CQ trybots until it is fixed
Change-Id: I17ee0bfc26af1d060fc6f129419239e4a790034a
Reviewed-on: https://dart-review.googlesource.com/65120
Reviewed-by: Jonas Termansen <sortie@google.com>
2018-07-16 13:23:16 +00:00
William Hesse f6e484b518 Dummy commit to investigate CQ and CI failures.
Change-Id: I42f73e43dfa61ba144b1e2dc2fe2497bb64aee9b
Reviewed-on: https://dart-review.googlesource.com/64847
Reviewed-by: William Hesse <whesse@google.com>
2018-07-13 14:06:22 +00:00
Jenny Messerly 2a17dc5009 Add comment to dartdevc's test compiler configuration
It explains the intent behind testing `--dart-sdk` vs just
`--dart-sdk-summary` and adds a TODO about how we can improve it.

Change-Id: Ib53027a6509e4df0df52632345c32d9bdfccd991
Reviewed-on: https://dart-review.googlesource.com/64764
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2018-07-12 21:19:28 +00:00
Devon Carew 188ef5e3d5 Analyze all the pkg/ code on the bots.
Bug: https://github.com/dart-lang/sdk/issues/29318
Change-Id: Iccb16ddbccbb43fa7a12eb818c2dde3a75700b97
Reviewed-on: https://dart-review.googlesource.com/64663
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2018-07-12 16:35:03 +00:00
Jonas Termansen e8ecb3bc08 Support incompatible Dart SDK changes with patches to the Flutter Engine.
The Dart SDK may change incompatibly and require a corresponding update to
the Flutter Engine when Flutter Enginer rolls its Dart SDK. The flutter
targets on Golem uses a 3-way HEAD of the Dart SDK, the Flutter Engine, and
the Flutter Framework, meaning that it needs to apply the corresponding
update to the Flutter Engine immediately. Otherwise the Flutter targets will
be broken and not successfully run benchmarks until the next Flutter roll.

This change lets the Dart SDK make incompatible changes that affects the
Flutter Engine by checking in the corresponding patch into the Dart SDK
along with the incompatible change. The build step will determine what the
latest roll is by looking up which Dart SDK Hash the Flutter Engine has
pinned. If a patch exists for that hash, then that patch is applied to the
Flutter Engine.

For instance, if the Flutter Engine commit ab12 has pinned the Dart SDK
commit cd34, then it the patch tools/patches/flutter-engine/cd34.patch is
applied. Once the Flutter Engine rolls its Dart Engine, usually by
applying an equivalent patch, the roll commit will start refering to an
non-existent patch and the HEADs will be built together pristine again.
Finally cd32.patch can be removed from new versions of the Dart SDK.

The tools/patches/flutter-engine/apply.sh script is applies such patches in
3-way HEAD builds. The create.sh script is meant to be used by developers
when making incompatible changes to the Dart SDK that affects the Flutter
Engine. The top level tools/3xhead_flutter_hooks.sh script is meant to be
used by the CI as forward compatibility if additional hooks are added in the
future.

Change-Id: Ibf8e125b26dac319ba1c5302c003d7668155336a
Reviewed-on: https://dart-review.googlesource.com/64684
Reviewed-by: Martin Kustermann <kustermann@google.com>
2018-07-12 15:47:16 +00:00
William Hesse 6b01ba7112 Update status for vm --checked (enable asserts) tests.
Remove accidental legacy test section from front_end bots.
Remove no-op --strong arg from test matrix.

Change-Id: Icafc7eeb3c25f5816596affeaf8f75a7328fb907
Reviewed-on: https://dart-review.googlesource.com/64520
Reviewed-by: Jonas Termansen <sortie@google.com>
2018-07-12 09:31:10 +00:00
Zach Anderson 576f01045a [build] Copy Observatory assets with GN rather than observatory_tool.py
Change-Id: Ib6faf31fffaa49dadbf47056cbce353348b7680c
Reviewed-on: https://dart-review.googlesource.com/64241
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
2018-07-10 19:08:47 +00:00
Sergey G. Grekhov 54f66eebf2 [co19] co19 roll: DEPS and test_matrix update
Cq-Include-Trybots:luci.dart.try:front-end-mac-release-x64;luci.dart.try:front-end-win-release-x6;luci.dart.try:analyzer-mac-release;luci.dart.try:analyzer-win-release

Change-Id: I37f3b78180133c31f6267b76c3eeb16f8c00325a
Reviewed-on: https://dart-review.googlesource.com/63623
Reviewed-by: Erik Ernst <eernst@google.com>
2018-07-10 11:07:36 +00:00
William Hesse 8370393ab4 Change Chrome-linux trybot to Dart 2 mode
Change-Id: I901667843d8ce5732e145175b961b27677bdf8dd
Reviewed-on: https://dart-review.googlesource.com/64300
Commit-Queue: William Hesse <whesse@google.com>
Reviewed-by: Jonas Termansen <sortie@google.com>
2018-07-10 10:16:35 +00:00
Devon Carew 550f294dfc Move some analysis to analyzer-analysis-server-linux and make analyzer-analysis-server-linux a try bot.
Change-Id: Iabac78eb7bdbb3b1bc3ff83ae4ba241af1c8a6ec
Reviewed-on: https://dart-review.googlesource.com/64020
Reviewed-by: William Hesse <whesse@google.com>
2018-07-09 20:18:20 +00:00
Sigmund Cherem bab152a0a9 Fix default in gardening tools
test.py was changed, this makes the gardening scripts use the same default for
strong-mode/no-preview-dart-2

Change-Id: I974e288a95811ed8980f0ffbe2d8a9135fbfb5f0
Reviewed-on: https://dart-review.googlesource.com/63987
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2018-07-09 17:42:38 +00:00
Jens Johansen 810cdf8649 Add tests for bug #33660
Change-Id: I46ddc241ff4b9f33380f80ca641b27089ccbd736
Reviewed-on: https://dart-review.googlesource.com/63821
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
2018-07-09 11:38:17 +00:00
Sigmund Cherem c1f6c9d8c5 Fix dart2js-hostassert configuration and enable it on the CQ
TBR=athom@google.com,whesse@google.com

Change-Id: I1dec1386b823bc72bc8f482c7400a129a3037b4a
Reviewed-on: https://dart-review.googlesource.com/63704
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2018-07-07 00:15:37 +00:00
Devon Carew 3e33c3d0fc Eliminate analysis warnings in pkg/ code.
Change-Id: I571581bf16502c1698932c03313777aa8a9ee081
Reviewed-on: https://dart-review.googlesource.com/63983
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-07-06 21:28:07 +00:00
Devon Carew 1a08800dd6 Run analyzer --use-fasta-parser on the language2 tests; update status file.
Change-Id: I35ca9dceb211a30f7e211177956e3e62575f7e57
Reviewed-on: https://dart-review.googlesource.com/63686
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2018-07-06 14:20:26 +00:00
Devon Carew d6cf9b471e Deprecate and remove the implementation of an older flag.
Change-Id: I650f5c7cc14c53b1109b8555a7e68544266ad65a
Reviewed-on: https://dart-review.googlesource.com/63860
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2018-07-05 18:30:18 +00:00
Devon Carew a5b8ed1299 Have dart2analyzer no longer use the --no-preview-dart-2 flag in test.py.
Change-Id: I73266243f7819cda9e46bc354bc87d3ee9da9a15
Reviewed-on: https://dart-review.googlesource.com/63695
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2018-07-05 04:47:58 +00:00
Devon Carew 5b5e36f0be Remove use of deprecated methods and constants.
Change-Id: Ic6867233dd7d432eaa0973dbfca13d53f15cc80a
Reviewed-on: https://dart-review.googlesource.com/63663
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2018-07-04 17:18:06 +00:00
William Hesse 1400cf66e7 Add named configurations to test matrix.
Change-Id: I259cd854a6ceb2ab2c2813184bfaae1fbc7b3f4e
Reviewed-on: https://dart-review.googlesource.com/62140
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2018-07-04 13:57:19 +00:00
Alexander Thomas 9871ad23c9 [infra] Move fasta legacy mode SDK tests to their own builder
* This will take them of the CQ and lower CQ cycle time by ~15mins.
* The new builder will be enabled by:
https://dart-review.googlesource.com/c/sdk/+/63627

Change-Id: I9318f73a670aee1c67ae9ed19a1bc0a100c14411
Reviewed-on: https://dart-review.googlesource.com/63626
Commit-Queue: Alexander Thomas <athom@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2018-07-04 11:08:48 +00:00
Devon Carew 6e8332bf77 Remove older analyzer bots.
Change-Id: I375f6a3f76bdb1fd8e9000e5edbc6bf21a148490
Reviewed-on: https://dart-review.googlesource.com/63643
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2018-07-04 03:43:07 +00:00
Zach Anderson 7d7e39a952 [build] Move dart2js run for Observatory from python to GN
Change-Id: Ief90d6125e30c6bed808bacce521fc84957fddb9
Reviewed-on: https://dart-review.googlesource.com/63662
Commit-Queue: Zach Anderson <zra@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2018-07-03 22:50:16 +00:00
Sigmund Cherem 7007137dd0 Adjustments to dart2js test matrix.
* uses 6 shards for try bots like the recipes used to do
* add a strong-hostasserts configuration. Currently the test.py flag is called
  --host-checked, but all it does is enable assertions (no more checked mode in
  Dart2)

Change-Id: I50c565bb210fbb98334b7d84556c3ab98c38b22a
Reviewed-on: https://dart-review.googlesource.com/63682
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2018-07-03 20:30:56 +00:00
Sigmund Cherem aa93fa1653 Update documentation of --host-checked.
Change-Id: I7e987ebe2372c9bce9ff0857521062c37ed804cf
Reviewed-on: https://dart-review.googlesource.com/63681
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2018-07-03 19:35:17 +00:00
Devon Carew 46bfa7297e Have the regular analyzer bots test in dart 2 mode.
Change-Id: I91bf09600d0e5f099737be0363228cad6d0b5329
Reviewed-on: https://dart-review.googlesource.com/63642
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: William Hesse <whesse@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2018-07-03 19:12:36 +00:00
Sigmund Cherem aa009339b3 Update test matrix for dart2js
After reviewing all recipes, we needed a few changes to bring the test matrix to parity:
- we needed to add strong-mode coverage (mostly in d8 at this time)
- we needed to add fast-startup coverage on all browsers

This however includes a bit more coverage than the existing recipes:
- strong-mode coverage in d8 now includes all suites, not just language_2 and corelib_2
- legacy coverage in ie11 includes all suites, not just html and co19


Next steps:
- move the remaining dart2js bots to the test matrix using the existing and new builders
- fix .status files on builders that include more suites (d8-strong + ie11)
- fix .status files on new Dart 2.0 builders
- add new Dart 2.0 builders to the waterfall
- eventually remove Dart1 builders.

Change-Id: Iec0a7fef7176cc81d3ced5e34c8dd63d33b7079e
Reviewed-on: https://dart-review.googlesource.com/61086
Commit-Queue: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2018-07-03 18:32:53 +00:00
William Hesse c407e83d0e Delete duplicate key "configurations" in test_matrix.json
The builder configurations have been moved to the "builder_configurations" key,
and the "configurations" key will be used for test configurations.

Change-Id: Ic61f1646378a13526dc59b713f272cea51d9781b
Reviewed-on: https://dart-review.googlesource.com/63580
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: William Hesse <whesse@google.com>
2018-07-03 12:02:31 +00:00
William Hesse b303f5ad86 Add flag --named-configuration (-n) to test.py options.
Currently unimplemented, will allow us to pass the correct configurations
in the test matrix and new recipe when working on the implementation.

Change-Id: I2207e6f9e3d12884ab578a2d258493f8eff861f4
Reviewed-on: https://dart-review.googlesource.com/63582
Reviewed-by: Alexander Thomas <athom@google.com>
2018-07-03 12:01:55 +00:00
Terry Lucas fd26d67a0b Added getLegacyStats until Chrome fully supports new getStats() API.
TBR=alanknight@google.com

Change-Id: Iea06485fc54cdbcb30f1cc1bf7a10f97335e242a
Reviewed-on: https://dart-review.googlesource.com/63442
Reviewed-by: Alan Knight <alanknight@google.com>
Reviewed-by: Terry Lucas <terry@google.com>
Commit-Queue: Terry Lucas <terry@google.com>
2018-07-02 21:28:48 +00:00
Alexander Aprelev e5f3d682b4 [gardening] Add multiplier for arm64 buildbot.
Revert "[gardening] Update arm64 status files."

This reverts commit ff0a1d6b67 as
updating multiplier is better solution than updating status files.

Bug: http://dartbug.com/33659
Change-Id: I064964e1fafe9c77fb24d5e9c324927b75cbacb0
Reviewed-on: https://dart-review.googlesource.com/63340
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2018-07-02 18:39:33 +00:00
William Hesse 45a0ced146 Duplicate the "configurations" section of test_matrix, under the new name "builder_configurations".
The key "configurations" will be used for named configurations, after
the recipes are updated to use the new "builder_configurations" key.

Change-Id: Ifec6803f3aaee83cbc48c591ac306af3ef951933
Reviewed-on: https://dart-review.googlesource.com/62147
Commit-Queue: William Hesse <whesse@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2018-07-02 15:57:43 +00:00
William Hesse 1bdef38057 Add pinned firefox version to the general settings in test_matrix.json
Change-Id: I376126ed28a2c90e3a164f0e6c36b9e2004575ef
Reviewed-on: https://dart-review.googlesource.com/62809
Reviewed-by: Alexander Thomas <athom@google.com>
2018-07-02 12:30:08 +00:00
Sigmund Cherem a4b27057f0 Make bots green again: mostly status updates, but also fix check in custom-element upgrades
Change-Id: Ic5e5b58be60261c4843f00eb090e0c1e4ed7e093
Reviewed-on: https://dart-review.googlesource.com/63325
Commit-Queue: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
2018-06-30 01:23:39 +00:00
Leaf Petersen 93b9c06566 Dart 2 fixes in the gardening tools
Change-Id: Ib6339d20a15eb340aedb242f2c228dc2aeaac8b3
Reviewed-on: https://dart-review.googlesource.com/63341
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Leaf Petersen <leafp@google.com>
2018-06-30 01:15:39 +00:00
Sam Rawlins 911e285333 Fix DocumentFragment.appendHtml and regenerate (some dartfmt changes included)
Bug: https://github.com/dart-lang/sdk/issues/29325
Change-Id: Id66b414e996e37b3ddd7469bbbb0deb4601a2171
Reviewed-on: https://dart-review.googlesource.com/63221
Reviewed-by: Terry Lucas <terry@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2018-06-29 17:05:48 +00:00
Devon Carew 4af2a9d914 Some normalization of the test_matrix.json file.
Change-Id: I146877b60a5711487c4aceda55e07055a935ee24
Reviewed-on: https://dart-review.googlesource.com/63200
Reviewed-by: Dan Rubel <danrubel@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2018-06-29 16:40:51 +00:00
Sam Rawlins 29dc5fc4c2 doc - Add units info to requestFileSystem docs
Bug: https://github.com/dart-lang/sdk/issues/20008
Change-Id: I7bd846ac546fa53a948e99cf2d054726c6d71692
Reviewed-on: https://dart-review.googlesource.com/61824
Reviewed-by: Terry Lucas <terry@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2018-06-29 16:28:18 +00:00
Alexander Thomas 72b77ac6ab [infra] Remove last remnants of old checked in SDK
* Update README.
* Create 32-bit Windows CIPD package in update.sh.
* Remove architecture specific executable names.

Change-Id: I553b282188bc76e82df0a6e40200e3311fdc6f1d
Reviewed-on: https://dart-review.googlesource.com/62842
Commit-Queue: Alexander Thomas <athom@google.com>
Reviewed-by: Zach Anderson <zra@google.com>
2018-06-28 18:15:57 +00:00
Alexander Thomas 66c9109caf [infra] Download checked in SDKs from CIPD
#33659

Change-Id: I94fccf4bbce2f0140bf0d6efa953d44b290df856
Reviewed-on: https://dart-review.googlesource.com/62840
Commit-Queue: Alexander Thomas <athom@google.com>
Reviewed-by: William Hesse <whesse@google.com>
Reviewed-by: Zach Anderson <zra@google.com>
2018-06-28 16:08:14 +00:00
Alexander Thomas 1f8148f862 [infra] Restore sync-async behavior to fix legacy precompiler bots
Change-Id: I0a35afcb840bf3969e60d3b13c5dffe21a14884f
Reviewed-on: https://dart-review.googlesource.com/62805
Commit-Queue: Alexander Thomas <athom@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2018-06-28 13:26:14 +00:00
Alexander Thomas 583a81ade3 [infra] Make test.py's --strong option a no-op to prepare for removing it
Remove --preview-dart-2 option.


Change-Id: I4ca07e00391ee9a9f7f454d0b56e82898c38250c
Reviewed-on: https://dart-review.googlesource.com/62601
Commit-Queue: Alexander Thomas <athom@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2018-06-28 09:39:03 +00:00
Terry Lucas 723bcbd5f9 Added link to see webdev.dartlang.org
Fixes #30253

TBR=kwalrath@google.com

Change-Id: I4271c6b2ba2bd809153c935f4955a64e6c20a557
Reviewed-on: https://dart-review.googlesource.com/62642
Commit-Queue: Terry Lucas <terry@google.com>
Reviewed-by: Terry Lucas <terry@google.com>
2018-06-27 19:10:24 +00:00
William Hesse ce312b9632 Add --analyzer-use-fasta and --analyzer-use-fasta-parser to test.py
When these flags are used, the flags "--use-cfe" and
"--use-fasta-parser" are passed to the dartanalyzer command.
(The compiler -cdart2analyzer runs the dartanalyzer compiler).
The variables $analyzer_use_fasta and $analyzer_use_fasta_parser are
available in status files, and the $fasta variable is set in both
cases.

Change-Id: Ic42033fb8fb3a19431f380abdf949564758c8d7b
BUG: dartbug.com/33510
Reviewed-on: https://dart-review.googlesource.com/62302
Reviewed-by: Devon Carew <devoncarew@google.com>
2018-06-27 12:16:01 +00:00
Alexander Thomas a9c624a010 [infra] Update checked in SDKs to 2.0.0-dev.65.0
Fixes #33490

TBR=whesse@google.com

Change-Id: I2c041d2df1a9a73610cf00e1da1fa7b0af0f4160
Reviewed-on: https://dart-review.googlesource.com/62303
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2018-06-26 15:50:34 +00:00
Alexander Thomas a16ad6d9de [infra] Make update_homebrew script work on Dart2
Change-Id: Ieb4d5131273dfe85f29b7f9916a5d3be3c7fe461
Reviewed-on: https://dart-review.googlesource.com/62146
Reviewed-by: William Hesse <whesse@google.com>
2018-06-26 10:04:58 +00:00
Zach Anderson b15572933d Update checked-in Dart SDK to 2.0.0-dev.64.1
Updated to pass --dfe to invocations of the
checked-in SDK.

Change-Id: I47e122422926d235f166972669c8c2cb18a89735
Reviewed-on: https://dart-review.googlesource.com/62201
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
2018-06-25 21:39:35 +00:00
Terry Lucas 6d25212302 getStats Future should be strongly typed.
TBR=kevmoo@google.com

Change-Id: I4c4a6376f84b346e676245e5984136adfe3074aa
Reviewed-on: https://dart-review.googlesource.com/62128
Commit-Queue: Terry Lucas <terry@google.com>
Reviewed-by: Terry Lucas <terry@google.com>
2018-06-25 19:25:04 +00:00
Terry Lucas 5721d8af6d - Fixed querySelectoryAll generic syntax to assert if types in list aren't of the same type T.
- Fixes requestFullscreen to call operation webkitRequestFullscreen not requestFullscreen its only available when RuntimeEnabled=FullscreenUnprefixed.

Fixes #21919

R=vsm@google.com

Change-Id: Ib4c4140350d3cef096954e67010f922df9f2310a
Reviewed-on: https://dart-review.googlesource.com/60702
Commit-Queue: Terry Lucas <terry@google.com>
Reviewed-by: Vijay Menon <vsm@google.com>
2018-06-25 18:43:54 +00:00
Zach Anderson 70ac1f90ec Revert "Update checked-in Dart SDK to 2.0.0-dev.64.1"
This reverts commit 47f394d61c.

Change-Id: I95cc7ab3cb9d112748460f793fd8906f216ac056
Reviewed-on: https://dart-review.googlesource.com/61986
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2018-06-22 22:28:39 +00:00