Skip to content

Commit c981a4c

Browse files
committed
Merge remote-tracking branch 'origin/main' into run-e2e-beta-sql-layer
2 parents e49cf5b + 758ab96 commit c981a4c

112 files changed

Lines changed: 9290 additions & 11466 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.agent-docs/E2E_TESTING.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,34 @@ yarn e2e-failed {batchId} # Show failed builds
3737
yarn e2e-logs {buildId} # View build logs
3838
```
3939

40+
### Split E2E Mode (two batches)
41+
42+
`yarn cloud-e2e` fires a single CodeBuild batch from `codebuild_specs/e2e_workflow.yml` (~183
43+
shards). Because the batch orchestrator faults materially above ~100 simultaneously in-flight
44+
builds, there is an alternative split mode that fires TWO independent, self-contained batches
45+
against the same `amplify-category-api-e2e-workflow` project:
46+
47+
- **api+gql batch**`codebuild_specs/e2e_workflow_api_gql.yml` (amplify-e2e-tests + graphql-transformers-e2e-tests, ~78 shards)
48+
- **cdk batch**`codebuild_specs/e2e_workflow_cdk.yml` (amplify-graphql-api-construct-tests, ~105 shards)
49+
50+
Each batch carries the full prep/build chain (`build_linux`, `build_windows`, `test`, all
51+
`verify_*`, `publish_to_local_registry`) and its own `cleanup_e2e_resources`, and is waved
52+
independently at `SPLIT_E2E_WAVE_SIZE` (95 — the peak in-flight shards per batch, just under the
53+
~100 orchestrator fault ceiling).
54+
55+
```sh
56+
# Trigger BOTH batches (prints two Batch IDs)
57+
yarn cloud-e2e-split
58+
59+
# Poll both to terminal state and aggregate pass/fail
60+
yarn wait-for-all-codebuild-split <apiGqlBatchId> <cdkBatchId>
61+
```
62+
63+
All three specs are regenerated together by `yarn split-e2e-tests`, which runs a reconciliation
64+
self-check asserting the two split batches exactly cover the combined shard set (no missing, extra,
65+
or overlapping shards). The combined `e2e_workflow.yml` remains the project's default buildspec and
66+
is still produced for the single-batch `yarn cloud-e2e` path.
67+
4068
### Monitor Behavior
4169

4270
The monitor auto-retries failed builds up to 10 times by default. It skips retrying `build_linux`, `build_windows`, `test`, and `lint` because failures in those are typically code-related and require fixes, not retries.

0 commit comments

Comments
 (0)