This repository was archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Exclude null-safe plugins from testing on stable #3318
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
---|---|---|
|
@@ -5,13 +5,22 @@ readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)" | |
readonly REPO_DIR="$(dirname "$SCRIPT_DIR")" | ||
|
||
source "$SCRIPT_DIR/common.sh" | ||
source "$SCRIPT_DIR/nnbd_plugins.sh" | ||
|
||
if [ "$(expr substr $(uname -s) 1 5)" == "MINGW" ]; then | ||
PUB=pub.bat | ||
else | ||
PUB=pub | ||
fi | ||
|
||
# Plugins that are excluded from this task. | ||
ALL_EXCLUDED=("") | ||
# Exclude nnbd plugins from stable. | ||
if [[ "$CHANNEL" -eq "stable" ]]; then | ||
ALL_EXCLUDED=($EXCLUDED_PLUGINS_FROM_STABLE) | ||
echo "Excluding the following plugins: $ALL_EXCLUDED" | ||
fi | ||
|
||
# Plugins that deliberately use their own analysis_options.yaml. | ||
# | ||
# This list should only be deleted from, never added to. This only exists | ||
|
@@ -39,18 +48,18 @@ PLUGIN_SHARDING=($PLUGIN_SHARDING) | |
|
||
if [[ "${BRANCH_NAME}" == "master" ]]; then | ||
echo "Running for all packages" | ||
(cd "$REPO_DIR" && $PUB global run flutter_plugin_tools "${ACTIONS[@]}" ${PLUGIN_SHARDING[@]}) | ||
(cd "$REPO_DIR" && $PUB global run flutter_plugin_tools "${ACTIONS[@]}" --exclude="$ALL_EXCLUDED" ${PLUGIN_SHARDING[@]}) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does flutter_plugin_tools support There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
else | ||
# Sets CHANGED_PACKAGES | ||
check_changed_packages | ||
|
||
if [[ "$CHANGED_PACKAGES" == "" ]]; then | ||
echo "No changes detected in packages." | ||
echo "Running for all packages" | ||
(cd "$REPO_DIR" && $PUB global run flutter_plugin_tools "${ACTIONS[@]}" ${PLUGIN_SHARDING[@]}) | ||
(cd "$REPO_DIR" && $PUB global run flutter_plugin_tools "${ACTIONS[@]}" --exclude="$ALL_EXCLUDED" ${PLUGIN_SHARDING[@]}) | ||
else | ||
echo running "${ACTIONS[@]}" | ||
(cd "$REPO_DIR" && $PUB global run flutter_plugin_tools "${ACTIONS[@]}" --plugins="$CHANGED_PACKAGES" ${PLUGIN_SHARDING[@]}) | ||
(cd "$REPO_DIR" && $PUB global run flutter_plugin_tools "${ACTIONS[@]}" --plugins="$CHANGED_PACKAGES" --exclude="$ALL_EXCLUDED" ${PLUGIN_SHARDING[@]}) | ||
echo "Running version check for changed packages" | ||
(cd "$REPO_DIR" && $PUB global run flutter_plugin_tools version-check --base_sha="$(get_branch_base_sha)") | ||
fi | ||
|
This file contains hidden or 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,11 @@ | ||
#!/bin/bash | ||
|
||
# This script contains the list of plugins migrated to nnbd | ||
# that should be excluded from testing on Flutter stable until | ||
# null-safe is available on stable. | ||
|
||
readonly NNBD_PLUGINS_LIST=( | ||
"flutter_webview" | ||
) | ||
|
||
export EXCLUDED_PLUGINS_FROM_STABLE=$(IFS=, ; echo "${NNBD_PLUGINS_LIST[*]}") |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can you print to the log here that we're skipping checks for the following plugins?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.