Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Shard plugins for example app builds #623

Merged
merged 7 commits into from
Jun 23, 2018

Conversation

mravn-google
Copy link
Contributor

@mravn-google mravn-google commented Jun 16, 2018

Make use of sharding parameters in flutter_plugin_tools, with shard count = 2.

My .travis.yaml fu is obviously weak, and I have not yet had time to find a better approach that has less duplication of configuration and doesn't result in two shards also when there is only one plugin involved in the CI run.

script:
- ./script/plugin_tools.sh build-examples --apk
- ./script/plugin_tools.sh java-test # must come after apk build
# Job 4) Build example IPAs
# Job 3.2) Build example APKs and run Java tests, shard 2/2
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have liked to avoid duplication here, but not sure what is the best approach for that.

Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I also don't see a way to avoid the duplication :(

@mravn-google mravn-google merged commit c7fe014 into flutter:master Jun 23, 2018
@mravn-google mravn-google deleted the plugin_sharding branch June 23, 2018 11:35
echo "Running for all packages"
pub global run flutter_plugin_tools "$@"
echo "Running for all packages ($PLUGIN_SHARDING)"
pub global run flutter_plugin_tools "$@" $PLUGIN_SHARDING
else
echo "Running only for $FLUTTER_CHANGED_PACKAGES"
pub global run flutter_plugin_tools "$@" --plugins=$FLUTTER_CHANGED_PACKAGES
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mravn-google should $PLUGIN_SHARDING be added here as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That wasn't my original intention, as this branch usually means a small number of plug-ins. Trouble is, the Travis config spawns the same number of jobs either way, so we end up with redundant execution.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it! I was just wondering if $PLUGIN_SHARDING was missed here.

julianscheel pushed a commit to jusst-engineering/plugins that referenced this pull request Mar 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
4 participants