@@ -249,33 +249,6 @@ jobs:
249249 - ./ng
250250 - ./bazel_repository_cache
251251
252- # NOTE: This is currently limited to main builds only. See the `monitoring` configuration.
253- saucelabs :
254- executor :
255- name : default-executor
256- # In order to avoid the bottleneck of having a slow host machine, we acquire a better
257- # container for this job. This is necessary because we launch a lot of browsers concurrently
258- # and therefore the tunnel and Karma need to process a lot of file requests and tests.
259- resource_class : xlarge
260- environment :
261- NUMBER_OF_PARALLEL_BROWSERS : 2
262- steps :
263- - custom_attach_workspace
264- - init_environment
265- - init_saucelabs_environment
266- - run :
267- name : Start Saucelabs daemon service
268- command : yarn bazel run //tools/saucelabs-daemon/background-service -- ${NUMBER_OF_PARALLEL_BROWSERS}
269- background : true
270- - run :
271- name : Run Bazel tests on Saucelabs
272- command : |
273- TESTS=$(./node_modules/.bin/bazelisk query --output label '(kind(karma_web_test, ...) intersect attr("tags", "saucelabs", ...)) except attr("tags", "fixme-saucelabs", ...)')
274- yarn bazel test --config=saucelabs --jobs=${NUMBER_OF_PARALLEL_BROWSERS} ${TESTS}
275- no_output_timeout : 40m
276- - notify_webhook_on_fail :
277- webhook_url_env_var : SLACK_DEV_INFRA_CI_FAILURES_WEBHOOK_URL
278-
279252 # The `build-npm-packages` tasks exist for backwards-compatibility with old scripts and
280253 # tests that rely on the pre-Bazel `dist/packages-dist` output structure (build.sh).
281254 # Having multiple jobs that independently build in this manner duplicates some work; we build
@@ -375,21 +348,3 @@ workflows:
375348 # Get the artifacts to publish from the build-packages-dist job
376349 # since the publishing script expects the legacy outputs layout.
377350 - build-npm-packages
378-
379- monitoring :
380- jobs :
381- - setup
382- - saucelabs :
383- # Testing saucelabs via Bazel currently taking longer than the legacy saucelabs job as it
384- # each karma_web_test target is provisioning and tearing down browsers which is adding
385- # a lot of overhead. Running once daily in the main branch to avoid wasting resources and
386- # slowing down CI for PRs.
387- # TODO: Run this job on all branches (including PRs) once karma_web_test targets can
388- # share provisioned browsers and we can remove the legacy saucelabs job.
389- requires :
390- - setup
391- triggers :
392- - schedule :
393- << : *only_on_main_branch
394- # Runs monitoring jobs at 10:00AM every day.
395- cron : ' 0 10 * * *'
0 commit comments