chore: add e2e convenience tooling (cloud-e2e, e2e-monitor)#1036
Open
svidgen wants to merge 1 commit into
Open
chore: add e2e convenience tooling (cloud-e2e, e2e-monitor)#1036svidgen wants to merge 1 commit into
svidgen wants to merge 1 commit into
Conversation
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 statusmonitor— Poll with auto-retry of transient failures (5-min intervals)retry— Retry failed buildslist— List recent build batchesfailed— Show failed builds with log commandslogs— View CloudWatch logs for a specific buildscripts/cloud-e2e.sh— Standalone script to trigger e2e batch builds (supportspr/<number>argument)Yarn Scripts
Documentation
AGENTS.md— Comprehensive guide for running and monitoring e2e testsscripts/sample.envwith setup documentationDesign
Modeled after amplify-cli's
e2e-test-manager.tspattern. Uses the existing@aws-sdk/client-codebuilddependency andAmplifyAPIE2EProdprofile convention fromcloud-utils.sh.No account IDs or secrets in committed files — all sensitive values come from
scripts/.env(gitignored).Testing
tsc --noEmit)