forked from flutter/flutter
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flutter_plugin_tools] Support YAML exception lists (flutter#4183)
Currently the tool accepts `--custom-analysis` to allow a list of packages for which custom `analysis_options.yaml` are allowed, and `--exclude` to exclude a set of packages when running a command against all, or all changed, packages. This results in these exception lists being embedded into CI configuration files (e.g., .cirrus.yaml) or scripts, which makes them harder to maintain, and harder to re-use in other contexts (local runs, new CI systems). This adds support for both flags to accept paths to YAML files that contain the lists, so that they can be maintained separately, and with inline comments about the reasons things are on the lists. Also updates the CI to use this new support, eliminating those lists from `.cirrus.yaml` and `tool_runner.sh` Fixes flutter#86799
- Loading branch information
1 parent
b6d1345
commit 758c55e
Showing
14 changed files
with
161 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
This folder contains configuration files that are passed to commands in place | ||
of plugin lists. They are primarily used by CI to opt specific packages out of | ||
tests, but can also useful when running multi-plugin tests locally. | ||
|
||
**Any entry added to a file in this directory should include a comment**. | ||
Skipping tests or checks for plugins is usually not something we want to do, | ||
so should the comment should either include an issue link to the issue tracking | ||
removing it or—much more rarely—explaining why it is a permanent exclusion. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Plugins that deliberately use their own analysis_options.yaml. | ||
# | ||
# This only exists to allow incrementally switching to the newer, stricter | ||
# analysis_options.yaml based on flutter/flutter, rather than the original | ||
# rules based on pedantic (now at analysis_options_legacy.yaml). | ||
# | ||
# DO NOT add new entries to the list, unless it is to push the legacy rules | ||
# from a top-level package into more specific packages in order to incrementally | ||
# migrate a federated plugin. | ||
# | ||
# TODO(ecosystem): Remove everything from this list. See: | ||
# https://github.com/flutter/flutter/issues/76229 | ||
- camera | ||
- file_selector | ||
- flutter_plugin_android_lifecycle | ||
- google_maps_flutter | ||
- google_sign_in | ||
- image_picker | ||
- in_app_purchase | ||
- integration_test | ||
- ios_platform_images | ||
- local_auth | ||
- plugin_platform_interface | ||
- quick_actions | ||
- shared_preferences | ||
- url_launcher | ||
- video_player | ||
- webview_flutter | ||
|
||
# These plugins are deprecated in favor of the Community Plus versions, and | ||
# will be removed from the repo once the critical support window has passed, | ||
# so are not worth updating. | ||
- android_alarm_manager | ||
- android_intent | ||
- battery | ||
- connectivity | ||
- device_info | ||
- package_info | ||
- sensors | ||
- share | ||
- wifi_info_flutter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Currently missing harness files: https://github.com/flutter/flutter/issues/86749) | ||
- camera/camera | ||
- google_sign_in/google_sign_in | ||
- in_app_purchase/in_app_purchase | ||
- in_app_purchase_android | ||
- quick_actions | ||
- shared_preferences/shared_preferences | ||
- url_launcher/url_launcher | ||
- video_player/video_player | ||
- webview_flutter | ||
|
||
# Deprecated; no plan to backfill the missing files | ||
- android_intent | ||
- connectivity/connectivity | ||
- device_info/device_info | ||
- sensors | ||
- share | ||
- wifi_info_flutter/wifi_info_flutter | ||
|
||
# No integration tests to run: | ||
- image_picker/image_picker | ||
- espresso |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Currently missing: https://github.com/flutter/flutter/issues/81695 | ||
- in_app_purchase_ios | ||
# Currently missing: https://github.com/flutter/flutter/issues/82208 | ||
- ios_platform_images | ||
# Hangs on CI. Deprecated, so there is no plan to fix it. | ||
- sensors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Currently missing: https://github.com/flutter/flutter/issues/81982 | ||
- shared_preferences_web | ||
# Currently missing: https://github.com/flutter/flutter/issues/82211 | ||
- file_selector |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Deprecated plugins that will not be getting unit test backfill. | ||
- connectivity_macos | ||
- package_info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.