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
This commit is contained in:
parent
623fd3fb5e
commit
13b96ac91d
|
@ -81,6 +81,15 @@ var_10: &restore_cache
|
||||||
# This fallback should be the cache_key without variables.
|
# This fallback should be the cache_key without variables.
|
||||||
- v2-angular-node-10.12-
|
- 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
|
version: 2
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
|
@ -529,7 +538,6 @@ workflows:
|
||||||
- build-npm-packages
|
- build-npm-packages
|
||||||
- build-ivy-npm-packages
|
- build-ivy-npm-packages
|
||||||
- test_aio
|
- test_aio
|
||||||
- legacy-unit-tests-saucelabs
|
|
||||||
- deploy_aio:
|
- deploy_aio:
|
||||||
requires:
|
requires:
|
||||||
- test_aio
|
- test_aio
|
||||||
|
@ -582,17 +590,25 @@ workflows:
|
||||||
- build-npm-packages
|
- build-npm-packages
|
||||||
- build-ivy-npm-packages
|
- build-ivy-npm-packages
|
||||||
- legacy-misc-tests
|
- legacy-misc-tests
|
||||||
- legacy-unit-tests-saucelabs
|
|
||||||
- material-unit-tests:
|
- material-unit-tests:
|
||||||
requires:
|
requires:
|
||||||
- build-ivy-npm-packages
|
- 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:
|
aio_monitoring:
|
||||||
jobs:
|
jobs:
|
||||||
- aio_monitoring
|
- aio_monitoring
|
||||||
triggers:
|
triggers:
|
||||||
- schedule:
|
- schedule:
|
||||||
|
# Runs AIO monitoring job at 00:00AM every day.
|
||||||
cron: "0 0 * * *"
|
cron: "0 0 * * *"
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
|
|
Loading…
Reference in New Issue