Commit Graph

6631 Commits

Author SHA1 Message Date
Alexander Aprelev e58b7cd59e [gardening] Fix flutter patch.
Follow-up to https://dart-review.googlesource.com/c/93845

Change-Id: I6d558e63ab41ed0cb09b5a56af2a9b7d397136ae
Reviewed-on: https://dart-review.googlesource.com/c/93920
Reviewed-by: Alexander Aprelev <aam@google.com>
2019-02-21 03:51:56 +00:00
Alexander Aprelev 22e70ed48f [gardening] Patch flutter/flutter to fix hhh buildbot
Change-Id: Ib3a8e03591dd26c83dc9d27d8cef0aaff0279957
Reviewed-on: https://dart-review.googlesource.com/c/93845
Reviewed-by: Alexander Aprelev <aam@google.com>
2019-02-21 01:32:22 +00:00
Aske Simon Christensen d76293a75a [testing] Add shared options on the test.py commandline.
Specify extra shared options to the compiler and runtime via the
--shared-options= commandline option to test.py. For instance,
--shared-options=--enable-experiment=constant-update-2018 will enable
the front-end constant evaluation experiment for all tests run.

To avoid conflicts with tests explicitly enabling experiments, the
front-end parsing of experimental flags is changed to allow the same
flag to be mentioned several times, as long as the value is the same.
This matches the existing behavior of the analyzer.

Change-Id: I0c79e62b0b23ec7bc3824064dd27ef86b4451f9a
Reviewed-on: https://dart-review.googlesource.com/c/93501
Commit-Queue: Aske Simon Christensen <askesc@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2019-02-20 11:11:21 +00:00
Alexander Thomas 98bc608202 [testing] Blacklist tests and repeat options from reproduction commands
Change-Id: Ibfb2c4542750b7cc52672c3e180adadd52bf0848
Reviewed-on: https://dart-review.googlesource.com/c/93500
Commit-Queue: Alexander Thomas <athom@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
Auto-Submit: Alexander Thomas <athom@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2019-02-19 11:30:54 +00:00
Jenny Messerly 15e7457519 [dartdevc] change browser tests to wait longer for async completion
Also fixes 2 html tests whose failure was caught by this change.

Change-Id: I707cba922bc7e7728ba0b026ad056b547fcd1432
Reviewed-on: https://dart-review.googlesource.com/c/92392
Auto-Submit: Jenny Messerly <jmesserly@google.com>
Reviewed-by: Vijay Menon <vsm@google.com>
2019-02-16 01:15:01 +00:00
Paul Berry 6846a7c486 Fix flutter analyzer bot by disabling lint prefer_collection_literals.
With set literal support enabled, there are many new cases in Flutter hit by this lint.

Change-Id: Ife1e4f9ac5205bdfb74b89ab18a6c36dd9ebcea1
Reviewed-on: https://dart-review.googlesource.com/c/93460
Commit-Queue: Paul Berry <paulberry@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
Auto-Submit: Paul Berry <paulberry@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
2019-02-15 20:40:46 +00:00
Martin Kustermann cf63db2594 [VM/infra] Archive kernel-service.dart.snapshot together with coredumps
Change-Id: I59f9356de0f63b3da68ea794480b1a0a6e58827e
Reviewed-on: https://dart-review.googlesource.com/c/93220
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2019-02-15 18:00:51 +00:00
Martin Kustermann 015cf88ef6 Disable set literal warning until engine rolls into flutter/flutter
Once the roll happens flutter team should see the errors and fix it.

Change-Id: I7ab5cfc67a3bb749cfe69ad4075b0c90998c15e9
Reviewed-on: https://dart-review.googlesource.com/c/93420
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
Auto-Submit: Martin Kustermann <kustermann@google.com>
2019-02-15 17:59:52 +00:00
Jonas Termansen d1abd84944 [infra] Add named configuration option to test.dart.
This change makes named configurations central in test.dart. Previously
test.dart would attempt to emulate the steps taken by a builder. Instead it
now runs a single named configuration as a single step and invokes test.py
directly without any other arguments from the test steps. This better
matches the behavior of test.py and what the developers expect.

Either a named configuration or a builder must be specified. If both are
provided, then the results for that builder is downloaded and used to
compare with when running the named configuration. Otherwise if the only the
named configuration is provided, then it downloads results from all the
builders using the named configuration. Finally if only the builder is
provided, then the named configuration defaults to the one tested by the
builder. If the builder has multiple named configuration, the user is
asked to clarify which one should be tested.

This change adds support for branches to the test matrix. test.dart needs to
know which builders are on which branch, so it can download the relevant
results, and not look on builders that won't be building the right commit.

Fixes https://github.com/dart-lang/sdk/issues/35873
Change-Id: Ie7b75445b954250493528299a0b45eca4e0bb2e5
Reviewed-on: https://dart-review.googlesource.com/c/92780
Reviewed-by: William Hesse <whesse@google.com>
2019-02-15 11:48:40 +00:00
Samir Jindel 7fe7e28c46 [vm] Fix location of Flutter 3xH patch file.
Change-Id: Ib055f110ac189cb553e86d86e6a807cae08c0b6d
Reviewed-on: https://dart-review.googlesource.com/c/93083
Reviewed-by: Samir Jindel <sjindel@google.com>
2019-02-13 15:49:25 +00:00
Samir Jindel 3796dd8ba1 [vm] Pass --enable-asserts to analyze.dart in analyze_flutter.sh.
Change-Id: Iafc519c1f3a991bba7cd3bb82a73836d78984b0e
Reviewed-on: https://dart-review.googlesource.com/c/93082
Reviewed-by: Samir Jindel <sjindel@google.com>
2019-02-13 15:32:19 +00:00
Samir Jindel 809d8123d3 [vm] Add FFI library to more targets and Flutter file libraries.json (in patch).
Change-Id: I65421efbc708b5192f871a0dae5f739352c5c3d9
Reviewed-on: https://dart-review.googlesource.com/c/93080
Reviewed-by: Samir Jindel <sjindel@google.com>
2019-02-13 15:01:23 +00:00
Samir Jindel 3236ac15a1 Fix flutter-analyze bot.
Change-Id: I56fa45de16a373b40107baa03a8ebab1ee64ccd2
Reviewed-on: https://dart-review.googlesource.com/c/93027
Auto-Submit: Samir Jindel <sjindel@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2019-02-13 13:39:52 +00:00
Alexander Thomas 0541640e37 [testing] Create list from test list iterable
This fixes a bug in test.py's new --tests option.

Change-Id: I0410972116045c612429565081ad84735d2d2bf1
Reviewed-on: https://dart-review.googlesource.com/c/92784
Auto-Submit: Alexander Thomas <athom@google.com>
Commit-Queue: William Hesse <whesse@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2019-02-12 18:40:38 +00:00
William Hesse 92227c05fc [infra] Remove ContentShell support in test driver interface js.
Change-Id: I82091f9b0496a081eb9dd899e5bdaa7c9e332230
Reviewed-on: https://dart-review.googlesource.com/c/92682
Reviewed-by: Jonas Termansen <sortie@google.com>
2019-02-12 15:27:25 +00:00
Jonas Termansen 69589be237 [infra] Rename analyzer-stable branch builders to have branch suffix.
This change assigns systematic names to the builders for branches, where
those builders end in their branch name as the suffix. This will be used to
identify to which branch the builders belong.

Change-Id: Ifa3be5dbbd45d4f623f70dd36d12426d360b0c30
Reviewed-on: https://dart-review.googlesource.com/c/92741
Reviewed-by: Alexander Thomas <athom@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2019-02-12 14:33:07 +00:00
Jonas Termansen de2e7e7721 [infra] Update test.py help now that named configurations are implemented.
Change-Id: I6ca7fa2d14e95f3a09e01b5e721f3e5962abb525
Reviewed-on: https://dart-review.googlesource.com/c/92601
Reviewed-by: William Hesse <whesse@google.com>
2019-02-11 15:56:15 +00:00
Alexander Thomas 859c1ffb79 [testing] Allow test.py test list to be specified as string
Previously, this only file names were allowed. However, deflaking may
run on a different machine than determinining which tests flaked. Allow
callers to specify a list of tests instead of a file, simplifies sharded
deflaking considerably.

Change-Id: I710f9aa8a8ef696a6982851106c0e171343dc190
Reviewed-on: https://dart-review.googlesource.com/c/92561
Commit-Queue: Alexander Thomas <athom@google.com>
Reviewed-by: Jonas Termansen <sortie@google.com>
2019-02-11 14:55:50 +00:00
Jonas Termansen 07f2eba311 [infra] Remove remnant of analyzer-linux-release-analyzer-new.
Change-Id: I09ed66cbdb20ed7334f029a464008faf0f403fa4
Reviewed-on: https://dart-review.googlesource.com/c/92600
Reviewed-by: William Hesse <whesse@google.com>
2019-02-11 14:45:12 +00:00
Alexander Thomas b2bffb2147 Revert "[dartdevc] skip co19 tests on linux bots"
This reverts commit 5ecf660b50.

Reason for revert: Issue mitigated with build recipe change.

Original change's description:
> [dartdevc] skip co19 tests on linux bots
>
> These tests aren't quite working yet, and they're causing delays in the
> deflake step.
>
> Change-Id: Ic037858e4778a128403c80f1c0356c6dd91cb831
> Reviewed-on: https://dart-review.googlesource.com/c/92241
> Commit-Queue: Jenny Messerly <jmesserly@google.com>
> Reviewed-by: Jenny Messerly <jmesserly@google.com>

TBR=whesse@google.com

Change-Id: I067bbdd5f8a268283a1f787deeeb0659fa98b15f
Reviewed-on: https://dart-review.googlesource.com/c/92340
Reviewed-by: Alexander Thomas <athom@google.com>
2019-02-08 09:35:53 +00:00
Jenny Messerly 246430bc8c [dartdevc] wait for async callbacks to complete in tests
This change ensures that DDC tests won't accidentally "pass", and then
silently fail or timeout later, when the async tests actually run.

Change-Id: Id18d3343e5dadcf266f39568a93381daf4c54e1c
Reviewed-on: https://dart-review.googlesource.com/c/92247
Reviewed-by: Mark Zhou <markzipan@google.com>
Reviewed-by: Vijay Menon <vsm@google.com>
Commit-Queue: Jenny Messerly <jmesserly@google.com>
2019-02-08 01:30:58 +00:00
Janice Collins 1c8f571f76 Add source links to dartdoc output.
Dartdoc > 0.18.1 allows generation of source code links
to documented objects.  Enable this for the Dart SDK build.

Change-Id: Ib385d3e51f6f5852f37e591d7a60ba7b4e7f93c1
Reviewed-on: https://dart-review.googlesource.com/c/92303
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Janice Collins <jcollins@google.com>
2019-02-07 18:46:31 +00:00
Martin Kustermann d373b2ce9c [gardening] Disable golden test until next engine roll
Our head-head-head builder doesn't have patch support for the golden
pngs.

Therefore we disable the golden test until next engine roll is in.

Change-Id: I5d2e12c74313d8b7e84bd79052dc5b021b700a20
Reviewed-on: https://dart-review.googlesource.com/c/92284
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
Auto-Submit: Martin Kustermann <kustermann@google.com>
2019-02-07 13:45:37 +00:00
Jenny Messerly 5ecf660b50 [dartdevc] skip co19 tests on linux bots
These tests aren't quite working yet, and they're causing delays in the
deflake step.

Change-Id: Ic037858e4778a128403c80f1c0356c6dd91cb831
Reviewed-on: https://dart-review.googlesource.com/c/92241
Commit-Queue: Jenny Messerly <jmesserly@google.com>
Reviewed-by: Jenny Messerly <jmesserly@google.com>
2019-02-06 23:47:56 +00:00
William Hesse dc812e0921 [infra] Add third_party/requirejs to the fileset used by dartdevc testing
Change-Id: Id3949ec62b6d0f0611d88f0b8012c68505e8e156
Reviewed-on: https://dart-review.googlesource.com/c/92120
Reviewed-by: William Hesse <whesse@google.com>
2019-02-06 09:30:14 +00:00
Martin Kustermann 8010fad320 [infra] Fix incorrect shell function syntax
Change-Id: I493f5f322325f6d7c89439a38d3140628e137666
Reviewed-on: https://dart-review.googlesource.com/c/91924
Reviewed-by: Martin Kustermann <kustermann@google.com>
2019-02-04 13:25:59 +00:00
Martin Kustermann 1bfc3816d8 [infra] Extend 3head patching to apply patches for flutter/flutter depending on pinned engine commit
This also adds a patch to flutter/flutter to fix head-head-head
configuration (until engine is rolled into framework again).

Change-Id: I6dae0983126a6664337834d3c93f1369139f1ac1
Reviewed-on: https://dart-review.googlesource.com/c/91922
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Jonas Termansen <sortie@google.com>
2019-02-04 12:37:10 +00:00
Alexander Thomas fdd477721d [infra] Run co19_2 tests on DDC Linux and Windows builders
Change-Id: I6701cad83bd86914574eb8d11b8658668602e31c
Reviewed-on: https://dart-review.googlesource.com/c/90066
Reviewed-by: Vijay Menon <vsm@google.com>
2019-01-31 15:35:24 +00:00
Alexander Thomas 2bb38e62e8 [infra] Use fewer cores on Android shards
The shards are currently defaulting to use j4 because the docker host
has 4 cores. 6 devices share one host and are therefore trying to run 20
processes competing for the only 4 physical cores. The docker hosts will
soon be upgraded to have 8 cores. j2 will result in 10 processes
competing for those 8 cores which should result in a better balance
between utilization and latency.

Change-Id: Ieb67cb92f17317108d1a1d3da710c58400484a7c
Reviewed-on: https://dart-review.googlesource.com/c/91540
Reviewed-by: William Hesse <whesse@google.com>
2019-01-29 15:54:08 +00:00
Vijay Menon 8fc9eaf06c Support to run co19_2 on ddk
Change-Id: I93b9752655385d0e26cdf97d0f8224a88c198657
Reviewed-on: https://dart-review.googlesource.com/c/90781
Commit-Queue: Vijay Menon <vsm@google.com>
Reviewed-by: Jenny Messerly <jmesserly@google.com>
2019-01-29 13:50:02 +00:00
Terry Lucas c5cfdc5279 Expose data member 'port' for MessageEvents and automatically pull in markupsafe for go.sh script.
Fixes #35730

R=sigmund@google.com

Change-Id: I91d9622601c99bbbfaad87c24f01db2b26303744
Reviewed-on: https://dart-review.googlesource.com/c/91165
Commit-Queue: Terry Lucas <terry@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2019-01-27 20:06:58 +00:00
Liam Appelbe c167cd3572 [VM] Experimental flags in dartkp tests
Plumb experimental flags found in a test's SharedOptions through to the
gen_kernel command invoked in dartkp tests. Also enable a whole bunch
of tests that are now passing.

Bug: https://github.com/dart-lang/sdk/issues/35602
Change-Id: I425f55ea6c84d28e085ab2c848376e396e68a225
Reviewed-on: https://dart-review.googlesource.com/c/90860
Commit-Queue: Liam Appelbe <liama@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2019-01-25 19:47:40 +00:00
Jonas Termansen a5030ed92f [infra] Mark gclient-try as non-experimental.
Change-Id: Ib2f7630b3e2d45fe0ab5a7e8541dab59314817b5
Reviewed-on: https://dart-review.googlesource.com/c/91201
Reviewed-by: William Hesse <whesse@google.com>
2019-01-25 14:43:09 +00:00
Jonas Termansen b2a93177a0 [infra] Fix approve_results deleting existing meta-information.
Change-Id: I585344cdf13d8cde93b0eba8e850d436a11c9200
Reviewed-on: https://dart-review.googlesource.com/c/91200
Reviewed-by: William Hesse <whesse@google.com>
2019-01-25 14:38:48 +00:00
Martin Kustermann 8c439c7e84 [VM/AOT] Turn bare instructions on by default
Issue https://github.com/dart-lang/sdk/issues/33274

Change-Id: I44850d5906143a53d6b1872eb729364c3a509f9a
Reviewed-on: https://dart-review.googlesource.com/c/91060
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2019-01-25 10:25:18 +00:00
asiva 0a41a2d292 [ Test ] Remove support for flutter runtime from the test framework
Support for the flutter runtime (sky_shell) was added to the Dart
test framework in the hope that one could run the flutter engine
through the Dart test suite. We never got around to running these
tests on the build bots, the sky_shell executable has been deprecated
and there are plans in the flutter engine team to have their own
unit test frame work.

See Issue https://github.com/flutter/flutter/issues/9115 for more
details.

Change-Id: I6ee9e8c919721dccecf4202ab0778939aeb79174
Reviewed-on: https://dart-review.googlesource.com/c/91103
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
2019-01-25 04:16:43 +00:00
Stephen Adams 6bcb017c56 Fix postmessage to treat it's input as a serializable value
Change-Id: I11744735f5e6d6a5593e6ac3f00d87813577db7e
Reviewed-on: https://dart-review.googlesource.com/c/91141
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2019-01-25 03:56:06 +00:00
William Hesse bd2b07cd71 [infra] Fix expected results of multitests, drop checked-only results.
All multitests expecting errors were just being reported as expecting "fail", not as expecting compile-time
or runtime error.  Cleaned up legacy checked-only expectations as a side effect.

Change-Id: I7785db0e094e3af3464700fbc71aac30b8bb4282
Reviewed-on: https://dart-review.googlesource.com/c/90684
Reviewed-by: Jonas Termansen <sortie@google.com>
Auto-Submit: William Hesse <whesse@google.com>
2019-01-24 12:44:09 +00:00
Alexander Thomas 957e194735 [infra] Switch co19 DEP to cipd
This means ~20000 files less need to be transferred to test shards.

TBR=whesse@google.com

Change-Id: Ic89e5c71e341dfa7872e82c1b1868df19480fd2f
Reviewed-on: https://dart-review.googlesource.com/c/90743
Reviewed-by: Alexander Thomas <athom@google.com>
2019-01-24 07:34:58 +00:00
Jonas Termansen fb7d075cfa [infra] Use third_party/gsutil in the status file free workflow.
Change-Id: I13d68092874121acedec305a186867ee88863806
Reviewed-on: https://dart-review.googlesource.com/c/90463
Reviewed-by: Alexander Thomas <athom@google.com>
2019-01-23 12:52:41 +00:00
Jonas Termansen de4dea71d7 [infra] Add Windows support to test.dart.
Change-Id: I1070b630f14a7a0b00d828f0fae47ec80d09d292
Reviewed-on: https://dart-review.googlesource.com/c/90464
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2019-01-23 12:46:06 +00:00
Alexander Thomas 770ab5275a [infra] Upgrade gsutil to version 4.34
Change-Id: Id353fa11a8f86415569a505ef5ecd7bf03fb51e1
Reviewed-on: https://dart-review.googlesource.com/c/90487
Commit-Queue: Alexander Thomas <athom@google.com>
Reviewed-by: Jonas Termansen <sortie@google.com>
2019-01-22 16:58:58 +00:00
Jonas Termansen f21da0eb17 [infra] Experimentally add gclient-try builder to the CQ.
Change-Id: I028c113ebbee4643c99f440e34ae3cdd80f9ea83
Reviewed-on: https://dart-review.googlesource.com/c/90485
Reviewed-by: William Hesse <whesse@google.com>
2019-01-22 16:43:55 +00:00
Jonas Termansen 0f8b58f48f [infra] Output logs for flaky tests in compare_results.
Change-Id: I532924a61aa19bb41c8e4467e87c92bac8523cee
Reviewed-on: https://dart-review.googlesource.com/c/90483
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Jonas Termansen <sortie@google.com>
2019-01-22 14:24:19 +00:00
Jonas Termansen 404bd4ea9e [infra] Support markdown tables in approve_results.
Change-Id: I679103029dec97acd16abc6f6a1d1e93c9a4c455
Reviewed-on: https://dart-review.googlesource.com/c/90461
Reviewed-by: Alexander Thomas <athom@google.com>
2019-01-22 11:09:32 +00:00
Jonas Termansen bc81271f29 [infra] Support automatic approval of successes in approve_results.
Change-Id: I94ca507d8124a28737700f9003e1ae5c09427d7c
Reviewed-on: https://dart-review.googlesource.com/c/90241
Reviewed-by: William Hesse <whesse@google.com>
2019-01-21 12:02:26 +00:00
Jonas Termansen 58057f214f [infra] Fix approve_results incomplete try run error message.
Change-Id: Ie8035458619cbb69544edb78c82b1956e96e56d0
Reviewed-on: https://dart-review.googlesource.com/c/90222
Reviewed-by: William Hesse <whesse@google.com>
2019-01-21 11:58:43 +00:00
William Hesse 9d25cc93e8 Add build_id for flaky builds to log of flaky tests.
Change-Id: Idb9409cceb46343d3c07270c61a595a9a3cdedaf
Reviewed-on: https://dart-review.googlesource.com/c/89530
Reviewed-by: Jonas Termansen <sortie@google.com>
2019-01-21 11:56:00 +00:00
Stephen Adams aeaf82577e dart:html: Add Element.removeAttribute
- Improve `element.attributes.remove(name)` to compile to `element.removeAttribute(name)`.
- Improve `element.getNamespacedAttributes(namespace).remove(name)` to compile to
  `element.removeAttributeNS(namespace, name)`.
- Add removeAttribute[NS].
- Add hasAttriute[NS].
- Assert attribute names are not null to prevent conversion to "null"/"undefined".
- TODO: Assert values are not null to prevent conversion to "null"/"undefined".
- namespaceURI does not need checking since null and undefined map to 'no namespace'.

Fixes https://github.com/dart-lang/sdk/issues/35655

Change-Id: Ie5bee23c88e8fb92f9d46f29fdf4b7f3175a2aa3
Reviewed-on: https://dart-review.googlesource.com/c/90160
Commit-Queue: Stephen Adams <sra@google.com>
Reviewed-by: Terry Lucas <terry@google.com>
2019-01-18 19:06:24 +00:00
William Hesse a533753bec Remove --fast-startup flag support from testing scripts and status files
Change-Id: Icfb4aa228c0f13bf9fce25aeb7bacbf1e38497ee
Reviewed-on: https://dart-review.googlesource.com/c/89582
Commit-Queue: William Hesse <whesse@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2019-01-16 11:32:44 +00:00