Skip to content

chore: add e2e convenience tooling (cloud-e2e, e2e-monitor)#1036

Open
svidgen wants to merge 1 commit into
mainfrom
chore/add-e2e-tooling
Open

chore: add e2e convenience tooling (cloud-e2e, e2e-monitor)#1036
svidgen wants to merge 1 commit into
mainfrom
chore/add-e2e-tooling

Conversation

@svidgen

@svidgen svidgen commented Jul 7, 2026

Copy link
Copy Markdown
Member

Summary

Adds e2e test management tooling to amplify-codegen, bringing it in line with amplify-cli and amplify-category-api.

What's Added

Scripts

  • scripts/e2e-test-manager.ts — TypeScript-based e2e management tool with commands:

    • status — Show batch build status
    • monitor — Poll with auto-retry of transient failures (5-min intervals)
    • retry — Retry failed builds
    • list — List recent build batches
    • failed — Show failed builds with log commands
    • logs — View CloudWatch logs for a specific build
  • scripts/cloud-e2e.sh — Standalone script to trigger e2e batch builds (supports pr/<number> argument)

Yarn Scripts

yarn e2e-status <batchId>
yarn e2e-monitor <batchId> [maxRetries]
yarn e2e-retry <batchId>
yarn e2e-list [limit]
yarn e2e-failed <batchId>
yarn e2e-logs <buildId>

Documentation

  • AGENTS.md — Comprehensive guide for running and monitoring e2e tests
  • Updated scripts/sample.env with setup documentation

Design

Modeled after amplify-cli's e2e-test-manager.ts pattern. Uses the existing @aws-sdk/client-codebuild dependency and AmplifyAPIE2EProd profile convention from cloud-utils.sh.

No account IDs or secrets in committed files — all sensitive values come from scripts/.env (gitignored).

Testing

  • TypeScript compilation verified (tsc --noEmit)
  • No secrets or account IDs in committed files (grep verified)

Add scripts and yarn commands for managing e2e test runs:
- scripts/e2e-test-manager.ts: status, monitor, retry, list, failed, logs
- scripts/cloud-e2e.sh: standalone script to trigger e2e batch builds
- AGENTS.md: guidance on running and monitoring e2e tests
- Updated sample.env with documentation
- Added yarn scripts: e2e-status, e2e-monitor, e2e-retry, e2e-list, e2e-failed, e2e-logs

Modeled after amplify-cli's e2e-test-manager pattern.
No account IDs or secrets in committed files (uses scripts/.env which is gitignored).
@svidgen
svidgen requested review from a team as code owners July 7, 2026 16:50
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.

1 participant