Skip to content

Commit

Permalink
[ci] Pin stable version
Browse files Browse the repository at this point in the history
Switch from using the the latest stable version to using a pinned stable
version, just as we do for master.

Fixes flutter/flutter#93811
Fixes the flutter/plugins half of flutter/flutter#106900
  • Loading branch information
stuartmorgan committed Jul 18, 2022
1 parent 5712aed commit 6b1d387
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ targets:
add_recipes_cq: "true"
target_file: windows_build_and_platform_tests.yaml
channel: stable
version_file: flutter_stable.version
dependencies: >
[
{"dependency": "vs_build", "version": "version:vs2019"}
Expand All @@ -72,6 +73,7 @@ targets:
add_recipes_cq: "true"
target_file: build_all_plugins.yaml
channel: stable
version_file: flutter_stable.version
dependencies: >
[
{"dependency": "vs_build", "version": "version:vs2019"}
Expand Down
1 change: 1 addition & 0 deletions .ci/flutter_stable.version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f1875d570e39de09040c8f79aa13cc56baab8db1
8 changes: 4 additions & 4 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ tool_setup_template: &TOOL_SETUP_TEMPLATE

flutter_upgrade_template: &FLUTTER_UPGRADE_TEMPLATE
upgrade_flutter_script:
# Master uses a pinned, auto-rolled version to prevent out-of-band CI
# failures due to changes in Flutter.
# TODO(stuartmorgan): Investigate an autoroller for stable as well.
# Channels that are part of our normal test matrix use a pinned,
# auto-rolled version to prevent out-of-band CI failures due to changes in
# Flutter.
- TARGET_TREEISH=$CHANNEL
- if [[ "$CHANNEL" == "master" ]]; then
- if [[ "$CHANNEL" == "master" || "$CHANNEL" == "stable" ]]; then
- TARGET_TREEISH=$(< .ci/flutter_$CHANNEL.version)
- fi
# Ensure that the repository has all the branches.
Expand Down

0 comments on commit 6b1d387

Please sign in to comment.