[go: nahoru, domu]

Skip to content

Commit

Permalink
Enable build_gallery tests in try/prod builders (flutter#67749)
Browse files Browse the repository at this point in the history
  • Loading branch information
keyonghan committed Oct 9, 2020
1 parent e4206ac commit 2639ac1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 68 deletions.
68 changes: 0 additions & 68 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,71 +191,3 @@ task:
- sleep 1
- cd ../../../examples/hello_world/
- flutter drive --target=test_driver/smoke_web_engine.dart -d web-server --profile --browser-name=chrome

- name: deploy_gallery-linux # 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.
# See also: https://github.com/flutter/flutter/pull/49454
depends_on:
- analyze-linux
# As of October 2019, 1 CPU and 4G of RAM let deploy_gallery-linux finish in about 15
# minutes, once it got started.
script:
- ./dev/bots/deploy_gallery.sh

# MACOS SHARDS
# Mac doesn't use caches because they apparently take longer to populate and save
# than just fetching the data in the first place.
task:
osx_instance:
image: catalina-xcode-12.0-flutter # see https://cirrus-ci.org/guide/macOS/ for list of images (we should update regularly)
# cpu is always 2
# memory is always 8G
environment:
CIRRUS_WORKING_DIR: "/tmp/$FLUTTER_SDK_PATH_WITH_SPACE"
FLUTTER_FRAMEWORK_DIR: "$CIRRUS_WORKING_DIR/bin/cache/artifacts/engine/ios/"
PATH: "$CIRRUS_WORKING_DIR/bin:$CIRRUS_WORKING_DIR/bin/cache/dart-sdk/bin:$PATH"
COCOAPODS_DISABLE_STATS: true
CPU: 2
MEMORY: 8G
SHOULD_UPDATE_PACKAGES: 'TRUE'
setup_script:
- date
- which flutter
- bundle --version
- bundle config set system 'true'
- sudo bundle install --gemfile=dev/ci/mac/Gemfile
- git clean -xffd --exclude=bin/cache/
- git fetch origin
- git fetch origin master # To set FETCH_HEAD, so that "git merge-base" works.
- flutter config --no-analytics
- if [ "$SHOULD_UPDATE_PACKAGES" == TRUE ]; then flutter update-packages; fi
- flutter doctor -v
- date
- which flutter
on_failure:
failure_script:
- date
- which flutter
matrix:
# TODO(ianh): Enable Web tests on macOS.

- 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.
# See also: https://github.com/flutter/flutter/pull/49454
depends_on:
- analyze-linux
script:
- ulimit -S -n 2048 # https://github.com/flutter/flutter/issues/2976
- ./dev/bots/deploy_gallery.sh

- name: verify_binaries_codesigned-macos # macos-only
# TODO(fujino): remove this `only_if` after https://github.com/flutter/flutter/issues/44372
# Only run pre/post submit for release branches
only_if: "$CIRRUS_BASE_BRANCH == 'dev' || $CIRRUS_BRANCH == 'dev' || $CIRRUS_BASE_BRANCH == 'beta' || $CIRRUS_BRANCH == 'beta' || $CIRRUS_BASE_BRANCH == 'stable' || $CIRRUS_BRANCH == 'stable'"
depends_on:
- analyze-linux
script:
- ulimit -S -n 2048 # https://github.com/flutter/flutter/issues/2976
- dart --enable-asserts ./dev/bots/codesign.dart
12 changes: 12 additions & 0 deletions dev/prod_builders.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
"task_name": "linux_docs",
"flaky": false
},
{
"name": "Linux build_gallery",
"repo": "flutter",
"task_name": "linux_build_gallery",
"flaky": false
},
{
"name": "Linux build_tests",
"repo": "flutter",
Expand Down Expand Up @@ -168,6 +174,12 @@
"task_name": "mac_build_tests",
"flaky": false
},
{
"name": "Mac build_gallery",
"repo": "flutter",
"task_name": "mac_build_gallery",
"flaky": false
},
{
"name": "Mac customer_testing",
"repo": "flutter",
Expand Down
12 changes: 12 additions & 0 deletions dev/try_builders.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@
"enabled":true,
"run_if":["dev/", "packages/flutter/", "packages/flutter_test/", "packages/flutter_drive/", "packages/flutter_localizations/", "bin/"]
},
{
"name":"Linux build_gallery",
"repo":"flutter",
"task_name":"linux_build_gallery",
"enabled":true
},
{
"name":"Linux framework_tests",
"repo":"flutter",
Expand Down Expand Up @@ -200,6 +206,12 @@
"task_name":"mac_customer_testing",
"enabled":true
},
{
"name":"Mac build_gallery",
"repo":"flutter",
"task_name":"mac_build_gallery",
"enabled":true
},
{
"name":"Mac framework_tests",
"repo":"flutter",
Expand Down

0 comments on commit 2639ac1

Please sign in to comment.