[go: nahoru, domu]

Skip to content

Commit

Permalink
Enable pre/post submit hostonly tests. (flutter#65985)
Browse files Browse the repository at this point in the history
  • Loading branch information
godofredoc committed Sep 17, 2020
1 parent 634e461 commit 8cb09cf
Show file tree
Hide file tree
Showing 3 changed files with 220 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ windows_shard_template: &WINDOWS_SHARD_TEMPLATE
script:
- dart --enable-asserts ./dev/bots/test.dart

macos_shard_template: &MACOS_SHARD_TEMPLATE
only_if: "changesInclude('.cirrus.yml', 'dev/**', 'bin/**') || $CIRRUS_PR == ''" # https://github.com/flutter/flutter/issues/41941
script:
- ulimit -S -n 2048 # https://github.com/flutter/flutter/issues/2976
- dart --enable-asserts ./dev/bots/test.dart

firebase_shard_template: &FIREBASE_SHARD_TEMPLATE
environment:
# Empirically, this shard runs in 20-25 minutes with just one CPU and 4G of RAM, as of
Expand Down Expand Up @@ -384,25 +378,6 @@ task:
matrix:
# TODO(ianh): Enable Web tests on macOS.

- name: hostonly_devicelab_tests-0-macos
<< : *MACOS_SHARD_TEMPLATE

- name: hostonly_devicelab_tests-1-macos
<< : *MACOS_SHARD_TEMPLATE

- name: hostonly_devicelab_tests-2-macos
<< : *MACOS_SHARD_TEMPLATE

- name: hostonly_devicelab_tests-3_last-macos
<< : *MACOS_SHARD_TEMPLATE

- name: customer_testing-macos
script:
- ulimit -S -n 2048 # https://github.com/flutter/flutter/issues/2976
- rm -rf bin/cache/pkg/tests
- git clone https://github.com/flutter/tests.git bin/cache/pkg/tests
- dart --enable-asserts dev/customer_testing/run_tests.dart --skip-on-fetch-failure --skip-template bin/cache/pkg/tests/registry/*.test

- name: deploy_gallery-macos # linux- and macos- only
# Do not add more tasks here. Nothing is currently deployed from master branch, so it is safe to run
# even if a test has failed. The behavior of failing dependencies is non-ideal for infra health.
Expand Down
102 changes: 102 additions & 0 deletions dev/prod_builders.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,120 @@
"task_name":"linux_web_smoke_test",
"flaky":false
},
{
"name": "Mac build_aar_module_test",
"repo": "flutter",
"task_name": "mac_build_aar_module_test",
"flaky": false
},
{
"name": "Mac build_ios_framework_module_test",
"repo": "flutter",
"task_name": "mac_build_ios_framework_module_test",
"flaky": false
},
{
"name": "Mac build_tests",
"repo": "flutter",
"task_name": "mac_build_tests",
"flaky": false
},
{
"name": "Mac customer_testing",
"repo": "flutter",
"task_name": "mac_customer_testing",
"flaky": false
},
{
"name": "Mac framework_tests",
"repo": "flutter",
"task_name": "mac_framework_tests",
"flaky": false
},
{
"name": "Mac gradle_fast_start_test",
"repo": "flutter",
"task_name": "mac_gradle_fast_start_test",
"flaky": false
},
{
"name": "Mac gradle_jetifier_test",
"repo": "flutter",
"task_name": "mac_gradle_jetifier_test",
"flaky": false
},
{
"name": "Mac gradle_non_android_plugin_test",
"repo": "flutter",
"task_name": "mac_gradle_non_android_plugin_test",
"flaky": false
},
{
"name": "Mac gradle_plugin_bundle_test",
"repo": "flutter",
"task_name": "mac_gradle_plugin_bundle_test",
"flaky": false
},
{
"name": "Mac gradle_plugin_fat_apk_test",
"repo": "flutter",
"task_name": "mac_gradle_plugin_fat_apk_test",
"flaky": false
},
{
"name": "Mac gradle_plugin_light_apk_test",
"repo": "flutter",
"task_name": "mac_gradle_plugin_light_apk_test",
"flaky": false
},
{
"name": "Mac gradle_r8_test",
"repo": "flutter",
"task_name": "mac_gradle_r8_test",
"flaky": false
},
{
"name": "Mac module_custom_host_app_name_test",
"repo": "flutter",
"task_name": "mac_module_custom_host_app_name_test",
"flaky": false
},
{
"name": "Mac module_host_with_custom_build_test",
"repo": "flutter",
"task_name": "mac_module_host_with_custom_build_test",
"flaky": false
},
{
"name": "Mac module_test",
"repo": "flutter",
"task_name": "mac_module_test",
"flaky": false
},
{
"name": "Mac module_test_ios",
"repo": "flutter",
"task_name": "mac_module_test_ios",
"flaky": false
},
{
"name": "Mac plugin_dependencies_test",
"repo": "flutter",
"task_name": "mac_plugin_dependencies_test",
"flaky": false
},
{
"name": "Mac plugin_lint_mac",
"repo": "flutter",
"task_name": "mac_plugin_lint_mac",
"flaky": false
},
{
"name": "Mac plugin_test",
"repo": "flutter",
"task_name": "mac_plugin_test",
"flaky": false
},
{
"name": "Mac tool_tests",
"repo": "flutter",
Expand Down
118 changes: 118 additions & 0 deletions dev/try_builders.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,20 +72,138 @@
"enabled":true,
"run_if":["examples/hello_world/**" ,"dev/**", "packages/flutter/**", "packages/flutter_test/**", "packages/flutter_tools/lib/src/test/**", "packages/flutter_web_plugins/**", "bin/**"]
},
{
"name":"Mac build_aar_module_test",
"repo":"flutter",
"task_name":"mac_build_aar_module_test",
"enabled":true,
"run_if":["dev/**", "bin/**"]
},
{
"name":"Mac build_ios_framework_module_test",
"repo":"flutter",
"task_name":"mac_build_ios_framework_module_test",
"enabled":true,
"run_if":["dev/**", "bin/**"]
},
{
"name":"Mac build_tests",
"repo":"flutter",
"task_name":"mac_build_tests",
"enabled":true,
"run_if":["dev/**", "bin/**"]
},
{
"name":"Mac customer_testing",
"repo":"flutter",
"task_name":"mac_customer_testing",
"enabled":true
},
{
"name":"Mac framework_tests",
"repo":"flutter",
"task_name":"mac_framework_tests",
"enabled":true,
"run_if":["dev/**", "packages/flutter/**", "packages/flutter_goldens/**", "packages/flutter_goldens_client/**", "packages/flutter_test/**", "packages/flutter_tools/lib/src/test/**", "bin/**"]
},
{
"name":"Mac gradle_fast_start_test",
"repo":"flutter",
"task_name":"mac_gradle_fast_start_test",
"enabled":true,
"run_if":["dev/**", "bin/**"]
},
{
"name":"Mac gradle_jetifier_test",
"repo":"flutter",
"task_name":"mac_gradle_jetifier_test",
"enabled":true,
"run_if":["dev/**", "bin/**"]
},
{
"name":"Mac gradle_non_android_plugin_test",
"repo":"flutter",
"task_name":"mac_gradle_non_android_plugin_test",
"enabled":true,
"run_if":["dev/**", "bin/**"]
},
{
"name":"Mac gradle_plugin_bundle_test",
"repo":"flutter",
"task_name":"mac_gradle_plugin_bundle_test",
"enabled":true,
"run_if":["dev/**", "bin/**"]
},
{
"name":"Mac gradle_plugin_fat_apk_test",
"repo":"flutter",
"task_name":"mac_gradle_plugin_fat_apk_test",
"enabled":true,
"run_if":["dev/**", "bin/**"]
},
{
"name":"Mac gradle_plugin_light_apk_test",
"repo":"flutter",
"task_name":"mac_gradle_plugin_light_apk_test",
"enabled":true,
"run_if":["dev/**", "bin/**"]
},
{
"name":"Mac gradle_r8_test",
"repo":"flutter",
"task_name":"mac_gradle_r8_test",
"enabled":true,
"run_if":["dev/**", "bin/**"]
},
{
"name":"Mac module_custom_host_app_name_test",
"repo":"flutter",
"task_name":"mac_module_custom_host_app_name_test",
"enabled":true,
"run_if":["dev/**", "bin/**"]
},
{
"name":"Mac module_host_with_custom_build_test",
"repo":"flutter",
"task_name":"mac_module_host_with_custom_build_test",
"enabled":true,
"run_if":["dev/**", "bin/**"]
},
{
"name":"Mac module_test",
"repo":"flutter",
"task_name":"mac_module_test",
"enabled":true,
"run_if":["dev/**", "bin/**"]
},
{
"name":"Mac module_test_ios",
"repo":"flutter",
"task_name":"mac_module_test_ios",
"enabled":true,
"run_if":["dev/**", "bin/**"]
},
{
"name":"Mac plugin_dependencies_test",
"repo":"flutter",
"task_name":"mac_plugin_dependencies_test",
"enabled":true,
"run_if":["dev/**", "bin/**"]
},
{
"name":"Mac plugin_lint_mac",
"repo":"flutter",
"task_name":"mac_plugin_lint_mac",
"enabled":true,
"run_if":["dev/**", "bin/**"]
},
{
"name":"Mac plugin_test",
"repo":"flutter",
"task_name":"mac_plugin_lint_mac",
"enabled":true,
"run_if":["dev/**", "bin/**"]
},
{
"name":"Mac tool_tests",
"repo":"flutter",
Expand Down

0 comments on commit 8cb09cf

Please sign in to comment.