From 13b96ac91d72f1c11a2875d6317a84ec59fdc0d3 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Sun, 17 Feb 2019 18:29:48 +0100 Subject: [PATCH] ci: run saucelabs unit tests as cronjob (#28787) We no longer want to run Saucelabs for every PR/commit because Saucelabs has been very flaky recently and it blocks most of the PRs with a flaky failing state that we cannot fix most of the time due to upstream Saucelabs failures/incidents. Since real browsers tests rarely catch browser-specific failures (same as in Material), we should only run Saucelabs in a cronjob on the upstream branches. This still ensures/guarantees our browser compatibility, but makes our CI more stable and the PR workflow more productive. PR Close #28787 --- .circleci/config.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 07cecf9127..1980c32671 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -81,6 +81,15 @@ var_10: &restore_cache # This fallback should be the cache_key without variables. - v2-angular-node-10.12- +# Branch filter that can be specified for jobs that should only run on publish branches +# (e.g. master or the patch branch) +var_12: &publish_branches_filter + branches: + only: + - master + # e.g. 7.0.x, 7.1.x, etc. + - /\d+\.\d+\.x/ + version: 2 jobs: lint: @@ -529,7 +538,6 @@ workflows: - build-npm-packages - build-ivy-npm-packages - test_aio - - legacy-unit-tests-saucelabs - deploy_aio: requires: - test_aio @@ -582,17 +590,25 @@ workflows: - build-npm-packages - build-ivy-npm-packages - legacy-misc-tests - - legacy-unit-tests-saucelabs - material-unit-tests: requires: - build-ivy-npm-packages + saucelabs_tests: + jobs: + - legacy-unit-tests-saucelabs + triggers: + - schedule: + # Runs the Saucelabs legacy tests every four hours. + cron: "0 0,4,8,12,16,20 * * *" + filters: *publish_branches_filter aio_monitoring: jobs: - aio_monitoring triggers: - schedule: + # Runs AIO monitoring job at 00:00AM every day. cron: "0 0 * * *" filters: branches: