Commit Graph

36 Commits

Author SHA1 Message Date
Michael Thomsen 34b3382e21 Remove a few uses of bin/pub
Change-Id: Ie21ecb4ddedf8b5f3d10019525fe1b62992812b1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/232094
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Michael Thomsen <mit@google.com>
2022-02-09 17:13:37 +00:00
William Hesse 47f537cdf7 [infra] Remove duplicate flutter analyze snippets step from script
The snippets analyze step in [flutter]/dev/bots/analyze.dart now uses our built SDK when analyzing the code snippets. The explicit duplicate command to analyze the snippets with our SDK can now be removed.

The temp directory created in the script is not in the builder cache
on swarming, so it is automatically deleted when the builder finishes.
So we remove the cleanup step, which was trapping signals. That trap
seems to have been responsible for these failures and exit code confusion.

Bug: https://github.com/dart-lang/sdk/issues/47881
Change-Id: I49406954af54a0fba1ceec230c3551f8ad14e8e9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226685
Reviewed-by: Paul Berry <paulberry@google.com>
2022-01-07 14:39:20 +00:00
Sam Rawlins 296167d3c9 Add flutter/gallery to flutter-analyze bot
Fixes https://github.com/dart-lang/sdk/issues/47527

Change-Id: I24a7b20f9756197a058eefd507dc139d19762642
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222660
Reviewed-by: Alexander Thomas <athom@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2021-12-14 22:38:45 +00:00
Alexander Thomas 81723904c8 [infra] Fix flutter-frontend
The third_party directory was removed in https://github.com/flutter/buildroot/commit/d45d8382665c923bdc2f8ab4e49f0deef84dd173

Change-Id: Ib487b801d7446a151b6a1f231e3761ef6158a73f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/223801
Reviewed-by: William Hesse <whesse@google.com>
2021-12-14 12:21:04 +00:00
Paul Berry 3e6d9a5e55 Place the pub cache under the checkout directory when running snippet tests.
This is an attempt to address some recent flakiness in the Flutter analyze trybots.

Bug: https://github.com/dart-lang/sdk/issues/47881
Change-Id: I46eb1fca52fef4bbd3854c5da226512a579e11fb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222780
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2021-12-09 20:29:59 +00:00
Sam Rawlins 3432d05089 Use just-built dart in dart fix test
Fixes https://github.com/dart-lang/sdk/issues/47678
Change-Id: I1dbd9927f5a19f19777b468cce8e4812b35d45eb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220783
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-12-02 19:42:57 +00:00
Nate Bosch f9c68a5679 Replace a bunch of references to .packages
Most of these arguments are flowing through to a `--packages` argument
which allows passing the `package_config.json` file. In the long term we
should remove the `.packages` file entirely.

TEST=None, the change should have no visible impact.

Change-Id: I60a8b175d5e217a85588bbcb91cc5095514066b4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/211503
Auto-Submit: Nate Bosch <nbosch@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2021-10-12 20:16:15 +00:00
Devon Carew c7156f82a5 fix the presubmit check for the flutter/plugins repo
Change-Id: Id098bfa2eb77809998d3672e452c2c3e746aedb4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/207981
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2021-07-23 17:55:39 +00:00
Devon Carew 46b04e6c4a Analyze flutter/plugins as part of the flutter-analyze try bot.
Bug: https://github.com/dart-lang/sdk/issues/45873
Change-Id: I3d603ce31ca0fd5402cb359f376f810f78f21a5f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/201221
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2021-06-01 22:22:20 +00:00
Devon Carew 077c24b4f7 also analyze flutter samples in doc comments
Change-Id: I9b4b71a4dee64bb80517c1962ef4922c822b876b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200904
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2021-05-20 22:09:55 +00:00
Alexander Thomas 04e7766ffb [infra] Use set -x in flutter scripts
Change-Id: I3f938b4279aee7d4cd19e08e7c90c3ddba570e5b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/192747
Reviewed-by: Jonas Jensen <jonasfj@google.com>
2021-04-13 07:24:44 +00:00
Jens Johansen 8270944c5d [CFE] Extend weekly test - fuzz tests and advanced invalidation leak test
We currently run our leak tests weekly.
This extends it so we also run leak tests with advanced invalidation,
as well as our strong and weak tests with fuzzing enabled.

Change-Id: I2c941f58594791d1981c6b6612db2205b68f5e19
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/192682
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2021-03-24 14:44:51 +00:00
Lasse R.H. Nielsen d352bc28b8 Remove (most) uses of the "non-nullable" experiment flag.
Since the flag is now enabled by default, there should be no mention of it.
There are still some uses in front_end/testcases that are not just removable
(it also uses `no-non-nullable`). There migth be more uses that are not
as easily found as grepping for `--enable-experiment

Removes two VM tests where fixing them meant they were just duplicating
the corresponding non *_2/ tests.
Fixes #44941

TEST= Large number of tests chaged.=(no-)?non-nullable`.

Change-Id: Ief755981ccde9a5482fcdf408c2929c74433a710
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/183688
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
2021-02-12 17:16:54 +00:00
Devon Carew b87af6d153 [dart fix] test flutter's use of data driven fixes
Change-Id: I7a1ce80eb30aeabbb35c980a2af0c0ae03cbc4d7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/178662
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2021-01-12 00:58:40 +00:00
Clement Skau 2d36c85ff8 [vm] Removes support for --causal-async-stacks
All existing embedders have been opted into --lazy-async-stacks, the
VM also uses it as it's default in all configurations.

After this CL, any user of --causal-async-stacks will get an error
message when trying to use it.
=> In any such case, please simply remove the flag.

TEST=Exhaustive CQ.

Bug: https://github.com/dart-lang/sdk/issues/37668
Change-Id: Ia440afcf2dba464aa8b8cf381b93bbac8eb9f8dc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/172564
Commit-Queue: Clement Skau <cskau@google.com>
Reviewed-by: Clement Skau <cskau@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2020-12-01 07:27:14 +00:00
Devon Carew 9ca05a4092 Fail the flutter/engine bot on analysis info items.
Change-Id: Id82ec041a924ad6f859859fafa90570ed14b69d2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/169787
Reviewed-by: Alexander Aprelev <aam@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2020-10-29 23:39:59 +00:00
Jens Johansen 29fa4e8148 [CFE et al] Compile flutter platform as agnostic for test; set component mode more
Bug: dartbug.com/43844 dartbug.com/43807
Change-Id: Iba662f0955897244aaac86ceace73b213fa06319
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/168482
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2020-10-21 10:04:41 +00:00
Alexander Thomas 7309343e5c [infra] Checkout Flutter buildroot in flutter-frontend as well
Fixes https://github.com/dart-lang/sdk/issues/43807

Change-Id: Idacc71c2c165af768274e4f40ce61b78c2d46ba0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/167806
Reviewed-by: Jonas Termansen <sortie@google.com>
2020-10-16 12:18:25 +00:00
Devon Carew 1c21a7ff93 Analyze the Dart code in flutter/engine as part of the flutter-analyze bot.
Change-Id: I4aac6b1a018332fa2d4ed39c8b953b0e98a1b4c4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/159761
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2020-08-25 15:21:30 +00:00
Jens Johansen 13de7e7560 [CFE] Add first stab at weekly leak test
Change-Id: Ib0307a4d82414e8387f65a9010a6f0f91827c3bb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/157962
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2020-08-11 09:01:29 +00:00
Leaf Petersen d44457f79d [Core Libraries] Eliminate the fork in the core libraries.
Move the nnbd core libraries from sdk_nnbd to sdk, and updates
references in build files and elsewhere accordingly.

Change-Id: I09760fe1e006657aacdfe80f3b22fdf6f7e30a9f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151121
Commit-Queue: Leaf Petersen <leafp@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2020-06-16 23:37:36 +00:00
Clement Skau f599b7951f [SDK] Clean up compile_flutter.sh a bit for readability and robustness.
Change-Id: If45661582f108c64dbf08b7f9e755ad6bff10344
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/147910
Commit-Queue: Clement Skau <cskau@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2020-05-18 09:25:34 +00:00
William Hesse 2fd798ed5c Change flutter builder to build flutter libraries in weak mode
The flutter libraries are not yet null-safe, and the --null-agnostic
flag gives the error:
flutter/lib/ui/ui.dart:12:1: Error: A library can't opt out of non-nullable by default, when in nnbd-strong mode.

Change-Id: I3cc64205a1c7ae2e77a0ff2ae88f9187d1880926
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148125
Reviewed-by: Jens Johansen <jensj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2020-05-15 07:13:50 +00:00
Jens Johansen 658feaca7c Fix flutter-frontend bot by updating script to NNBD
Change-Id: I733674466f0dfd91ae96d0246a804a7d06335824
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/147904
Reviewed-by: Clement Skau <cskau@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2020-05-13 14:12:41 +00:00
Jens Johansen 8652404193 [flutter-frontend-test] Run flutter-frontend compile tests in custom test runner
Change-Id: Iecf2f40dd1bc8c0fffd877911e81ccd6055d9dc0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/136121
Reviewed-by: Karl Klose <karlklose@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2020-02-18 10:58:59 +00:00
Jens Johansen 128771af8a [CFE] Version 2 of incremental compiler invalidation strategy
Change-Id: Iff860e2665dee64fc005a50237ae890986ddb0f1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127896
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2020-01-16 07:50:39 +00:00
Alexander Thomas cb94390c63 [infra] Improve efficiency of cloning the Flutter repositories
Sometimes the flutter-analyze builder is flaky because cloning Flutter
exhausts the "short term ls-remote rate limit". "--single-branch"
reduces how many remotes need to be fetched.

Also in this CL:
* Use dart.googlesource.com.
* Apply the same changes to the flutter-frontend builder.

Error example:
https://logs.chromium.org/logs/dart/buildbucket/cr-buildbucket.appspot.com/8894556948308224672/+/steps/analyze_flutter/0/stdout

Change-Id: I50df781a652602c7dd1b40b938c558b04bd3f86f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127642
Reviewed-by: Jonas Termansen <sortie@google.com>
2019-12-09 17:50:04 +00:00
Jens Johansen aece1c1e92 Update compile_flutter.sh after vm -> frontend_server rename
This will hopefully make the flutter-frontend bot green again.
This can be seen as a follow up to
https://dart-review.googlesource.com/c/sdk/+/120321
where the test was moved.

TBR.

Change-Id: Ia5915dfdf29ac2d6b8b15c8eb976e590dc3e3d37
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/120640
Reviewed-by: Jens Johansen <jensj@google.com>
2019-10-08 06:56:21 +00:00
Jens Johansen 2a94546f94 Fix flutter-frontend bot and future problems in flutter HHH bot
Two things before this CL was wrong:
* The script didn't apply paches
* The patch we needed to apply wasn't applied because a dart roll in the
  engine was done basically at the same time that the change requiring
  the patch was landed. The dart-roll did not include it, but the change
  applied the patch the the before-dart-roll-dart-version.

This CL fixes it by applying patches in the flutter-frontend script,
and copying the patch to apply to both dart-revisions.

Change-Id: If3187090778c59cf0ebdf7ab4858189c6b8904b0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117941
Reviewed-by: Jens Johansen <jensj@google.com>
2019-09-19 06:59:21 +00:00
Jens Johansen 51433e65cc Compile flutter tests via the sdk
This CL includes:
* A dart script that - given a flutter checkout - finds and compiles
  tests to ensure we actually can.
* A shell script that checks out flutter, compiles the platform
  (to cope with any changes to the kernel format) and runs the above
  script.

Change-Id: I02806a375943361c3c111d9aa12a76d745391ca3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98140
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2019-04-11 08:38:53 +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 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 9903d86d50 [infra] Apply flutter patches in flutter-analyze builds as well
Change-Id: Ibc4b4f1267ee533040cf81d940395af1985a3b76
Reviewed-on: https://dart-review.googlesource.com/c/85386
Reviewed-by: Paul Berry <paulberry@google.com>
2018-11-26 18:42:39 +00:00
Devon Carew 7c788d0734 Don't make a shallow clone of the flutter repo.
Change-Id: Iddeec5f709b086fac3ab331fcffbe8e77201cbf7
Reviewed-on: https://dart-review.googlesource.com/c/81720
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2018-10-26 20:31:15 +00:00
Alexander Thomas d8cb60d746 [infra] Improve clone command in analyze-flutter.sh script (#34739)
TBR=whesse@google.com

Change-Id: I2e43da79dbb3dba85403ee0ae4dcde2e16cd3afd
Reviewed-on: https://dart-review.googlesource.com/c/81279
Reviewed-by: Alexander Thomas <athom@google.com>
2018-10-24 15:51:33 +00:00
Alexander Thomas 2a63500865 [infra] Add flutter-analyze builder to the test matrix (#34739)
Change-Id: I04d741753c89191ccb8706d02330c8404efc1eb8
Reviewed-on: https://dart-review.googlesource.com/c/80581
Commit-Queue: Alexander Thomas <athom@google.com>
Auto-Submit: Alexander Thomas <athom@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
2018-10-18 17:31:09 +00:00