File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,6 @@ common:rbe --remote_executor=unix:///mnt/ephemeral/buildbarn/.cache/bb_clientd/g
9
9
common:rbe --genrule_strategy=remote,local
10
10
common:rbe --jobs=32
11
11
common:rbe --remote_timeout=3600
12
+
13
+ # retry flaky tests
14
+ common --flaky_test_attempts=5
Original file line number Diff line number Diff line change @@ -31,3 +31,12 @@ js_library(
31
31
":node_modules/typescript-eslint" ,
32
32
],
33
33
)
34
+
35
+ sh_test (
36
+ name = "flaky_sh_test" ,
37
+ srcs = ["flake.sh" ],
38
+ flaky = True ,
39
+ tags = [
40
+ "expected_to_fail" ,
41
+ ],
42
+ )
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -o errexit
3
+
4
+ COUNT=$(( RANDOM% 3 ))
5
+ echo $COUNT
6
+
7
+ if [[ " ${COUNT} " == " 1" ]]; then
8
+ exit 0
9
+ else
10
+ exit 1
11
+ fi
You can’t perform that action at this time.
0 commit comments