Skip to content

Commit

Permalink
[ci] Enable new sharding (#4515)
Browse files Browse the repository at this point in the history
Enables the newly added sharding, completing the shard addition for web and Windows platform tests.
  • Loading branch information
stuartmorgan committed Jul 19, 2023
1 parent f16ba32 commit ffcda90
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 44 deletions.
45 changes: 4 additions & 41 deletions .ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ targets:
target_file: web_platform_tests.yaml
version_file: flutter_master.version
channel: master
package_sharding: "--shardIndex 0 --shardCount 2"
package_sharding: "--shardIndex 0 --shardCount 3"

- name: Linux_web web_platform_tests_shard_2 master
recipe: packages/packages
Expand All @@ -450,12 +450,9 @@ targets:
target_file: web_platform_tests.yaml
version_file: flutter_master.version
channel: master
package_sharding: "--shardIndex 1 --shardCount 2"
package_sharding: "--shardIndex 1 --shardCount 3"

- name: Linux_web web_platform_tests_shard_3 master
# TODO(stuartmorgan): Adjust the shard count for the other targets
# when removing this.
bringup: true # New target
recipe: packages/packages
timeout: 60
properties:
Expand All @@ -471,7 +468,7 @@ targets:
target_file: web_platform_tests.yaml
version_file: flutter_stable.version
channel: stable
package_sharding: "--shardIndex 0 --shardCount 2"
package_sharding: "--shardIndex 0 --shardCount 3"

- name: Linux_web web_platform_tests_shard_2 stable
recipe: packages/packages
Expand All @@ -480,12 +477,9 @@ targets:
target_file: web_platform_tests.yaml
version_file: flutter_stable.version
channel: stable
package_sharding: "--shardIndex 1 --shardCount 2"
package_sharding: "--shardIndex 1 --shardCount 3"

- name: Linux_web web_platform_tests_shard_3 stable
# TODO(stuartmorgan): Adjust the shard count for the other targets
# when removing this.
bringup: true # New target
recipe: packages/packages
timeout: 60
properties:
Expand Down Expand Up @@ -762,35 +756,7 @@ targets:
{"dependency": "open_jdk", "version": "version:11"}
]
# TODO(stuartmorgan): Remove these two when enabling the sharded versions.
- name: Windows win32-platform_tests master - packages
recipe: packages/packages
timeout: 60
properties:
add_recipes_cq: "true"
target_file: windows_build_and_platform_tests.yaml
channel: master
version_file: flutter_master.version
dependencies: >
[
{"dependency": "vs_build", "version": "version:vs2019"}
]
- name: Windows win32-platform_tests stable - packages
recipe: packages/packages
timeout: 60
properties:
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"}
]
- name: Windows win32-platform_tests_shard_1 master
bringup: true # New target
recipe: packages/packages
timeout: 60
properties:
Expand All @@ -805,7 +771,6 @@ targets:
]
- name: Windows win32-platform_tests_shard_2 master
bringup: true # New target
recipe: packages/packages
timeout: 60
properties:
Expand All @@ -820,7 +785,6 @@ targets:
]
- name: Windows win32-platform_tests_shard_1 stable
bringup: true # New target
recipe: packages/packages
timeout: 60
properties:
Expand All @@ -835,7 +799,6 @@ targets:
]
- name: Windows win32-platform_tests_shard_2 stable
bringup: true # New target
recipe: packages/packages
timeout: 60
properties:
Expand Down
2 changes: 1 addition & 1 deletion .ci/scripts/build_examples_win32.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
set -e

dart ./script/tool/bin/flutter_plugin_tools.dart build-examples --windows \
--packages-for-branch --log-timing
--packages-for-branch --log-timing $PACKAGE_SHARDING
3 changes: 2 additions & 1 deletion .ci/scripts/drive_examples_win32.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
set -e

dart ./script/tool/bin/flutter_plugin_tools.dart drive-examples --windows \
--exclude=script/configs/exclude_integration_win32.yaml --packages-for-branch --log-timing
--exclude=script/configs/exclude_integration_win32.yaml \
--packages-for-branch --log-timing $PACKAGE_SHARDING
2 changes: 1 addition & 1 deletion .ci/scripts/native_test_win32.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
set -e

dart ./script/tool/bin/flutter_plugin_tools.dart native-test --windows \
--no-integration --packages-for-branch --log-timing
--no-integration --packages-for-branch --log-timing $PACKAGE_SHARDING

0 comments on commit ffcda90

Please sign in to comment.