Skip to content

Commit 1118c3b

Browse files
committed
chore: adjust retry counts for tests and enable retry for setup sample staging step
1 parent fe76a90 commit 1118c3b

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/actions/setup-samples-staging/action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ runs:
4545
fi
4646
4747
- name: Install
48-
run: |
49-
yarn
5048
shell: bash
5149
working-directory: ./amplify-js-samples-staging
50+
run: |
51+
for i in {1..3}; do
52+
echo "Starting $i attempt."
53+
yarn && break
54+
echo "Attempt $i failed."
55+
sleep 5
56+
done

.github/integ-config/integ-all.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ tests:
641641
category: auth
642642
sample_name: [mfa]
643643
spec: sign-in-resumable-mfa
644-
retry_count: 5
644+
retry_count: 10
645645
browser: *minimal_browser_list
646646
env:
647647
NEXT_PUBLIC_BACKEND_CONFIG: resum-signin
@@ -820,6 +820,7 @@ tests:
820820
category: storage
821821
sample_name: [storageApp]
822822
spec: storage
823+
retry_count: 3
823824
browser: *minimal_browser_list
824825
- test_name: integ_react_storage_multipart_progress
825826
desc: 'React Storage Multi-Part Upload with Progress'
@@ -857,6 +858,7 @@ tests:
857858
category: storage
858859
sample_name: [storage-gen2-internal]
859860
spec: storage-gen2-internal
861+
retry_count: 3
860862
browser: *minimal_browser_list
861863
- test_name: integ_next_storage
862864
desc: 'Next Storage Auth'
@@ -950,7 +952,7 @@ tests:
950952
category: auth
951953
sample_name: [mfa]
952954
spec: mfa-opt-email
953-
retry_count: 5
955+
retry_count: 10
954956
browser: *minimal_browser_list
955957
env:
956958
NEXT_PUBLIC_BACKEND_CONFIG: mfa-opt-email
@@ -960,7 +962,7 @@ tests:
960962
category: auth
961963
sample_name: [mfa]
962964
spec: mfa-opt-phone
963-
retry_count: 5
965+
retry_count: 10
964966
browser: *minimal_browser_list
965967
env:
966968
NEXT_PUBLIC_BACKEND_CONFIG: mfa-opt-phone

0 commit comments

Comments
 (0)