Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions bazel/conf/.bazelrc.build
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,14 @@ common --flag_alias=hermetic_cc=//bazel:hermetic_cc

common:stamped --workspace_status_command='$(pwd)/bazel/workspace_status.sh --stamp'

# configure some tests to retry automatically, best used unattened (not locally).
# default all tests to fail ...
# ... after three attempts for tests marked as flaky
# ... after three attempts for all tests in //rs/tests
# ... after the first attempt for other tests
# see also:
# https://bazel.build/reference/command-line-reference#build-flag--flaky_test_attempts
# Configure all tests to retry automatically on failure (up to 3 times)
# such that we can detect flaky tests ASAP and fix them.
# The //pre-commit/... tests are excluded since they have never been flaky.
# See also: https://bazel.build/reference/command-line-reference#build-flag--flaky_test_attempts
#
# (NOTE: for convenience, applied to 'common' instead of just 'test' so that it doesn't
# fail on 'bazel build')
common:flaky_retry --flaky_test_attempts=default --flaky_test_attempts=//rs/tests/.*@3
common:flaky_retry --flaky_test_attempts=.*,-//pre-commit:.*@3

# Exclude fuzz tests by default
# https://github.com/bazelbuild/bazel/issues/8439
Expand Down
Loading