Skip to content

Conversation

@iankhou
Copy link
Contributor

@iankhou iankhou commented Sep 30, 2025

Problem

E2E tests can fail for a variety of reasons, and matrices are especially vulnerable to intermittent failure, due to the aggregation of several parameterized runs.

Changes

Implement retries for steps for which we anticipate or commonly see failures.

Validation

Run checks that include E2E tests.

Checklist

  • If this PR includes a functional change to the runtime behavior of the code, I have added or updated automated test coverage for this change.
  • If this PR requires a change to the Project Architecture README, I have included that update in this PR.
  • If this PR requires a docs update, I have linked to that docs PR above.
  • If this PR modifies E2E tests, makes changes to resource provisioning, or makes SDK calls, I have run the PR checks with the run-e2e label set.

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

@iankhou iankhou self-assigned this Sep 30, 2025
@iankhou iankhou added the run-e2e Label that will include e2e tests in PR checks workflow label Sep 30, 2025
@changeset-bot
Copy link

changeset-bot bot commented Sep 30, 2025

⚠️ No Changeset found

Latest commit: d8fd44b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@iankhou iankhou force-pushed the iankhou-e2e-retries branch from 86bf877 to d8fd44b Compare September 30, 2025 17:40
@iankhou iankhou marked this pull request as ready for review September 30, 2025 17:55
@iankhou iankhou requested a review from a team as a code owner September 30, 2025 17:55
- run: echo "$(npx tsx scripts/generate_sparse_test_matrix.ts 'packages/integration-tests/lib/test-e2e/deployment/*.deployment.test.js' '${{ needs.resolve_inputs.outputs.node }}' '${{ needs.resolve_inputs.outputs.os_for_e2e }}')"
- id: generateMatrix
run: echo "matrix=$(npx tsx scripts/generate_sparse_test_matrix.ts 'packages/integration-tests/lib/test-e2e/deployment/*.deployment.test.js' '${{ needs.resolve_inputs.outputs.node }}' '${{ needs.resolve_inputs.outputs.os_for_e2e }}')" >> "$GITHUB_OUTPUT"
- name: Generate matrix with retry
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Takes 36 seconds on success.

id: generateMatrix
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Takes 27s on success.

@iankhou iankhou merged commit d4e7863 into main Sep 30, 2025
202 of 205 checks passed
@iankhou iankhou deleted the iankhou-e2e-retries branch September 30, 2025 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-e2e Label that will include e2e tests in PR checks workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants