Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
176 changes: 114 additions & 62 deletions .ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ platform_properties:
]
device_type: none
os: Windows
mac_arm64:
properties:
dependencies: >-
[
{"dependency": "xcode", "version": "14a5294e"},
{"dependency": "gems", "version": "v3.3.14"}
]
os: Mac-12
device_type: none
cpu: arm64
xcode: 14a5294e # xcode 14.0 beta 5
mac_x64:
properties:
dependencies: >-
Expand All @@ -36,141 +47,190 @@ platform_properties:
device_type: none
cpu: x86
xcode: 14a5294e # xcode 14.0 beta 5


targets:
### iOS+macOS tasks ***
# TODO(stuartmorgan): Move this to ARM once google_maps_flutter has ARM
# support. `pod lint` makes a synthetic target that doesn't respect the
# pod's arch exclusions, so fails to build.
# When moving it, rename the task and file to check_podspecs
- name: Mac_x64 lint_podspecs
recipe: plugins/plugins
bringup: true # New target: https://github.com/flutter/plugins/pull/6637
timeout: 30
properties:
add_recipes_cq: "true"
version_file: flutter_master.version
target_file: mac_lint_podspecs.yaml
target_file: macos_lint_podspecs.yaml

### macOS desktop tasks ###
# macos-platform_tests builds all the plugins on M1, so this build is run
# macos_platform_tests builds all the plugins on ARM, so this build is run
# on Intel to give us build coverage of both host types.
- name: Mac_x64 build_all_plugins master
recipe: plugins/plugins
bringup: true # New target: https://github.com/flutter/plugins/pull/6671
timeout: 30
properties:
add_recipes_cq: "true"
version_file: flutter_master.version
target_file: mac_build_all_plugins.yaml
target_file: macos_build_all_plugins.yaml
channel: master

- name: Mac_x64 build_all_plugins stable
recipe: plugins/plugins
bringup: true # New target: https://github.com/flutter/plugins/pull/6671
timeout: 30
properties:
add_recipes_cq: "true"
version_file: flutter_stable.version
target_file: mac_build_all_plugins.yaml
target_file: macos_build_all_plugins.yaml
channel: stable

- name: Mac_arm64 macos_platform_tests master
recipe: plugins/plugins
timeout: 60
properties:
channel: master
add_recipes_cq: "true"
version_file: flutter_master.version
target_file: macos_platform_tests.yaml

- name: Mac_arm64 macos_platform_tests stable
recipe: plugins/plugins
presubmit: false
timeout: 60
properties:
channel: stable
add_recipes_cq: "true"
version_file: flutter_stable.version
target_file: macos_platform_tests.yaml

### iOS tasks ###
# TODO(stuartmorgan): Swap this and ios-build_all_plugins once simulator
# tests are reliable on the ARM infrastructure. See discussion at
# https://github.com/flutter/plugins/pull/5693#issuecomment-1126011089
- name: Mac_x64 ios_platform_tests_1_of_4 master
# ios_platform_tests builds all the plugins on ARM, so this build is run
# on Intel to give us build coverage of both host types.
- name: Mac_x64 ios_build_all_plugins master
recipe: plugins/plugins
bringup: true # New target: https://github.com/flutter/plugins/pull/6682
timeout: 30
properties:
channel: master
add_recipes_cq: "true"
version_file: flutter_master.version
target_file: mac_ios_platform_tests.yaml
package_sharding: "--shardIndex 0 --shardCount 4"
target_file: ios_build_all_plugins.yaml

- name: Mac_x64 ios_platform_tests_2_of_4 master
- name: Mac_x64 ios_build_all_plugins stable
recipe: plugins/plugins
bringup: true # New target: https://github.com/flutter/plugins/pull/6682
timeout: 30
properties:
channel: stable
add_recipes_cq: "true"
version_file: flutter_stable.version
target_file: ios_build_all_plugins.yaml

# TODO(stuartmorgan): Change all of the ios_platform_tests_* task timeouts
# to 60 minutes once https://github.com/flutter/flutter/issues/119750 is
# fixed.
- name: Mac_arm64 ios_platform_tests_shard_1 master - plugins
recipe: plugins/plugins
timeout: 120
properties:
add_recipes_cq: "true"
version_file: flutter_master.version
target_file: mac_ios_platform_tests.yaml
package_sharding: "--shardIndex 1 --shardCount 4"
target_file: ios_platform_tests.yaml
package_sharding: "--shardIndex 0 --shardCount 5"

- name: Mac_x64 ios_platform_tests_3_of_4 master
- name: Mac_arm64 ios_platform_tests_shard_2 master - plugins
recipe: plugins/plugins
bringup: true # New target: https://github.com/flutter/plugins/pull/6682
timeout: 30
timeout: 120
properties:
add_recipes_cq: "true"
version_file: flutter_master.version
target_file: mac_ios_platform_tests.yaml
package_sharding: "--shardIndex 2 --shardCount 4"
target_file: ios_platform_tests.yaml
package_sharding: "--shardIndex 1 --shardCount 5"

- name: Mac_x64 ios_platform_tests_4_of_4 master
- name: Mac_arm64 ios_platform_tests_shard_3 master - plugins
recipe: plugins/plugins
bringup: true # New target: https://github.com/flutter/plugins/pull/6682
timeout: 30
timeout: 120
properties:
add_recipes_cq: "true"
version_file: flutter_master.version
target_file: ios_platform_tests.yaml
package_sharding: "--shardIndex 2 --shardCount 5"

- name: Mac_arm64 ios_platform_tests_shard_4 master - plugins
recipe: plugins/plugins
timeout: 120
properties:
add_recipes_cq: "true"
version_file: flutter_master.version
target_file: ios_platform_tests.yaml
package_sharding: "--shardIndex 3 --shardCount 5"

- name: Mac_arm64 ios_platform_tests_shard_5 master - plugins
recipe: plugins/plugins
timeout: 120
properties:
add_recipes_cq: "true"
version_file: flutter_master.version
target_file: mac_ios_platform_tests.yaml
package_sharding: "--shardIndex 3 --shardCount 4"
target_file: ios_platform_tests.yaml
package_sharding: "--shardIndex 4 --shardCount 5"

# Don't run full platform tests on both channels in pre-submit.
- name: Mac_x64 ios_platform_tests_1_of_4 stable
- name: Mac_arm64 ios_platform_tests_shard_1 stable - plugins
recipe: plugins/plugins
presubmit: false
bringup: true # New target: https://github.com/flutter/plugins/pull/6682
timeout: 30
timeout: 120
properties:
channel: stable
add_recipes_cq: "true"
version_file: flutter_stable.version
target_file: mac_ios_platform_tests.yaml
package_sharding: "--shardIndex 0 --shardCount 4"
target_file: ios_platform_tests.yaml
package_sharding: "--shardIndex 0 --shardCount 5"

- name: Mac_x64 ios_platform_tests_2_of_4 stable
- name: Mac_arm64 ios_platform_tests_shard_2 stable - plugins
recipe: plugins/plugins
presubmit: false
bringup: true # New target: https://github.com/flutter/plugins/pull/6682
timeout: 30
timeout: 120
properties:
channel: stable
add_recipes_cq: "true"
version_file: flutter_stable.version
target_file: mac_ios_platform_tests.yaml
package_sharding: "--shardIndex 1 --shardCount 4"
target_file: ios_platform_tests.yaml
package_sharding: "--shardIndex 1 --shardCount 5"

- name: Mac_x64 ios_platform_tests_3_of_4 stable
- name: Mac_arm64 ios_platform_tests_shard_3 stable - plugins
recipe: plugins/plugins
presubmit: false
bringup: true # New target: https://github.com/flutter/plugins/pull/6682
timeout: 30
timeout: 120
properties:
channel: stable
add_recipes_cq: "true"
version_file: flutter_stable.version
target_file: mac_ios_platform_tests.yaml
package_sharding: "--shardIndex 2 --shardCount 4"
target_file: ios_platform_tests.yaml
package_sharding: "--shardIndex 2 --shardCount 5"

- name: Mac_x64 ios_platform_tests_4_of_4 stable
- name: Mac_arm64 ios_platform_tests_shard_4 stable - plugins
recipe: plugins/plugins
presubmit: false
bringup: true # New target: https://github.com/flutter/plugins/pull/6682
timeout: 30
timeout: 120
properties:
channel: stable
add_recipes_cq: "true"
version_file: flutter_stable.version
target_file: ios_platform_tests.yaml
package_sharding: "--shardIndex 3 --shardCount 5"

- name: Mac_arm64 ios_platform_tests_shard_5 stable - plugins
recipe: plugins/plugins
presubmit: false
timeout: 120
properties:
channel: stable
add_recipes_cq: "true"
version_file: flutter_stable.version
target_file: mac_ios_platform_tests.yaml
package_sharding: "--shardIndex 3 --shardCount 4"
target_file: ios_platform_tests.yaml
package_sharding: "--shardIndex 4 --shardCount 5"

- name: Windows win32-platform_tests master
recipe: plugins/plugins
timeout: 30
timeout: 60
properties:
add_recipes_cq: "true"
target_file: windows_build_and_platform_tests.yaml
Expand All @@ -183,7 +243,8 @@ targets:

- name: Windows win32-platform_tests stable
recipe: plugins/plugins
timeout: 30
presubmit: false
timeout: 60
properties:
add_recipes_cq: "true"
target_file: windows_build_and_platform_tests.yaml
Expand All @@ -199,7 +260,7 @@ targets:
timeout: 30
properties:
add_recipes_cq: "true"
target_file: build_all_plugins.yaml
target_file: windows_build_all_plugins.yaml
channel: master
version_file: flutter_master.version
dependencies: >
Expand All @@ -212,23 +273,14 @@ targets:
timeout: 30
properties:
add_recipes_cq: "true"
target_file: build_all_plugins.yaml
target_file: windows_build_all_plugins.yaml
channel: stable
version_file: flutter_stable.version
dependencies: >
[
{"dependency": "vs_build", "version": "version:vs2019"}
]

- name: Windows plugin_tools_tests
recipe: plugins/plugins
timeout: 30
properties:
add_recipes_cq: "true"
target_file: plugin_tools_tests.yaml
channel: master
version_file: flutter_master.version

- name: Linux ci_yaml plugins roller
recipe: infra/ci_yaml
timeout: 30
Expand Down
2 changes: 1 addition & 1 deletion .ci/flutter_master.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
61e927d22fe6d82c94c368d62aa81f733bd9218d
33e4d21f7c13e02a7c92c7272309afbff792a864
2 changes: 1 addition & 1 deletion .ci/flutter_stable.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
52b3dc25f6471c27b2144594abb11c741cb88f57
7048ed95a5ad3e43d697e0c397464193991fc230
3 changes: 2 additions & 1 deletion .ci/scripts/build_all_plugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@

platform="$1"
build_mode="$2"
shift 2
cd all_packages
flutter build "$platform" --"$build_mode"
flutter build "$platform" --"$build_mode" "$@"
2 changes: 1 addition & 1 deletion .ci/scripts/build_examples_win32.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

dart ./script/tool/bin/flutter_plugin_tools.dart build-examples --windows \
dart pub global run flutter_plugin_tools build-examples --windows \
--packages-for-branch --log-timing
4 changes: 2 additions & 2 deletions .ci/scripts/create_all_plugins_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

dart ./script/tool/bin/flutter_plugin_tools.dart create-all-packages-app \
--output-dir=. --exclude script/configs/exclude_all_plugins_app.yaml
dart pub global run flutter_plugin_tools create-all-packages-app \
--output-dir=. --exclude script/configs/exclude_all_packages_app.yaml
2 changes: 1 addition & 1 deletion .ci/scripts/create_simulator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

device=com.apple.CoreSimulator.SimDeviceType.iPhone-11
device=com.apple.CoreSimulator.SimDeviceType.iPhone-13
os=com.apple.CoreSimulator.SimRuntime.iOS-16-0

xcrun simctl list
Expand Down
2 changes: 1 addition & 1 deletion .ci/scripts/drive_examples_win32.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

dart ./script/tool/bin/flutter_plugin_tools.dart drive-examples --windows \
dart pub global run flutter_plugin_tools drive-examples --windows \
--exclude=script/configs/exclude_integration_win32.yaml --packages-for-branch --log-timing
2 changes: 1 addition & 1 deletion .ci/scripts/native_test_win32.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

dart ./script/tool/bin/flutter_plugin_tools.dart native-test --windows \
dart pub global run flutter_plugin_tools native-test --windows \
--no-integration --packages-for-branch --log-timing
5 changes: 3 additions & 2 deletions .ci/scripts/prepare_tool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
# To set FETCH_HEAD for "git merge-base" to work
git fetch origin main

cd script/tool
dart pub get
# Pinned version of the plugin tools, to avoid breakage in this repository
# when pushing updates from flutter/packages.
dart pub global activate flutter_plugin_tools 0.13.4+3
11 changes: 11 additions & 0 deletions .ci/targets/ios_build_all_plugins.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
tasks:
- name: prepare tool
script: .ci/scripts/prepare_tool.sh
- name: create all_plugins app
script: .ci/scripts/create_all_plugins_app.sh
- name: build all_plugins for iOS debug
script: .ci/scripts/build_all_plugins.sh
args: ["ios", "debug", "--no-codesign"]
- name: build all_plugins for iOS release
script: .ci/scripts/build_all_plugins.sh
args: ["ios", "release", "--no-codesign"]
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
tasks:
- name: prepare tool
script: .ci/scripts/prepare_tool.sh
- name: create simulator
script: .ci/scripts/create_simulator.sh
- name: build examples
Expand All @@ -13,7 +15,7 @@ tasks:
args: ["xcode-analyze", "--ios", "--ios-min-version=13.0"]
- name: native test
script: script/tool_runner.sh
args: ["native-test", "--ios", "--ios-destination", "platform=iOS Simulator,name=iPhone 11,OS=latest"]
args: ["native-test", "--ios", "--ios-destination", "platform=iOS Simulator,name=iPhone 13,OS=latest"]
- name: drive examples
# `drive-examples` contains integration tests, which changes the UI of the application.
# This UI change sometimes affects `xctest`.
Expand Down
Loading