Skip to content

Commit

Permalink
build: set flaky_test_attempts to 2 for E2E tests
Browse files Browse the repository at this point in the history
By default Bazel, a single test attempt will be made for regular tests and three for tests marked explicitly as flaky by their rule (flaky=1 attribute)

This configures e2e tests to retry the test when it fails.
  • Loading branch information
alan-agius4 committed Nov 8, 2023
1 parent 6d89c18 commit 48ac211
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ build:e2e --workspace_status_command="yarn -s ng-dev release build-env-stamp --m
build:e2e --stamp
test:e2e --test_timeout=3600 --experimental_ui_max_stdouterr_bytes=2097152

# Retry in the event of flakes
test:e2e --flaky_test_attempts=2

build:local --//:enable_package_json_tar_deps

###############################
Expand Down

0 comments on commit 48ac211

Please sign in to comment.