Skip to content

Commit 85568ac

Browse files
alan-agius4clydin
authored andcommitted
build: add bazel config that disabled sharding and flaky re-runs
This is useful when running tests locally as otherwise 50 workers are spawned when running the `//packages/angular_devkit/build_angular:build_angular_browser_test` target even when having an `fit` on a single test. This also disabled re-runs on flaky tests. (cherry picked from commit ef248e0)
1 parent 0713a02 commit 85568ac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.bazelrc

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ build --strategy=TypeScriptCompile=worker
88
# Enable debugging tests with --config=debug
99
test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results
1010

11+
# Enable debugging tests with --config=no-sharding
12+
# The below is useful to while using `fit` and `fdescribe` to avoid sharing and re-runs of failed flaky tests.
13+
test:no-sharding --flaky_test_attempts=1 --test_sharding_strategy=disabled
14+
1115
###############################
1216
# Filesystem interactions #
1317
###############################

0 commit comments

Comments
 (0)