Skip to content

Conversation

Simone319
Copy link
Contributor

Description of changes

Enable retries for e2e tests, as well as yarn install step for sample staging repo, which fails occasionally.

Issue #, if available

Description of how you validated changes

Run e2e tests with the updated github workflow: https://github.com/aws-amplify/amplify-js/actions/runs/17043975986

Checklist

  • PR description included
  • yarn test passes
  • Unit Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

Checklist for repo maintainers

  • Verify E2E tests for existing workflows are working as expected or add E2E tests for newly added workflows
  • New source file paths included in this PR have been added to CODEOWNERS, if appropriate

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Simone319 Simone319 requested a review from a team as a code owner August 19, 2025 09:24
ahmedhamouda78
ahmedhamouda78 previously approved these changes Aug 19, 2025
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.

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.

@Simone319 Simone319 merged commit 6ea70f9 into main Aug 20, 2025
36 checks passed
@Simone319 Simone319 deleted the chore/e2e-retry branch August 20, 2025 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants