@@ -343,10 +343,6 @@ jobs:
343343 path : dist/bin/packages/core/test/bundling/todo/bundle.min.js.br
344344 destination : core/todo/bundle.br
345345
346- # This job is currently a PoC for running tests on SauceLabs via bazel. It runs a subset of the
347- # tests in `legacy-unit-tests-saucelabs` (see
348- # [BUILD.bazel](https://github.com/angular/angular/blob/ef44f51d5/BUILD.bazel#L66-L92)).
349- #
350346 # NOTE: This is currently limited to master builds only. See the `default_workflow` configuration.
351347 saucelabs_view_engine :
352348 executor :
@@ -360,16 +356,18 @@ jobs:
360356 - init_environment
361357 - init_saucelabs_environment
362358 - run :
363- name : Run Bazel tests on Saucelabs
359+ name : Run Bazel tests on Saucelabs with ViewEngine
364360 # See /tools/saucelabs/README.md for more info
365361 command : |
366362 yarn bazel run //tools/saucelabs:sauce_service_setup
367- yarn bazel test //:saucelabs_unit_tests_poc_suite --config=saucelabs
363+ TESTS=$(./node_modules/.bin/bazel query --output label '(kind(karma_web_test, ...) intersect attr("tags", "saucelabs", ...)) except attr("tags", "ivy-only", ...) except attr("tags", "fixme-saucelabs", ...)')
364+ yarn bazel test --config=saucelabs ${TESTS}
368365 yarn bazel run //tools/saucelabs:sauce_service_stop
369- no_output_timeout : 20m
366+ no_output_timeout : 40m
370367 - notify_webhook_on_fail :
371368 webhook_url_env_var : SLACK_DEV_INFRA_CI_FAILURES_WEBHOOK_URL
372369
370+ # NOTE: This is currently limited to master builds only. See the `default_workflow` configuration.
373371 saucelabs_ivy :
374372 executor :
375373 name : default-executor
@@ -382,13 +380,16 @@ jobs:
382380 - init_environment
383381 - init_saucelabs_environment
384382 - run :
385- name : Run Bazel tests on Saucelabs
383+ name : Run Bazel tests on Saucelabs with Ivy
386384 # See /tools/saucelabs/README.md for more info
387385 command : |
388386 yarn bazel run //tools/saucelabs:sauce_service_setup
389- yarn bazel test //:saucelabs_unit_tests --config=saucelabs --config=ivy
387+ TESTS=$(./node_modules/.bin/bazel query --output label '(kind(karma_web_test, ...) intersect attr("tags", "saucelabs", ...)) except attr("tags", "no-ivy-aot", ...) except attr("tags", "fixme-saucelabs", ...)')
388+ yarn bazel test --config=saucelabs --config=ivy ${TESTS}
390389 yarn bazel run //tools/saucelabs:sauce_service_stop
391- no_output_timeout : 20m
390+ no_output_timeout : 40m
391+ - notify_webhook_on_fail :
392+ webhook_url_env_var : SLACK_DEV_INFRA_CI_FAILURES_WEBHOOK_URL
392393
393394 test_aio :
394395 executor : default-executor
@@ -840,13 +841,22 @@ workflows:
840841 requires :
841842 - setup
842843 - saucelabs_ivy :
844+ # Testing saucelabs via Bazel currently taking longer than the legacy saucelabs job as it
845+ # each karma_web_test target is provisioning and tearing down browsers which is adding
846+ # a lot of overhead. Running on master only to avoid wasting resources and slowing down
847+ # CI for PRs.
848+ # TODO: Run this job on all branches (including PRs) once karma_web_test targets can
849+ # share provisioned browsers and we can remove the legacy saucelabs job.
850+ << : *only_on_master
843851 requires :
844- - test_ivy_aot
852+ - setup
845853 - saucelabs_view_engine :
846- # This job is currently a PoC and a subset of `legacy-unit-tests-saucelabs`. Running on
847- # master only to avoid wasting resources.
848- # TODO: Run this job on all branches (including PRs) as soon as it is not a PoC and
849- # we can remove the legacy saucelabs job.
854+ # Testing saucelabs via Bazel currently taking longer than the legacy saucelabs job as it
855+ # each karma_web_test target is provisioning and tearing down browsers which is adding
856+ # a lot of overhead. Running on master only to avoid wasting resources and slowing down
857+ # CI for PRs.
858+ # TODO: Run this job on all branches (including PRs) once karma_web_test targets can
859+ # share provisioned browsers and we can remove the legacy saucelabs job.
850860 << : *only_on_master
851861 requires :
852862 - setup
@@ -899,6 +909,7 @@ workflows:
899909 - test
900910 - test_ivy_aot
901911 - integration_test
912+ - saucelabs_view_engine
902913 - saucelabs_ivy
903914 # Only publish if `aio`/`docs` tests using the locally built Angular packages pass
904915 - test_aio_local
0 commit comments