Commit Graph

11 Commits

Author SHA1 Message Date
William Hesse 4a6ecca102 [test] Run only a subset of the Flutter analysis tests on our bots
The bots/flutter/analyze_flutter_flutter.sh script calls Flutter's
[flutter]/dev/bots/analyze.dart test script.

More tests have been added to that Flutter script, that test
Flutter style guide policies and Kotlin lints. Avoid running
all these tests, that do not depend on the Dart SDK being tested.
Only run the tests from Flutter's analyze.dart test that use
the Dart SDK analyzer.

Bug: https://github.com/flutter/flutter/pull/143478
Change-Id: I12142a019a8cbeb70b40ca028d13325303e8db61
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/362483
Reviewed-by: Alexander Thomas <athom@google.com>
2024-04-12 14:56:57 +00:00
Kate Lovett 78e5a3dd92 Revert "Update analyze_flutter_flutter.sh"
This reverts commit 28e0ae59ec.

Reason for revert: There is a typo and the script is failing.

Original change's description:
> Update analyze_flutter_flutter.sh
>
> Closes https://github.com/dart-lang/sdk/pull/54576
>
> GitOrigin-RevId: bd0e192a78ac908ee6e47fccd33f1f5651adb259
> Change-Id: I14f1d25d059e618674d73a27dcf5054aff40fe2b
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345584
> Commit-Queue: Slava Egorov <vegorov@google.com>
> Reviewed-by: Slava Egorov <vegorov@google.com>

Change-Id: I38aba29de70a7bb81444e937644d18645b1a74ea
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345740
Reviewed-by: Slava Egorov <vegorov@google.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Slava Egorov <vegorov@google.com>
Auto-Submit: Kate Lovett <katelovett@google.com>
2024-01-11 18:32:28 +00:00
Kate Lovett 28e0ae59ec Update analyze_flutter_flutter.sh
Closes https://github.com/dart-lang/sdk/pull/54576

GitOrigin-RevId: bd0e192a78ac908ee6e47fccd33f1f5651adb259
Change-Id: I14f1d25d059e618674d73a27dcf5054aff40fe2b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345584
Commit-Queue: Slava Egorov <vegorov@google.com>
Reviewed-by: Slava Egorov <vegorov@google.com>
2024-01-11 13:43:46 +00:00
Janice Collins 68353d76a4 Add a flag to disable the new unified_analytics for a single session.
- Adds a new flag, `--suppress-analytics` to the `dart` command to
  disable both the unified and the legacy analytics for a single
  session while deprecating the existing flag, `--[no-]analytics` used
  for disabling the legacy analytics on a single pass.
- Pipelines the flag from `dart` through `dart analyze` and `dart fix`
  to the execution of the analysis server.
- Updates all applicable uses of `dart analyze`, `dart fix`, and the
  analysis_server binary entry points in the SDK to disable analytics
  for the test infrastructure.

Bug: https://github.com/dart-lang/sdk/issues/49445
Change-Id: I1302cad7e04b21454aa7d9e8ee72a876b231377d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/287661
Reviewed-by: William Hesse <whesse@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Janice Collins <jcollins@google.com>
2023-03-16 18:00:57 +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
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
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
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
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