Skip to content

Commit

Permalink
build: add bazel config that disabled sharding and flaky re-runs
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
alan-agius4 authored and clydin committed Jun 30, 2022
1 parent 0713a02 commit 85568ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .bazelrc
Expand Up @@ -8,6 +8,10 @@ build --strategy=TypeScriptCompile=worker
# Enable debugging tests with --config=debug
test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results

# Enable debugging tests with --config=no-sharding
# The below is useful to while using `fit` and `fdescribe` to avoid sharing and re-runs of failed flaky tests.
test:no-sharding --flaky_test_attempts=1 --test_sharding_strategy=disabled

###############################
# Filesystem interactions #
###############################
Expand Down

0 comments on commit 85568ac

Please sign in to comment.