Skip to content

Commit 6ea70f9

Browse files
authored
chore: enable retry for e2e tests (#14519)
1 parent 5089bef commit 6ea70f9

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
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 attempt $i."
53+
yarn && break
54+
echo "Attempt $i failed."
55+
sleep 5
56+
done

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,13 +629,15 @@ tests:
629629
category: auth
630630
sample_name: [custom-auth]
631631
spec: custom-auth
632+
retry_count: 15
632633
browser: *minimal_browser_list
633634
- test_name: integ_next_auth_sign_in_with_sms_mfa
634635
desc: 'Resumable sign in with SMS MFA flow'
635636
framework: next
636637
category: auth
637638
sample_name: [mfa]
638639
spec: sign-in-resumable-mfa
640+
retry_count: 15
639641
browser: *minimal_browser_list
640642
env:
641643
NEXT_PUBLIC_BACKEND_CONFIG: resum-signin
@@ -844,20 +846,23 @@ tests:
844846
category: storage
845847
sample_name: [storage-gen2]
846848
spec: storage-gen2
849+
retry_count: 10
847850
browser: *minimal_browser_list
848851
- test_name: integ_react_storage_internal
849852
desc: 'React Storage Gen2 Internal APIs'
850853
framework: react
851854
category: storage
852855
sample_name: [storage-gen2-internal]
853856
spec: storage-gen2-internal
857+
retry_count: 10
854858
browser: *minimal_browser_list
855859
- test_name: integ_next_storage
856860
desc: 'Next Storage Auth'
857861
framework: next
858862
category: storage
859863
sample_name: [storage-auth]
860864
spec: storage-client-server
865+
retry_count: 10
861866
browser: [chrome] # firefox issues with secure cookies in cypress, manual testing works fine
862867

863868
# INAPPMESSAGING
@@ -920,6 +925,7 @@ tests:
920925
category: auth
921926
sample_name: [mfa]
922927
spec: mfa-req-email
928+
retry_count: 15
923929
browser: *minimal_browser_list
924930
env:
925931
NEXT_PUBLIC_BACKEND_CONFIG: mfa-req-email
@@ -929,6 +935,7 @@ tests:
929935
category: auth
930936
sample_name: [mfa]
931937
spec: mfa-req-phone
938+
retry_count: 15
932939
browser: *minimal_browser_list
933940
env:
934941
NEXT_PUBLIC_BACKEND_CONFIG: mfa-req-phone
@@ -938,6 +945,7 @@ tests:
938945
category: auth
939946
sample_name: [mfa]
940947
spec: mfa-opt-email
948+
retry_count: 15
941949
browser: *minimal_browser_list
942950
env:
943951
NEXT_PUBLIC_BACKEND_CONFIG: mfa-opt-email
@@ -947,6 +955,7 @@ tests:
947955
category: auth
948956
sample_name: [mfa]
949957
spec: mfa-opt-phone
958+
retry_count: 15
950959
browser: *minimal_browser_list
951960
env:
952961
NEXT_PUBLIC_BACKEND_CONFIG: mfa-opt-phone
@@ -956,6 +965,7 @@ tests:
956965
category: auth
957966
sample_name: [mfa]
958967
spec: mfa-setup
968+
retry_count: 15
959969
browser: *minimal_browser_list
960970
env:
961971
NEXT_PUBLIC_BACKEND_CONFIG: mfa-setup
@@ -965,6 +975,7 @@ tests:
965975
category: auth
966976
sample_name: [mfa]
967977
spec: passwordless/auto-sign-in
978+
retry_count: 15
968979
browser: *minimal_browser_list
969980
env:
970981
NEXT_PUBLIC_BACKEND_CONFIG: pwl-autosignin
@@ -992,6 +1003,7 @@ tests:
9921003
category: auth
9931004
sample_name: [mfa]
9941005
spec: passwordless/sign-up
1006+
retry_count: 15
9951007
browser: *minimal_browser_list
9961008
env:
9971009
NEXT_PUBLIC_BACKEND_CONFIG: pwl-signup
@@ -1001,6 +1013,7 @@ tests:
10011013
category: auth
10021014
sample_name: [mfa]
10031015
spec: passwordless/miscellaneous
1016+
retry_count: 15
10041017
browser: *minimal_browser_list
10051018
env:
10061019
NEXT_PUBLIC_BACKEND_CONFIG: pwl-misc
@@ -1021,6 +1034,8 @@ tests:
10211034
category: auth
10221035
sample_name: [mfa]
10231036
spec: refresh-token-auth
1037+
retry_count: 15
1038+
timeout_minutes: 90
10241039
browser: *minimal_browser_list
10251040
env:
10261041
NEXT_PUBLIC_BACKEND_CONFIG: misc-tokenref

0 commit comments

Comments
 (0)