Skip to content

Commit 5a3110a

Browse files
committed
maintain 5 retries for flaky containers jasmine3 and image2
1 parent d0d14b8 commit 5a3110a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.circleci/test.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set +o pipefail
66

77
ROOT=$(dirname $0)/..
88
EXIT_STATE=0
9-
MAX_AUTO_RETRY=1
9+
MAX_AUTO_RETRY=0
1010

1111
log () {
1212
echo -e "\n$1"
@@ -55,6 +55,7 @@ case $1 in
5555

5656
SHARDS=($(node $ROOT/tasks/shard_jasmine_tests.js --limit=5 --tag=gl | circleci tests split))
5757
for s in ${SHARDS[@]}; do
58+
MAX_AUTO_RETRY=1
5859
retry npm run test-jasmine -- "$s" --tags=gl --skip-tags=noCI --doNotFailOnEmptyTestSuite
5960
done
6061

@@ -67,6 +68,7 @@ case $1 in
6768
SHARDS=($(node $ROOT/tasks/shard_jasmine_tests.js --limit=1 --tag=flaky | circleci tests split))
6869

6970
for s in ${SHARDS[@]}; do
71+
MAX_AUTO_RETRY=5
7072
retry npm run test-jasmine -- "$s" --tags=flaky --skip-tags=noCI
7173
done
7274

@@ -80,6 +82,7 @@ case $1 in
8082
;;
8183

8284
image2)
85+
MAX_AUTO_RETRY=5
8386
retry npm run test-image -- --just-flaky
8487
npm run test-export || EXIT_STATE=$?
8588
exit $EXIT_STATE

0 commit comments

Comments
 (0)