Skip to content

Commit 13b96ac

Browse files
devversionIgorMinar
authored andcommitted
ci: run saucelabs unit tests as cronjob (angular#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 angular#28787
1 parent 623fd3f commit 13b96ac

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.circleci/config.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,15 @@ var_10: &restore_cache
8181
# This fallback should be the cache_key without variables.
8282
- v2-angular-node-10.12-
8383

84+
# Branch filter that can be specified for jobs that should only run on publish branches
85+
# (e.g. master or the patch branch)
86+
var_12: &publish_branches_filter
87+
branches:
88+
only:
89+
- master
90+
# e.g. 7.0.x, 7.1.x, etc.
91+
- /\d+\.\d+\.x/
92+
8493
version: 2
8594
jobs:
8695
lint:
@@ -529,7 +538,6 @@ workflows:
529538
- build-npm-packages
530539
- build-ivy-npm-packages
531540
- test_aio
532-
- legacy-unit-tests-saucelabs
533541
- deploy_aio:
534542
requires:
535543
- test_aio
@@ -582,17 +590,25 @@ workflows:
582590
- build-npm-packages
583591
- build-ivy-npm-packages
584592
- legacy-misc-tests
585-
- legacy-unit-tests-saucelabs
586593
- material-unit-tests:
587594
requires:
588595
- build-ivy-npm-packages
589596

597+
saucelabs_tests:
598+
jobs:
599+
- legacy-unit-tests-saucelabs
600+
triggers:
601+
- schedule:
602+
# Runs the Saucelabs legacy tests every four hours.
603+
cron: "0 0,4,8,12,16,20 * * *"
604+
filters: *publish_branches_filter
590605

591606
aio_monitoring:
592607
jobs:
593608
- aio_monitoring
594609
triggers:
595610
- schedule:
611+
# Runs AIO monitoring job at 00:00AM every day.
596612
cron: "0 0 * * *"
597613
filters:
598614
branches:

0 commit comments

Comments
 (0)