diff --git a/.github/actions/setup-samples-staging/action.yml b/.github/actions/setup-samples-staging/action.yml index 3526c90b367..9d8d583365f 100644 --- a/.github/actions/setup-samples-staging/action.yml +++ b/.github/actions/setup-samples-staging/action.yml @@ -45,7 +45,12 @@ runs: fi - name: Install - run: | - yarn shell: bash working-directory: ./amplify-js-samples-staging + run: | + for i in {1..3}; do + echo "Starting attempt $i." + yarn && break + echo "Attempt $i failed." + sleep 5 + done diff --git a/.github/integ-config/integ-all.yml b/.github/integ-config/integ-all.yml index 01758686fb3..c43ea465c4a 100644 --- a/.github/integ-config/integ-all.yml +++ b/.github/integ-config/integ-all.yml @@ -629,6 +629,7 @@ tests: category: auth sample_name: [custom-auth] spec: custom-auth + retry_count: 15 browser: *minimal_browser_list - test_name: integ_next_auth_sign_in_with_sms_mfa desc: 'Resumable sign in with SMS MFA flow' @@ -636,6 +637,7 @@ tests: category: auth sample_name: [mfa] spec: sign-in-resumable-mfa + retry_count: 15 browser: *minimal_browser_list env: NEXT_PUBLIC_BACKEND_CONFIG: resum-signin @@ -844,6 +846,7 @@ tests: category: storage sample_name: [storage-gen2] spec: storage-gen2 + retry_count: 10 browser: *minimal_browser_list - test_name: integ_react_storage_internal desc: 'React Storage Gen2 Internal APIs' @@ -851,6 +854,7 @@ tests: category: storage sample_name: [storage-gen2-internal] spec: storage-gen2-internal + retry_count: 10 browser: *minimal_browser_list - test_name: integ_next_storage desc: 'Next Storage Auth' @@ -858,6 +862,7 @@ tests: category: storage sample_name: [storage-auth] spec: storage-client-server + retry_count: 10 browser: [chrome] # firefox issues with secure cookies in cypress, manual testing works fine # INAPPMESSAGING @@ -920,6 +925,7 @@ tests: category: auth sample_name: [mfa] spec: mfa-req-email + retry_count: 15 browser: *minimal_browser_list env: NEXT_PUBLIC_BACKEND_CONFIG: mfa-req-email @@ -929,6 +935,7 @@ tests: category: auth sample_name: [mfa] spec: mfa-req-phone + retry_count: 15 browser: *minimal_browser_list env: NEXT_PUBLIC_BACKEND_CONFIG: mfa-req-phone @@ -938,6 +945,7 @@ tests: category: auth sample_name: [mfa] spec: mfa-opt-email + retry_count: 15 browser: *minimal_browser_list env: NEXT_PUBLIC_BACKEND_CONFIG: mfa-opt-email @@ -947,6 +955,7 @@ tests: category: auth sample_name: [mfa] spec: mfa-opt-phone + retry_count: 15 browser: *minimal_browser_list env: NEXT_PUBLIC_BACKEND_CONFIG: mfa-opt-phone @@ -956,6 +965,7 @@ tests: category: auth sample_name: [mfa] spec: mfa-setup + retry_count: 15 browser: *minimal_browser_list env: NEXT_PUBLIC_BACKEND_CONFIG: mfa-setup @@ -965,6 +975,7 @@ tests: category: auth sample_name: [mfa] spec: passwordless/auto-sign-in + retry_count: 15 browser: *minimal_browser_list env: NEXT_PUBLIC_BACKEND_CONFIG: pwl-autosignin @@ -992,6 +1003,7 @@ tests: category: auth sample_name: [mfa] spec: passwordless/sign-up + retry_count: 15 browser: *minimal_browser_list env: NEXT_PUBLIC_BACKEND_CONFIG: pwl-signup @@ -1001,6 +1013,7 @@ tests: category: auth sample_name: [mfa] spec: passwordless/miscellaneous + retry_count: 15 browser: *minimal_browser_list env: NEXT_PUBLIC_BACKEND_CONFIG: pwl-misc @@ -1021,6 +1034,8 @@ tests: category: auth sample_name: [mfa] spec: refresh-token-auth + retry_count: 15 + timeout_minutes: 90 browser: *minimal_browser_list env: NEXT_PUBLIC_BACKEND_CONFIG: misc-tokenref