Skip to content
Merged
9 changes: 7 additions & 2 deletions .github/actions/setup-samples-staging/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have issues, where installing project dependencies fails or times out? and a reinstall fixes it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

15 changes: 15 additions & 0 deletions .github/integ-config/integ-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -629,13 +629,15 @@ 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'
framework: next
category: auth
sample_name: [mfa]
spec: sign-in-resumable-mfa
retry_count: 15
browser: *minimal_browser_list
env:
NEXT_PUBLIC_BACKEND_CONFIG: resum-signin
Expand Down Expand Up @@ -844,20 +846,23 @@ 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'
framework: react
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'
framework: next
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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -1021,6 +1034,8 @@ tests:
category: auth
sample_name: [mfa]
spec: refresh-token-auth
retry_count: 15
timeout_minutes: 90

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In GitHub Actions, the timeout-minutes setting defines the maximum number of minutes a job or a step is allowed to run before GitHub automatically cancels it. That includes multiple times of retries within the step.

While the timeout in https://github.com/aws-amplify/amplify-js-samples-staging/pull/1091/files should be the timeout when running individual test.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The timeout from my PR is for Cypress commands. The timeout here is for the whole E2E test as defined in the workflow file.

browser: *minimal_browser_list
env:
NEXT_PUBLIC_BACKEND_CONFIG: misc-tokenref
Loading