Skip to content

Commit 3757cd0

Browse files
authored
Release API plugin (#3476)
<!-- Please make sure to read the Pull Request Guidelines: https://github.com/aws-amplify/amplify-cli/blob/master/CONTRIBUTING.md#pull-requests --> #### Description of changes <!-- Thank you for your Pull Request! Please provide a description above and review the requirements below. --> ##### CDK / CloudFormation Parameters Changed <!-- Please list any changes to the CDK/CFN params, with a link to references https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html e.g. * Conditionally added support for `Code` based AppSync Functions: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-functionconfiguration.html#cfn-appsync-functionconfiguration-code * Conditionally added support for `Code` based AppSync Resolvers: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-code --> #### Issue #, if available <!-- Also, please reference any associated PRs for documentation updates. --> #### Description of how you validated changes #### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [ ] PR description included - [ ] `yarn test` passes - [ ] E2E test run linked - [ ] Tests are [changed or added](https://github.com/aws-amplify/amplify-cli/blob/master/CONTRIBUTING.md#tests) - [ ] Relevant documentation is changed or added (and PR referenced) - [ ] New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies - [ ] Any CDK or CloudFormation parameter changes are called out explicitly By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
2 parents 17e66fb + abe1ac7 commit 3757cd0

53 files changed

Lines changed: 3013 additions & 2282 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/DEPENDABOT.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,8 @@ yarn e2e-monitor {batchId}
102102
- Group related updates together when possible
103103
- Document breaking changes in commit messages
104104
- Check for peer dependency conflicts after updates
105+
- Git commit hooks (husky pre-commit) run `yarn extract-dependency-licenses` which updates `dependency_licenses.txt`. Because the hook runs after staging, the updated file may not be included in the commit. **Always check `git status` after committing** for unstaged changes to `dependency_licenses.txt` and amend the commit if needed:
106+
```bash
107+
git add dependency_licenses.txt
108+
git commit --amend --no-edit
109+
```

.agent-docs/E2E_TESTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ git checkout <your-branch>
9898
git stash pop
9999
```
100100

101+
## Success Criteria
102+
103+
A passing e2e run means **100% of tests pass with zero failures**. There is no "close enough" — if any test fails, the run has failed and the failures must be investigated and fixed. Do not dismiss failures as pre-existing or infrastructure-related without verifying on main and fixing them.
104+
101105
## Common Failure Patterns
102106

103107
| Pattern | Symptoms | Action |

codebuild_specs/amplify_ddb_canary.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,6 @@ batch:
140140
CANARY_METRIC_NAME: AmplifyDynamoDbModelDataSourceStrategySuccessRate
141141
depend-on:
142142
- publish_to_local_registry
143-
- identifier: amplify_ddb_canary_me_south_1
144-
buildspec: codebuild_specs/run_cdk_canary_e2e_tests.yml
145-
env:
146-
variables:
147-
TEST_SUITE: src/__tests__/amplify-ddb-canary.test.ts
148-
CLI_REGION: me-south-1
149-
CANARY_METRIC_NAME: AmplifyDynamoDbModelDataSourceStrategySuccessRate
150-
depend-on:
151-
- publish_to_local_registry
152143
- identifier: amplify_ddb_canary_sa_east_1
153144
buildspec: codebuild_specs/run_cdk_canary_e2e_tests.yml
154145
env:

codebuild_specs/createapi_canary_workflow.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -191,16 +191,6 @@ batch:
191191
CLI_REGION: eu-west-3
192192
depend-on:
193193
- publish_to_local_registry
194-
- identifier: api_test_me_south_1
195-
buildspec: codebuild_specs/run_canary_e2e_tests.yml
196-
env:
197-
compute-type: BUILD_GENERAL1_MEDIUM
198-
variables:
199-
TEST_SUITE: >-
200-
src/__tests__/api_canary.test.ts
201-
CLI_REGION: me-south-1
202-
depend-on:
203-
- publish_to_local_registry
204194
- identifier: api_test_sa_east_1
205195
buildspec: codebuild_specs/run_canary_e2e_tests.yml
206196
env:

codebuild_specs/default_ddb_canary.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,6 @@ batch:
140140
CANARY_METRIC_NAME: DefaultDynamoDbModelDataSourceStrategySuccessRate
141141
depend-on:
142142
- publish_to_local_registry
143-
- identifier: default_ddb_canary_me_south_1
144-
buildspec: codebuild_specs/run_cdk_canary_e2e_tests.yml
145-
env:
146-
variables:
147-
TEST_SUITE: src/__tests__/default-ddb-canary.test.ts
148-
CLI_REGION: me-south-1
149-
CANARY_METRIC_NAME: DefaultDynamoDbModelDataSourceStrategySuccessRate
150-
depend-on:
151-
- publish_to_local_registry
152143
- identifier: default_ddb_canary_sa_east_1
153144
buildspec: codebuild_specs/run_cdk_canary_e2e_tests.yml
154145
env:

0 commit comments

Comments
 (0)