From ef248e059c047c9c9ae039f93f51bb105e576574 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 30 Jun 2022 13:03:40 +0000 Subject: [PATCH] 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. --- .bazelrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bazelrc b/.bazelrc index 15db5f1890..ef377b58e1 100644 --- a/.bazelrc +++ b/.bazelrc @@ -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 # ###############################