From d3896f04442fb541397380a113b68e32ee79789c Mon Sep 17 00:00:00 2001 From: aws-amplify-bot Date: Mon, 27 Sep 2021 18:50:31 +0000 Subject: [PATCH 01/30] chore(release): Publish [ci skip] - amplify-app@3.0.13 - amplify-category-analytics@2.21.22 - amplify-category-api@2.32.0 - amplify-category-auth@2.38.2 - amplify-category-function@2.35.0 - amplify-category-geo@1.0.1 - amplify-category-hosting@2.7.22 - amplify-category-interactions@2.6.6 - amplify-category-predictions@2.9.13 - amplify-category-storage@2.12.10 - amplify-category-xr@2.8.22 - amplify-cli-core@1.30.0 - @aws-amplify/cli@6.1.0 - amplify-console-hosting@1.9.13 - amplify-console-integration-tests@1.8.10 - amplify-container-hosting@1.3.24 - amplify-dotnet-function-template-provider@1.5.22 - amplify-dynamodb-simulator@1.19.13 - amplify-e2e-core@1.27.0 - amplify-e2e-tests@2.51.0 - amplify-frontend-ios@2.20.15 - amplify-frontend-javascript@2.24.2 - amplify-go-function-runtime-provider@1.9.5 - @aws-amplify/graphql-function-transformer@0.4.4 - @aws-amplify/graphql-http-transformer@0.5.4 - @aws-amplify/graphql-index-transformer@0.3.3 - @aws-amplify/graphql-model-transformer@0.6.3 - @aws-amplify/graphql-predictions-transformer@0.3.4 - @aws-amplify/graphql-relational-transformer@0.3.0 - @aws-amplify/graphql-searchable-transformer@0.6.1 - @aws-amplify/graphql-transformer-core@0.9.1 - @aws-amplify/graphql-transformer-interfaces@1.9.1 - amplify-java-function-runtime-provider@1.8.15 - amplify-migration-tests@3.1.10 - amplify-nodejs-function-runtime-provider@1.6.12 - amplify-nodejs-function-template-provider@1.6.22 - amplify-prompts@1.2.0 - amplify-provider-awscloudformation@4.61.0 - amplify-python-function-runtime-provider@1.9.12 - amplify-util-import@1.5.13 - amplify-util-mock@3.34.6 - graphql-auth-transformer@6.24.23 - graphql-connection-transformer@4.21.23 - graphql-dynamodb-transformer@6.22.23 - graphql-elasticsearch-transformer@4.12.2 - graphql-function-transformer@2.5.22 - graphql-http-transformer@4.18.10 - graphql-key-transformer@2.23.23 - graphql-predictions-transformer@2.5.22 - graphql-relational-schema-transformer@2.18.7 - graphql-transformer-common@4.19.10 - graphql-transformer-core@6.30.0 - graphql-transformers-e2e-tests@6.27.0 - graphql-versioned-transformer@4.17.23 --- packages/amplify-app/CHANGELOG.md | 8 +++ packages/amplify-app/package.json | 6 +- .../amplify-category-analytics/CHANGELOG.md | 8 +++ .../amplify-category-analytics/package.json | 4 +- packages/amplify-category-api/CHANGELOG.md | 21 +++++++ packages/amplify-category-api/package.json | 8 +-- packages/amplify-category-auth/CHANGELOG.md | 12 ++++ packages/amplify-category-auth/package.json | 6 +- .../amplify-category-function/CHANGELOG.md | 16 ++++++ .../amplify-category-function/package.json | 6 +- packages/amplify-category-geo/CHANGELOG.md | 11 ++++ packages/amplify-category-geo/package.json | 14 ++--- .../amplify-category-hosting/CHANGELOG.md | 8 +++ .../amplify-category-hosting/package.json | 4 +- .../CHANGELOG.md | 8 +++ .../package.json | 4 +- .../amplify-category-predictions/CHANGELOG.md | 8 +++ .../amplify-category-predictions/package.json | 4 +- .../amplify-category-storage/CHANGELOG.md | 8 +++ .../amplify-category-storage/package.json | 8 +-- packages/amplify-category-xr/CHANGELOG.md | 8 +++ packages/amplify-category-xr/package.json | 4 +- packages/amplify-cli-core/CHANGELOG.md | 22 ++++++++ packages/amplify-cli-core/package.json | 4 +- packages/amplify-cli/CHANGELOG.md | 21 +++++++ packages/amplify-cli/package.json | 56 +++++++++---------- packages/amplify-console-hosting/CHANGELOG.md | 8 +++ packages/amplify-console-hosting/package.json | 4 +- .../CHANGELOG.md | 8 +++ .../package.json | 4 +- .../amplify-container-hosting/CHANGELOG.md | 8 +++ .../amplify-container-hosting/package.json | 4 +- .../CHANGELOG.md | 8 +++ .../package.json | 6 +- .../amplify-dynamodb-simulator/CHANGELOG.md | 8 +++ .../amplify-dynamodb-simulator/package.json | 4 +- packages/amplify-e2e-core/CHANGELOG.md | 16 ++++++ packages/amplify-e2e-core/package.json | 6 +- packages/amplify-e2e-tests/CHANGELOG.md | 16 ++++++ packages/amplify-e2e-tests/package.json | 8 +-- packages/amplify-frontend-ios/CHANGELOG.md | 8 +++ packages/amplify-frontend-ios/package.json | 4 +- .../amplify-frontend-javascript/CHANGELOG.md | 8 +++ .../amplify-frontend-javascript/package.json | 4 +- .../CHANGELOG.md | 8 +++ .../package.json | 4 +- .../CHANGELOG.md | 8 +++ .../package.json | 8 +-- .../CHANGELOG.md | 8 +++ .../package.json | 8 +-- .../CHANGELOG.md | 8 +++ .../package.json | 10 ++-- .../CHANGELOG.md | 13 +++++ .../package.json | 12 ++-- .../CHANGELOG.md | 8 +++ .../package.json | 8 +-- .../CHANGELOG.md | 11 ++++ .../package.json | 12 ++-- .../CHANGELOG.md | 12 ++++ .../package.json | 8 +-- .../CHANGELOG.md | 13 +++++ .../package.json | 14 ++--- .../CHANGELOG.md | 12 ++++ .../package.json | 2 +- .../CHANGELOG.md | 8 +++ .../package.json | 4 +- packages/amplify-migration-tests/CHANGELOG.md | 8 +++ packages/amplify-migration-tests/package.json | 6 +- .../CHANGELOG.md | 8 +++ .../package.json | 4 +- .../CHANGELOG.md | 8 +++ .../package.json | 6 +- packages/amplify-prompts/CHANGELOG.md | 17 ++++++ packages/amplify-prompts/package.json | 2 +- .../CHANGELOG.md | 25 +++++++++ .../package.json | 44 +++++++-------- .../CHANGELOG.md | 8 +++ .../package.json | 4 +- packages/amplify-util-import/CHANGELOG.md | 8 +++ packages/amplify-util-import/package.json | 4 +- packages/amplify-util-mock/CHANGELOG.md | 8 +++ packages/amplify-util-mock/package.json | 26 ++++----- .../graphql-auth-transformer/CHANGELOG.md | 11 ++++ .../graphql-auth-transformer/package.json | 14 ++--- .../CHANGELOG.md | 8 +++ .../package.json | 10 ++-- .../graphql-dynamodb-transformer/CHANGELOG.md | 11 ++++ .../graphql-dynamodb-transformer/package.json | 6 +- .../CHANGELOG.md | 8 +++ .../package.json | 8 +-- .../graphql-function-transformer/CHANGELOG.md | 8 +++ .../graphql-function-transformer/package.json | 6 +- .../graphql-http-transformer/CHANGELOG.md | 8 +++ .../graphql-http-transformer/package.json | 6 +- packages/graphql-key-transformer/CHANGELOG.md | 8 +++ packages/graphql-key-transformer/package.json | 8 +-- .../CHANGELOG.md | 8 +++ .../package.json | 6 +- .../CHANGELOG.md | 12 ++++ .../package.json | 4 +- .../graphql-transformer-common/CHANGELOG.md | 11 ++++ .../graphql-transformer-common/package.json | 2 +- .../graphql-transformer-core/CHANGELOG.md | 16 ++++++ .../graphql-transformer-core/package.json | 6 +- .../CHANGELOG.md | 16 ++++++ .../package.json | 30 +++++----- .../CHANGELOG.md | 8 +++ .../package.json | 8 +-- 108 files changed, 815 insertions(+), 236 deletions(-) diff --git a/packages/amplify-app/CHANGELOG.md b/packages/amplify-app/CHANGELOG.md index 176be919d08..e846af31ee9 100644 --- a/packages/amplify-app/CHANGELOG.md +++ b/packages/amplify-app/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.0.13](https://github.com/aws-amplify/amplify-cli/compare/amplify-app@3.0.12...amplify-app@3.0.13) (2021-09-27) + +**Note:** Version bump only for package amplify-app + + + + + ## [3.0.12](https://github.com/aws-amplify/amplify-cli/compare/amplify-app@3.0.11...amplify-app@3.0.12) (2021-09-18) **Note:** Version bump only for package amplify-app diff --git a/packages/amplify-app/package.json b/packages/amplify-app/package.json index 905d7036292..01dc94c557e 100644 --- a/packages/amplify-app/package.json +++ b/packages/amplify-app/package.json @@ -1,6 +1,6 @@ { "name": "amplify-app", - "version": "3.0.12", + "version": "3.0.13", "description": "Amplify CLI", "repository": { "type": "git", @@ -30,8 +30,8 @@ "dependencies": { "amplify-frontend-android": "2.15.4", "amplify-frontend-flutter": "0.4.4", - "amplify-frontend-ios": "2.20.14", - "amplify-frontend-javascript": "2.24.1", + "amplify-frontend-ios": "2.20.15", + "amplify-frontend-javascript": "2.24.2", "chalk": "^4.1.1", "execa": "^5.1.1", "fs-extra": "^8.1.0", diff --git a/packages/amplify-category-analytics/CHANGELOG.md b/packages/amplify-category-analytics/CHANGELOG.md index f528e9ed360..af88b60788f 100644 --- a/packages/amplify-category-analytics/CHANGELOG.md +++ b/packages/amplify-category-analytics/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.21.22](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-analytics@2.21.21...amplify-category-analytics@2.21.22) (2021-09-27) + +**Note:** Version bump only for package amplify-category-analytics + + + + + ## [2.21.21](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-analytics@2.21.20...amplify-category-analytics@2.21.21) (2021-09-18) **Note:** Version bump only for package amplify-category-analytics diff --git a/packages/amplify-category-analytics/package.json b/packages/amplify-category-analytics/package.json index e51528a9a8b..06579b0c6a9 100644 --- a/packages/amplify-category-analytics/package.json +++ b/packages/amplify-category-analytics/package.json @@ -1,6 +1,6 @@ { "name": "amplify-category-analytics", - "version": "2.21.21", + "version": "2.21.22", "description": "amplify-cli analytics plugin", "repository": { "type": "git", @@ -15,7 +15,7 @@ "aws" ], "dependencies": { - "amplify-cli-core": "1.29.0", + "amplify-cli-core": "1.30.0", "fs-extra": "^8.1.0", "inquirer": "^7.3.3", "uuid": "^3.4.0" diff --git a/packages/amplify-category-api/CHANGELOG.md b/packages/amplify-category-api/CHANGELOG.md index 25ae29ee68d..a1cb9883ec5 100644 --- a/packages/amplify-category-api/CHANGELOG.md +++ b/packages/amplify-category-api/CHANGELOG.md @@ -3,6 +3,27 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.32.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-api@2.31.23...amplify-category-api@2.32.0) (2021-09-27) + + +### Bug Fixes + +* [#8223](https://github.com/aws-amplify/amplify-cli/issues/8223), conversion to typescript ([#8245](https://github.com/aws-amplify/amplify-cli/issues/8245)) ([096e6ca](https://github.com/aws-amplify/amplify-cli/commit/096e6ca19b94aa40ef249ea98d008380395afa16)) + + +### Features + +* Flag to allow schema changes that require table replacement ([#8144](https://github.com/aws-amplify/amplify-cli/issues/8144)) ([2d4e65a](https://github.com/aws-amplify/amplify-cli/commit/2d4e65acfd034d33c6fa8ac1f5f8582e7e3bc399)) + + +### Reverts + +* Revert "feat: Flag to allow schema changes that require table replacement (#8144)" (#8268) ([422dd04](https://github.com/aws-amplify/amplify-cli/commit/422dd04425c72aa7276e086d38ce4d5f4681f9f3)), closes [#8144](https://github.com/aws-amplify/amplify-cli/issues/8144) [#8268](https://github.com/aws-amplify/amplify-cli/issues/8268) + + + + + ## [2.31.23](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-api@2.31.22...amplify-category-api@2.31.23) (2021-09-18) **Note:** Version bump only for package amplify-category-api diff --git a/packages/amplify-category-api/package.json b/packages/amplify-category-api/package.json index 04d8cdc1964..ad673285851 100644 --- a/packages/amplify-category-api/package.json +++ b/packages/amplify-category-api/package.json @@ -1,6 +1,6 @@ { "name": "amplify-category-api", - "version": "2.31.23", + "version": "2.32.0", "description": "amplify-cli api plugin", "repository": { "type": "git", @@ -63,15 +63,15 @@ "@aws-cdk/region-info": "~1.124.0", "@graphql-tools/merge": "^6.0.18", "@octokit/rest": "^18.0.9", - "amplify-cli-core": "1.29.0", + "amplify-cli-core": "1.30.0", "amplify-headless-interface": "1.10.0", "amplify-util-headless-input": "1.5.4", "chalk": "^4.1.1", "constructs": "^3.3.125", "fs-extra": "^8.1.0", "graphql": "^14.5.8", - "graphql-relational-schema-transformer": "2.18.6", - "graphql-transformer-core": "6.29.7", + "graphql-relational-schema-transformer": "2.18.7", + "graphql-transformer-core": "6.30.0", "inquirer": "^7.3.3", "js-yaml": "^4.0.0", "lodash": "^4.17.21", diff --git a/packages/amplify-category-auth/CHANGELOG.md b/packages/amplify-category-auth/CHANGELOG.md index 6ec9fe340a3..30544a342d6 100644 --- a/packages/amplify-category-auth/CHANGELOG.md +++ b/packages/amplify-category-auth/CHANGELOG.md @@ -3,6 +3,18 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.38.2](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-auth@2.38.1...amplify-category-auth@2.38.2) (2021-09-27) + + +### Bug Fixes + +* add missing await, fix import paths ([#8199](https://github.com/aws-amplify/amplify-cli/issues/8199)) ([51c4dd9](https://github.com/aws-amplify/amplify-cli/commit/51c4dd9c021d894fe2c06fc005e1e1960fe4529c)) +* **amplify-category-auth:** update front end config on pull ([#8173](https://github.com/aws-amplify/amplify-cli/issues/8173)) ([da2b008](https://github.com/aws-amplify/amplify-cli/commit/da2b0083add2f5b10520efade8628080a34c8791)) + + + + + ## [2.38.1](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-auth@2.38.0...amplify-category-auth@2.38.1) (2021-09-20) diff --git a/packages/amplify-category-auth/package.json b/packages/amplify-category-auth/package.json index 4a8265e158a..298e76f52c0 100644 --- a/packages/amplify-category-auth/package.json +++ b/packages/amplify-category-auth/package.json @@ -1,6 +1,6 @@ { "name": "amplify-category-auth", - "version": "2.38.1", + "version": "2.38.2", "description": "amplify-cli authentication plugin", "repository": { "type": "git", @@ -23,10 +23,10 @@ "test-watch": "jest --watch" }, "dependencies": { - "amplify-cli-core": "1.29.0", + "amplify-cli-core": "1.30.0", "amplify-headless-interface": "1.10.0", "amplify-util-headless-input": "1.5.4", - "amplify-util-import": "1.5.12", + "amplify-util-import": "1.5.13", "aws-cdk": "~1.124.0", "aws-sdk": "^2.963.0", "chalk": "^4.1.1", diff --git a/packages/amplify-category-function/CHANGELOG.md b/packages/amplify-category-function/CHANGELOG.md index db371a3f98d..35698d31c73 100644 --- a/packages/amplify-category-function/CHANGELOG.md +++ b/packages/amplify-category-function/CHANGELOG.md @@ -3,6 +3,22 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.35.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-function@2.34.7...amplify-category-function@2.35.0) (2021-09-27) + + +### Features + +* Flag to allow schema changes that require table replacement ([#8144](https://github.com/aws-amplify/amplify-cli/issues/8144)) ([2d4e65a](https://github.com/aws-amplify/amplify-cli/commit/2d4e65acfd034d33c6fa8ac1f5f8582e7e3bc399)) + + +### Reverts + +* Revert "feat: Flag to allow schema changes that require table replacement (#8144)" (#8268) ([422dd04](https://github.com/aws-amplify/amplify-cli/commit/422dd04425c72aa7276e086d38ce4d5f4681f9f3)), closes [#8144](https://github.com/aws-amplify/amplify-cli/issues/8144) [#8268](https://github.com/aws-amplify/amplify-cli/issues/8268) + + + + + ## [2.34.7](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-function@2.34.6...amplify-category-function@2.34.7) (2021-09-18) **Note:** Version bump only for package amplify-category-function diff --git a/packages/amplify-category-function/package.json b/packages/amplify-category-function/package.json index 5b9d38614c0..4f6de5c979a 100644 --- a/packages/amplify-category-function/package.json +++ b/packages/amplify-category-function/package.json @@ -1,6 +1,6 @@ { "name": "amplify-category-function", - "version": "2.34.7", + "version": "2.35.0", "description": "amplify-cli function plugin", "repository": { "type": "git", @@ -22,7 +22,7 @@ "aws" ], "dependencies": { - "amplify-cli-core": "1.29.0", + "amplify-cli-core": "1.30.0", "amplify-function-plugin-interface": "1.9.1", "archiver": "^5.3.0", "aws-sdk": "^2.963.0", @@ -32,7 +32,7 @@ "folder-hash": "^4.0.1", "fs-extra": "^8.1.0", "globby": "^11.0.3", - "graphql-transformer-core": "6.29.7", + "graphql-transformer-core": "6.30.0", "inquirer": "^7.3.3", "inquirer-datepicker": "^2.0.0", "jstreemap": "^1.28.2", diff --git a/packages/amplify-category-geo/CHANGELOG.md b/packages/amplify-category-geo/CHANGELOG.md index e4d87c4d45c..fe472b3f292 100644 --- a/packages/amplify-category-geo/CHANGELOG.md +++ b/packages/amplify-category-geo/CHANGELOG.md @@ -2,3 +2,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + +## 1.0.1 (2021-09-27) + + + +# 6.1.0 (2021-09-24) + + +### Bug Fixes + +* add missing await, fix import paths ([#8199](https://github.com/aws-amplify/amplify-cli/issues/8199)) ([51c4dd9](https://github.com/aws-amplify/amplify-cli/commit/51c4dd9c021d894fe2c06fc005e1e1960fe4529c)) diff --git a/packages/amplify-category-geo/package.json b/packages/amplify-category-geo/package.json index 5653c43499b..9a5951a11b8 100644 --- a/packages/amplify-category-geo/package.json +++ b/packages/amplify-category-geo/package.json @@ -1,6 +1,6 @@ { "name": "amplify-category-geo", - "version": "1.0.0", + "version": "1.0.1", "description": "Amplify CLI plugin to manage the Geo resources for the project", "repository": { "type": "git", @@ -22,8 +22,11 @@ "aws" ], "dependencies": { - "amplify-cli-core": "1.29.0", - "amplify-prompts": "1.1.2", + "@aws-cdk/aws-iam": "~1.124.0", + "@aws-cdk/aws-location": "~1.124.0", + "@aws-cdk/core": "~1.124.0", + "amplify-cli-core": "1.30.0", + "amplify-prompts": "1.2.0", "folder-hash": "^4.0.1", "fs-extra": "^8.1.0", "globby": "^11.0.3", @@ -31,10 +34,7 @@ "lodash": "^4.17.19", "mime-types": "^2.1.26", "promise-sequential": "^1.1.1", - "uuid": "^8.3.2", - "@aws-cdk/core": "~1.124.0", - "@aws-cdk/aws-location": "~1.124.0", - "@aws-cdk/aws-iam": "~1.124.0" + "uuid": "^8.3.2" }, "jest": { "collectCoverage": true, diff --git a/packages/amplify-category-hosting/CHANGELOG.md b/packages/amplify-category-hosting/CHANGELOG.md index 04ccf5b9bf1..5f0a1174fe5 100644 --- a/packages/amplify-category-hosting/CHANGELOG.md +++ b/packages/amplify-category-hosting/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.7.22](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-hosting@2.7.21...amplify-category-hosting@2.7.22) (2021-09-27) + +**Note:** Version bump only for package amplify-category-hosting + + + + + ## [2.7.21](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-hosting@2.7.20...amplify-category-hosting@2.7.21) (2021-09-18) **Note:** Version bump only for package amplify-category-hosting diff --git a/packages/amplify-category-hosting/package.json b/packages/amplify-category-hosting/package.json index bd3d9a08ff5..c4e621c99bd 100644 --- a/packages/amplify-category-hosting/package.json +++ b/packages/amplify-category-hosting/package.json @@ -1,6 +1,6 @@ { "name": "amplify-category-hosting", - "version": "2.7.21", + "version": "2.7.22", "description": "amplify-cli hosting plugin", "repository": { "type": "git", @@ -18,7 +18,7 @@ "test": "jest --coverage" }, "dependencies": { - "amplify-cli-core": "1.29.0", + "amplify-cli-core": "1.30.0", "chalk": "^4.1.1", "fs-extra": "^8.1.0", "inquirer": "^7.3.3", diff --git a/packages/amplify-category-interactions/CHANGELOG.md b/packages/amplify-category-interactions/CHANGELOG.md index b3d3243f47d..593d42fc8b3 100644 --- a/packages/amplify-category-interactions/CHANGELOG.md +++ b/packages/amplify-category-interactions/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.6.6](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-interactions@2.6.5...amplify-category-interactions@2.6.6) (2021-09-27) + +**Note:** Version bump only for package amplify-category-interactions + + + + + ## [2.6.5](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-interactions@2.6.4...amplify-category-interactions@2.6.5) (2021-09-18) **Note:** Version bump only for package amplify-category-interactions diff --git a/packages/amplify-category-interactions/package.json b/packages/amplify-category-interactions/package.json index bebbd9e2ddd..f12cb662a54 100644 --- a/packages/amplify-category-interactions/package.json +++ b/packages/amplify-category-interactions/package.json @@ -1,6 +1,6 @@ { "name": "amplify-category-interactions", - "version": "2.6.5", + "version": "2.6.6", "description": "amplify-cli interactions plugin", "repository": { "type": "git", @@ -15,7 +15,7 @@ "aws" ], "dependencies": { - "amplify-cli-core": "1.29.0", + "amplify-cli-core": "1.30.0", "fs-extra": "^8.1.0", "fuzzy": "^0.1.3", "inquirer": "^7.3.3", diff --git a/packages/amplify-category-predictions/CHANGELOG.md b/packages/amplify-category-predictions/CHANGELOG.md index ef8ac542b7f..c746ae109a0 100644 --- a/packages/amplify-category-predictions/CHANGELOG.md +++ b/packages/amplify-category-predictions/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.9.13](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-predictions@2.9.12...amplify-category-predictions@2.9.13) (2021-09-27) + +**Note:** Version bump only for package amplify-category-predictions + + + + + ## [2.9.12](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-predictions@2.9.11...amplify-category-predictions@2.9.12) (2021-09-18) **Note:** Version bump only for package amplify-category-predictions diff --git a/packages/amplify-category-predictions/package.json b/packages/amplify-category-predictions/package.json index f2b4ca21618..48dd3b9631d 100644 --- a/packages/amplify-category-predictions/package.json +++ b/packages/amplify-category-predictions/package.json @@ -1,6 +1,6 @@ { "name": "amplify-category-predictions", - "version": "2.9.12", + "version": "2.9.13", "description": "amplify-cli predictions plugin", "repository": { "type": "git", @@ -15,7 +15,7 @@ "aws" ], "dependencies": { - "amplify-cli-core": "1.29.0", + "amplify-cli-core": "1.30.0", "aws-sdk": "^2.963.0", "chalk": "^4.1.1", "fs-extra": "^8.1.0", diff --git a/packages/amplify-category-storage/CHANGELOG.md b/packages/amplify-category-storage/CHANGELOG.md index 9d5ca73a2b5..f57369e4fff 100644 --- a/packages/amplify-category-storage/CHANGELOG.md +++ b/packages/amplify-category-storage/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.12.10](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-storage@2.12.9...amplify-category-storage@2.12.10) (2021-09-27) + +**Note:** Version bump only for package amplify-category-storage + + + + + ## [2.12.9](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-storage@2.12.8...amplify-category-storage@2.12.9) (2021-09-18) **Note:** Version bump only for package amplify-category-storage diff --git a/packages/amplify-category-storage/package.json b/packages/amplify-category-storage/package.json index bd53c0c6e62..6d39fa07fed 100644 --- a/packages/amplify-category-storage/package.json +++ b/packages/amplify-category-storage/package.json @@ -1,6 +1,6 @@ { "name": "amplify-category-storage", - "version": "2.12.9", + "version": "2.12.10", "description": "amplify-cli storage plugin", "repository": { "type": "git", @@ -22,9 +22,9 @@ "aws" ], "dependencies": { - "amplify-cli-core": "1.29.0", - "amplify-prompts": "1.1.2", - "amplify-util-import": "1.5.12", + "amplify-cli-core": "1.30.0", + "amplify-prompts": "1.2.0", + "amplify-util-import": "1.5.13", "chalk": "^4.1.1", "cloudform-types": "^4.2.0", "enquirer": "^2.3.6", diff --git a/packages/amplify-category-xr/CHANGELOG.md b/packages/amplify-category-xr/CHANGELOG.md index 8210532238d..9070998538e 100644 --- a/packages/amplify-category-xr/CHANGELOG.md +++ b/packages/amplify-category-xr/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.8.22](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-xr@2.8.21...amplify-category-xr@2.8.22) (2021-09-27) + +**Note:** Version bump only for package amplify-category-xr + + + + + ## [2.8.21](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-xr@2.8.20...amplify-category-xr@2.8.21) (2021-09-18) **Note:** Version bump only for package amplify-category-xr diff --git a/packages/amplify-category-xr/package.json b/packages/amplify-category-xr/package.json index c2c3d13f25d..9aed5872f82 100644 --- a/packages/amplify-category-xr/package.json +++ b/packages/amplify-category-xr/package.json @@ -1,6 +1,6 @@ { "name": "amplify-category-xr", - "version": "2.8.21", + "version": "2.8.22", "description": "amplify-cli xr plugin", "repository": { "type": "git", @@ -19,7 +19,7 @@ "test-watch": "jest --watch" }, "dependencies": { - "amplify-cli-core": "1.29.0", + "amplify-cli-core": "1.30.0", "chalk": "^4.1.1", "fs-extra": "^8.1.0", "inquirer": "^7.3.3" diff --git a/packages/amplify-cli-core/CHANGELOG.md b/packages/amplify-cli-core/CHANGELOG.md index ebedb48de80..6c8dfcb7cee 100644 --- a/packages/amplify-cli-core/CHANGELOG.md +++ b/packages/amplify-cli-core/CHANGELOG.md @@ -3,6 +3,28 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.30.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-cli-core@1.29.0...amplify-cli-core@1.30.0) (2021-09-27) + + +### Bug Fixes + +* [#8223](https://github.com/aws-amplify/amplify-cli/issues/8223), conversion to typescript ([#8245](https://github.com/aws-amplify/amplify-cli/issues/8245)) ([096e6ca](https://github.com/aws-amplify/amplify-cli/commit/096e6ca19b94aa40ef249ea98d008380395afa16)) +* **amplify-cli-core:** add service mapping FFs ([#7024](https://github.com/aws-amplify/amplify-cli/issues/7024)) ([36fe24d](https://github.com/aws-amplify/amplify-cli/commit/36fe24db9f37a8a12d50f1e20ea44562eb44d04a)) + + +### Features + +* Flag to allow schema changes that require table replacement ([#8144](https://github.com/aws-amplify/amplify-cli/issues/8144)) ([2d4e65a](https://github.com/aws-amplify/amplify-cli/commit/2d4e65acfd034d33c6fa8ac1f5f8582e7e3bc399)) + + +### Reverts + +* Revert "feat: Flag to allow schema changes that require table replacement (#8144)" (#8268) ([422dd04](https://github.com/aws-amplify/amplify-cli/commit/422dd04425c72aa7276e086d38ce4d5f4681f9f3)), closes [#8144](https://github.com/aws-amplify/amplify-cli/issues/8144) [#8268](https://github.com/aws-amplify/amplify-cli/issues/8268) + + + + + # [1.29.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-cli-core@1.28.0...amplify-cli-core@1.29.0) (2021-09-18) diff --git a/packages/amplify-cli-core/package.json b/packages/amplify-cli-core/package.json index 651efff8a80..226cd1a3633 100644 --- a/packages/amplify-cli-core/package.json +++ b/packages/amplify-cli-core/package.json @@ -1,6 +1,6 @@ { "name": "amplify-cli-core", - "version": "1.29.0", + "version": "1.30.0", "description": "Amplify CLI Core", "repository": { "type": "git", @@ -26,7 +26,7 @@ "dependencies": { "ajv": "^6.12.3", "amplify-cli-logger": "1.1.0", - "amplify-prompts": "1.1.2", + "amplify-prompts": "1.2.0", "chalk": "^4.1.1", "ci-info": "^2.0.0", "cloudform-types": "^4.2.0", diff --git a/packages/amplify-cli/CHANGELOG.md b/packages/amplify-cli/CHANGELOG.md index 40dda810eb8..3b8940e6daf 100644 --- a/packages/amplify-cli/CHANGELOG.md +++ b/packages/amplify-cli/CHANGELOG.md @@ -3,6 +3,27 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.1.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/cli@6.0.1...@aws-amplify/cli@6.1.0) (2021-09-27) + + +### Bug Fixes + +* **amplify-category-auth:** update front end config on pull ([#8173](https://github.com/aws-amplify/amplify-cli/issues/8173)) ([da2b008](https://github.com/aws-amplify/amplify-cli/commit/da2b0083add2f5b10520efade8628080a34c8791)) + + +### Features + +* Flag to allow schema changes that require table replacement ([#8144](https://github.com/aws-amplify/amplify-cli/issues/8144)) ([2d4e65a](https://github.com/aws-amplify/amplify-cli/commit/2d4e65acfd034d33c6fa8ac1f5f8582e7e3bc399)) + + +### Reverts + +* Revert "feat: Flag to allow schema changes that require table replacement (#8144)" (#8268) ([422dd04](https://github.com/aws-amplify/amplify-cli/commit/422dd04425c72aa7276e086d38ce4d5f4681f9f3)), closes [#8144](https://github.com/aws-amplify/amplify-cli/issues/8144) [#8268](https://github.com/aws-amplify/amplify-cli/issues/8268) + + + + + ## [6.0.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/cli@6.0.0...@aws-amplify/cli@6.0.1) (2021-09-20) **Note:** Version bump only for package @aws-amplify/cli diff --git a/packages/amplify-cli/package.json b/packages/amplify-cli/package.json index c892a0c9b4e..f568498dd15 100644 --- a/packages/amplify-cli/package.json +++ b/packages/amplify-cli/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/cli", - "version": "6.0.1", + "version": "6.1.0", "description": "Amplify CLI", "repository": { "type": "git", @@ -34,41 +34,41 @@ }, "dependencies": { "@aws-cdk/cloudformation-diff": "~1.124.0", - "amplify-app": "3.0.12", - "amplify-category-analytics": "2.21.21", - "amplify-category-api": "2.31.23", - "amplify-category-auth": "2.38.1", - "amplify-category-function": "2.34.7", - "amplify-category-geo": "1.0.0", - "amplify-category-hosting": "2.7.21", - "amplify-category-interactions": "2.6.5", + "amplify-app": "3.0.13", + "amplify-category-analytics": "2.21.22", + "amplify-category-api": "2.32.0", + "amplify-category-auth": "2.38.2", + "amplify-category-function": "2.35.0", + "amplify-category-geo": "1.0.1", + "amplify-category-hosting": "2.7.22", + "amplify-category-interactions": "2.6.6", "amplify-category-notifications": "2.19.4", - "amplify-category-predictions": "2.9.12", - "amplify-category-storage": "2.12.9", - "amplify-category-xr": "2.8.21", - "amplify-cli-core": "1.29.0", + "amplify-category-predictions": "2.9.13", + "amplify-category-storage": "2.12.10", + "amplify-category-xr": "2.8.22", + "amplify-cli-core": "1.30.0", "amplify-cli-logger": "1.1.0", "amplify-codegen": "^2.23.1", - "amplify-console-hosting": "1.9.12", - "amplify-container-hosting": "1.3.23", + "amplify-console-hosting": "1.9.13", + "amplify-container-hosting": "1.3.24", "amplify-dotnet-function-runtime-provider": "1.6.3", - "amplify-dotnet-function-template-provider": "1.5.21", + "amplify-dotnet-function-template-provider": "1.5.22", "amplify-frontend-android": "2.15.4", "amplify-frontend-flutter": "0.4.4", - "amplify-frontend-ios": "2.20.14", - "amplify-frontend-javascript": "2.24.1", - "amplify-go-function-runtime-provider": "1.9.4", + "amplify-frontend-ios": "2.20.15", + "amplify-frontend-javascript": "2.24.2", + "amplify-go-function-runtime-provider": "1.9.5", "amplify-go-function-template-provider": "1.3.10", - "amplify-java-function-runtime-provider": "1.8.14", + "amplify-java-function-runtime-provider": "1.8.15", "amplify-java-function-template-provider": "1.5.9", - "amplify-nodejs-function-runtime-provider": "1.6.11", - "amplify-nodejs-function-template-provider": "1.6.21", - "amplify-prompts": "1.1.2", - "amplify-provider-awscloudformation": "4.60.1", - "amplify-python-function-runtime-provider": "1.9.11", + "amplify-nodejs-function-runtime-provider": "1.6.12", + "amplify-nodejs-function-template-provider": "1.6.22", + "amplify-prompts": "1.2.0", + "amplify-provider-awscloudformation": "4.61.0", + "amplify-python-function-runtime-provider": "1.9.12", "amplify-python-function-template-provider": "1.3.12", - "amplify-util-import": "1.5.12", - "amplify-util-mock": "3.34.5", + "amplify-util-import": "1.5.13", + "amplify-util-mock": "3.34.6", "aws-sdk": "^2.963.0", "chalk": "^4.1.1", "ci-info": "^2.0.0", @@ -84,7 +84,7 @@ "fs-extra": "^8.1.0", "glob": "^7.1.6", "global-prefix": "^3.0.0", - "graphql-transformer-core": "6.29.7", + "graphql-transformer-core": "6.30.0", "gunzip-maybe": "^1.4.2", "hidefile": "^3.0.0", "ini": "^1.3.5", diff --git a/packages/amplify-console-hosting/CHANGELOG.md b/packages/amplify-console-hosting/CHANGELOG.md index e7b8e3439aa..1b7fafbcf08 100644 --- a/packages/amplify-console-hosting/CHANGELOG.md +++ b/packages/amplify-console-hosting/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.9.13](https://github.com/aws-amplify/amplify-cli/compare/amplify-console-hosting@1.9.12...amplify-console-hosting@1.9.13) (2021-09-27) + +**Note:** Version bump only for package amplify-console-hosting + + + + + ## [1.9.12](https://github.com/aws-amplify/amplify-cli/compare/amplify-console-hosting@1.9.11...amplify-console-hosting@1.9.12) (2021-09-18) **Note:** Version bump only for package amplify-console-hosting diff --git a/packages/amplify-console-hosting/package.json b/packages/amplify-console-hosting/package.json index 12148428543..8cbf8d16515 100644 --- a/packages/amplify-console-hosting/package.json +++ b/packages/amplify-console-hosting/package.json @@ -1,12 +1,12 @@ { "name": "amplify-console-hosting", - "version": "1.9.12", + "version": "1.9.13", "description": "cli plugin for AWS Amplify Console hosting", "main": "index.js", "author": "Amazon Web Services", "license": "Apache-2.0", "dependencies": { - "amplify-cli-core": "1.29.0", + "amplify-cli-core": "1.30.0", "archiver": "^5.3.0", "aws-sdk": "^2.963.0", "chalk": "^4.1.1", diff --git a/packages/amplify-console-integration-tests/CHANGELOG.md b/packages/amplify-console-integration-tests/CHANGELOG.md index 7bccafba147..fdfc2acec6b 100644 --- a/packages/amplify-console-integration-tests/CHANGELOG.md +++ b/packages/amplify-console-integration-tests/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.8.10](https://github.com/aws-amplify/amplify-console-integration-tests/compare/amplify-console-integration-tests@1.8.9...amplify-console-integration-tests@1.8.10) (2021-09-27) + +**Note:** Version bump only for package amplify-console-integration-tests + + + + + ## [1.8.9](https://github.com/aws-amplify/amplify-console-integration-tests/compare/amplify-console-integration-tests@1.8.8...amplify-console-integration-tests@1.8.9) (2021-09-18) **Note:** Version bump only for package amplify-console-integration-tests diff --git a/packages/amplify-console-integration-tests/package.json b/packages/amplify-console-integration-tests/package.json index cf1d3a2918e..5f54583e2bf 100644 --- a/packages/amplify-console-integration-tests/package.json +++ b/packages/amplify-console-integration-tests/package.json @@ -1,6 +1,6 @@ { "name": "amplify-console-integration-tests", - "version": "1.8.9", + "version": "1.8.10", "description": "", "repository": { "type": "git", @@ -22,7 +22,7 @@ }, "dependencies": { "@types/ini": "^1.3.30", - "amplify-e2e-core": "1.26.1", + "amplify-e2e-core": "1.27.0", "aws-sdk": "^2.963.0", "dotenv": "^8.2.0", "esm": "^3.2.25", diff --git a/packages/amplify-container-hosting/CHANGELOG.md b/packages/amplify-container-hosting/CHANGELOG.md index ed8310816d1..3d05243e2f4 100644 --- a/packages/amplify-container-hosting/CHANGELOG.md +++ b/packages/amplify-container-hosting/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.24](https://github.com/aws-amplify/amplify-cli/compare/amplify-container-hosting@1.3.23...amplify-container-hosting@1.3.24) (2021-09-27) + +**Note:** Version bump only for package amplify-container-hosting + + + + + ## [1.3.23](https://github.com/aws-amplify/amplify-cli/compare/amplify-container-hosting@1.3.22...amplify-container-hosting@1.3.23) (2021-09-18) **Note:** Version bump only for package amplify-container-hosting diff --git a/packages/amplify-container-hosting/package.json b/packages/amplify-container-hosting/package.json index 544c959bcc7..46c4c9a485d 100644 --- a/packages/amplify-container-hosting/package.json +++ b/packages/amplify-container-hosting/package.json @@ -1,6 +1,6 @@ { "name": "amplify-container-hosting", - "version": "1.3.23", + "version": "1.3.24", "description": "amplify-cli hosting plugin for containers", "repository": { "type": "git", @@ -18,7 +18,7 @@ "test": "jest --coverage --passWithNoTests" }, "dependencies": { - "amplify-category-api": "2.31.23", + "amplify-category-api": "2.32.0", "chalk": "^4.1.1", "fs-extra": "^8.1.0", "inquirer": "^7.3.3", diff --git a/packages/amplify-dotnet-function-template-provider/CHANGELOG.md b/packages/amplify-dotnet-function-template-provider/CHANGELOG.md index a465ead4ef7..f4302094846 100644 --- a/packages/amplify-dotnet-function-template-provider/CHANGELOG.md +++ b/packages/amplify-dotnet-function-template-provider/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.5.22](https://github.com/aws-amplify/amplify-cli/compare/amplify-dotnet-function-template-provider@1.5.21...amplify-dotnet-function-template-provider@1.5.22) (2021-09-27) + +**Note:** Version bump only for package amplify-dotnet-function-template-provider + + + + + ## [1.5.21](https://github.com/aws-amplify/amplify-cli/compare/amplify-dotnet-function-template-provider@1.5.20...amplify-dotnet-function-template-provider@1.5.21) (2021-09-18) **Note:** Version bump only for package amplify-dotnet-function-template-provider diff --git a/packages/amplify-dotnet-function-template-provider/package.json b/packages/amplify-dotnet-function-template-provider/package.json index 0b4551f1c9a..15cc5fe5ded 100644 --- a/packages/amplify-dotnet-function-template-provider/package.json +++ b/packages/amplify-dotnet-function-template-provider/package.json @@ -1,6 +1,6 @@ { "name": "amplify-dotnet-function-template-provider", - "version": "1.5.21", + "version": "1.5.22", "description": ".NET Core templates supplied by the Amplify Team", "repository": { "type": "git", @@ -22,9 +22,9 @@ "clean": "rimraf lib tsconfig.tsbuildinfo" }, "dependencies": { - "amplify-cli-core": "1.29.0", + "amplify-cli-core": "1.30.0", "amplify-function-plugin-interface": "1.9.1", - "graphql-transformer-core": "6.29.7" + "graphql-transformer-core": "6.30.0" }, "devDependencies": { "@types/inquirer": "^6.5.0", diff --git a/packages/amplify-dynamodb-simulator/CHANGELOG.md b/packages/amplify-dynamodb-simulator/CHANGELOG.md index 8ea948e03e5..f388380bb8b 100644 --- a/packages/amplify-dynamodb-simulator/CHANGELOG.md +++ b/packages/amplify-dynamodb-simulator/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.19.13](https://github.com/aws-amplify/amplify-cli/compare/amplify-dynamodb-simulator@1.19.12...amplify-dynamodb-simulator@1.19.13) (2021-09-27) + +**Note:** Version bump only for package amplify-dynamodb-simulator + + + + + ## [1.19.12](https://github.com/aws-amplify/amplify-cli/compare/amplify-dynamodb-simulator@1.19.11...amplify-dynamodb-simulator@1.19.12) (2021-09-18) **Note:** Version bump only for package amplify-dynamodb-simulator diff --git a/packages/amplify-dynamodb-simulator/package.json b/packages/amplify-dynamodb-simulator/package.json index 401d0082075..d34c467ade8 100644 --- a/packages/amplify-dynamodb-simulator/package.json +++ b/packages/amplify-dynamodb-simulator/package.json @@ -1,6 +1,6 @@ { "name": "amplify-dynamodb-simulator", - "version": "1.19.12", + "version": "1.19.13", "description": "DynamoDB emulator nodejs wrapper", "repository": { "type": "git", @@ -20,7 +20,7 @@ "test": "jest" }, "dependencies": { - "amplify-cli-core": "1.29.0", + "amplify-cli-core": "1.30.0", "aws-sdk": "^2.963.0", "detect-port": "^1.3.0", "event-to-promise": "^0.8.0", diff --git a/packages/amplify-e2e-core/CHANGELOG.md b/packages/amplify-e2e-core/CHANGELOG.md index e42609100f1..6daf600eb5d 100644 --- a/packages/amplify-e2e-core/CHANGELOG.md +++ b/packages/amplify-e2e-core/CHANGELOG.md @@ -3,6 +3,22 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.27.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-e2e-core@1.26.1...amplify-e2e-core@1.27.0) (2021-09-27) + + +### Features + +* Flag to allow schema changes that require table replacement ([#8144](https://github.com/aws-amplify/amplify-cli/issues/8144)) ([2d4e65a](https://github.com/aws-amplify/amplify-cli/commit/2d4e65acfd034d33c6fa8ac1f5f8582e7e3bc399)) + + +### Reverts + +* Revert "feat: Flag to allow schema changes that require table replacement (#8144)" (#8268) ([422dd04](https://github.com/aws-amplify/amplify-cli/commit/422dd04425c72aa7276e086d38ce4d5f4681f9f3)), closes [#8144](https://github.com/aws-amplify/amplify-cli/issues/8144) [#8268](https://github.com/aws-amplify/amplify-cli/issues/8268) + + + + + ## [1.26.1](https://github.com/aws-amplify/amplify-cli/compare/amplify-e2e-core@1.26.0...amplify-e2e-core@1.26.1) (2021-09-18) **Note:** Version bump only for package amplify-e2e-core diff --git a/packages/amplify-e2e-core/package.json b/packages/amplify-e2e-core/package.json index b8a5fbc80d7..49df7af2d00 100644 --- a/packages/amplify-e2e-core/package.json +++ b/packages/amplify-e2e-core/package.json @@ -1,6 +1,6 @@ { "name": "amplify-e2e-core", - "version": "1.26.1", + "version": "1.27.0", "description": "", "repository": { "type": "git", @@ -22,12 +22,12 @@ "clean": "rimraf ./lib" }, "dependencies": { - "amplify-cli-core": "1.29.0", + "amplify-cli-core": "1.30.0", "amplify-headless-interface": "1.10.0", "chalk": "^4.1.1", "execa": "^5.1.1", "fs-extra": "^8.1.0", - "graphql-transformer-core": "6.29.7", + "graphql-transformer-core": "6.30.0", "jest-environment-node": "^26.6.2", "lodash": "^4.17.21", "node-pty-prebuilt-multiarch": "^0.9.0", diff --git a/packages/amplify-e2e-tests/CHANGELOG.md b/packages/amplify-e2e-tests/CHANGELOG.md index f4101ae3ae1..466bde439d1 100644 --- a/packages/amplify-e2e-tests/CHANGELOG.md +++ b/packages/amplify-e2e-tests/CHANGELOG.md @@ -3,6 +3,22 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.51.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-e2e-tests@2.50.0...amplify-e2e-tests@2.51.0) (2021-09-27) + + +### Features + +* Flag to allow schema changes that require table replacement ([#8144](https://github.com/aws-amplify/amplify-cli/issues/8144)) ([2d4e65a](https://github.com/aws-amplify/amplify-cli/commit/2d4e65acfd034d33c6fa8ac1f5f8582e7e3bc399)) + + +### Reverts + +* Revert "feat: Flag to allow schema changes that require table replacement (#8144)" (#8268) ([422dd04](https://github.com/aws-amplify/amplify-cli/commit/422dd04425c72aa7276e086d38ce4d5f4681f9f3)), closes [#8144](https://github.com/aws-amplify/amplify-cli/issues/8144) [#8268](https://github.com/aws-amplify/amplify-cli/issues/8268) + + + + + # [2.50.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-e2e-tests@2.49.0...amplify-e2e-tests@2.50.0) (2021-09-18) diff --git a/packages/amplify-e2e-tests/package.json b/packages/amplify-e2e-tests/package.json index cd9917f05c9..376c3eef74a 100644 --- a/packages/amplify-e2e-tests/package.json +++ b/packages/amplify-e2e-tests/package.json @@ -1,6 +1,6 @@ { "name": "amplify-e2e-tests", - "version": "2.50.0", + "version": "2.51.0", "description": "", "repository": { "type": "git", @@ -23,8 +23,8 @@ "clean-e2e-resources": "ts-node ./src/cleanup-e2e-resources.ts" }, "dependencies": { - "amplify-cli-core": "1.29.0", - "amplify-e2e-core": "1.26.1", + "amplify-cli-core": "1.30.0", + "amplify-e2e-core": "1.27.0", "aws-amplify": "^4.2.8", "aws-appsync": "^4.1.1", "aws-sdk": "^2.963.0", @@ -35,7 +35,7 @@ "fs-extra": "^8.1.0", "graphql-schema-diff": "^2.2.0", "graphql-tag": "^2.10.1", - "graphql-transformer-core": "6.29.7", + "graphql-transformer-core": "6.30.0", "lodash": "^4.17.21", "node-fetch": "^2.6.1", "promise-sequential": "^1.1.1", diff --git a/packages/amplify-frontend-ios/CHANGELOG.md b/packages/amplify-frontend-ios/CHANGELOG.md index d13f521663f..6412666748e 100644 --- a/packages/amplify-frontend-ios/CHANGELOG.md +++ b/packages/amplify-frontend-ios/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.20.15](https://github.com/aws-amplify/amplify-cli/compare/amplify-frontend-ios@2.20.14...amplify-frontend-ios@2.20.15) (2021-09-27) + +**Note:** Version bump only for package amplify-frontend-ios + + + + + ## [2.20.14](https://github.com/aws-amplify/amplify-cli/compare/amplify-frontend-ios@2.20.13...amplify-frontend-ios@2.20.14) (2021-09-18) **Note:** Version bump only for package amplify-frontend-ios diff --git a/packages/amplify-frontend-ios/package.json b/packages/amplify-frontend-ios/package.json index 6201bd7eede..747ab07941b 100644 --- a/packages/amplify-frontend-ios/package.json +++ b/packages/amplify-frontend-ios/package.json @@ -1,6 +1,6 @@ { "name": "amplify-frontend-ios", - "version": "2.20.14", + "version": "2.20.15", "description": "amplify-cli front-end plugin for xcode projects", "repository": { "type": "git", @@ -21,7 +21,7 @@ "test-watch": "jest --watch" }, "dependencies": { - "amplify-cli-core": "1.29.0", + "amplify-cli-core": "1.30.0", "execa": "^5.1.1", "fs-extra": "^8.1.0", "graphql-config": "^2.2.1", diff --git a/packages/amplify-frontend-javascript/CHANGELOG.md b/packages/amplify-frontend-javascript/CHANGELOG.md index f73c6d95a36..6b1271a8d9a 100644 --- a/packages/amplify-frontend-javascript/CHANGELOG.md +++ b/packages/amplify-frontend-javascript/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.24.2](https://github.com/aws-amplify/amplify-cli/compare/amplify-frontend-javascript@2.24.1...amplify-frontend-javascript@2.24.2) (2021-09-27) + +**Note:** Version bump only for package amplify-frontend-javascript + + + + + ## [2.24.1](https://github.com/aws-amplify/amplify-cli/compare/amplify-frontend-javascript@2.24.0...amplify-frontend-javascript@2.24.1) (2021-09-18) **Note:** Version bump only for package amplify-frontend-javascript diff --git a/packages/amplify-frontend-javascript/package.json b/packages/amplify-frontend-javascript/package.json index fe84bb6f731..8d9db3dc94d 100644 --- a/packages/amplify-frontend-javascript/package.json +++ b/packages/amplify-frontend-javascript/package.json @@ -1,6 +1,6 @@ { "name": "amplify-frontend-javascript", - "version": "2.24.1", + "version": "2.24.2", "description": "amplify-cli front-end plugin for JavaScript projects", "repository": { "type": "git", @@ -16,7 +16,7 @@ "aws" ], "dependencies": { - "amplify-cli-core": "1.29.0", + "amplify-cli-core": "1.30.0", "chalk": "^4.1.1", "execa": "^5.1.1", "fs-extra": "^8.1.0", diff --git a/packages/amplify-go-function-runtime-provider/CHANGELOG.md b/packages/amplify-go-function-runtime-provider/CHANGELOG.md index 627567d0485..55e381d607a 100644 --- a/packages/amplify-go-function-runtime-provider/CHANGELOG.md +++ b/packages/amplify-go-function-runtime-provider/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.9.5](https://github.com/aws-amplify/amplify-cli/compare/amplify-go-function-runtime-provider@1.9.4...amplify-go-function-runtime-provider@1.9.5) (2021-09-27) + +**Note:** Version bump only for package amplify-go-function-runtime-provider + + + + + ## [1.9.4](https://github.com/aws-amplify/amplify-cli/compare/amplify-go-function-runtime-provider@1.9.3...amplify-go-function-runtime-provider@1.9.4) (2021-09-18) **Note:** Version bump only for package amplify-go-function-runtime-provider diff --git a/packages/amplify-go-function-runtime-provider/package.json b/packages/amplify-go-function-runtime-provider/package.json index a9bb191c623..1d8cb4d285b 100644 --- a/packages/amplify-go-function-runtime-provider/package.json +++ b/packages/amplify-go-function-runtime-provider/package.json @@ -1,6 +1,6 @@ { "name": "amplify-go-function-runtime-provider", - "version": "1.9.4", + "version": "1.9.5", "description": "Provides functionality related to functions in Go 1.x on AWS", "repository": { "type": "git", @@ -21,7 +21,7 @@ "clean": "rimraf lib tsconfig.tsbuildinfo resources/localinvoke/go.sum resources/localinvoke/main resources/localinvoke/main.exe" }, "dependencies": { - "amplify-cli-core": "1.29.0", + "amplify-cli-core": "1.30.0", "amplify-function-plugin-interface": "1.9.1", "archiver": "^5.3.0", "execa": "^5.1.1", diff --git a/packages/amplify-graphql-function-transformer/CHANGELOG.md b/packages/amplify-graphql-function-transformer/CHANGELOG.md index 7ca5547a4a9..b63549d61b2 100644 --- a/packages/amplify-graphql-function-transformer/CHANGELOG.md +++ b/packages/amplify-graphql-function-transformer/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.4.4](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-function-transformer@0.4.3...@aws-amplify/graphql-function-transformer@0.4.4) (2021-09-27) + +**Note:** Version bump only for package @aws-amplify/graphql-function-transformer + + + + + ## [0.4.3](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-function-transformer@0.4.2...@aws-amplify/graphql-function-transformer@0.4.3) (2021-09-02) **Note:** Version bump only for package @aws-amplify/graphql-function-transformer diff --git a/packages/amplify-graphql-function-transformer/package.json b/packages/amplify-graphql-function-transformer/package.json index 0dad58611f0..4262ec5fa9a 100644 --- a/packages/amplify-graphql-function-transformer/package.json +++ b/packages/amplify-graphql-function-transformer/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/graphql-function-transformer", - "version": "0.4.3", + "version": "0.4.4", "description": "Amplify GraphQL @function transformer", "repository": { "type": "git", @@ -27,13 +27,13 @@ "test": "jest" }, "dependencies": { - "@aws-amplify/graphql-transformer-core": "0.9.0", - "@aws-amplify/graphql-transformer-interfaces": "1.9.0", + "@aws-amplify/graphql-transformer-core": "0.9.1", + "@aws-amplify/graphql-transformer-interfaces": "1.9.1", "@aws-cdk/aws-lambda": "~1.124.0", "@aws-cdk/core": "~1.124.0", "graphql": "^14.5.8", "graphql-mapping-template": "4.18.3", - "graphql-transformer-common": "4.19.9" + "graphql-transformer-common": "4.19.10" }, "devDependencies": { "@aws-cdk/assert": "~1.124.0" diff --git a/packages/amplify-graphql-http-transformer/CHANGELOG.md b/packages/amplify-graphql-http-transformer/CHANGELOG.md index f50be5992a6..4f4d1a854cd 100644 --- a/packages/amplify-graphql-http-transformer/CHANGELOG.md +++ b/packages/amplify-graphql-http-transformer/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.5.4](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-http-transformer@0.5.3...@aws-amplify/graphql-http-transformer@0.5.4) (2021-09-27) + +**Note:** Version bump only for package @aws-amplify/graphql-http-transformer + + + + + ## [0.5.3](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-http-transformer@0.5.2...@aws-amplify/graphql-http-transformer@0.5.3) (2021-09-02) **Note:** Version bump only for package @aws-amplify/graphql-http-transformer diff --git a/packages/amplify-graphql-http-transformer/package.json b/packages/amplify-graphql-http-transformer/package.json index ba9ab7a1139..da2a12b358b 100644 --- a/packages/amplify-graphql-http-transformer/package.json +++ b/packages/amplify-graphql-http-transformer/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/graphql-http-transformer", - "version": "0.5.3", + "version": "0.5.4", "description": "Amplify GraphQL @http transformer", "repository": { "type": "git", @@ -27,12 +27,12 @@ "test": "jest" }, "dependencies": { - "@aws-amplify/graphql-transformer-core": "0.9.0", - "@aws-amplify/graphql-transformer-interfaces": "1.9.0", + "@aws-amplify/graphql-transformer-core": "0.9.1", + "@aws-amplify/graphql-transformer-interfaces": "1.9.1", "@aws-cdk/core": "~1.124.0", "graphql": "^14.5.8", "graphql-mapping-template": "4.18.3", - "graphql-transformer-common": "4.19.9" + "graphql-transformer-common": "4.19.10" }, "devDependencies": { "@aws-cdk/assert": "~1.124.0" diff --git a/packages/amplify-graphql-index-transformer/CHANGELOG.md b/packages/amplify-graphql-index-transformer/CHANGELOG.md index d69ff43fde1..178702cf878 100644 --- a/packages/amplify-graphql-index-transformer/CHANGELOG.md +++ b/packages/amplify-graphql-index-transformer/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.3.3](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-index-transformer@0.3.2...@aws-amplify/graphql-index-transformer@0.3.3) (2021-09-27) + +**Note:** Version bump only for package @aws-amplify/graphql-index-transformer + + + + + ## [0.3.2](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-index-transformer@0.3.1...@aws-amplify/graphql-index-transformer@0.3.2) (2021-09-14) **Note:** Version bump only for package @aws-amplify/graphql-index-transformer diff --git a/packages/amplify-graphql-index-transformer/package.json b/packages/amplify-graphql-index-transformer/package.json index 435d2d4b266..a47437bd1aa 100644 --- a/packages/amplify-graphql-index-transformer/package.json +++ b/packages/amplify-graphql-index-transformer/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/graphql-index-transformer", - "version": "0.3.2", + "version": "0.3.3", "description": "Amplify GraphQL index and key transformers", "repository": { "type": "git", @@ -27,15 +27,15 @@ "test": "jest" }, "dependencies": { - "@aws-amplify/graphql-model-transformer": "0.6.2", - "@aws-amplify/graphql-transformer-core": "0.9.0", - "@aws-amplify/graphql-transformer-interfaces": "1.9.0", + "@aws-amplify/graphql-model-transformer": "0.6.3", + "@aws-amplify/graphql-transformer-core": "0.9.1", + "@aws-amplify/graphql-transformer-interfaces": "1.9.1", "@aws-cdk/aws-appsync": "~1.124.0", "@aws-cdk/aws-dynamodb": "~1.124.0", "@aws-cdk/core": "~1.124.0", "graphql": "^14.5.8", "graphql-mapping-template": "4.18.3", - "graphql-transformer-common": "4.19.9" + "graphql-transformer-common": "4.19.10" }, "devDependencies": { "@aws-cdk/assert": "~1.124.0" diff --git a/packages/amplify-graphql-model-transformer/CHANGELOG.md b/packages/amplify-graphql-model-transformer/CHANGELOG.md index 89f642832cd..f68301c3d84 100644 --- a/packages/amplify-graphql-model-transformer/CHANGELOG.md +++ b/packages/amplify-graphql-model-transformer/CHANGELOG.md @@ -3,6 +3,19 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.6.3](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-model-transformer@0.6.2...@aws-amplify/graphql-model-transformer@0.6.3) (2021-09-27) + + +### Bug Fixes + +* **graphql-model-transformer:** [@model](https://github.com/model) conflict resolution ([#8035](https://github.com/aws-amplify/amplify-cli/issues/8035)) ([f3bdc4a](https://github.com/aws-amplify/amplify-cli/commit/f3bdc4ac1fcf596f634d9d2e968785e76f7b138c)) +* **graphql-model-transformer:** iam role name does not exceed 64 characters ([#8244](https://github.com/aws-amplify/amplify-cli/issues/8244)) ([812a671](https://github.com/aws-amplify/amplify-cli/commit/812a67163d6dd33160bf7ace9afd538c83a7af1a)) +* **graphql-model-transformer:** remove unnecessary warnings for resolver config per type ([#8265](https://github.com/aws-amplify/amplify-cli/issues/8265)) ([2f2f0a5](https://github.com/aws-amplify/amplify-cli/commit/2f2f0a5bea59278219c1f4ebb5276927dc5a0fbd)) + + + + + ## [0.6.2](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-model-transformer@0.6.1...@aws-amplify/graphql-model-transformer@0.6.2) (2021-09-14) diff --git a/packages/amplify-graphql-model-transformer/package.json b/packages/amplify-graphql-model-transformer/package.json index f109646be90..51ce09507f5 100644 --- a/packages/amplify-graphql-model-transformer/package.json +++ b/packages/amplify-graphql-model-transformer/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/graphql-model-transformer", - "version": "0.6.2", + "version": "0.6.3", "description": "Amplify graphql @model transformer", "repository": { "type": "git", @@ -28,8 +28,8 @@ "test-watch": "jest --watch" }, "dependencies": { - "@aws-amplify/graphql-transformer-core": "0.9.0", - "@aws-amplify/graphql-transformer-interfaces": "1.9.0", + "@aws-amplify/graphql-transformer-core": "0.9.1", + "@aws-amplify/graphql-transformer-interfaces": "1.9.1", "@aws-cdk/assets": "~1.124.0", "@aws-cdk/aws-applicationautoscaling": "~1.124.0", "@aws-cdk/aws-appsync": "~1.124.0", @@ -58,14 +58,14 @@ "constructs": "^3.3.125", "graphql": "^14.5.8", "graphql-mapping-template": "4.18.3", - "graphql-transformer-common": "4.19.9", + "graphql-transformer-common": "4.19.10", "lodash": "^4.17.21", "md5": "^2.3.0" }, "devDependencies": { "@types/fs-extra": "^8.0.1", - "@types/node": "^12.12.6", - "@types/md5": "^2.3.1" + "@types/md5": "^2.3.1", + "@types/node": "^12.12.6" }, "jest": { "transform": { diff --git a/packages/amplify-graphql-predictions-transformer/CHANGELOG.md b/packages/amplify-graphql-predictions-transformer/CHANGELOG.md index 8b61b63b1ed..7197ffd78a3 100644 --- a/packages/amplify-graphql-predictions-transformer/CHANGELOG.md +++ b/packages/amplify-graphql-predictions-transformer/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.3.4](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-predictions-transformer@0.3.3...@aws-amplify/graphql-predictions-transformer@0.3.4) (2021-09-27) + +**Note:** Version bump only for package @aws-amplify/graphql-predictions-transformer + + + + + ## [0.3.3](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-predictions-transformer@0.3.2...@aws-amplify/graphql-predictions-transformer@0.3.3) (2021-09-02) **Note:** Version bump only for package @aws-amplify/graphql-predictions-transformer diff --git a/packages/amplify-graphql-predictions-transformer/package.json b/packages/amplify-graphql-predictions-transformer/package.json index 5af3216fb10..cb9663b064b 100644 --- a/packages/amplify-graphql-predictions-transformer/package.json +++ b/packages/amplify-graphql-predictions-transformer/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/graphql-predictions-transformer", - "version": "0.3.3", + "version": "0.3.4", "description": "Amplify GraphQL @predictions tranformer", "repository": { "type": "git", @@ -27,15 +27,15 @@ "test": "jest" }, "dependencies": { - "@aws-amplify/graphql-transformer-core": "0.9.0", - "@aws-amplify/graphql-transformer-interfaces": "1.9.0", + "@aws-amplify/graphql-transformer-core": "0.9.1", + "@aws-amplify/graphql-transformer-interfaces": "1.9.1", "@aws-cdk/aws-appsync": "~1.124.0", "@aws-cdk/aws-iam": "~1.124.0", "@aws-cdk/aws-lambda": "~1.124.0", "@aws-cdk/core": "~1.124.0", "graphql": "^14.5.8", "graphql-mapping-template": "4.18.3", - "graphql-transformer-common": "4.19.9" + "graphql-transformer-common": "4.19.10" }, "devDependencies": { "@aws-cdk/assert": "~1.124.0", diff --git a/packages/amplify-graphql-relational-transformer/CHANGELOG.md b/packages/amplify-graphql-relational-transformer/CHANGELOG.md index 5187458ef7f..3f407f686ef 100644 --- a/packages/amplify-graphql-relational-transformer/CHANGELOG.md +++ b/packages/amplify-graphql-relational-transformer/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [0.3.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-relational-transformer@0.2.1...@aws-amplify/graphql-relational-transformer@0.3.0) (2021-09-27) + + +### Features + +* add [@many](https://github.com/many)ToMany directive ([#8195](https://github.com/aws-amplify/amplify-cli/issues/8195)) ([cc644eb](https://github.com/aws-amplify/amplify-cli/commit/cc644ebc4968f29ad6b3f0b42013d7ee6a142f7e)) + + + + + ## [0.2.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-relational-transformer@0.2.0...@aws-amplify/graphql-relational-transformer@0.2.1) (2021-09-14) **Note:** Version bump only for package @aws-amplify/graphql-relational-transformer diff --git a/packages/amplify-graphql-relational-transformer/package.json b/packages/amplify-graphql-relational-transformer/package.json index c5e0e625c36..8796a104ff6 100644 --- a/packages/amplify-graphql-relational-transformer/package.json +++ b/packages/amplify-graphql-relational-transformer/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/graphql-relational-transformer", - "version": "0.2.1", + "version": "0.3.0", "description": "Amplify GraphQL relational modeling transformers", "repository": { "type": "git", @@ -27,16 +27,16 @@ "test": "jest" }, "dependencies": { - "@aws-amplify/graphql-index-transformer": "0.3.2", - "@aws-amplify/graphql-model-transformer": "0.6.2", - "@aws-amplify/graphql-transformer-core": "0.9.0", - "@aws-amplify/graphql-transformer-interfaces": "1.9.0", + "@aws-amplify/graphql-index-transformer": "0.3.3", + "@aws-amplify/graphql-model-transformer": "0.6.3", + "@aws-amplify/graphql-transformer-core": "0.9.1", + "@aws-amplify/graphql-transformer-interfaces": "1.9.1", "@aws-cdk/aws-appsync": "~1.124.0", "@aws-cdk/aws-dynamodb": "~1.124.0", "@aws-cdk/core": "~1.124.0", "graphql": "^14.5.8", "graphql-mapping-template": "4.18.3", - "graphql-transformer-common": "4.19.9" + "graphql-transformer-common": "4.19.10" }, "devDependencies": { "@aws-cdk/assert": "~1.124.0" diff --git a/packages/amplify-graphql-searchable-transformer/CHANGELOG.md b/packages/amplify-graphql-searchable-transformer/CHANGELOG.md index d1733fc4a8c..65564f118ae 100644 --- a/packages/amplify-graphql-searchable-transformer/CHANGELOG.md +++ b/packages/amplify-graphql-searchable-transformer/CHANGELOG.md @@ -3,6 +3,18 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.6.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-searchable-transformer@0.6.0...@aws-amplify/graphql-searchable-transformer@0.6.1) (2021-09-27) + + +### Bug Fixes + +* **graphql-model-transformer:** [@model](https://github.com/model) conflict resolution ([#8035](https://github.com/aws-amplify/amplify-cli/issues/8035)) ([f3bdc4a](https://github.com/aws-amplify/amplify-cli/commit/f3bdc4ac1fcf596f634d9d2e968785e76f7b138c)) +* **graphql-model-transformer:** iam role name does not exceed 64 characters ([#8244](https://github.com/aws-amplify/amplify-cli/issues/8244)) ([812a671](https://github.com/aws-amplify/amplify-cli/commit/812a67163d6dd33160bf7ace9afd538c83a7af1a)) + + + + + # [0.6.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-searchable-transformer@0.5.1...@aws-amplify/graphql-searchable-transformer@0.6.0) (2021-09-14) diff --git a/packages/amplify-graphql-searchable-transformer/package.json b/packages/amplify-graphql-searchable-transformer/package.json index f673eb698b5..b98d71177bb 100644 --- a/packages/amplify-graphql-searchable-transformer/package.json +++ b/packages/amplify-graphql-searchable-transformer/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/graphql-searchable-transformer", - "version": "0.6.0", + "version": "0.6.1", "description": "Amplfy GraphQL @searchable transformer", "repository": { "type": "git", @@ -27,8 +27,8 @@ "test": "jest" }, "dependencies": { - "@aws-amplify/graphql-transformer-core": "0.9.0", - "@aws-amplify/graphql-transformer-interfaces": "1.9.0", + "@aws-amplify/graphql-transformer-core": "0.9.1", + "@aws-amplify/graphql-transformer-interfaces": "1.9.1", "@aws-cdk/aws-appsync": "~1.124.0", "@aws-cdk/aws-dynamodb": "~1.124.0", "@aws-cdk/aws-ec2": "~1.124.0", @@ -38,7 +38,7 @@ "@aws-cdk/core": "~1.124.0", "graphql": "^14.5.8", "graphql-mapping-template": "4.18.3", - "graphql-transformer-common": "4.19.9" + "graphql-transformer-common": "4.19.10" }, "devDependencies": { "@aws-cdk/assert": "~1.124.0", diff --git a/packages/amplify-graphql-transformer-core/CHANGELOG.md b/packages/amplify-graphql-transformer-core/CHANGELOG.md index 335419c334e..7cbe5441d6e 100644 --- a/packages/amplify-graphql-transformer-core/CHANGELOG.md +++ b/packages/amplify-graphql-transformer-core/CHANGELOG.md @@ -3,6 +3,19 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.9.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-core@0.9.0...@aws-amplify/graphql-transformer-core@0.9.1) (2021-09-27) + + +### Bug Fixes + +* **graphql-model-transformer:** [@model](https://github.com/model) conflict resolution ([#8035](https://github.com/aws-amplify/amplify-cli/issues/8035)) ([f3bdc4a](https://github.com/aws-amplify/amplify-cli/commit/f3bdc4ac1fcf596f634d9d2e968785e76f7b138c)) +* **graphql-model-transformer:** iam role name does not exceed 64 characters ([#8244](https://github.com/aws-amplify/amplify-cli/issues/8244)) ([812a671](https://github.com/aws-amplify/amplify-cli/commit/812a67163d6dd33160bf7ace9afd538c83a7af1a)) +* **graphql-transformer-core:** add default api name when generating stack ([#8201](https://github.com/aws-amplify/amplify-cli/issues/8201)) ([fe52f9b](https://github.com/aws-amplify/amplify-cli/commit/fe52f9b44900888b30f8ce5c88286b197e9cd3af)) + + + + + # [0.9.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-core@0.8.2...@aws-amplify/graphql-transformer-core@0.9.0) (2021-09-02) diff --git a/packages/amplify-graphql-transformer-core/package.json b/packages/amplify-graphql-transformer-core/package.json index 6864ac53933..3228a50934c 100644 --- a/packages/amplify-graphql-transformer-core/package.json +++ b/packages/amplify-graphql-transformer-core/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/graphql-transformer-core", - "version": "0.9.0", + "version": "0.9.1", "description": "A framework to transform from GraphQL SDL to AWS CloudFormation.", "repository": { "type": "git", @@ -26,7 +26,7 @@ "clean": "rimraf ./lib" }, "dependencies": { - "@aws-amplify/graphql-transformer-interfaces": "1.9.0", + "@aws-amplify/graphql-transformer-interfaces": "1.9.1", "@aws-cdk/assets": "~1.124.0", "@aws-cdk/aws-applicationautoscaling": "~1.124.0", "@aws-cdk/aws-appsync": "~1.124.0", @@ -58,15 +58,15 @@ "fs-extra": "^8.1.0", "glob": "^7.1.6", "graphql": "^14.5.8", - "graphql-transformer-common": "4.19.9", + "graphql-transformer-common": "4.19.10", "lodash": "^4.17.21", - "ts-dedent": "^2.0.0", - "md5": "^2.3.0" + "md5": "^2.3.0", + "ts-dedent": "^2.0.0" }, "devDependencies": { "@types/fs-extra": "^8.0.1", - "@types/node": "^12.12.6", - "@types/md5": "^2.3.1" + "@types/md5": "^2.3.1", + "@types/node": "^12.12.6" }, "jest": { "transform": { diff --git a/packages/amplify-graphql-transformer-interfaces/CHANGELOG.md b/packages/amplify-graphql-transformer-interfaces/CHANGELOG.md index 60f87d2f8c5..ae35bcf8aba 100644 --- a/packages/amplify-graphql-transformer-interfaces/CHANGELOG.md +++ b/packages/amplify-graphql-transformer-interfaces/CHANGELOG.md @@ -3,6 +3,18 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.9.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-interfaces@1.9.0...@aws-amplify/graphql-transformer-interfaces@1.9.1) (2021-09-27) + + +### Bug Fixes + +* **graphql-model-transformer:** [@model](https://github.com/model) conflict resolution ([#8035](https://github.com/aws-amplify/amplify-cli/issues/8035)) ([f3bdc4a](https://github.com/aws-amplify/amplify-cli/commit/f3bdc4ac1fcf596f634d9d2e968785e76f7b138c)) +* **graphql-model-transformer:** iam role name does not exceed 64 characters ([#8244](https://github.com/aws-amplify/amplify-cli/issues/8244)) ([812a671](https://github.com/aws-amplify/amplify-cli/commit/812a67163d6dd33160bf7ace9afd538c83a7af1a)) + + + + + # [1.9.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-transformer-interfaces@1.8.2...@aws-amplify/graphql-transformer-interfaces@1.9.0) (2021-09-02) diff --git a/packages/amplify-graphql-transformer-interfaces/package.json b/packages/amplify-graphql-transformer-interfaces/package.json index f382142ff90..6f93dd85792 100644 --- a/packages/amplify-graphql-transformer-interfaces/package.json +++ b/packages/amplify-graphql-transformer-interfaces/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/graphql-transformer-interfaces", - "version": "1.9.0", + "version": "1.9.1", "description": "Amplify GraphQL transformer interface definitions", "repository": { "type": "git", diff --git a/packages/amplify-java-function-runtime-provider/CHANGELOG.md b/packages/amplify-java-function-runtime-provider/CHANGELOG.md index 7d7f31d2c0b..7c1bf88d9e0 100644 --- a/packages/amplify-java-function-runtime-provider/CHANGELOG.md +++ b/packages/amplify-java-function-runtime-provider/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.8.15](https://github.com/aws-amplify/amplify-cli/compare/amplify-java-function-runtime-provider@1.8.14...amplify-java-function-runtime-provider@1.8.15) (2021-09-27) + +**Note:** Version bump only for package amplify-java-function-runtime-provider + + + + + ## [1.8.14](https://github.com/aws-amplify/amplify-cli/compare/amplify-java-function-runtime-provider@1.8.13...amplify-java-function-runtime-provider@1.8.14) (2021-09-18) **Note:** Version bump only for package amplify-java-function-runtime-provider diff --git a/packages/amplify-java-function-runtime-provider/package.json b/packages/amplify-java-function-runtime-provider/package.json index 486e2e47981..d50e39942f4 100644 --- a/packages/amplify-java-function-runtime-provider/package.json +++ b/packages/amplify-java-function-runtime-provider/package.json @@ -1,6 +1,6 @@ { "name": "amplify-java-function-runtime-provider", - "version": "1.8.14", + "version": "1.8.15", "description": "Provides functionality related to functions in JAVA on AWS", "repository": { "type": "git", @@ -21,7 +21,7 @@ "clean": "rimraf lib tsconfig.tsbuildinfo" }, "dependencies": { - "amplify-cli-core": "1.29.0", + "amplify-cli-core": "1.30.0", "amplify-function-plugin-interface": "1.9.1", "execa": "^5.1.1", "fs-extra": "^8.1.0", diff --git a/packages/amplify-migration-tests/CHANGELOG.md b/packages/amplify-migration-tests/CHANGELOG.md index 392018a6b6e..a7b9a379ed1 100644 --- a/packages/amplify-migration-tests/CHANGELOG.md +++ b/packages/amplify-migration-tests/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.1.10](https://github.com/aws-amplify/amplify-cli/compare/amplify-migration-tests@3.1.9...amplify-migration-tests@3.1.10) (2021-09-27) + +**Note:** Version bump only for package amplify-migration-tests + + + + + ## [3.1.9](https://github.com/aws-amplify/amplify-cli/compare/amplify-migration-tests@3.1.8...amplify-migration-tests@3.1.9) (2021-09-18) **Note:** Version bump only for package amplify-migration-tests diff --git a/packages/amplify-migration-tests/package.json b/packages/amplify-migration-tests/package.json index dc9be803854..07e956072ca 100644 --- a/packages/amplify-migration-tests/package.json +++ b/packages/amplify-migration-tests/package.json @@ -1,6 +1,6 @@ { "name": "amplify-migration-tests", - "version": "3.1.9", + "version": "3.1.10", "description": "", "repository": { "type": "git", @@ -26,12 +26,12 @@ "setup-profile": "ts-node ./src/configure_tests.ts" }, "dependencies": { - "amplify-e2e-core": "1.26.1", + "amplify-e2e-core": "1.27.0", "aws-sdk": "^2.963.0", "dotenv": "^8.2.0", "esm": "^3.2.25", "fs-extra": "^8.1.0", - "graphql-transformer-core": "6.29.7", + "graphql-transformer-core": "6.30.0", "rimraf": "^3.0.0", "uuid": "^8.2.0" }, diff --git a/packages/amplify-nodejs-function-runtime-provider/CHANGELOG.md b/packages/amplify-nodejs-function-runtime-provider/CHANGELOG.md index 1275276e6cf..b908bc87598 100644 --- a/packages/amplify-nodejs-function-runtime-provider/CHANGELOG.md +++ b/packages/amplify-nodejs-function-runtime-provider/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.6.12](https://github.com/aws-amplify/amplify-cli/compare/amplify-nodejs-function-runtime-provider@1.6.11...amplify-nodejs-function-runtime-provider@1.6.12) (2021-09-27) + +**Note:** Version bump only for package amplify-nodejs-function-runtime-provider + + + + + ## [1.6.11](https://github.com/aws-amplify/amplify-cli/compare/amplify-nodejs-function-runtime-provider@1.6.10...amplify-nodejs-function-runtime-provider@1.6.11) (2021-09-18) **Note:** Version bump only for package amplify-nodejs-function-runtime-provider diff --git a/packages/amplify-nodejs-function-runtime-provider/package.json b/packages/amplify-nodejs-function-runtime-provider/package.json index 4574278ba69..63a08edebee 100644 --- a/packages/amplify-nodejs-function-runtime-provider/package.json +++ b/packages/amplify-nodejs-function-runtime-provider/package.json @@ -1,6 +1,6 @@ { "name": "amplify-nodejs-function-runtime-provider", - "version": "1.6.11", + "version": "1.6.12", "description": "Provides functionality related to functions in NodeJS on AWS", "repository": { "type": "git", @@ -23,7 +23,7 @@ "test": "jest" }, "dependencies": { - "amplify-cli-core": "1.29.0", + "amplify-cli-core": "1.30.0", "amplify-function-plugin-interface": "1.9.1", "archiver": "^5.3.0", "execa": "^5.1.1", diff --git a/packages/amplify-nodejs-function-template-provider/CHANGELOG.md b/packages/amplify-nodejs-function-template-provider/CHANGELOG.md index ea3ce43b77b..640d4454daf 100644 --- a/packages/amplify-nodejs-function-template-provider/CHANGELOG.md +++ b/packages/amplify-nodejs-function-template-provider/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.6.22](https://github.com/aws-amplify/amplify-cli/compare/amplify-nodejs-function-template-provider@1.6.21...amplify-nodejs-function-template-provider@1.6.22) (2021-09-27) + +**Note:** Version bump only for package amplify-nodejs-function-template-provider + + + + + ## [1.6.21](https://github.com/aws-amplify/amplify-cli/compare/amplify-nodejs-function-template-provider@1.6.20...amplify-nodejs-function-template-provider@1.6.21) (2021-09-18) **Note:** Version bump only for package amplify-nodejs-function-template-provider diff --git a/packages/amplify-nodejs-function-template-provider/package.json b/packages/amplify-nodejs-function-template-provider/package.json index a51c208efdb..1a589b45221 100644 --- a/packages/amplify-nodejs-function-template-provider/package.json +++ b/packages/amplify-nodejs-function-template-provider/package.json @@ -1,6 +1,6 @@ { "name": "amplify-nodejs-function-template-provider", - "version": "1.6.21", + "version": "1.6.22", "description": "Node JS templates supplied by the Amplify Team", "repository": { "type": "git", @@ -21,9 +21,9 @@ "clean": "rimraf lib tsconfig.tsbuildinfo" }, "dependencies": { - "amplify-cli-core": "1.29.0", + "amplify-cli-core": "1.30.0", "amplify-function-plugin-interface": "1.9.1", - "graphql-transformer-core": "6.29.7", + "graphql-transformer-core": "6.30.0", "lodash": "^4.17.21" }, "devDependencies": { diff --git a/packages/amplify-prompts/CHANGELOG.md b/packages/amplify-prompts/CHANGELOG.md index 82f5d957849..7bd42934884 100644 --- a/packages/amplify-prompts/CHANGELOG.md +++ b/packages/amplify-prompts/CHANGELOG.md @@ -3,6 +3,23 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.2.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-prompts@1.1.2...amplify-prompts@1.2.0) (2021-09-27) + + +### Features + +* Flag to allow schema changes that require table replacement ([#8144](https://github.com/aws-amplify/amplify-cli/issues/8144)) ([2d4e65a](https://github.com/aws-amplify/amplify-cli/commit/2d4e65acfd034d33c6fa8ac1f5f8582e7e3bc399)) +* update pick styling, hint text, and ctrl+z listener ([#8167](https://github.com/aws-amplify/amplify-cli/issues/8167)) ([620a36a](https://github.com/aws-amplify/amplify-cli/commit/620a36a8d4596cfd686820a5556431077977db5a)) + + +### Reverts + +* Revert "feat: Flag to allow schema changes that require table replacement (#8144)" (#8268) ([422dd04](https://github.com/aws-amplify/amplify-cli/commit/422dd04425c72aa7276e086d38ce4d5f4681f9f3)), closes [#8144](https://github.com/aws-amplify/amplify-cli/issues/8144) [#8268](https://github.com/aws-amplify/amplify-cli/issues/8268) + + + + + ## [1.1.2](https://github.com/aws-amplify/amplify-cli/compare/amplify-prompts@1.1.1...amplify-prompts@1.1.2) (2021-09-02) **Note:** Version bump only for package amplify-prompts diff --git a/packages/amplify-prompts/package.json b/packages/amplify-prompts/package.json index 54584e0ef4a..9899976db9a 100644 --- a/packages/amplify-prompts/package.json +++ b/packages/amplify-prompts/package.json @@ -1,6 +1,6 @@ { "name": "amplify-prompts", - "version": "1.1.2", + "version": "1.2.0", "description": "Utility functions for Amplify CLI terminal I/O", "main": "lib/index.js", "scripts": { diff --git a/packages/amplify-provider-awscloudformation/CHANGELOG.md b/packages/amplify-provider-awscloudformation/CHANGELOG.md index e22617bdeda..c1fef436600 100644 --- a/packages/amplify-provider-awscloudformation/CHANGELOG.md +++ b/packages/amplify-provider-awscloudformation/CHANGELOG.md @@ -3,6 +3,31 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [4.61.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-provider-awscloudformation@4.60.1...amplify-provider-awscloudformation@4.61.0) (2021-09-27) + + +### Bug Fixes + +* add pull check for missing s3 objects, ref [#8233](https://github.com/aws-amplify/amplify-cli/issues/8233) ([#8250](https://github.com/aws-amplify/amplify-cli/issues/8250)) ([d17309d](https://github.com/aws-amplify/amplify-cli/commit/d17309d36679f7b0c2fee858f38c44618e885370)) +* **amplify-cli-core:** add service mapping FFs ([#7024](https://github.com/aws-amplify/amplify-cli/issues/7024)) ([36fe24d](https://github.com/aws-amplify/amplify-cli/commit/36fe24db9f37a8a12d50f1e20ea44562eb44d04a)) +* **graphql-model-transformer:** [@model](https://github.com/model) conflict resolution ([#8035](https://github.com/aws-amplify/amplify-cli/issues/8035)) ([f3bdc4a](https://github.com/aws-amplify/amplify-cli/commit/f3bdc4ac1fcf596f634d9d2e968785e76f7b138c)) +* **graphql-model-transformer:** provide correct directive definitions based on transformer version ([#8208](https://github.com/aws-amplify/amplify-cli/issues/8208)) ([5583cd4](https://github.com/aws-amplify/amplify-cli/commit/5583cd47e620992ea9df1f02d812577dc90391eb)) + + +### Features + +* add [@many](https://github.com/many)ToMany directive ([#8195](https://github.com/aws-amplify/amplify-cli/issues/8195)) ([cc644eb](https://github.com/aws-amplify/amplify-cli/commit/cc644ebc4968f29ad6b3f0b42013d7ee6a142f7e)) +* Flag to allow schema changes that require table replacement ([#8144](https://github.com/aws-amplify/amplify-cli/issues/8144)) ([2d4e65a](https://github.com/aws-amplify/amplify-cli/commit/2d4e65acfd034d33c6fa8ac1f5f8582e7e3bc399)) + + +### Reverts + +* Revert "feat: Flag to allow schema changes that require table replacement (#8144)" (#8268) ([422dd04](https://github.com/aws-amplify/amplify-cli/commit/422dd04425c72aa7276e086d38ce4d5f4681f9f3)), closes [#8144](https://github.com/aws-amplify/amplify-cli/issues/8144) [#8268](https://github.com/aws-amplify/amplify-cli/issues/8268) + + + + + ## [4.60.1](https://github.com/aws-amplify/amplify-cli/compare/amplify-provider-awscloudformation@4.60.0...amplify-provider-awscloudformation@4.60.1) (2021-09-18) **Note:** Version bump only for package amplify-provider-awscloudformation diff --git a/packages/amplify-provider-awscloudformation/package.json b/packages/amplify-provider-awscloudformation/package.json index 0b8f55856a3..3b5976b0f68 100644 --- a/packages/amplify-provider-awscloudformation/package.json +++ b/packages/amplify-provider-awscloudformation/package.json @@ -1,6 +1,6 @@ { "name": "amplify-provider-awscloudformation", - "version": "4.60.1", + "version": "4.61.0", "description": "AWS CloudFormation Provider", "repository": { "type": "git", @@ -24,15 +24,15 @@ "watch": "tsc --watch" }, "dependencies": { - "@aws-amplify/graphql-function-transformer": "0.4.3", - "@aws-amplify/graphql-http-transformer": "0.5.3", - "@aws-amplify/graphql-index-transformer": "0.3.2", - "@aws-amplify/graphql-model-transformer": "0.6.2", - "@aws-amplify/graphql-predictions-transformer": "0.3.3", - "@aws-amplify/graphql-relational-transformer": "0.2.1", - "@aws-amplify/graphql-searchable-transformer": "0.6.0", - "@aws-amplify/graphql-transformer-core": "0.9.0", - "@aws-amplify/graphql-transformer-interfaces": "1.9.0", + "@aws-amplify/graphql-function-transformer": "0.4.4", + "@aws-amplify/graphql-http-transformer": "0.5.4", + "@aws-amplify/graphql-index-transformer": "0.3.3", + "@aws-amplify/graphql-model-transformer": "0.6.3", + "@aws-amplify/graphql-predictions-transformer": "0.3.4", + "@aws-amplify/graphql-relational-transformer": "0.3.0", + "@aws-amplify/graphql-searchable-transformer": "0.6.1", + "@aws-amplify/graphql-transformer-core": "0.9.1", + "@aws-amplify/graphql-transformer-interfaces": "1.9.1", "@aws-cdk/assets": "~1.124.0", "@aws-cdk/aws-apigatewayv2": "~1.124.0", "@aws-cdk/aws-autoscaling": "~1.124.0", @@ -72,10 +72,10 @@ "@aws-cdk/custom-resources": "~1.124.0", "@aws-cdk/region-info": "~1.124.0", "@octokit/rest": "^18.0.9", - "amplify-cli-core": "1.29.0", + "amplify-cli-core": "1.30.0", "amplify-cli-logger": "1.1.0", "amplify-codegen": "^2.23.1", - "amplify-util-import": "1.5.12", + "amplify-util-import": "1.5.13", "archiver": "^5.3.0", "aws-sdk": "^2.963.0", "bottleneck": "2.19.5", @@ -92,16 +92,16 @@ "fs-extra": "^8.1.0", "glob": "^7.1.6", "graphql": "^14.5.8", - "graphql-auth-transformer": "6.24.22", - "graphql-connection-transformer": "4.21.22", - "graphql-dynamodb-transformer": "6.22.22", - "graphql-elasticsearch-transformer": "4.12.1", - "graphql-function-transformer": "2.5.21", - "graphql-http-transformer": "4.18.9", - "graphql-key-transformer": "2.23.22", - "graphql-predictions-transformer": "2.5.21", - "graphql-transformer-core": "6.29.7", - "graphql-versioned-transformer": "4.17.22", + "graphql-auth-transformer": "6.24.23", + "graphql-connection-transformer": "4.21.23", + "graphql-dynamodb-transformer": "6.22.23", + "graphql-elasticsearch-transformer": "4.12.2", + "graphql-function-transformer": "2.5.22", + "graphql-http-transformer": "4.18.10", + "graphql-key-transformer": "2.23.23", + "graphql-predictions-transformer": "2.5.22", + "graphql-transformer-core": "6.30.0", + "graphql-versioned-transformer": "4.17.23", "ignore": "^5.1.8", "import-from": "^3.0.0", "import-global": "^0.1.0", diff --git a/packages/amplify-python-function-runtime-provider/CHANGELOG.md b/packages/amplify-python-function-runtime-provider/CHANGELOG.md index bce1d6f55e5..8e39d9bfd05 100644 --- a/packages/amplify-python-function-runtime-provider/CHANGELOG.md +++ b/packages/amplify-python-function-runtime-provider/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.9.12](https://github.com/aws-amplify/amplify-cli/compare/amplify-python-function-runtime-provider@1.9.11...amplify-python-function-runtime-provider@1.9.12) (2021-09-27) + +**Note:** Version bump only for package amplify-python-function-runtime-provider + + + + + ## [1.9.11](https://github.com/aws-amplify/amplify-cli/compare/amplify-python-function-runtime-provider@1.9.10...amplify-python-function-runtime-provider@1.9.11) (2021-09-18) **Note:** Version bump only for package amplify-python-function-runtime-provider diff --git a/packages/amplify-python-function-runtime-provider/package.json b/packages/amplify-python-function-runtime-provider/package.json index 1147467baba..7d444a01522 100644 --- a/packages/amplify-python-function-runtime-provider/package.json +++ b/packages/amplify-python-function-runtime-provider/package.json @@ -1,6 +1,6 @@ { "name": "amplify-python-function-runtime-provider", - "version": "1.9.11", + "version": "1.9.12", "description": "Provides functionality related to functions in Python on AWS", "repository": { "type": "git", @@ -21,7 +21,7 @@ "clean": "rimraf lib tsconfig.tsbuildinfo" }, "dependencies": { - "amplify-cli-core": "1.29.0", + "amplify-cli-core": "1.30.0", "amplify-function-plugin-interface": "1.9.1", "archiver": "^5.3.0", "execa": "^5.1.1", diff --git a/packages/amplify-util-import/CHANGELOG.md b/packages/amplify-util-import/CHANGELOG.md index 73800f1d0e1..3ee39e117f8 100644 --- a/packages/amplify-util-import/CHANGELOG.md +++ b/packages/amplify-util-import/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.5.13](https://github.com/aws-amplify/amplify-cli/compare/amplify-util-import@1.5.12...amplify-util-import@1.5.13) (2021-09-27) + +**Note:** Version bump only for package amplify-util-import + + + + + ## [1.5.12](https://github.com/aws-amplify/amplify-cli/compare/amplify-util-import@1.5.11...amplify-util-import@1.5.12) (2021-09-18) **Note:** Version bump only for package amplify-util-import diff --git a/packages/amplify-util-import/package.json b/packages/amplify-util-import/package.json index 737f242f315..1f16a928221 100644 --- a/packages/amplify-util-import/package.json +++ b/packages/amplify-util-import/package.json @@ -1,6 +1,6 @@ { "name": "amplify-util-import", - "version": "1.5.12", + "version": "1.5.13", "description": "Resource import support package", "main": "lib/index.js", "scripts": { @@ -16,7 +16,7 @@ "author": "Amazon Web Services", "license": "Apache-2.0", "dependencies": { - "amplify-cli-core": "1.29.0", + "amplify-cli-core": "1.30.0", "aws-sdk": "^2.963.0" }, "devDependencies": { diff --git a/packages/amplify-util-mock/CHANGELOG.md b/packages/amplify-util-mock/CHANGELOG.md index 93ce3fd6244..3a8a43dd36b 100644 --- a/packages/amplify-util-mock/CHANGELOG.md +++ b/packages/amplify-util-mock/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.34.6](https://github.com/aws-amplify/amplify-cli/compare/amplify-util-mock@3.34.5...amplify-util-mock@3.34.6) (2021-09-27) + +**Note:** Version bump only for package amplify-util-mock + + + + + ## [3.34.5](https://github.com/aws-amplify/amplify-cli/compare/amplify-util-mock@3.34.4...amplify-util-mock@3.34.5) (2021-09-18) **Note:** Version bump only for package amplify-util-mock diff --git a/packages/amplify-util-mock/package.json b/packages/amplify-util-mock/package.json index 6baa05f29d1..889abd2ddb2 100644 --- a/packages/amplify-util-mock/package.json +++ b/packages/amplify-util-mock/package.json @@ -1,6 +1,6 @@ { "name": "amplify-util-mock", - "version": "3.34.5", + "version": "3.34.6", "description": "amplify cli plugin providing local testing", "repository": { "type": "git", @@ -26,11 +26,11 @@ "dependencies": { "@hapi/topo": "^5.0.0", "amplify-appsync-simulator": "1.27.7", - "amplify-category-function": "2.34.7", - "amplify-cli-core": "1.29.0", + "amplify-category-function": "2.35.0", + "amplify-cli-core": "1.30.0", "amplify-codegen": "^2.23.1", - "amplify-dynamodb-simulator": "1.19.12", - "amplify-provider-awscloudformation": "4.60.1", + "amplify-dynamodb-simulator": "1.19.13", + "amplify-provider-awscloudformation": "4.61.0", "amplify-storage-simulator": "1.6.1", "chokidar": "^3.3.1", "detect-port": "^1.3.0", @@ -48,19 +48,19 @@ "@types/semver": "^7.1.0", "@types/which": "^1.3.2", "amplify-function-plugin-interface": "1.9.1", - "amplify-nodejs-function-runtime-provider": "1.6.11", + "amplify-nodejs-function-runtime-provider": "1.6.12", "aws-appsync": "^2.0.2", "aws-sdk": "^2.963.0", "aws-sdk-mock": "^5.1.0", "axios": "^0.21.4", - "graphql-auth-transformer": "6.24.22", - "graphql-connection-transformer": "4.21.22", - "graphql-dynamodb-transformer": "6.22.22", - "graphql-function-transformer": "2.5.21", - "graphql-key-transformer": "2.23.22", + "graphql-auth-transformer": "6.24.23", + "graphql-connection-transformer": "4.21.23", + "graphql-dynamodb-transformer": "6.22.23", + "graphql-function-transformer": "2.5.22", + "graphql-key-transformer": "2.23.23", "graphql-tag": "^2.10.1", - "graphql-transformer-core": "6.29.7", - "graphql-versioned-transformer": "4.17.22", + "graphql-transformer-core": "6.30.0", + "graphql-versioned-transformer": "4.17.23", "isomorphic-fetch": "^3.0.0", "jsonwebtoken": "^8.5.1", "uuid": "^3.4.0", diff --git a/packages/graphql-auth-transformer/CHANGELOG.md b/packages/graphql-auth-transformer/CHANGELOG.md index 2c1ae590937..c6cdd418a23 100644 --- a/packages/graphql-auth-transformer/CHANGELOG.md +++ b/packages/graphql-auth-transformer/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [6.24.23](https://github.com/aws-amplify/amplify-cli/compare/graphql-auth-transformer@6.24.22...graphql-auth-transformer@6.24.23) (2021-09-27) + + +### Bug Fixes + +* **graphql-model-transformer:** [@model](https://github.com/model) conflict resolution ([#8035](https://github.com/aws-amplify/amplify-cli/issues/8035)) ([f3bdc4a](https://github.com/aws-amplify/amplify-cli/commit/f3bdc4ac1fcf596f634d9d2e968785e76f7b138c)) + + + + + ## [6.24.22](https://github.com/aws-amplify/amplify-cli/compare/graphql-auth-transformer@6.24.21...graphql-auth-transformer@6.24.22) (2021-09-18) **Note:** Version bump only for package graphql-auth-transformer diff --git a/packages/graphql-auth-transformer/package.json b/packages/graphql-auth-transformer/package.json index 5e647d20d3e..e447c73ede1 100644 --- a/packages/graphql-auth-transformer/package.json +++ b/packages/graphql-auth-transformer/package.json @@ -1,6 +1,6 @@ { "name": "graphql-auth-transformer", - "version": "6.24.22", + "version": "6.24.23", "description": "Implements the @auth directive for the appsync model transform.", "repository": { "type": "git", @@ -24,17 +24,17 @@ }, "dependencies": { "graphql": "^14.5.8", - "graphql-connection-transformer": "4.21.22", + "graphql-connection-transformer": "4.21.23", "graphql-mapping-template": "4.18.3", - "graphql-transformer-common": "4.19.9", - "graphql-transformer-core": "6.29.7" + "graphql-transformer-common": "4.19.10", + "graphql-transformer-core": "6.30.0" }, "devDependencies": { "@types/node": "^12.12.6", "cloudform-types": "^4.2.0", - "graphql-dynamodb-transformer": "6.22.22", - "graphql-elasticsearch-transformer": "4.12.1", - "graphql-function-transformer": "2.5.21", + "graphql-dynamodb-transformer": "6.22.23", + "graphql-elasticsearch-transformer": "4.12.2", + "graphql-function-transformer": "2.5.22", "rimraf": "^3.0.0" }, "jest": { diff --git a/packages/graphql-connection-transformer/CHANGELOG.md b/packages/graphql-connection-transformer/CHANGELOG.md index 3cd9eec7d28..e9d9d27b323 100644 --- a/packages/graphql-connection-transformer/CHANGELOG.md +++ b/packages/graphql-connection-transformer/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.21.23](https://github.com/aws-amplify/amplify-cli/compare/graphql-connection-transformer@4.21.22...graphql-connection-transformer@4.21.23) (2021-09-27) + +**Note:** Version bump only for package graphql-connection-transformer + + + + + ## [4.21.22](https://github.com/aws-amplify/amplify-cli/compare/graphql-connection-transformer@4.21.21...graphql-connection-transformer@4.21.22) (2021-09-18) **Note:** Version bump only for package graphql-connection-transformer diff --git a/packages/graphql-connection-transformer/package.json b/packages/graphql-connection-transformer/package.json index 04d5165605f..4e02c95df33 100644 --- a/packages/graphql-connection-transformer/package.json +++ b/packages/graphql-connection-transformer/package.json @@ -1,6 +1,6 @@ { "name": "graphql-connection-transformer", - "version": "4.21.22", + "version": "4.21.23", "description": "An AppSync model transform for connecting objects.", "repository": { "type": "git", @@ -24,11 +24,11 @@ "dependencies": { "cloudform-types": "^4.2.0", "graphql": "^14.5.8", - "graphql-dynamodb-transformer": "6.22.22", - "graphql-key-transformer": "2.23.22", + "graphql-dynamodb-transformer": "6.22.23", + "graphql-key-transformer": "2.23.23", "graphql-mapping-template": "4.18.3", - "graphql-transformer-common": "4.19.9", - "graphql-transformer-core": "6.29.7" + "graphql-transformer-common": "4.19.10", + "graphql-transformer-core": "6.30.0" }, "devDependencies": { "@types/node": "^12.12.6" diff --git a/packages/graphql-dynamodb-transformer/CHANGELOG.md b/packages/graphql-dynamodb-transformer/CHANGELOG.md index 2c72c94f34b..8df0ebd40f7 100644 --- a/packages/graphql-dynamodb-transformer/CHANGELOG.md +++ b/packages/graphql-dynamodb-transformer/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [6.22.23](https://github.com/aws-amplify/amplify-cli/compare/graphql-dynamodb-transformer@6.22.22...graphql-dynamodb-transformer@6.22.23) (2021-09-27) + + +### Bug Fixes + +* **graphql-model-transformer:** iam role name does not exceed 64 characters ([#8244](https://github.com/aws-amplify/amplify-cli/issues/8244)) ([812a671](https://github.com/aws-amplify/amplify-cli/commit/812a67163d6dd33160bf7ace9afd538c83a7af1a)) + + + + + ## [6.22.22](https://github.com/aws-amplify/amplify-cli/compare/graphql-dynamodb-transformer@6.22.21...graphql-dynamodb-transformer@6.22.22) (2021-09-18) **Note:** Version bump only for package graphql-dynamodb-transformer diff --git a/packages/graphql-dynamodb-transformer/package.json b/packages/graphql-dynamodb-transformer/package.json index 3c1517b6d42..cba4884e7c9 100644 --- a/packages/graphql-dynamodb-transformer/package.json +++ b/packages/graphql-dynamodb-transformer/package.json @@ -1,6 +1,6 @@ { "name": "graphql-dynamodb-transformer", - "version": "6.22.22", + "version": "6.22.23", "description": "An AppSync model transform that takes a simple model and creates a DynamoDB table, DynamoDB stream.", "repository": { "type": "git", @@ -27,8 +27,8 @@ "cloudform-types": "^4.2.0", "graphql": "^14.5.8", "graphql-mapping-template": "4.18.3", - "graphql-transformer-common": "4.19.9", - "graphql-transformer-core": "6.29.7", + "graphql-transformer-common": "4.19.10", + "graphql-transformer-core": "6.30.0", "md5": "^2.2.1", "pluralize": "^8.0.0" }, diff --git a/packages/graphql-elasticsearch-transformer/CHANGELOG.md b/packages/graphql-elasticsearch-transformer/CHANGELOG.md index 46fd201e21b..d6f518490d5 100644 --- a/packages/graphql-elasticsearch-transformer/CHANGELOG.md +++ b/packages/graphql-elasticsearch-transformer/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.12.2](https://github.com/aws-amplify/amplify-cli/compare/graphql-elasticsearch-transformer@4.12.1...graphql-elasticsearch-transformer@4.12.2) (2021-09-27) + +**Note:** Version bump only for package graphql-elasticsearch-transformer + + + + + ## [4.12.1](https://github.com/aws-amplify/amplify-cli/compare/graphql-elasticsearch-transformer@4.12.0...graphql-elasticsearch-transformer@4.12.1) (2021-09-18) **Note:** Version bump only for package graphql-elasticsearch-transformer diff --git a/packages/graphql-elasticsearch-transformer/package.json b/packages/graphql-elasticsearch-transformer/package.json index e7c11a60217..7744cd4fbeb 100644 --- a/packages/graphql-elasticsearch-transformer/package.json +++ b/packages/graphql-elasticsearch-transformer/package.json @@ -1,6 +1,6 @@ { "name": "graphql-elasticsearch-transformer", - "version": "4.12.1", + "version": "4.12.2", "description": "An AppSync model transform that creates an ElasticSearch index with the queries to match.", "repository": { "type": "git", @@ -26,13 +26,13 @@ "cloudform-types": "^4.2.0", "graphql": "^14.5.8", "graphql-mapping-template": "4.18.3", - "graphql-transformer-common": "4.19.9", - "graphql-transformer-core": "6.29.7" + "graphql-transformer-common": "4.19.10", + "graphql-transformer-core": "6.30.0" }, "devDependencies": { "@types/node": "^12.12.6", "bestzip": "^2.1.5", - "graphql-dynamodb-transformer": "6.22.22" + "graphql-dynamodb-transformer": "6.22.23" }, "jest": { "transform": { diff --git a/packages/graphql-function-transformer/CHANGELOG.md b/packages/graphql-function-transformer/CHANGELOG.md index 02085da4117..3989a342c86 100644 --- a/packages/graphql-function-transformer/CHANGELOG.md +++ b/packages/graphql-function-transformer/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.5.22](https://github.com/aws-amplify/amplify-cli/compare/graphql-function-transformer@2.5.21...graphql-function-transformer@2.5.22) (2021-09-27) + +**Note:** Version bump only for package graphql-function-transformer + + + + + ## [2.5.21](https://github.com/aws-amplify/amplify-cli/compare/graphql-function-transformer@2.5.20...graphql-function-transformer@2.5.21) (2021-09-18) **Note:** Version bump only for package graphql-function-transformer diff --git a/packages/graphql-function-transformer/package.json b/packages/graphql-function-transformer/package.json index a3db15794d8..a5313cee1b0 100644 --- a/packages/graphql-function-transformer/package.json +++ b/packages/graphql-function-transformer/package.json @@ -1,6 +1,6 @@ { "name": "graphql-function-transformer", - "version": "2.5.21", + "version": "2.5.22", "description": "Implements the @function directive.", "repository": { "type": "git", @@ -26,8 +26,8 @@ "cloudform-types": "^4.2.0", "graphql": "^14.5.8", "graphql-mapping-template": "4.18.3", - "graphql-transformer-common": "4.19.9", - "graphql-transformer-core": "6.29.7" + "graphql-transformer-common": "4.19.10", + "graphql-transformer-core": "6.30.0" }, "jest": { "transform": { diff --git a/packages/graphql-http-transformer/CHANGELOG.md b/packages/graphql-http-transformer/CHANGELOG.md index 7d8e78f89cf..63b68730243 100644 --- a/packages/graphql-http-transformer/CHANGELOG.md +++ b/packages/graphql-http-transformer/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.18.10](https://github.com/aws-amplify/amplify-cli/compare/graphql-http-transformer@4.18.9...graphql-http-transformer@4.18.10) (2021-09-27) + +**Note:** Version bump only for package graphql-http-transformer + + + + + ## [4.18.9](https://github.com/aws-amplify/amplify-cli/compare/graphql-http-transformer@4.18.8...graphql-http-transformer@4.18.9) (2021-09-18) **Note:** Version bump only for package graphql-http-transformer diff --git a/packages/graphql-http-transformer/package.json b/packages/graphql-http-transformer/package.json index eebea889985..94dd78ab45e 100644 --- a/packages/graphql-http-transformer/package.json +++ b/packages/graphql-http-transformer/package.json @@ -1,6 +1,6 @@ { "name": "graphql-http-transformer", - "version": "4.18.9", + "version": "4.18.10", "description": "An AppSync model transform for HTTP resolvers.", "repository": { "type": "git", @@ -25,8 +25,8 @@ "cloudform-types": "^4.2.0", "graphql": "^14.5.8", "graphql-mapping-template": "4.18.3", - "graphql-transformer-common": "4.19.9", - "graphql-transformer-core": "6.29.7" + "graphql-transformer-common": "4.19.10", + "graphql-transformer-core": "6.30.0" }, "devDependencies": { "@types/node": "^12.12.6" diff --git a/packages/graphql-key-transformer/CHANGELOG.md b/packages/graphql-key-transformer/CHANGELOG.md index e118927d5a6..1c0782e4396 100644 --- a/packages/graphql-key-transformer/CHANGELOG.md +++ b/packages/graphql-key-transformer/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.23.23](https://github.com/aws-amplify/amplify-cli/compare/graphql-key-transformer@2.23.22...graphql-key-transformer@2.23.23) (2021-09-27) + +**Note:** Version bump only for package graphql-key-transformer + + + + + ## [2.23.22](https://github.com/aws-amplify/amplify-cli/compare/graphql-key-transformer@2.23.21...graphql-key-transformer@2.23.22) (2021-09-18) **Note:** Version bump only for package graphql-key-transformer diff --git a/packages/graphql-key-transformer/package.json b/packages/graphql-key-transformer/package.json index 7c0548ba660..e18fc7e7645 100644 --- a/packages/graphql-key-transformer/package.json +++ b/packages/graphql-key-transformer/package.json @@ -1,6 +1,6 @@ { "name": "graphql-key-transformer", - "version": "2.23.22", + "version": "2.23.23", "description": "Implements the @key directive.", "repository": { "type": "git", @@ -24,10 +24,10 @@ "dependencies": { "cloudform-types": "^4.2.0", "graphql": "^14.5.8", - "graphql-dynamodb-transformer": "6.22.22", + "graphql-dynamodb-transformer": "6.22.23", "graphql-mapping-template": "4.18.3", - "graphql-transformer-common": "4.19.9", - "graphql-transformer-core": "6.29.7" + "graphql-transformer-common": "4.19.10", + "graphql-transformer-core": "6.30.0" }, "jest": { "testURL": "http://localhost", diff --git a/packages/graphql-predictions-transformer/CHANGELOG.md b/packages/graphql-predictions-transformer/CHANGELOG.md index 13da6401382..2b4925040f6 100644 --- a/packages/graphql-predictions-transformer/CHANGELOG.md +++ b/packages/graphql-predictions-transformer/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.5.22](https://github.com/aws-amplify/amplify-cli/compare/graphql-predictions-transformer@2.5.21...graphql-predictions-transformer@2.5.22) (2021-09-27) + +**Note:** Version bump only for package graphql-predictions-transformer + + + + + ## [2.5.21](https://github.com/aws-amplify/amplify-cli/compare/graphql-predictions-transformer@2.5.20...graphql-predictions-transformer@2.5.21) (2021-09-18) **Note:** Version bump only for package graphql-predictions-transformer diff --git a/packages/graphql-predictions-transformer/package.json b/packages/graphql-predictions-transformer/package.json index b18c50c4150..c8af63dfd22 100644 --- a/packages/graphql-predictions-transformer/package.json +++ b/packages/graphql-predictions-transformer/package.json @@ -1,6 +1,6 @@ { "name": "graphql-predictions-transformer", - "version": "2.5.21", + "version": "2.5.22", "description": "Implements the @predictions directive.", "repository": { "type": "git", @@ -26,8 +26,8 @@ "cloudform-types": "^4.2.0", "graphql": "^14.5.8", "graphql-mapping-template": "4.18.3", - "graphql-transformer-common": "4.19.9", - "graphql-transformer-core": "6.29.7" + "graphql-transformer-common": "4.19.10", + "graphql-transformer-core": "6.30.0" }, "devDependencies": { "bestzip": "^2.1.5" diff --git a/packages/graphql-relational-schema-transformer/CHANGELOG.md b/packages/graphql-relational-schema-transformer/CHANGELOG.md index fcea8b3664b..b45bfbb8803 100644 --- a/packages/graphql-relational-schema-transformer/CHANGELOG.md +++ b/packages/graphql-relational-schema-transformer/CHANGELOG.md @@ -3,6 +3,18 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.18.7](https://github.com/aws-amplify/amplify-cli/compare/graphql-relational-schema-transformer@2.18.6...graphql-relational-schema-transformer@2.18.7) (2021-09-27) + + +### Bug Fixes + +* [#8223](https://github.com/aws-amplify/amplify-cli/issues/8223), conversion to typescript ([#8245](https://github.com/aws-amplify/amplify-cli/issues/8245)) ([096e6ca](https://github.com/aws-amplify/amplify-cli/commit/096e6ca19b94aa40ef249ea98d008380395afa16)) +* **graphql-relational-transformer:** fixes broken list and update resolvers ([#8101](https://github.com/aws-amplify/amplify-cli/issues/8101)) ([e61b362](https://github.com/aws-amplify/amplify-cli/commit/e61b362b75e6dfce6406e35e5ab52ffbaf718483)), closes [#8008](https://github.com/aws-amplify/amplify-cli/issues/8008) + + + + + ## [2.18.6](https://github.com/aws-amplify/amplify-cli/compare/graphql-relational-schema-transformer@2.18.5...graphql-relational-schema-transformer@2.18.6) (2021-09-02) **Note:** Version bump only for package graphql-relational-schema-transformer diff --git a/packages/graphql-relational-schema-transformer/package.json b/packages/graphql-relational-schema-transformer/package.json index 0fad9c15167..c13270e57be 100644 --- a/packages/graphql-relational-schema-transformer/package.json +++ b/packages/graphql-relational-schema-transformer/package.json @@ -1,6 +1,6 @@ { "name": "graphql-relational-schema-transformer", - "version": "2.18.6", + "version": "2.18.7", "description": "An AppSync model transform that takes a relational database and turns that into a GraphQL API.", "repository": { "type": "git", @@ -28,7 +28,7 @@ "fs-extra": "^8.1.0", "graphql": "^14.5.8", "graphql-mapping-template": "4.18.3", - "graphql-transformer-common": "4.19.9" + "graphql-transformer-common": "4.19.10" }, "devDependencies": { "@types/fs-extra": "^8.0.1", diff --git a/packages/graphql-transformer-common/CHANGELOG.md b/packages/graphql-transformer-common/CHANGELOG.md index 6f34c8f8f2f..c4b775b92f2 100644 --- a/packages/graphql-transformer-common/CHANGELOG.md +++ b/packages/graphql-transformer-common/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.19.10](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-common@4.19.9...graphql-transformer-common@4.19.10) (2021-09-27) + + +### Bug Fixes + +* **graphql-model-transformer:** iam role name does not exceed 64 characters ([#8244](https://github.com/aws-amplify/amplify-cli/issues/8244)) ([812a671](https://github.com/aws-amplify/amplify-cli/commit/812a67163d6dd33160bf7ace9afd538c83a7af1a)) + + + + + ## [4.19.9](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-common@4.19.8...graphql-transformer-common@4.19.9) (2021-09-02) **Note:** Version bump only for package graphql-transformer-common diff --git a/packages/graphql-transformer-common/package.json b/packages/graphql-transformer-common/package.json index 56c8e27db91..a6eaa235569 100644 --- a/packages/graphql-transformer-common/package.json +++ b/packages/graphql-transformer-common/package.json @@ -1,6 +1,6 @@ { "name": "graphql-transformer-common", - "version": "4.19.9", + "version": "4.19.10", "description": "Common code and constants for AppSync Transformers", "repository": { "type": "git", diff --git a/packages/graphql-transformer-core/CHANGELOG.md b/packages/graphql-transformer-core/CHANGELOG.md index 7cc1f30cc14..625bb3a5825 100644 --- a/packages/graphql-transformer-core/CHANGELOG.md +++ b/packages/graphql-transformer-core/CHANGELOG.md @@ -3,6 +3,22 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.30.0](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-core@6.29.7...graphql-transformer-core@6.30.0) (2021-09-27) + + +### Features + +* Flag to allow schema changes that require table replacement ([#8144](https://github.com/aws-amplify/amplify-cli/issues/8144)) ([2d4e65a](https://github.com/aws-amplify/amplify-cli/commit/2d4e65acfd034d33c6fa8ac1f5f8582e7e3bc399)) + + +### Reverts + +* Revert "feat: Flag to allow schema changes that require table replacement (#8144)" (#8268) ([422dd04](https://github.com/aws-amplify/amplify-cli/commit/422dd04425c72aa7276e086d38ce4d5f4681f9f3)), closes [#8144](https://github.com/aws-amplify/amplify-cli/issues/8144) [#8268](https://github.com/aws-amplify/amplify-cli/issues/8268) + + + + + ## [6.29.7](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-core@6.29.6...graphql-transformer-core@6.29.7) (2021-09-18) **Note:** Version bump only for package graphql-transformer-core diff --git a/packages/graphql-transformer-core/package.json b/packages/graphql-transformer-core/package.json index c057c6bcda9..9b66e225c99 100644 --- a/packages/graphql-transformer-core/package.json +++ b/packages/graphql-transformer-core/package.json @@ -1,6 +1,6 @@ { "name": "graphql-transformer-core", - "version": "6.29.7", + "version": "6.30.0", "description": "A framework to transform from GraphQL SDL to AWS CloudFormation.", "repository": { "type": "git", @@ -23,13 +23,13 @@ "clean": "rimraf ./lib" }, "dependencies": { - "amplify-cli-core": "1.29.0", + "amplify-cli-core": "1.30.0", "cloudform-types": "^4.2.0", "deep-diff": "^1.0.2", "fs-extra": "^8.1.0", "glob": "^7.1.6", "graphql": "^14.5.8", - "graphql-transformer-common": "4.19.9" + "graphql-transformer-common": "4.19.10" }, "devDependencies": { "@types/fs-extra": "^8.0.1", diff --git a/packages/graphql-transformers-e2e-tests/CHANGELOG.md b/packages/graphql-transformers-e2e-tests/CHANGELOG.md index 721e266103a..2ad6b94bd98 100644 --- a/packages/graphql-transformers-e2e-tests/CHANGELOG.md +++ b/packages/graphql-transformers-e2e-tests/CHANGELOG.md @@ -3,6 +3,22 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.27.0](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformers-e2e-tests@6.26.3...graphql-transformers-e2e-tests@6.27.0) (2021-09-27) + + +### Bug Fixes + +* **Searchable:** confirm ES data propagate ([#8251](https://github.com/aws-amplify/amplify-cli/issues/8251)) ([8e5c791](https://github.com/aws-amplify/amplify-cli/commit/8e5c7917d459c1eb53228884dcae1e395c125c18)) + + +### Features + +* add [@many](https://github.com/many)ToMany directive ([#8195](https://github.com/aws-amplify/amplify-cli/issues/8195)) ([cc644eb](https://github.com/aws-amplify/amplify-cli/commit/cc644ebc4968f29ad6b3f0b42013d7ee6a142f7e)) + + + + + ## [6.26.3](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformers-e2e-tests@6.26.2...graphql-transformers-e2e-tests@6.26.3) (2021-09-18) **Note:** Version bump only for package graphql-transformers-e2e-tests diff --git a/packages/graphql-transformers-e2e-tests/package.json b/packages/graphql-transformers-e2e-tests/package.json index c0db8b7d445..1af6fc06942 100644 --- a/packages/graphql-transformers-e2e-tests/package.json +++ b/packages/graphql-transformers-e2e-tests/package.json @@ -1,6 +1,6 @@ { "name": "graphql-transformers-e2e-tests", - "version": "6.26.3", + "version": "6.27.0", "description": "End to end functional tests for appsync supported transformers.", "private": true, "repository": { @@ -25,15 +25,15 @@ "axios": "^0.21.4", "cloudform-types": "^4.2.0", "graphql": "^14.5.8", - "graphql-transformer-common": "4.19.9", - "graphql-transformer-core": "6.29.7", + "graphql-transformer-common": "4.19.10", + "graphql-transformer-core": "6.30.0", "moment": "^2.24.0" }, "devDependencies": { "@aws-amplify/core": "^2.1.0", - "@aws-amplify/graphql-index-transformer": "0.3.2", - "@aws-amplify/graphql-model-transformer": "0.6.2", - "@aws-amplify/graphql-transformer-core": "0.9.0", + "@aws-amplify/graphql-index-transformer": "0.3.3", + "@aws-amplify/graphql-model-transformer": "0.6.3", + "@aws-amplify/graphql-transformer-core": "0.9.1", "@types/node": "^12.12.6", "aws-amplify": "^4.2.8", "aws-appsync": "^4.1.1", @@ -41,16 +41,16 @@ "aws-sdk": "^2.963.0", "execa": "^5.1.1", "fs-extra": "^8.1.0", - "graphql-auth-transformer": "6.24.22", - "graphql-connection-transformer": "4.21.22", - "graphql-dynamodb-transformer": "6.22.22", - "graphql-elasticsearch-transformer": "4.12.1", - "graphql-function-transformer": "2.5.21", - "graphql-http-transformer": "4.18.9", - "graphql-key-transformer": "2.23.22", - "graphql-predictions-transformer": "2.5.21", + "graphql-auth-transformer": "6.24.23", + "graphql-connection-transformer": "4.21.23", + "graphql-dynamodb-transformer": "6.22.23", + "graphql-elasticsearch-transformer": "4.12.2", + "graphql-function-transformer": "2.5.22", + "graphql-http-transformer": "4.18.10", + "graphql-key-transformer": "2.23.23", + "graphql-predictions-transformer": "2.5.22", "graphql-tag": "^2.10.1", - "graphql-versioned-transformer": "4.17.22", + "graphql-versioned-transformer": "4.17.23", "isomorphic-fetch": "^3.0.0", "jest-junit": "^12.0.0", "node-fetch": "^2.6.1", diff --git a/packages/graphql-versioned-transformer/CHANGELOG.md b/packages/graphql-versioned-transformer/CHANGELOG.md index bcf254788de..681097e4afb 100644 --- a/packages/graphql-versioned-transformer/CHANGELOG.md +++ b/packages/graphql-versioned-transformer/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.17.23](https://github.com/aws-amplify/amplify-cli/compare/graphql-versioned-transformer@4.17.22...graphql-versioned-transformer@4.17.23) (2021-09-27) + +**Note:** Version bump only for package graphql-versioned-transformer + + + + + ## [4.17.22](https://github.com/aws-amplify/amplify-cli/compare/graphql-versioned-transformer@4.17.21...graphql-versioned-transformer@4.17.22) (2021-09-18) **Note:** Version bump only for package graphql-versioned-transformer diff --git a/packages/graphql-versioned-transformer/package.json b/packages/graphql-versioned-transformer/package.json index b3da9f8af5b..7f678261158 100644 --- a/packages/graphql-versioned-transformer/package.json +++ b/packages/graphql-versioned-transformer/package.json @@ -1,6 +1,6 @@ { "name": "graphql-versioned-transformer", - "version": "4.17.22", + "version": "4.17.23", "description": "A GraphQL transform that enabled object versioning and conflict resolution for a @model type.", "repository": { "type": "git", @@ -24,12 +24,12 @@ "dependencies": { "graphql": "^14.5.8", "graphql-mapping-template": "4.18.3", - "graphql-transformer-common": "4.19.9", - "graphql-transformer-core": "6.29.7" + "graphql-transformer-common": "4.19.10", + "graphql-transformer-core": "6.30.0" }, "devDependencies": { "@types/node": "^12.12.6", - "graphql-dynamodb-transformer": "6.22.22" + "graphql-dynamodb-transformer": "6.22.23" }, "jest": { "transform": { From 540f4a5410aa1ca64c46ec4e8370976edf954826 Mon Sep 17 00:00:00 2001 From: John Corser Date: Mon, 27 Sep 2021 19:03:19 -0400 Subject: [PATCH 02/30] ci: improve parallelism, add windows for e2e tests (#8282) --- .circleci/config.base.yml | 374 +- .circleci/config.yml | 14161 +++++++++++++--- .circleci/exec | 3 + .circleci/local_publish_helpers.sh | 45 +- package.json | 4 +- .../src/consoleHosting/consoleHosting.ts | 45 +- .../src/pullAndInit/deleteProject.ts | 2 +- .../src/pullAndInit/pullProject.ts | 23 +- .../src/asciinema-recorder.ts | 1 + .../src/categories/analytics.ts | 4 +- .../amplify-e2e-core/src/categories/api.ts | 43 +- .../amplify-e2e-core/src/categories/auth.ts | 14 +- .../src/categories/hosting.ts | 4 +- .../src/categories/interactions.ts | 2 +- .../src/categories/predictions.ts | 21 +- .../src/categories/storage.ts | 78 +- .../amplify-e2e-core/src/configure/index.ts | 5 +- packages/amplify-e2e-core/src/index.ts | 39 +- .../amplify-e2e-core/src/init/amplifyPull.ts | 2 +- .../amplify-e2e-core/src/init/amplifyPush.ts | 2 +- .../src/init/initProjectHelper.ts | 39 +- .../src/init/pull-headless.ts | 23 +- .../amplify-e2e-core/src/utils/nexpect.ts | 9 +- .../amplify-e2e-core/src/utils/pinpoint.ts | 23 +- .../__tests__/migration/node.function.test.ts | 2 +- packages/amplify-e2e-tests/src/codegen/add.ts | 2 +- .../amplify-e2e-tests/src/environment/env.ts | 2 +- .../src/init-special-cases/index.ts | 2 +- .../src/migration-helpers/init.ts | 23 +- scripts/split-e2e-tests.ts | 115 +- 30 files changed, 12645 insertions(+), 2467 deletions(-) create mode 100755 .circleci/exec diff --git a/.circleci/config.base.yml b/.circleci/config.base.yml index 1bf9452036a..ac5de237fda 100644 --- a/.circleci/config.base.yml +++ b/.circleci/config.base.yml @@ -5,6 +5,35 @@ machine: environment: PATH: '${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin' +executors: + windows: &windows-e2e-executor + machine: + image: 'windows-server-2019-vs2019:stable' + resource_class: 'windows.large' + shell: powershell.exe + working_directory: ~/repo + environment: + AMPLIFY_DIR: C:/home/circleci/repo/out + AMPLIFY_PATH: C:/home/circleci/repo/out/amplify.exe + + build_img: &build-executor + docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN + working_directory: ~/repo + resource_class: large + + linux: &linux-e2e-executor + docker: + - image: public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo + resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux + node12: &node12 working_directory: ~/repo docker: @@ -16,9 +45,11 @@ node12: &node12 defaults: &defaults working_directory: ~/repo - docker: - - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> clean_e2e_resources: &clean_e2e_resources name: Cleanup resources @@ -47,8 +78,9 @@ run_e2e_tests: &run_e2e_tests amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests - yarn run e2e --maxWorkers=3 $TEST_SUITE + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl no_output_timeout: 90m @@ -65,29 +97,36 @@ install_cli_from_local_registery: &install_cli_from_local_registery jobs: build: - <<: *node12 + parameters: + os: + type: executor + default: build_img + executor: << parameters.os >> steps: - checkout - run: yarn run production-build - save_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} paths: - ~/.cache - save_cache: key: amplify-cli-ssh-deps-{{ .Branch }} paths: - ~/.ssh - - persist_to_workspace: - root: . - paths: . - + - when: + condition: + equal: [*linux-e2e-executor, << parameters.os >>] + steps: + - persist_to_workspace: + root: . + paths: . test: <<: *node12 steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} - run: name: Install Java command: sudo apt-get update && sudo apt-get install default-jdk @@ -107,7 +146,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} - run: name: Install Java command: sudo apt-get update && sudo apt-get install default-jdk @@ -126,7 +165,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} - run: name: Publish to verdaccio command: | @@ -166,7 +205,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - run: @@ -189,7 +228,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} - run: name: Run GraphQL end-to-end tests command: cd packages/graphql-transformers-e2e-tests/ && yarn e2e --maxWorkers=3 @@ -205,6 +244,8 @@ jobs: at: ./ - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - run: name: Update OS Packages command: sudo apt-get update @@ -224,8 +265,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - run: *install_cli_from_local_registery - run: *run_e2e_tests - run: *scan_e2e_test_artifacts @@ -239,39 +284,43 @@ jobs: steps: - run: echo 'Done with Node CLI E2E Tests' - done_with_pkg_linux_e2e_tests: + done_with_pkg_e2e_tests: <<: *node12 steps: - run: echo 'Done with pkg CLI E2E Tests' - amplify_e2e_tests_pkg_linux: - <<: *defaults - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux + amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - - run: - name: Symlink Amplify packaged CLI - command: | - cd out - ln -sf amplify-pkg-linux amplify - echo "export PATH=$AMPLIFY_DIR:$PATH" >> $BASH_ENV - source $BASH_ENV - amplify version - - run: *install_cli_from_local_registery - - run: *run_e2e_tests - - run: *scan_e2e_test_artifacts + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> - store_test_results: path: packages/amplify-e2e-tests/ - store_artifacts: path: packages/amplify-e2e-tests/amplify-e2e-reports - + - clean_e2e_resources: + os: << parameters.os >> amplify_migration_tests_v4: <<: *defaults @@ -279,7 +328,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - run: name: Run tests migrating from CLI v4.0.0 command: | @@ -287,7 +338,7 @@ jobs: changeNpmGlobalPath cd packages/amplify-migration-tests yarn run migration_v4.0.0 --maxWorkers=3 $TEST_SUITE - no_output_timeout: 90m + no_output_timeout: 30m - run: *scan_e2e_test_artifacts - store_test_results: path: packages/amplify-migration-tests/ @@ -303,7 +354,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} - run: name: Run tests migrating from CLI v4.28.2 command: | @@ -327,7 +380,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - run: name: Run tests migrating from CLI v4.52.0 command: | @@ -351,7 +406,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - run: name: Update OS Packages command: sudo apt-get update @@ -371,12 +428,16 @@ jobs: working_directory: ~/repo amplify_migration_tests_latest: + environment: + AMPLIFY_PATH: /home/circleci/.npm-global/lib/node_modules/@aws-amplify/cli/bin/amplify <<: *defaults steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - run: name: Run tests migrating from latest CLI command: | @@ -420,7 +481,7 @@ jobs: working_directory: ~/repo resource_class: large docker: - - image: cypress/base:14.17.0 + - image: cypress/base:12 environment: TERM: dumb steps: @@ -454,14 +515,14 @@ jobs: cd .. git clone $AUTH_CLONE_URL cd aws-amplify-cypress-auth - yarn + yarn --cache-folder ~/.cache/yarn - run: cd .circleci/ && chmod +x auth.sh - run: cd .circleci/ && chmod +x amplify_init.sh - run: cd .circleci/ && chmod +x amplify_init.exp - run: expect .circleci/amplify_init.exp ../aws-amplify-cypress-auth - run: expect .circleci/enable_auth.exp - run: cd ../aws-amplify-cypress-auth - - run: yarn --frozen-lockfile + - run: yarn --frozen-lockfile --cache-folder ~/.cache/yarn - run: cd ../aws-amplify-cypress-auth/src && cat $(find . -type f -name 'aws-exports*') - run: name: Start Auth test server in background @@ -488,12 +549,12 @@ jobs: cd .. git clone $API_CLONE_URL cd aws-amplify-cypress-api - yarn + yarn --cache-folder ~/.cache/yarn - run: cd .circleci/ && chmod +x api.sh - run: expect .circleci/amplify_init.exp ../aws-amplify-cypress-api - run: expect .circleci/enable_api.exp - run: cd ../aws-amplify-cypress-api - - run: yarn --frozen-lockfile + - run: yarn --frozen-lockfile --cache-folder ~/.cache/yarn - run: cd ../aws-amplify-cypress-api/src && cat $(find . -type f -name 'aws-exports*') - run: name: Start API test server in background @@ -597,7 +658,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} - run: name: 'Run cleanup script' command: | @@ -615,7 +676,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} - run: name: 'Run cleanup script' command: | @@ -670,7 +731,13 @@ workflows: build_test_deploy: jobs: - - build + - build: + matrix: + parameters: + os: + - linux + - windows + - build_img - test: requires: - build @@ -744,17 +811,16 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries - done_with_node_e2e_tests: requires: - amplify_e2e_tests - - amplify_e2e_tests_pkg_linux: + - amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: *clean_e2e_resources filters: branches: only: @@ -764,9 +830,9 @@ workflows: requires: - done_with_node_e2e_tests - build_pkg_binaries - - done_with_pkg_linux_e2e_tests: + - done_with_pkg_e2e_tests: requires: - - amplify_e2e_tests_pkg_linux + - amplify_e2e_tests_pkg - amplify_migration_tests_latest: context: - amplify-ecr-image-pull @@ -781,6 +847,7 @@ workflows: - /run-e2e\/*./ requires: - build + - build_pkg_binaries - amplify_migration_tests_v4: context: - amplify-ecr-image-pull @@ -795,6 +862,7 @@ workflows: - /run-e2e\/*./ requires: - build + - build_pkg_binaries - amplify_migration_tests_v4_30_0: context: - amplify-ecr-image-pull @@ -809,6 +877,7 @@ workflows: - /run-e2e\/*./ requires: - build + - build_pkg_binaries - amplify_migration_tests_non_multi_env_layers: context: - amplify-ecr-image-pull @@ -823,6 +892,7 @@ workflows: - /run-e2e\/*./ requires: - build + - build_pkg_binaries - amplify_migration_tests_multi_env_layers: context: - amplify-ecr-image-pull @@ -837,6 +907,7 @@ workflows: - /run-e2e\/*./ requires: - build + - build_pkg_binaries - amplify_console_integration_tests: context: - amplify-ecr-image-pull @@ -873,7 +944,7 @@ workflows: - cleanup-resources - e2e-test-context requires: - - done_with_pkg_linux_e2e_tests + - done_with_pkg_e2e_tests - amplify_migration_tests_latest - amplify_migration_tests_v4 - amplify_migration_tests_v4_30_0 @@ -888,7 +959,7 @@ workflows: - mock_e2e_tests - graphql_e2e_tests - integration_test - - done_with_pkg_linux_e2e_tests + - done_with_pkg_e2e_tests - amplify_sudo_install_test - amplify_console_integration_tests - amplify_migration_tests_latest @@ -913,3 +984,196 @@ workflows: branches: only: - release + +commands: + install_packaged_cli: + description: 'Install Amplify Packaged CLI to PATH' + parameters: + os: + type: executor + default: linux-e2e-executor + steps: + - when: + condition: + equal: [*windows-e2e-executor, << parameters.os >>] + steps: + - run: + name: Rename the Packaged CLI to amplify + command: | + # rename the command to amplify + cd /home/circleci/repo/out + cp amplify-pkg-win.exe amplify.exe + - run: + name: Move to CLI Binary to already existing PATH + command: | + # This is a Hack to make sure the Amplify CLI is in the PATH + cp /home/circleci/repo/out/amplify.exe $env:homedrive\$env:homepath\AppData\Local\Microsoft\WindowsApps + - run: + name: Confirm Amplify CLI is installed and available in PATH + command: amplify version + + - when: + condition: + or: + - equal: [*linux-e2e-executor, << parameters.os >>] + - equal: [*build-executor, << parameters.os >>] + steps: + - run: + name: Symlink Amplify packaged CLI + command: | + cd out + ln -sf amplify-pkg-linux amplify + echo "export PATH=$AMPLIFY_DIR:$PATH" >> $BASH_ENV + source $BASH_ENV + - run: + name: Confirm Amplify CLI is installed and available in PATH + command: amplify version + + install_yarn: + description: 'Install Amplify Packaged CLI to PATH' + parameters: + os: + type: executor + default: linux-e2e-executor + steps: + - when: + condition: + equal: [*windows-e2e-executor, << parameters.os >>] + steps: + - run: nvm install 12.22.5 + - run: nvm use 12.22.5 + - run: npm install -g yarn + - run: yarn --cache-folder ~/.cache/yarn + - run: cp /home/circleci/repo/out/amplify-pkg-win.exe $env:homedrive\$env:homepath\AppData\Local\Microsoft\WindowsApps\amplify.exe + install_java: + description: 'Install Java on Linux and Docker images' + parameters: + os: + type: executor + default: linux-e2e-executor + steps: + - when: + condition: + or: + - equal: [*linux-e2e-executor, << parameters.os >>] + - equal: [*build-executor, << parameters.os >>] + steps: + - run: + name: Install Java + command: | + sudo apt-get update && sudo apt-get install default-jdk + + run_e2e_tests: + description: 'Run Amplify E2E tests' + parameters: + os: + type: executor + default: linux-e2e-executor + steps: + - when: + condition: + equal: [*windows-e2e-executor, << parameters.os >>] + steps: + - run: + name: Install aws cli + command: msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msi + - run: + name: Run E2E tests + shell: bash.exe + command: | + source .circleci/local_publish_helpers.sh + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + no_output_timeout: 90m + - when: + condition: + or: + - equal: [*linux-e2e-executor, << parameters.os >>] + - equal: [*build-executor, << parameters.os >>] + steps: + - run: + name: Shuffle AWS Credentials + command: | + source .circleci/local_publish_helpers.sh + setAwsAccountCredentials + - run: + name: Run E2E tests + command: | + source $BASH_ENV + amplify version + source .circleci/local_publish_helpers.sh + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + no_output_timeout: 90m + scan_e2e_test_artifacts: + description: 'Scan And Cleanup E2E Test Artifacts' + parameters: + os: + type: executor + default: linux-e2e-executor + steps: + - when: + condition: + equal: [*windows-e2e-executor, << parameters.os >>] + steps: + - run: + name: Scan E2E artifacts + shell: bash.exe + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + + - when: + condition: + or: + - equal: [*linux-e2e-executor, << parameters.os >>] + - equal: [*build-executor, << parameters.os >>] + steps: + - run: + name: Scan E2E artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + clean_e2e_resources: + description: Cleanup resources + parameters: + os: + type: executor + default: linux-e2e-executor + steps: + - when: + condition: + equal: [*windows-e2e-executor, << parameters.os >>] + steps: + - run: + name: Scan E2E artifacts + shell: bash.exe + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + when: always + + - when: + condition: + or: + - equal: [*linux-e2e-executor, << parameters.os >>] + - equal: [*build-executor, << parameters.os >>] + steps: + - run: + name: Scan E2E artifacts + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + when: always diff --git a/.circleci/config.yml b/.circleci/config.yml index 3df8618060e..a457c997e11 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,9 +5,35 @@ orbs: machine: environment: PATH: ${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin +executors: + windows: + machine: + image: windows-server-2019-vs2019:stable + resource_class: windows.large + shell: powershell.exe + working_directory: ~/repo + environment: + AMPLIFY_DIR: C:/home/circleci/repo/out + AMPLIFY_PATH: C:/home/circleci/repo/out/amplify.exe + build_img: + docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN + working_directory: ~/repo + resource_class: large + linux: + docker: + - image: public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo + resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux node12: working_directory: ~/repo - docker: &ref_0 + docker: - image: circleci/node:12 auth: username: $DOCKERHUB_USERNAME @@ -15,17 +41,19 @@ node12: resource_class: large defaults: working_directory: ~/repo - docker: &ref_1 - - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest - resource_class: large -clean_e2e_resources: &ref_7 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> +clean_e2e_resources: name: Cleanup resources command: | pwd cd packages/amplify-e2e-tests yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} working_directory: ~/repo -scan_e2e_test_artifacts: &ref_4 +scan_e2e_test_artifacts: name: Scan And Cleanup E2E Test Artifacts command: | if ! yarn ts-node .circleci/scan_artifacts.ts; then @@ -34,7 +62,7 @@ scan_e2e_test_artifacts: &ref_4 exit 1 fi when: always -run_e2e_tests: &ref_3 +run_e2e_tests: name: Run Amplify end-to-end tests command: | source .circleci/local_publish_helpers.sh @@ -43,11 +71,12 @@ run_e2e_tests: &ref_3 amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests - yarn run e2e --maxWorkers=3 $TEST_SUITE + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl no_output_timeout: 90m -install_cli_from_local_registery: &ref_2 +install_cli_from_local_registery: name: Start verdaccio, install node CLI and amplify-app command: | source .circleci/local_publish_helpers.sh @@ -59,32 +88,55 @@ install_cli_from_local_registery: &ref_2 unsetNpmRegistryUrl jobs: build: - working_directory: ~/repo - docker: *ref_0 - resource_class: large + parameters: + os: + type: executor + default: build_img + executor: << parameters.os >> steps: - checkout - run: yarn run production-build - save_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} paths: - ~/.cache - save_cache: key: amplify-cli-ssh-deps-{{ .Branch }} paths: - ~/.ssh - - persist_to_workspace: - root: . - paths: . + - when: + condition: + equal: + - docker: + - image: >- + public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo + resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux + - << parameters.os >> + steps: + - persist_to_workspace: + root: . + paths: . test: working_directory: ~/repo - docker: *ref_0 + docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN resource_class: large steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - run: name: Install Java command: sudo apt-get update && sudo apt-get install default-jdk @@ -99,13 +151,19 @@ jobs: command: yarn coverage mock_e2e_tests: working_directory: ~/repo - docker: *ref_0 + docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN resource_class: large steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - run: name: Install Java command: sudo apt-get update && sudo apt-get install default-jdk @@ -119,13 +177,19 @@ jobs: path: packages/amplify-util-mock/ publish_to_local_registry: working_directory: ~/repo - docker: *ref_0 + docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN resource_class: large steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - run: name: Publish to verdaccio command: | @@ -160,13 +224,19 @@ jobs: - ~/repo/.amplify-pkg-version build_pkg_binaries: working_directory: ~/repo - docker: *ref_0 + docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN resource_class: large steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - run: @@ -184,13 +254,18 @@ jobs: - ~/repo/out graphql_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - run: name: Run GraphQL end-to-end tests command: >- @@ -203,13 +278,18 @@ jobs: path: packages/graphql-transformers-e2e-tests/ amplify_sudo_install_test: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> steps: - attach_workspace: at: ./ - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - run: name: Update OS Packages command: sudo apt-get update @@ -225,70 +305,129 @@ jobs: amplify version amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: &ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - - run: *ref_2 - - run: *ref_3 - - run: *ref_4 + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-e2e-tests/ - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports done_with_node_e2e_tests: working_directory: ~/repo - docker: *ref_0 + docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN resource_class: large steps: - run: echo 'Done with Node CLI E2E Tests' - done_with_pkg_linux_e2e_tests: + done_with_pkg_e2e_tests: working_directory: ~/repo - docker: *ref_0 + docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN resource_class: large steps: - run: echo 'Done with pkg CLI E2E Tests' - amplify_e2e_tests_pkg_linux: + amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - steps: &ref_6 + steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - - run: - name: Symlink Amplify packaged CLI - command: | - cd out - ln -sf amplify-pkg-linux amplify - echo "export PATH=$AMPLIFY_DIR:$PATH" >> $BASH_ENV - source $BASH_ENV - amplify version - - run: *ref_2 - - run: *ref_3 - - run: *ref_4 + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> - store_test_results: path: packages/amplify-e2e-tests/ - store_artifacts: path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> amplify_migration_tests_v4: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - run: name: Run tests migrating from CLI v4.0.0 command: | @@ -296,23 +435,38 @@ jobs: changeNpmGlobalPath cd packages/amplify-migration-tests yarn run migration_v4.0.0 --maxWorkers=3 $TEST_SUITE - no_output_timeout: 90m - - run: *ref_4 + no_output_timeout: 30m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-migration-tests/ - store_artifacts: path: ~/repo/packages/amplify-migration-tests/amplify-migration-reports amplify_migration_tests_non_multi_env_layers: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> environment: AMPLIFY_PATH: /home/circleci/.npm-global/lib/node_modules/@aws-amplify/cli/bin/amplify steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - run: name: Run tests migrating from CLI v4.28.2 command: > @@ -325,22 +479,37 @@ jobs: yarn run migration_v4.28.2_nonmultienv_layers --maxWorkers=3 $TEST_SUITE no_output_timeout: 90m - - run: *ref_4 + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-migration-tests/ - store_artifacts: path: ~/repo/packages/amplify-migration-tests/amplify-migration-reports amplify_migration_tests_multi_env_layers: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> environment: AMPLIFY_PATH: /home/circleci/.npm-global/lib/node_modules/@aws-amplify/cli/bin/amplify steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - run: name: Run tests migrating from CLI v4.52.0 command: > @@ -353,22 +522,37 @@ jobs: yarn run migration_v4.52.0_multienv_layers --maxWorkers=3 $TEST_SUITE no_output_timeout: 90m - - run: *ref_4 + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-migration-tests/ - store_artifacts: path: ~/repo/packages/amplify-migration-tests/amplify-migration-reports amplify_migration_tests_v4_30_0: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> environment: AMPLIFY_PATH: /home/circleci/.npm-global/lib/node_modules/@aws-amplify/cli/bin/amplify steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - run: name: Update OS Packages command: sudo apt-get update @@ -380,20 +564,37 @@ jobs: cd packages/amplify-migration-tests yarn run migration_v4.30.0_auth --maxWorkers=3 no_output_timeout: 90m - - run: *ref_4 + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-migration-tests/ - store_artifacts: path: ~/repo/packages/amplify-migration-tests/amplify-migration-reports amplify_migration_tests_latest: + environment: + AMPLIFY_PATH: /home/circleci/.npm-global/lib/node_modules/@aws-amplify/cli/bin/amplify working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - run: name: Run tests migrating from latest CLI command: | @@ -402,21 +603,41 @@ jobs: cd packages/amplify-migration-tests yarn run migration --maxWorkers=3 $TEST_SUITE no_output_timeout: 90m - - run: *ref_4 + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-migration-tests/ - store_artifacts: path: ~/repo/packages/amplify-migration-tests/amplify-migration-reports amplify_console_integration_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> steps: - attach_workspace: at: ./ - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - - run: *ref_2 + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl - run: command: | echo "export PATH=~/.npm-global/bin:$PATH" >> $BASH_ENV @@ -426,7 +647,15 @@ jobs: yarn run console-integration --maxWorkers=3 name: Run Amplify Console integration tests no_output_timeout: 90m - - run: *ref_4 + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-console-integration-tests/ - store_artifacts: @@ -436,7 +665,7 @@ jobs: working_directory: ~/repo resource_class: large docker: - - image: cypress/base:14.17.0 + - image: cypress/base:12 environment: TERM: dumb steps: @@ -473,14 +702,14 @@ jobs: cd .. git clone $AUTH_CLONE_URL cd aws-amplify-cypress-auth - yarn + yarn --cache-folder ~/.cache/yarn - run: cd .circleci/ && chmod +x auth.sh - run: cd .circleci/ && chmod +x amplify_init.sh - run: cd .circleci/ && chmod +x amplify_init.exp - run: expect .circleci/amplify_init.exp ../aws-amplify-cypress-auth - run: expect .circleci/enable_auth.exp - run: cd ../aws-amplify-cypress-auth - - run: yarn --frozen-lockfile + - run: yarn --frozen-lockfile --cache-folder ~/.cache/yarn - run: >- cd ../aws-amplify-cypress-auth/src && cat $(find . -type f -name 'aws-exports*') @@ -509,12 +738,12 @@ jobs: cd .. git clone $API_CLONE_URL cd aws-amplify-cypress-api - yarn + yarn --cache-folder ~/.cache/yarn - run: cd .circleci/ && chmod +x api.sh - run: expect .circleci/amplify_init.exp ../aws-amplify-cypress-api - run: expect .circleci/enable_api.exp - run: cd ../aws-amplify-cypress-api - - run: yarn --frozen-lockfile + - run: yarn --frozen-lockfile --cache-folder ~/.cache/yarn - run: >- cd ../aws-amplify-cypress-api/src && cat $(find . -type f -name 'aws-exports*') @@ -535,7 +764,15 @@ jobs: yarn cypress run --spec $(find . -type f -name 'api_spec*') - run: cd .circleci/ && chmod +x delete_api.sh - run: expect .circleci/delete_api.exp - - run: *ref_4 + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_artifacts: path: /root/aws-amplify-cypress-auth/cypress/videos - store_artifacts: @@ -546,7 +783,11 @@ jobs: path: /root/aws-amplify-cypress-api/cypress/screenshots deploy: working_directory: ~/repo - docker: *ref_0 + docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN resource_class: large steps: - attach_workspace: @@ -561,10 +802,22 @@ jobs: name: Publish Amplify CLI command: | bash ./.circleci/publish.sh - - run: *ref_4 + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always github_prerelease: working_directory: ~/repo - docker: *ref_0 + docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN resource_class: large steps: - attach_workspace: @@ -589,7 +842,11 @@ jobs: yarn ts-node scripts/github-prerelease.ts $version github_prerelease_install_sanity_check: working_directory: ~/repo - docker: *ref_0 + docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN resource_class: large steps: - restore_cache: @@ -609,7 +866,11 @@ jobs: amplify version github_release: working_directory: ~/repo - docker: *ref_0 + docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN resource_class: large steps: - attach_workspace: @@ -625,1550 +886,10435 @@ jobs: yarn ts-node scripts/github-release.ts $version cleanup_resources: working_directory: ~/repo - docker: *ref_0 + docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN resource_class: large steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - run: name: Run cleanup script command: | cd packages/amplify-e2e-tests yarn clean-e2e-resources no_output_timeout: 90m - - run: *ref_4 + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports cleanup_resources_after_e2e_runs: working_directory: ~/repo - docker: *ref_0 + docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN resource_class: large steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - run: name: Run cleanup script command: | cd packages/amplify-e2e-tests yarn clean-e2e-resources workflow ${CIRCLE_WORKFLOW_ID} no_output_timeout: 90m - - run: *ref_4 + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports - schema-iterative-update-4-amplify_e2e_tests: + api_4-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-iterative-update-4.test.ts + TEST_SUITE: src/__tests__/api_4.test.ts CLI_REGION: us-east-2 - api_2-amplify_e2e_tests: + auth_6-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/api_2.test.ts + TEST_SUITE: src/__tests__/auth_6.test.ts CLI_REGION: us-west-2 - storage-amplify_e2e_tests: + configure-project-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/storage.test.ts + TEST_SUITE: src/__tests__/configure-project.test.ts CLI_REGION: eu-west-2 - schema-auth-5-amplify_e2e_tests: + container-hosting-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-auth-5.test.ts + TEST_SUITE: src/__tests__/container-hosting.test.ts CLI_REGION: eu-central-1 - api_1-amplify_e2e_tests: + frontend_config_drift-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/api_1.test.ts + TEST_SUITE: src/__tests__/frontend_config_drift.test.ts CLI_REGION: ap-northeast-1 - schema-auth-2-amplify_e2e_tests: + function_5-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-auth-2.test.ts + TEST_SUITE: src/__tests__/function_5.test.ts CLI_REGION: ap-southeast-1 - schema-iterative-update-3-amplify_e2e_tests: + function_6-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-iterative-update-3.test.ts + TEST_SUITE: src/__tests__/function_6.test.ts CLI_REGION: ap-southeast-2 - schema-auth-6-amplify_e2e_tests: + function_7-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-auth-6.test.ts + TEST_SUITE: src/__tests__/function_7.test.ts CLI_REGION: us-east-2 - schema-connection-amplify_e2e_tests: + hooks-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-connection.test.ts + TEST_SUITE: src/__tests__/hooks.test.ts CLI_REGION: us-west-2 - migration-api-connection-migration-amplify_e2e_tests: + iam-permissions-boundary-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/migration/api.connection.migration.test.ts + TEST_SUITE: src/__tests__/iam-permissions-boundary.test.ts CLI_REGION: eu-west-2 - schema-model-amplify_e2e_tests: + layer-2-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-model.test.ts + TEST_SUITE: src/__tests__/layer-2.test.ts CLI_REGION: eu-central-1 - schema-function-amplify_e2e_tests: + migration-node-function-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-function.test.ts + TEST_SUITE: src/__tests__/migration/node.function.test.ts CLI_REGION: ap-northeast-1 - function_4-amplify_e2e_tests: + pull-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/function_4.test.ts + TEST_SUITE: src/__tests__/pull.test.ts CLI_REGION: ap-southeast-1 - schema-auth-1-amplify_e2e_tests: + s3-sse-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-auth-1.test.ts + TEST_SUITE: src/__tests__/s3-sse.test.ts CLI_REGION: ap-southeast-2 - function_1-amplify_e2e_tests: + schema-iterative-update-locking-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/function_1.test.ts + TEST_SUITE: src/__tests__/schema-iterative-update-locking.test.ts CLI_REGION: us-east-2 - migration-api-key-migration2-amplify_e2e_tests: + plugin-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/migration/api.key.migration2.test.ts + TEST_SUITE: src/__tests__/plugin.test.ts CLI_REGION: us-west-2 - schema-auth-11-amplify_e2e_tests: + init-special-case-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-auth-11.test.ts + TEST_SUITE: src/__tests__/init-special-case.test.ts CLI_REGION: eu-west-2 - schema-auth-9-amplify_e2e_tests: + datastore-modelgen-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-auth-9.test.ts + TEST_SUITE: src/__tests__/datastore-modelgen.test.ts CLI_REGION: eu-central-1 - auth_2-amplify_e2e_tests: + amplify-configure-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/auth_2.test.ts - CLI_REGION: ap-northeast-1 - env-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/env.test.ts - CLI_REGION: ap-southeast-1 - schema-iterative-rollback-2-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-iterative-rollback-2.test.ts - CLI_REGION: ap-southeast-2 - schema-iterative-rollback-1-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-iterative-rollback-1.test.ts - CLI_REGION: us-east-2 - import_dynamodb_1-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/import_dynamodb_1.test.ts - CLI_REGION: us-west-2 - import_s3_1-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/import_s3_1.test.ts - CLI_REGION: eu-west-2 - import_auth_2-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/import_auth_2.test.ts - CLI_REGION: eu-central-1 - import_auth_1-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/import_auth_1.test.ts + TEST_SUITE: src/__tests__/amplify-configure.test.ts CLI_REGION: ap-northeast-1 - api_3-amplify_e2e_tests: + init-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/api_3.test.ts + TEST_SUITE: src/__tests__/init.test.ts CLI_REGION: ap-southeast-1 - schema-auth-4-amplify_e2e_tests: + tags-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-auth-4.test.ts + TEST_SUITE: src/__tests__/tags.test.ts CLI_REGION: ap-southeast-2 - schema-searchable-amplify_e2e_tests: + notifications-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-searchable.test.ts + TEST_SUITE: src/__tests__/notifications.test.ts CLI_REGION: us-east-2 - schema-auth-8-amplify_e2e_tests: + schema-versioned-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-auth-8.test.ts + TEST_SUITE: src/__tests__/schema-versioned.test.ts CLI_REGION: us-west-2 - schema-auth-7-amplify_e2e_tests: + schema-data-access-patterns-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-auth-7.test.ts + TEST_SUITE: src/__tests__/schema-data-access-patterns.test.ts CLI_REGION: eu-west-2 - auth_4-amplify_e2e_tests: + interactions-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/auth_4.test.ts - CLI_REGION: eu-central-1 - migration-api-key-migration1-amplify_e2e_tests: + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports + environment: + TEST_SUITE: src/__tests__/interactions.test.ts + CLI_REGION: us-west-2 + schema-predictions-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/migration/api.key.migration1.test.ts + TEST_SUITE: src/__tests__/schema-predictions.test.ts CLI_REGION: ap-northeast-1 - layer-amplify_e2e_tests: + amplify-app-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/layer.test.ts + TEST_SUITE: src/__tests__/amplify-app.test.ts CLI_REGION: ap-southeast-1 - auth_3-amplify_e2e_tests: + hosting-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/auth_3.test.ts + TEST_SUITE: src/__tests__/hosting.test.ts CLI_REGION: ap-southeast-2 - function_2-amplify_e2e_tests: + analytics-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/function_2.test.ts + TEST_SUITE: src/__tests__/analytics.test.ts CLI_REGION: us-east-2 - delete-amplify_e2e_tests: + feature-flags-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/delete.test.ts + TEST_SUITE: src/__tests__/feature-flags.test.ts CLI_REGION: us-west-2 - schema-auth-3-amplify_e2e_tests: + schema-iterative-update-2-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-auth-3.test.ts + TEST_SUITE: src/__tests__/schema-iterative-update-2.test.ts CLI_REGION: eu-west-2 - schema-iterative-update-1-amplify_e2e_tests: + containers-api-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-iterative-update-1.test.ts + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports + environment: + TEST_SUITE: src/__tests__/containers-api.test.ts CLI_REGION: eu-central-1 - function_3-amplify_e2e_tests: + predictions-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/function_3.test.ts + TEST_SUITE: src/__tests__/predictions.test.ts CLI_REGION: ap-northeast-1 - auth_5-amplify_e2e_tests: + hostingPROD-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/auth_5.test.ts + TEST_SUITE: src/__tests__/hostingPROD.test.ts CLI_REGION: ap-southeast-1 - auth_1-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/auth_1.test.ts - CLI_REGION: ap-southeast-2 - schema-key-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-key.test.ts - CLI_REGION: us-east-2 - schema-auth-10-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-auth-10.test.ts - CLI_REGION: us-west-2 - geo-remove-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/geo-remove.test.ts - CLI_REGION: eu-central-1 - geo-update-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/geo-update.test.ts - CLI_REGION: ap-northeast-1 geo-add-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/geo-add.test.ts CLI_REGION: ap-southeast-1 - hostingPROD-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/hostingPROD.test.ts - CLI_REGION: ap-southeast-1 - predictions-amplify_e2e_tests: + geo-update-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/predictions.test.ts + TEST_SUITE: src/__tests__/geo-update.test.ts CLI_REGION: ap-southeast-2 - containers-api-amplify_e2e_tests: + geo-remove-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/containers-api.test.ts + TEST_SUITE: src/__tests__/geo-remove.test.ts CLI_REGION: us-east-2 - schema-iterative-update-2-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-iterative-update-2.test.ts - CLI_REGION: us-west-2 - feature-flags-amplify_e2e_tests: + schema-auth-10-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/feature-flags.test.ts + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports + environment: + TEST_SUITE: src/__tests__/schema-auth-10.test.ts CLI_REGION: eu-west-2 - analytics-amplify_e2e_tests: + schema-key-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/analytics.test.ts + TEST_SUITE: src/__tests__/schema-key.test.ts CLI_REGION: eu-central-1 - hosting-amplify_e2e_tests: + auth_1-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/hosting.test.ts + TEST_SUITE: src/__tests__/auth_1.test.ts CLI_REGION: ap-northeast-1 - amplify-app-amplify_e2e_tests: + auth_5-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/amplify-app.test.ts + TEST_SUITE: src/__tests__/auth_5.test.ts CLI_REGION: ap-southeast-1 - schema-predictions-amplify_e2e_tests: + function_3-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-predictions.test.ts + TEST_SUITE: src/__tests__/function_3.test.ts CLI_REGION: ap-southeast-2 - interactions-amplify_e2e_tests: + schema-iterative-update-1-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/interactions.test.ts + TEST_SUITE: src/__tests__/schema-iterative-update-1.test.ts CLI_REGION: us-east-2 - schema-data-access-patterns-amplify_e2e_tests: + schema-auth-3-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-data-access-patterns.test.ts + TEST_SUITE: src/__tests__/schema-auth-3.test.ts CLI_REGION: us-west-2 - schema-versioned-amplify_e2e_tests: + delete-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-versioned.test.ts - CLI_REGION: eu-west-2 - notifications-amplify_e2e_tests: + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports + environment: + TEST_SUITE: src/__tests__/delete.test.ts + CLI_REGION: eu-west-2 + function_2-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/notifications.test.ts + TEST_SUITE: src/__tests__/function_2.test.ts CLI_REGION: eu-central-1 - tags-amplify_e2e_tests: + auth_3-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/tags.test.ts + TEST_SUITE: src/__tests__/auth_3.test.ts CLI_REGION: ap-northeast-1 - init-amplify_e2e_tests: + layer-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/init.test.ts + TEST_SUITE: src/__tests__/layer.test.ts CLI_REGION: ap-southeast-1 - amplify-configure-amplify_e2e_tests: + migration-api-key-migration1-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/amplify-configure.test.ts + TEST_SUITE: src/__tests__/migration/api.key.migration1.test.ts CLI_REGION: ap-southeast-2 - datastore-modelgen-amplify_e2e_tests: + auth_4-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/datastore-modelgen.test.ts + TEST_SUITE: src/__tests__/auth_4.test.ts CLI_REGION: us-east-2 - init-special-case-amplify_e2e_tests: + schema-auth-7-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/init-special-case.test.ts + TEST_SUITE: src/__tests__/schema-auth-7.test.ts CLI_REGION: us-west-2 - plugin-amplify_e2e_tests: + schema-auth-8-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/plugin.test.ts - CLI_REGION: eu-west-2 - schema-iterative-update-locking-amplify_e2e_tests: + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports + environment: + TEST_SUITE: src/__tests__/schema-auth-8.test.ts + CLI_REGION: eu-west-2 + schema-searchable-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-iterative-update-locking.test.ts + TEST_SUITE: src/__tests__/schema-searchable.test.ts CLI_REGION: eu-central-1 - s3-sse-amplify_e2e_tests: + schema-auth-4-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/s3-sse.test.ts + TEST_SUITE: src/__tests__/schema-auth-4.test.ts CLI_REGION: ap-northeast-1 - pull-amplify_e2e_tests: + api_3-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/pull.test.ts + TEST_SUITE: src/__tests__/api_3.test.ts CLI_REGION: ap-southeast-1 - migration-node-function-amplify_e2e_tests: + import_auth_1-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/migration/node.function.test.ts + TEST_SUITE: src/__tests__/import_auth_1.test.ts CLI_REGION: ap-southeast-2 - layer-2-amplify_e2e_tests: + import_auth_2-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/layer-2.test.ts + TEST_SUITE: src/__tests__/import_auth_2.test.ts CLI_REGION: us-east-2 - iam-permissions-boundary-amplify_e2e_tests: + import_s3_1-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/iam-permissions-boundary.test.ts + TEST_SUITE: src/__tests__/import_s3_1.test.ts CLI_REGION: us-west-2 - hooks-amplify_e2e_tests: + USE_PARENT_ACCOUNT: 1 + import_dynamodb_1-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/hooks.test.ts - CLI_REGION: eu-west-2 - function_7-amplify_e2e_tests: + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports + environment: + TEST_SUITE: src/__tests__/import_dynamodb_1.test.ts + CLI_REGION: eu-west-2 + USE_PARENT_ACCOUNT: 1 + schema-iterative-rollback-1-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/function_7.test.ts + TEST_SUITE: src/__tests__/schema-iterative-rollback-1.test.ts CLI_REGION: eu-central-1 - function_6-amplify_e2e_tests: + schema-iterative-rollback-2-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/function_6.test.ts + TEST_SUITE: src/__tests__/schema-iterative-rollback-2.test.ts CLI_REGION: ap-northeast-1 - function_5-amplify_e2e_tests: + env-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/function_5.test.ts + TEST_SUITE: src/__tests__/env.test.ts CLI_REGION: ap-southeast-1 - frontend_config_drift-amplify_e2e_tests: + auth_2-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/frontend_config_drift.test.ts + TEST_SUITE: src/__tests__/auth_2.test.ts CLI_REGION: ap-southeast-2 - container-hosting-amplify_e2e_tests: + USE_PARENT_ACCOUNT: 1 + schema-auth-9-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/container-hosting.test.ts + TEST_SUITE: src/__tests__/schema-auth-9.test.ts CLI_REGION: us-east-2 - configure-project-amplify_e2e_tests: + schema-auth-11-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/configure-project.test.ts + TEST_SUITE: src/__tests__/schema-auth-11.test.ts CLI_REGION: us-west-2 - auth_6-amplify_e2e_tests: + migration-api-key-migration2-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/auth_6.test.ts - CLI_REGION: eu-west-2 - api_4-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/api_4.test.ts - CLI_REGION: eu-central-1 - schema-iterative-update-4-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-iterative-update-4.test.ts - CLI_REGION: us-east-2 - steps: *ref_6 - api_2-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/api_2.test.ts - CLI_REGION: us-west-2 - steps: *ref_6 - storage-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/storage.test.ts + TEST_SUITE: src/__tests__/migration/api.key.migration2.test.ts CLI_REGION: eu-west-2 - steps: *ref_6 - schema-auth-5-amplify_e2e_tests_pkg_linux: + USE_PARENT_ACCOUNT: 1 + function_1-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-auth-5.test.ts + TEST_SUITE: src/__tests__/function_1.test.ts CLI_REGION: eu-central-1 - steps: *ref_6 - api_1-amplify_e2e_tests_pkg_linux: + schema-auth-1-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/api_1.test.ts + TEST_SUITE: src/__tests__/schema-auth-1.test.ts CLI_REGION: ap-northeast-1 - steps: *ref_6 - schema-auth-2-amplify_e2e_tests_pkg_linux: + function_4-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-auth-2.test.ts + TEST_SUITE: src/__tests__/function_4.test.ts CLI_REGION: ap-southeast-1 - steps: *ref_6 - schema-iterative-update-3-amplify_e2e_tests_pkg_linux: + schema-function-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-iterative-update-3.test.ts + TEST_SUITE: src/__tests__/schema-function.test.ts CLI_REGION: ap-southeast-2 - steps: *ref_6 - schema-auth-6-amplify_e2e_tests_pkg_linux: + schema-model-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-auth-6.test.ts + TEST_SUITE: src/__tests__/schema-model.test.ts CLI_REGION: us-east-2 - steps: *ref_6 - schema-connection-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-connection.test.ts - CLI_REGION: us-west-2 - steps: *ref_6 - migration-api-connection-migration-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/migration/api.connection.migration.test.ts - CLI_REGION: eu-west-2 - steps: *ref_6 - schema-model-amplify_e2e_tests_pkg_linux: + migration-api-connection-migration-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-model.test.ts - CLI_REGION: eu-central-1 - steps: *ref_6 - schema-function-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-function.test.ts - CLI_REGION: ap-northeast-1 - steps: *ref_6 - function_4-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/function_4.test.ts - CLI_REGION: ap-southeast-1 - steps: *ref_6 - schema-auth-1-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-auth-1.test.ts - CLI_REGION: ap-southeast-2 - steps: *ref_6 - function_1-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/function_1.test.ts - CLI_REGION: us-east-2 - steps: *ref_6 - migration-api-key-migration2-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/migration/api.key.migration2.test.ts + TEST_SUITE: src/__tests__/migration/api.connection.migration.test.ts CLI_REGION: us-west-2 - steps: *ref_6 - schema-auth-11-amplify_e2e_tests_pkg_linux: + schema-connection-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-auth-11.test.ts + TEST_SUITE: src/__tests__/schema-connection.test.ts CLI_REGION: eu-west-2 - steps: *ref_6 - schema-auth-9-amplify_e2e_tests_pkg_linux: + schema-auth-6-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-auth-9.test.ts + TEST_SUITE: src/__tests__/schema-auth-6.test.ts CLI_REGION: eu-central-1 - steps: *ref_6 - auth_2-amplify_e2e_tests_pkg_linux: + schema-iterative-update-3-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/auth_2.test.ts + TEST_SUITE: src/__tests__/schema-iterative-update-3.test.ts CLI_REGION: ap-northeast-1 - steps: *ref_6 - env-amplify_e2e_tests_pkg_linux: + schema-auth-2-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/env.test.ts + TEST_SUITE: src/__tests__/schema-auth-2.test.ts CLI_REGION: ap-southeast-1 - steps: *ref_6 - schema-iterative-rollback-2-amplify_e2e_tests_pkg_linux: + api_1-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-iterative-rollback-2.test.ts + TEST_SUITE: src/__tests__/api_1.test.ts CLI_REGION: ap-southeast-2 - steps: *ref_6 - schema-iterative-rollback-1-amplify_e2e_tests_pkg_linux: + USE_PARENT_ACCOUNT: 1 + schema-auth-5-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-iterative-rollback-1.test.ts + TEST_SUITE: src/__tests__/schema-auth-5.test.ts CLI_REGION: us-east-2 - steps: *ref_6 - import_dynamodb_1-amplify_e2e_tests_pkg_linux: + storage-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/import_dynamodb_1.test.ts + TEST_SUITE: src/__tests__/storage.test.ts CLI_REGION: us-west-2 - steps: *ref_6 - import_s3_1-amplify_e2e_tests_pkg_linux: + USE_PARENT_ACCOUNT: 1 + api_2-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/import_s3_1.test.ts + TEST_SUITE: src/__tests__/api_2.test.ts CLI_REGION: eu-west-2 - steps: *ref_6 - import_auth_2-amplify_e2e_tests_pkg_linux: + USE_PARENT_ACCOUNT: 1 + schema-iterative-update-4-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/import_auth_2.test.ts + TEST_SUITE: src/__tests__/schema-iterative-update-4.test.ts CLI_REGION: eu-central-1 - steps: *ref_6 - import_auth_1-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/import_auth_1.test.ts - CLI_REGION: ap-northeast-1 - steps: *ref_6 - api_3-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/api_3.test.ts - CLI_REGION: ap-southeast-1 - steps: *ref_6 - schema-auth-4-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-auth-4.test.ts - CLI_REGION: ap-southeast-2 - steps: *ref_6 - schema-searchable-amplify_e2e_tests_pkg_linux: + api_4-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-searchable.test.ts + TEST_SUITE: src/__tests__/api_4.test.ts CLI_REGION: us-east-2 - steps: *ref_6 - schema-auth-8-amplify_e2e_tests_pkg_linux: + auth_6-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-auth-8.test.ts + TEST_SUITE: src/__tests__/auth_6.test.ts CLI_REGION: us-west-2 - steps: *ref_6 - schema-auth-7-amplify_e2e_tests_pkg_linux: + configure-project-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-auth-7.test.ts + TEST_SUITE: src/__tests__/configure-project.test.ts CLI_REGION: eu-west-2 - steps: *ref_6 - auth_4-amplify_e2e_tests_pkg_linux: + container-hosting-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/auth_4.test.ts + TEST_SUITE: src/__tests__/container-hosting.test.ts CLI_REGION: eu-central-1 - steps: *ref_6 - migration-api-key-migration1-amplify_e2e_tests_pkg_linux: + frontend_config_drift-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/migration/api.key.migration1.test.ts + TEST_SUITE: src/__tests__/frontend_config_drift.test.ts CLI_REGION: ap-northeast-1 - steps: *ref_6 - layer-amplify_e2e_tests_pkg_linux: + function_5-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/layer.test.ts + TEST_SUITE: src/__tests__/function_5.test.ts CLI_REGION: ap-southeast-1 - steps: *ref_6 - auth_3-amplify_e2e_tests_pkg_linux: + function_6-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/auth_3.test.ts + TEST_SUITE: src/__tests__/function_6.test.ts CLI_REGION: ap-southeast-2 - steps: *ref_6 - function_2-amplify_e2e_tests_pkg_linux: + function_7-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/function_2.test.ts + TEST_SUITE: src/__tests__/function_7.test.ts CLI_REGION: us-east-2 - steps: *ref_6 - delete-amplify_e2e_tests_pkg_linux: + hooks-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/delete.test.ts + TEST_SUITE: src/__tests__/hooks.test.ts CLI_REGION: us-west-2 - steps: *ref_6 - schema-auth-3-amplify_e2e_tests_pkg_linux: + iam-permissions-boundary-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-auth-3.test.ts + TEST_SUITE: src/__tests__/iam-permissions-boundary.test.ts CLI_REGION: eu-west-2 - steps: *ref_6 - schema-iterative-update-1-amplify_e2e_tests_pkg_linux: + layer-2-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-iterative-update-1.test.ts + TEST_SUITE: src/__tests__/layer-2.test.ts CLI_REGION: eu-central-1 - steps: *ref_6 - function_3-amplify_e2e_tests_pkg_linux: + migration-node-function-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/function_3.test.ts + TEST_SUITE: src/__tests__/migration/node.function.test.ts CLI_REGION: ap-northeast-1 - steps: *ref_6 - auth_5-amplify_e2e_tests_pkg_linux: + pull-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/auth_5.test.ts + TEST_SUITE: src/__tests__/pull.test.ts CLI_REGION: ap-southeast-1 - steps: *ref_6 - auth_1-amplify_e2e_tests_pkg_linux: + s3-sse-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/auth_1.test.ts + TEST_SUITE: src/__tests__/s3-sse.test.ts CLI_REGION: ap-southeast-2 - steps: *ref_6 - schema-key-amplify_e2e_tests_pkg_linux: + schema-iterative-update-locking-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-key.test.ts + TEST_SUITE: src/__tests__/schema-iterative-update-locking.test.ts CLI_REGION: us-east-2 - steps: *ref_6 - schema-auth-10-amplify_e2e_tests_pkg_linux: + plugin-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-auth-10.test.ts + TEST_SUITE: src/__tests__/plugin.test.ts CLI_REGION: us-west-2 - steps: *ref_6 - geo-remove-amplify_e2e_tests_pkg_linux: + init-special-case-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/geo-remove.test.ts + TEST_SUITE: src/__tests__/init-special-case.test.ts + CLI_REGION: eu-west-2 + datastore-modelgen-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/datastore-modelgen.test.ts CLI_REGION: eu-central-1 - steps: *ref_6 - geo-update-amplify_e2e_tests_pkg_linux: + amplify-configure-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/geo-update.test.ts + TEST_SUITE: src/__tests__/amplify-configure.test.ts CLI_REGION: ap-northeast-1 - steps: *ref_6 - geo-add-amplify_e2e_tests_pkg_linux: + init-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/geo-add.test.ts - CLI_REGION: ap-southeast-1 - steps: *ref_6 - hostingPROD-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/hostingPROD.test.ts + TEST_SUITE: src/__tests__/init.test.ts CLI_REGION: ap-southeast-1 - steps: *ref_6 - predictions-amplify_e2e_tests_pkg_linux: + tags-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/predictions.test.ts + TEST_SUITE: src/__tests__/tags.test.ts CLI_REGION: ap-southeast-2 - steps: *ref_6 - containers-api-amplify_e2e_tests_pkg_linux: + notifications-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/containers-api.test.ts + TEST_SUITE: src/__tests__/notifications.test.ts CLI_REGION: us-east-2 - steps: *ref_6 - schema-iterative-update-2-amplify_e2e_tests_pkg_linux: + schema-versioned-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-iterative-update-2.test.ts + TEST_SUITE: src/__tests__/schema-versioned.test.ts CLI_REGION: us-west-2 - steps: *ref_6 - feature-flags-amplify_e2e_tests_pkg_linux: + schema-data-access-patterns-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/feature-flags.test.ts + TEST_SUITE: src/__tests__/schema-data-access-patterns.test.ts CLI_REGION: eu-west-2 - steps: *ref_6 - analytics-amplify_e2e_tests_pkg_linux: + interactions-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/analytics.test.ts - CLI_REGION: eu-central-1 - steps: *ref_6 - hosting-amplify_e2e_tests_pkg_linux: + TEST_SUITE: src/__tests__/interactions.test.ts + CLI_REGION: us-west-2 + schema-predictions-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/hosting.test.ts + TEST_SUITE: src/__tests__/schema-predictions.test.ts CLI_REGION: ap-northeast-1 - steps: *ref_6 - amplify-app-amplify_e2e_tests_pkg_linux: + amplify-app-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux TEST_SUITE: src/__tests__/amplify-app.test.ts CLI_REGION: ap-southeast-1 - steps: *ref_6 - schema-predictions-amplify_e2e_tests_pkg_linux: + hosting-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-predictions.test.ts + TEST_SUITE: src/__tests__/hosting.test.ts CLI_REGION: ap-southeast-2 - steps: *ref_6 - interactions-amplify_e2e_tests_pkg_linux: + analytics-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/interactions.test.ts + TEST_SUITE: src/__tests__/analytics.test.ts CLI_REGION: us-east-2 - steps: *ref_6 - schema-data-access-patterns-amplify_e2e_tests_pkg_linux: + feature-flags-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-data-access-patterns.test.ts + TEST_SUITE: src/__tests__/feature-flags.test.ts CLI_REGION: us-west-2 - steps: *ref_6 - schema-versioned-amplify_e2e_tests_pkg_linux: + schema-iterative-update-2-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-versioned.test.ts + TEST_SUITE: src/__tests__/schema-iterative-update-2.test.ts CLI_REGION: eu-west-2 - steps: *ref_6 - notifications-amplify_e2e_tests_pkg_linux: + containers-api-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/notifications.test.ts + TEST_SUITE: src/__tests__/containers-api.test.ts CLI_REGION: eu-central-1 - steps: *ref_6 - tags-amplify_e2e_tests_pkg_linux: + predictions-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/tags.test.ts + TEST_SUITE: src/__tests__/predictions.test.ts CLI_REGION: ap-northeast-1 - steps: *ref_6 - init-amplify_e2e_tests_pkg_linux: + hostingPROD-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/init.test.ts + TEST_SUITE: src/__tests__/hostingPROD.test.ts CLI_REGION: ap-southeast-1 - steps: *ref_6 - amplify-configure-amplify_e2e_tests_pkg_linux: + geo-add-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/amplify-configure.test.ts - CLI_REGION: ap-southeast-2 - steps: *ref_6 - datastore-modelgen-amplify_e2e_tests_pkg_linux: + TEST_SUITE: src/__tests__/geo-add.test.ts + CLI_REGION: ap-southeast-1 + geo-update-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/datastore-modelgen.test.ts - CLI_REGION: us-east-2 - steps: *ref_6 - init-special-case-amplify_e2e_tests_pkg_linux: + TEST_SUITE: src/__tests__/geo-update.test.ts + CLI_REGION: ap-southeast-2 + geo-remove-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/init-special-case.test.ts - CLI_REGION: us-west-2 - steps: *ref_6 - plugin-amplify_e2e_tests_pkg_linux: + TEST_SUITE: src/__tests__/geo-remove.test.ts + CLI_REGION: us-east-2 + schema-auth-10-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/plugin.test.ts + TEST_SUITE: src/__tests__/schema-auth-10.test.ts CLI_REGION: eu-west-2 - steps: *ref_6 - schema-iterative-update-locking-amplify_e2e_tests_pkg_linux: + schema-key-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-iterative-update-locking.test.ts + TEST_SUITE: src/__tests__/schema-key.test.ts CLI_REGION: eu-central-1 - steps: *ref_6 - s3-sse-amplify_e2e_tests_pkg_linux: + auth_1-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/s3-sse.test.ts + TEST_SUITE: src/__tests__/auth_1.test.ts CLI_REGION: ap-northeast-1 - steps: *ref_6 - pull-amplify_e2e_tests_pkg_linux: + auth_5-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/pull.test.ts + TEST_SUITE: src/__tests__/auth_5.test.ts CLI_REGION: ap-southeast-1 - steps: *ref_6 - migration-node-function-amplify_e2e_tests_pkg_linux: + function_3-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/migration/node.function.test.ts + TEST_SUITE: src/__tests__/function_3.test.ts CLI_REGION: ap-southeast-2 - steps: *ref_6 - layer-2-amplify_e2e_tests_pkg_linux: + schema-iterative-update-1-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/layer-2.test.ts + TEST_SUITE: src/__tests__/schema-iterative-update-1.test.ts CLI_REGION: us-east-2 - steps: *ref_6 - iam-permissions-boundary-amplify_e2e_tests_pkg_linux: + schema-auth-3-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/iam-permissions-boundary.test.ts + TEST_SUITE: src/__tests__/schema-auth-3.test.ts CLI_REGION: us-west-2 - steps: *ref_6 - hooks-amplify_e2e_tests_pkg_linux: + delete-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/hooks.test.ts + TEST_SUITE: src/__tests__/delete.test.ts CLI_REGION: eu-west-2 - steps: *ref_6 - function_7-amplify_e2e_tests_pkg_linux: + function_2-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/function_7.test.ts + TEST_SUITE: src/__tests__/function_2.test.ts CLI_REGION: eu-central-1 - steps: *ref_6 - function_6-amplify_e2e_tests_pkg_linux: + auth_3-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/function_6.test.ts + TEST_SUITE: src/__tests__/auth_3.test.ts CLI_REGION: ap-northeast-1 - steps: *ref_6 - function_5-amplify_e2e_tests_pkg_linux: + layer-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/function_5.test.ts + TEST_SUITE: src/__tests__/layer.test.ts CLI_REGION: ap-southeast-1 - steps: *ref_6 - frontend_config_drift-amplify_e2e_tests_pkg_linux: + migration-api-key-migration1-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/frontend_config_drift.test.ts + TEST_SUITE: src/__tests__/migration/api.key.migration1.test.ts CLI_REGION: ap-southeast-2 - steps: *ref_6 - container-hosting-amplify_e2e_tests_pkg_linux: + auth_4-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/container-hosting.test.ts + TEST_SUITE: src/__tests__/auth_4.test.ts CLI_REGION: us-east-2 - steps: *ref_6 - configure-project-amplify_e2e_tests_pkg_linux: + schema-auth-7-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/configure-project.test.ts + TEST_SUITE: src/__tests__/schema-auth-7.test.ts CLI_REGION: us-west-2 - steps: *ref_6 - auth_6-amplify_e2e_tests_pkg_linux: + schema-auth-8-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/auth_6.test.ts + TEST_SUITE: src/__tests__/schema-auth-8.test.ts CLI_REGION: eu-west-2 - steps: *ref_6 - api_4-amplify_e2e_tests_pkg_linux: + schema-searchable-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/api_4.test.ts + TEST_SUITE: src/__tests__/schema-searchable.test.ts CLI_REGION: eu-central-1 - steps: *ref_6 -workflows: - version: 2 - nightly_console_integration_tests: - triggers: - - schedule: - cron: 0 14 * * * + schema-auth-4-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-4.test.ts + CLI_REGION: ap-northeast-1 + api_3-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/api_3.test.ts + CLI_REGION: ap-southeast-1 + import_auth_1-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/import_auth_1.test.ts + CLI_REGION: ap-southeast-2 + import_auth_2-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/import_auth_2.test.ts + CLI_REGION: us-east-2 + import_s3_1-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/import_s3_1.test.ts + CLI_REGION: us-west-2 + USE_PARENT_ACCOUNT: 1 + import_dynamodb_1-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/import_dynamodb_1.test.ts + CLI_REGION: eu-west-2 + USE_PARENT_ACCOUNT: 1 + schema-iterative-rollback-1-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-iterative-rollback-1.test.ts + CLI_REGION: eu-central-1 + schema-iterative-rollback-2-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-iterative-rollback-2.test.ts + CLI_REGION: ap-northeast-1 + env-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/env.test.ts + CLI_REGION: ap-southeast-1 + auth_2-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/auth_2.test.ts + CLI_REGION: ap-southeast-2 + USE_PARENT_ACCOUNT: 1 + schema-auth-9-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-9.test.ts + CLI_REGION: us-east-2 + schema-auth-11-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-11.test.ts + CLI_REGION: us-west-2 + migration-api-key-migration2-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/migration/api.key.migration2.test.ts + CLI_REGION: eu-west-2 + USE_PARENT_ACCOUNT: 1 + function_1-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/function_1.test.ts + CLI_REGION: eu-central-1 + schema-auth-1-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-1.test.ts + CLI_REGION: ap-northeast-1 + function_4-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/function_4.test.ts + CLI_REGION: ap-southeast-1 + schema-function-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-function.test.ts + CLI_REGION: ap-southeast-2 + schema-model-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-model.test.ts + CLI_REGION: us-east-2 + migration-api-connection-migration-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/migration/api.connection.migration.test.ts + CLI_REGION: us-west-2 + schema-connection-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-connection.test.ts + CLI_REGION: eu-west-2 + schema-auth-6-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-6.test.ts + CLI_REGION: eu-central-1 + schema-iterative-update-3-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-iterative-update-3.test.ts + CLI_REGION: ap-northeast-1 + schema-auth-2-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-2.test.ts + CLI_REGION: ap-southeast-1 + api_1-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/api_1.test.ts + CLI_REGION: ap-southeast-2 + USE_PARENT_ACCOUNT: 1 + schema-auth-5-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-5.test.ts + CLI_REGION: us-east-2 + storage-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/storage.test.ts + CLI_REGION: us-west-2 + USE_PARENT_ACCOUNT: 1 + api_2-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/api_2.test.ts + CLI_REGION: eu-west-2 + USE_PARENT_ACCOUNT: 1 + schema-iterative-update-4-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-iterative-update-4.test.ts + CLI_REGION: eu-central-1 +workflows: + version: 2 + nightly_console_integration_tests: + triggers: + - schedule: + cron: 0 14 * * * + filters: + branches: + only: + - master + jobs: + - build + - publish_to_local_registry: + requires: + - build + - amplify_console_integration_tests: + context: + - amplify-ecr-image-pull + - console-e2e-test + - e2e-auth-credentials + - e2e-test-context + requires: + - build + - publish_to_local_registry + e2e_resource_cleanup: + triggers: + - schedule: + cron: 45 0,12 * * * + filters: + branches: + only: + - master + jobs: + - build + - cleanup_resources: + context: + - cleanup-resources + - e2e-test-context + requires: + - build + build_test_deploy: + jobs: + - build: + matrix: + parameters: + os: + - linux + - windows + - build_img + - test: + requires: + - build + - mock_e2e_tests: + requires: + - build + - graphql_e2e_tests: + context: + - amplify-ecr-image-pull + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - mock_e2e_tests + - integration_test: + context: + - amplify-ecr-image-pull + - e2e-test-context + filters: + branches: + only: + - master + - beta + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - mock_e2e_tests + - publish_to_local_registry: + filters: + branches: + only: + - master + - beta + - release + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - build_pkg_binaries: + requires: + - publish_to_local_registry + - amplify_sudo_install_test: + context: amplify-ecr-image-pull + requires: + - publish_to_local_registry + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + - done_with_node_e2e_tests: + requires: + - api_4-amplify_e2e_tests + - function_7-amplify_e2e_tests + - schema-iterative-update-locking-amplify_e2e_tests + - notifications-amplify_e2e_tests + - analytics-amplify_e2e_tests + - geo-remove-amplify_e2e_tests + - schema-iterative-update-1-amplify_e2e_tests + - auth_4-amplify_e2e_tests + - import_auth_2-amplify_e2e_tests + - schema-auth-9-amplify_e2e_tests + - schema-model-amplify_e2e_tests + - schema-auth-5-amplify_e2e_tests + - auth_6-amplify_e2e_tests + - hooks-amplify_e2e_tests + - plugin-amplify_e2e_tests + - schema-versioned-amplify_e2e_tests + - interactions-amplify_e2e_tests + - feature-flags-amplify_e2e_tests + - schema-auth-3-amplify_e2e_tests + - schema-auth-7-amplify_e2e_tests + - import_s3_1-amplify_e2e_tests + - schema-auth-11-amplify_e2e_tests + - migration-api-connection-migration-amplify_e2e_tests + - storage-amplify_e2e_tests + - configure-project-amplify_e2e_tests + - iam-permissions-boundary-amplify_e2e_tests + - init-special-case-amplify_e2e_tests + - schema-data-access-patterns-amplify_e2e_tests + - schema-iterative-update-2-amplify_e2e_tests + - schema-auth-10-amplify_e2e_tests + - delete-amplify_e2e_tests + - schema-auth-8-amplify_e2e_tests + - import_dynamodb_1-amplify_e2e_tests + - migration-api-key-migration2-amplify_e2e_tests + - schema-connection-amplify_e2e_tests + - api_2-amplify_e2e_tests + - container-hosting-amplify_e2e_tests + - layer-2-amplify_e2e_tests + - datastore-modelgen-amplify_e2e_tests + - containers-api-amplify_e2e_tests + - schema-key-amplify_e2e_tests + - function_2-amplify_e2e_tests + - schema-searchable-amplify_e2e_tests + - schema-iterative-rollback-1-amplify_e2e_tests + - function_1-amplify_e2e_tests + - schema-auth-6-amplify_e2e_tests + - schema-iterative-update-4-amplify_e2e_tests + - frontend_config_drift-amplify_e2e_tests + - migration-node-function-amplify_e2e_tests + - amplify-configure-amplify_e2e_tests + - schema-predictions-amplify_e2e_tests + - predictions-amplify_e2e_tests + - auth_1-amplify_e2e_tests + - auth_3-amplify_e2e_tests + - schema-auth-4-amplify_e2e_tests + - schema-iterative-rollback-2-amplify_e2e_tests + - schema-auth-1-amplify_e2e_tests + - schema-iterative-update-3-amplify_e2e_tests + - function_5-amplify_e2e_tests + - pull-amplify_e2e_tests + - init-amplify_e2e_tests + - amplify-app-amplify_e2e_tests + - hostingPROD-amplify_e2e_tests + - geo-add-amplify_e2e_tests + - auth_5-amplify_e2e_tests + - layer-amplify_e2e_tests + - api_3-amplify_e2e_tests + - env-amplify_e2e_tests + - function_4-amplify_e2e_tests + - schema-auth-2-amplify_e2e_tests + - function_6-amplify_e2e_tests + - s3-sse-amplify_e2e_tests + - tags-amplify_e2e_tests + - hosting-amplify_e2e_tests + - geo-update-amplify_e2e_tests + - function_3-amplify_e2e_tests + - migration-api-key-migration1-amplify_e2e_tests + - import_auth_1-amplify_e2e_tests + - auth_2-amplify_e2e_tests + - schema-function-amplify_e2e_tests + - api_1-amplify_e2e_tests + - done_with_pkg_e2e_tests: + requires: + - api_4-amplify_e2e_tests_pkg + - function_7-amplify_e2e_tests_pkg + - schema-iterative-update-locking-amplify_e2e_tests_pkg + - notifications-amplify_e2e_tests_pkg + - analytics-amplify_e2e_tests_pkg + - geo-remove-amplify_e2e_tests_pkg + - schema-iterative-update-1-amplify_e2e_tests_pkg + - auth_4-amplify_e2e_tests_pkg + - import_auth_2-amplify_e2e_tests_pkg + - schema-auth-9-amplify_e2e_tests_pkg + - schema-model-amplify_e2e_tests_pkg + - schema-auth-5-amplify_e2e_tests_pkg + - auth_6-amplify_e2e_tests_pkg + - hooks-amplify_e2e_tests_pkg + - plugin-amplify_e2e_tests_pkg + - schema-versioned-amplify_e2e_tests_pkg + - interactions-amplify_e2e_tests_pkg + - feature-flags-amplify_e2e_tests_pkg + - schema-auth-3-amplify_e2e_tests_pkg + - schema-auth-7-amplify_e2e_tests_pkg + - import_s3_1-amplify_e2e_tests_pkg + - schema-auth-11-amplify_e2e_tests_pkg + - migration-api-connection-migration-amplify_e2e_tests_pkg + - storage-amplify_e2e_tests_pkg + - configure-project-amplify_e2e_tests_pkg + - iam-permissions-boundary-amplify_e2e_tests_pkg + - init-special-case-amplify_e2e_tests_pkg + - schema-data-access-patterns-amplify_e2e_tests_pkg + - schema-iterative-update-2-amplify_e2e_tests_pkg + - schema-auth-10-amplify_e2e_tests_pkg + - delete-amplify_e2e_tests_pkg + - schema-auth-8-amplify_e2e_tests_pkg + - import_dynamodb_1-amplify_e2e_tests_pkg + - migration-api-key-migration2-amplify_e2e_tests_pkg + - schema-connection-amplify_e2e_tests_pkg + - api_2-amplify_e2e_tests_pkg + - container-hosting-amplify_e2e_tests_pkg + - layer-2-amplify_e2e_tests_pkg + - datastore-modelgen-amplify_e2e_tests_pkg + - containers-api-amplify_e2e_tests_pkg + - schema-key-amplify_e2e_tests_pkg + - function_2-amplify_e2e_tests_pkg + - schema-searchable-amplify_e2e_tests_pkg + - schema-iterative-rollback-1-amplify_e2e_tests_pkg + - function_1-amplify_e2e_tests_pkg + - schema-auth-6-amplify_e2e_tests_pkg + - schema-iterative-update-4-amplify_e2e_tests_pkg + - frontend_config_drift-amplify_e2e_tests_pkg + - migration-node-function-amplify_e2e_tests_pkg + - amplify-configure-amplify_e2e_tests_pkg + - schema-predictions-amplify_e2e_tests_pkg + - predictions-amplify_e2e_tests_pkg + - auth_1-amplify_e2e_tests_pkg + - auth_3-amplify_e2e_tests_pkg + - schema-auth-4-amplify_e2e_tests_pkg + - schema-iterative-rollback-2-amplify_e2e_tests_pkg + - schema-auth-1-amplify_e2e_tests_pkg + - schema-iterative-update-3-amplify_e2e_tests_pkg + - function_5-amplify_e2e_tests_pkg + - pull-amplify_e2e_tests_pkg + - init-amplify_e2e_tests_pkg + - amplify-app-amplify_e2e_tests_pkg + - hostingPROD-amplify_e2e_tests_pkg + - geo-add-amplify_e2e_tests_pkg + - auth_5-amplify_e2e_tests_pkg + - layer-amplify_e2e_tests_pkg + - api_3-amplify_e2e_tests_pkg + - env-amplify_e2e_tests_pkg + - function_4-amplify_e2e_tests_pkg + - schema-auth-2-amplify_e2e_tests_pkg + - function_6-amplify_e2e_tests_pkg + - s3-sse-amplify_e2e_tests_pkg + - tags-amplify_e2e_tests_pkg + - hosting-amplify_e2e_tests_pkg + - geo-update-amplify_e2e_tests_pkg + - function_3-amplify_e2e_tests_pkg + - migration-api-key-migration1-amplify_e2e_tests_pkg + - import_auth_1-amplify_e2e_tests_pkg + - auth_2-amplify_e2e_tests_pkg + - schema-function-amplify_e2e_tests_pkg + - api_1-amplify_e2e_tests_pkg + - amplify_migration_tests_latest: + context: + - amplify-ecr-image-pull + - e2e-auth-credentials + - clean_e2e_resources + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - build_pkg_binaries + - amplify_migration_tests_v4: + context: + - amplify-ecr-image-pull + - e2e-auth-credentials + - clean_e2e_resources + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - build_pkg_binaries + - amplify_migration_tests_v4_30_0: + context: + - amplify-ecr-image-pull + - e2e-auth-credentials + - clean_e2e_resources + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - build_pkg_binaries + - amplify_migration_tests_non_multi_env_layers: + context: + - amplify-ecr-image-pull + - e2e-auth-credentials + - clean_e2e_resources + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - build_pkg_binaries + - amplify_migration_tests_multi_env_layers: + context: + - amplify-ecr-image-pull + - e2e-auth-credentials + - clean_e2e_resources + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - build_pkg_binaries + - amplify_console_integration_tests: + context: + - amplify-ecr-image-pull + - e2e-auth-credentials + - clean_e2e_resources + - console-e2e-test + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - beta + requires: + - build + - publish_to_local_registry + - github_prerelease: + context: github-publish + requires: + - build_pkg_binaries + filters: + branches: + only: + - release + - github_prerelease_install_sanity_check: + requires: + - github_prerelease + filters: + branches: + only: + - release + - cleanup_resources_after_e2e_runs: + context: + - cleanup-resources + - e2e-test-context + requires: + - done_with_pkg_e2e_tests + - amplify_migration_tests_latest + - amplify_migration_tests_v4 + - amplify_migration_tests_v4_30_0 + - done_with_node_e2e_tests + - deploy: + context: + - amplify-ecr-image-pull + - npm-publish + requires: + - test + - mock_e2e_tests + - graphql_e2e_tests + - integration_test + - done_with_pkg_e2e_tests + - amplify_sudo_install_test + - amplify_console_integration_tests + - amplify_migration_tests_latest + - amplify_migration_tests_v4 + - amplify_migration_tests_v4_30_0 + - amplify_migration_tests_non_multi_env_layers + - amplify_migration_tests_multi_env_layers + - github_prerelease_install_sanity_check + filters: + branches: + only: + - release + - master + - beta + - /tagged-release\/.*/ + - /tagged-release-without-e2e-tests\/.*/ + - github_release: + context: github-publish + requires: + - deploy + filters: + branches: + only: + - release + - api_4-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - function_7-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-iterative-update-locking-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - notifications-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - analytics-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - geo-remove-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-iterative-update-1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - auth_4-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - import_auth_2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-auth-9-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-model-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-auth-5-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - auth_6-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - hooks-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - plugin-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-versioned-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - interactions-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - feature-flags-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-auth-3-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-auth-7-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - import_s3_1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-auth-11-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - migration-api-connection-migration-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - storage-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - configure-project-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - iam-permissions-boundary-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - init-special-case-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-data-access-patterns-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-iterative-update-2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-auth-10-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - delete-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-auth-8-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - import_dynamodb_1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - migration-api-key-migration2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-connection-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - api_2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - container-hosting-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - layer-2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - datastore-modelgen-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - containers-api-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-key-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - function_2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-searchable-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-iterative-rollback-1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - function_1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-auth-6-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-iterative-update-4-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - frontend_config_drift-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - migration-node-function-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - amplify-configure-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-predictions-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - predictions-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - auth_1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - auth_3-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-auth-4-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-iterative-rollback-2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-auth-1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-iterative-update-3-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - function_5-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - pull-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - init-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - amplify-app-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - hostingPROD-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - geo-add-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - auth_5-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - layer-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - api_3-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - env-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - function_4-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-auth-2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - function_6-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - s3-sse-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - tags-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - hosting-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - geo-update-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - function_3-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - migration-api-key-migration1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - import_auth_1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - auth_2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-function-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - api_1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo filters: branches: only: - master - jobs: - - build - - publish_to_local_registry: + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - build - - amplify_console_integration_tests: + - publish_to_local_registry + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - api_4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - console-e2e-test + - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - requires: - - build - - publish_to_local_registry - e2e_resource_cleanup: - triggers: - - schedule: - cron: 45 0,12 * * * filters: branches: only: - master - jobs: - - build - - cleanup_resources: + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - function_7-amplify_e2e_tests_pkg: context: - - cleanup-resources + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - build - build_test_deploy: - jobs: - - build - - test: - requires: - - build - - mock_e2e_tests: - requires: - - build - - graphql_e2e_tests: + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-iterative-update-locking-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials - e2e-test-context filters: branches: @@ -2177,111 +11323,96 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - mock_e2e_tests - - integration_test: + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - notifications-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - - beta - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - mock_e2e_tests - - publish_to_local_registry: + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - windows + - analytics-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context filters: branches: only: - master - - beta - - release - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - build_pkg_binaries: - requires: - - publish_to_local_registry - - amplify_sudo_install_test: - context: amplify-ecr-image-pull - requires: - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - windows + - geo-remove-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - /run-e2e\/*./ - - done_with_node_e2e_tests: requires: - - interactions-amplify_e2e_tests - - datastore-modelgen-amplify_e2e_tests - - layer-2-amplify_e2e_tests - - container-hosting-amplify_e2e_tests - - schema-data-access-patterns-amplify_e2e_tests - - init-special-case-amplify_e2e_tests - - iam-permissions-boundary-amplify_e2e_tests - - configure-project-amplify_e2e_tests - - schema-versioned-amplify_e2e_tests - - plugin-amplify_e2e_tests - - hooks-amplify_e2e_tests - - auth_6-amplify_e2e_tests - - notifications-amplify_e2e_tests - - schema-iterative-update-locking-amplify_e2e_tests - - function_7-amplify_e2e_tests - - api_4-amplify_e2e_tests - - hosting-amplify_e2e_tests - - tags-amplify_e2e_tests - - s3-sse-amplify_e2e_tests - - function_6-amplify_e2e_tests - - amplify-app-amplify_e2e_tests - - init-amplify_e2e_tests - - pull-amplify_e2e_tests - - function_5-amplify_e2e_tests - - schema-predictions-amplify_e2e_tests - - amplify-configure-amplify_e2e_tests - - migration-node-function-amplify_e2e_tests - - frontend_config_drift-amplify_e2e_tests - - done_with_pkg_linux_e2e_tests: - requires: - - interactions-amplify_e2e_tests_pkg_linux - - datastore-modelgen-amplify_e2e_tests_pkg_linux - - layer-2-amplify_e2e_tests_pkg_linux - - container-hosting-amplify_e2e_tests_pkg_linux - - schema-data-access-patterns-amplify_e2e_tests_pkg_linux - - init-special-case-amplify_e2e_tests_pkg_linux - - iam-permissions-boundary-amplify_e2e_tests_pkg_linux - - configure-project-amplify_e2e_tests_pkg_linux - - schema-versioned-amplify_e2e_tests_pkg_linux - - plugin-amplify_e2e_tests_pkg_linux - - hooks-amplify_e2e_tests_pkg_linux - - auth_6-amplify_e2e_tests_pkg_linux - - notifications-amplify_e2e_tests_pkg_linux - - schema-iterative-update-locking-amplify_e2e_tests_pkg_linux - - function_7-amplify_e2e_tests_pkg_linux - - api_4-amplify_e2e_tests_pkg_linux - - hosting-amplify_e2e_tests_pkg_linux - - tags-amplify_e2e_tests_pkg_linux - - s3-sse-amplify_e2e_tests_pkg_linux - - function_6-amplify_e2e_tests_pkg_linux - - amplify-app-amplify_e2e_tests_pkg_linux - - init-amplify_e2e_tests_pkg_linux - - pull-amplify_e2e_tests_pkg_linux - - function_5-amplify_e2e_tests_pkg_linux - - schema-predictions-amplify_e2e_tests_pkg_linux - - amplify-configure-amplify_e2e_tests_pkg_linux - - migration-node-function-amplify_e2e_tests_pkg_linux - - frontend_config_drift-amplify_e2e_tests_pkg_linux - - amplify_migration_tests_latest: + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - windows + - schema-iterative-update-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull + - clean_e2e_resources - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - auth_4-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull - clean_e2e_resources + - e2e-auth-credentials - e2e-test-context filters: branches: @@ -2290,12 +11421,37 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - amplify_migration_tests_v4: + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - windows + - import_auth_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull + - clean_e2e_resources - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-auth-9-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull - clean_e2e_resources + - e2e-auth-credentials - e2e-test-context filters: branches: @@ -2304,12 +11460,36 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - amplify_migration_tests_v4_30_0: + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-model-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull + - clean_e2e_resources - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-auth-5-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull - clean_e2e_resources + - e2e-auth-credentials - e2e-test-context filters: branches: @@ -2318,12 +11498,37 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - amplify_migration_tests_non_multi_env_layers: + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - auth_6-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull + - clean_e2e_resources - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - windows + - hooks-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull - clean_e2e_resources + - e2e-auth-credentials - e2e-test-context filters: branches: @@ -2332,12 +11537,38 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - amplify_migration_tests_multi_env_layers: + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - windows + - plugin-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull + - clean_e2e_resources - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - windows + - schema-versioned-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull - clean_e2e_resources + - e2e-auth-credentials - e2e-test-context filters: branches: @@ -2346,587 +11577,483 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - amplify_console_integration_tests: + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - windows + - interactions-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull + - clean_e2e_resources - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - windows + - feature-flags-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull - clean_e2e_resources - - console-e2e-test + - e2e-auth-credentials - e2e-test-context - post-steps: - - run: *ref_7 filters: branches: only: - - beta + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - build - - publish_to_local_registry - - github_prerelease: - context: github-publish + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-auth-3-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: + - done_with_node_e2e_tests - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-auth-7-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context filters: branches: only: - - release - - github_prerelease_install_sanity_check: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - github_prerelease + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - import_s3_1-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context filters: branches: only: - - release - - cleanup_resources_after_e2e_runs: - context: - - cleanup-resources - - e2e-test-context + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - done_with_pkg_linux_e2e_tests - - amplify_migration_tests_latest - - amplify_migration_tests_v4 - - amplify_migration_tests_v4_30_0 - done_with_node_e2e_tests - - deploy: + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-auth-11-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - npm-publish - requires: - - test - - mock_e2e_tests - - graphql_e2e_tests - - integration_test - - done_with_pkg_linux_e2e_tests - - amplify_sudo_install_test - - amplify_console_integration_tests - - amplify_migration_tests_latest - - amplify_migration_tests_v4 - - amplify_migration_tests_v4_30_0 - - amplify_migration_tests_non_multi_env_layers - - amplify_migration_tests_multi_env_layers - - github_prerelease_install_sanity_check + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context filters: branches: only: - - release - master - - beta - /tagged-release\/.*/ - - /tagged-release-without-e2e-tests\/.*/ - - github_release: - context: github-publish + - /run-e2e\/*./ requires: - - deploy - filters: - branches: - only: - - release - - schema-iterative-update-4-amplify_e2e_tests: - context: &ref_8 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - migration-api-connection-migration-amplify_e2e_tests_pkg: + context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: &ref_9 - - run: *ref_7 - filters: &ref_10 + filters: branches: only: - master - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - publish_to_local_registry - - schema-auth-6-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - function_1-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - schema-iterative-rollback-1-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - schema-searchable-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-iterative-update-4-amplify_e2e_tests - - function_2-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-auth-6-amplify_e2e_tests - - schema-key-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - function_1-amplify_e2e_tests - - containers-api-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-iterative-rollback-1-amplify_e2e_tests - - interactions-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-searchable-amplify_e2e_tests - - datastore-modelgen-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - function_2-amplify_e2e_tests - - layer-2-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-key-amplify_e2e_tests - - container-hosting-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - containers-api-amplify_e2e_tests - - api_2-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - schema-connection-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - migration-api-key-migration2-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - import_dynamodb_1-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - schema-auth-8-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - api_2-amplify_e2e_tests - - delete-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-connection-amplify_e2e_tests - - schema-auth-10-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - migration-api-key-migration2-amplify_e2e_tests - - schema-iterative-update-2-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - import_dynamodb_1-amplify_e2e_tests - - schema-data-access-patterns-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-auth-8-amplify_e2e_tests - - init-special-case-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - delete-amplify_e2e_tests - - iam-permissions-boundary-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-auth-10-amplify_e2e_tests - - configure-project-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-iterative-update-2-amplify_e2e_tests - - storage-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - migration-api-connection-migration-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - schema-auth-11-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - import_s3_1-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - schema-auth-7-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - storage-amplify_e2e_tests - - schema-auth-3-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - migration-api-connection-migration-amplify_e2e_tests - - feature-flags-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-auth-11-amplify_e2e_tests - - schema-versioned-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - import_s3_1-amplify_e2e_tests - - plugin-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-auth-7-amplify_e2e_tests - - hooks-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-auth-3-amplify_e2e_tests - - auth_6-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - feature-flags-amplify_e2e_tests - - schema-auth-5-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - schema-model-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - schema-auth-9-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - import_auth_2-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - auth_4-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-auth-5-amplify_e2e_tests - - schema-iterative-update-1-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-model-amplify_e2e_tests - - geo-remove-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-auth-9-amplify_e2e_tests - - analytics-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - import_auth_2-amplify_e2e_tests - - notifications-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - auth_4-amplify_e2e_tests - - schema-iterative-update-locking-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-iterative-update-1-amplify_e2e_tests - - function_7-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - geo-remove-amplify_e2e_tests - - api_4-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - analytics-amplify_e2e_tests - - api_1-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - schema-function-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - auth_2-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - import_auth_1-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - migration-api-key-migration1-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - api_1-amplify_e2e_tests - - function_3-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-function-amplify_e2e_tests - - geo-update-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - auth_2-amplify_e2e_tests - - hosting-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - import_auth_1-amplify_e2e_tests - - tags-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - migration-api-key-migration1-amplify_e2e_tests - - s3-sse-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - function_3-amplify_e2e_tests - - function_6-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - geo-update-amplify_e2e_tests - - schema-auth-2-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - function_4-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - env-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - api_3-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - layer-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-auth-2-amplify_e2e_tests - - auth_5-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - function_4-amplify_e2e_tests - - geo-add-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - storage-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - env-amplify_e2e_tests - - hostingPROD-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - configure-project-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - api_3-amplify_e2e_tests - - amplify-app-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - windows + - iam-permissions-boundary-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - layer-amplify_e2e_tests - - init-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - windows + - init-special-case-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - auth_5-amplify_e2e_tests - - pull-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - windows + - schema-data-access-patterns-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - geo-add-amplify_e2e_tests - - function_5-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-iterative-update-2-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - hostingPROD-amplify_e2e_tests - - schema-iterative-update-3-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-auth-10-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - publish_to_local_registry - - schema-auth-1-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - delete-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - publish_to_local_registry - - schema-iterative-rollback-2-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-auth-8-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - publish_to_local_registry - - schema-auth-4-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - import_dynamodb_1-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - publish_to_local_registry - - auth_3-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - migration-api-key-migration2-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - schema-iterative-update-3-amplify_e2e_tests - - auth_1-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-connection-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - schema-auth-1-amplify_e2e_tests - - predictions-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - windows + - api_2-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - schema-iterative-rollback-2-amplify_e2e_tests - - schema-predictions-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - container-hosting-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - schema-auth-4-amplify_e2e_tests - - amplify-configure-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - windows + - layer-2-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - auth_3-amplify_e2e_tests - - migration-node-function-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - datastore-modelgen-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - auth_1-amplify_e2e_tests - - frontend_config_drift-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - containers-api-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - predictions-amplify_e2e_tests - - schema-iterative-update-4-amplify_e2e_tests_pkg_linux: - context: &ref_11 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - windows + - schema-key-amplify_e2e_tests_pkg: + context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: &ref_12 - - run: *ref_7 - filters: &ref_13 + filters: branches: only: - master @@ -2935,510 +12062,1098 @@ workflows: requires: - done_with_node_e2e_tests - build_pkg_binaries - - schema-auth-6-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - function_2-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - function_1-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - schema-searchable-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - schema-iterative-rollback-1-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - windows + - schema-iterative-rollback-1-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - schema-searchable-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-iterative-update-4-amplify_e2e_tests_pkg_linux - - function_2-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-auth-6-amplify_e2e_tests_pkg_linux - - schema-key-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - function_1-amplify_e2e_tests_pkg_linux - - containers-api-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - function_1-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - schema-iterative-rollback-1-amplify_e2e_tests_pkg_linux - - interactions-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-auth-6-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - schema-searchable-amplify_e2e_tests_pkg_linux - - datastore-modelgen-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-iterative-update-4-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - function_2-amplify_e2e_tests_pkg_linux - - layer-2-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - frontend_config_drift-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - schema-key-amplify_e2e_tests_pkg_linux - - container-hosting-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - windows + - migration-node-function-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - containers-api-amplify_e2e_tests_pkg_linux - - api_2-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - amplify-configure-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - schema-connection-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - windows + - schema-predictions-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - migration-api-key-migration2-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - windows + - predictions-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - import_dynamodb_1-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - auth_1-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - schema-auth-8-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - auth_3-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - api_2-amplify_e2e_tests_pkg_linux - - delete-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-auth-4-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - schema-connection-amplify_e2e_tests_pkg_linux - - schema-auth-10-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-iterative-rollback-2-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - migration-api-key-migration2-amplify_e2e_tests_pkg_linux - - schema-iterative-update-2-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-auth-1-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - import_dynamodb_1-amplify_e2e_tests_pkg_linux - - schema-data-access-patterns-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-iterative-update-3-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - schema-auth-8-amplify_e2e_tests_pkg_linux - - init-special-case-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - function_5-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - delete-amplify_e2e_tests_pkg_linux - - iam-permissions-boundary-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - pull-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - schema-auth-10-amplify_e2e_tests_pkg_linux - - configure-project-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - init-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - schema-iterative-update-2-amplify_e2e_tests_pkg_linux - - storage-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - windows + - amplify-app-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - migration-api-connection-migration-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - hostingPROD-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - schema-auth-11-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - geo-add-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - import_s3_1-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - windows + - auth_5-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - schema-auth-7-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - storage-amplify_e2e_tests_pkg_linux - - schema-auth-3-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - migration-api-connection-migration-amplify_e2e_tests_pkg_linux - - feature-flags-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-auth-11-amplify_e2e_tests_pkg_linux - - schema-versioned-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - import_s3_1-amplify_e2e_tests_pkg_linux - - plugin-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-auth-7-amplify_e2e_tests_pkg_linux - - hooks-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-auth-3-amplify_e2e_tests_pkg_linux - - auth_6-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - feature-flags-amplify_e2e_tests_pkg_linux - - schema-auth-5-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - windows + - layer-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - schema-model-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - api_3-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - schema-auth-9-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - env-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - import_auth_2-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - function_4-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - auth_4-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-auth-5-amplify_e2e_tests_pkg_linux - - schema-iterative-update-1-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-model-amplify_e2e_tests_pkg_linux - - geo-remove-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-auth-9-amplify_e2e_tests_pkg_linux - - analytics-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - import_auth_2-amplify_e2e_tests_pkg_linux - - notifications-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - auth_4-amplify_e2e_tests_pkg_linux - - schema-iterative-update-locking-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-iterative-update-1-amplify_e2e_tests_pkg_linux - - function_7-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - geo-remove-amplify_e2e_tests_pkg_linux - - api_4-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - analytics-amplify_e2e_tests_pkg_linux - - api_1-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - schema-auth-2-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - schema-function-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - function_6-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - auth_2-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - s3-sse-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - import_auth_1-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - windows + - tags-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - migration-api-key-migration1-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - api_1-amplify_e2e_tests_pkg_linux - - function_3-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-function-amplify_e2e_tests_pkg_linux - - geo-update-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - auth_2-amplify_e2e_tests_pkg_linux - - hosting-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - import_auth_1-amplify_e2e_tests_pkg_linux - - tags-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - migration-api-key-migration1-amplify_e2e_tests_pkg_linux - - s3-sse-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - function_3-amplify_e2e_tests_pkg_linux - - function_6-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - geo-update-amplify_e2e_tests_pkg_linux - - schema-auth-2-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - windows + - hosting-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - function_4-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - geo-update-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - env-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - windows + - function_3-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - api_3-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - migration-api-key-migration1-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - layer-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-auth-2-amplify_e2e_tests_pkg_linux - - auth_5-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - function_4-amplify_e2e_tests_pkg_linux - - geo-add-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - env-amplify_e2e_tests_pkg_linux - - hostingPROD-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - api_3-amplify_e2e_tests_pkg_linux - - amplify-app-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - layer-amplify_e2e_tests_pkg_linux - - init-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - auth_5-amplify_e2e_tests_pkg_linux - - pull-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - geo-add-amplify_e2e_tests_pkg_linux - - function_5-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - hostingPROD-amplify_e2e_tests_pkg_linux - - schema-iterative-update-3-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - import_auth_1-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - schema-auth-1-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - auth_2-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - schema-iterative-rollback-2-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - schema-function-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - schema-auth-4-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + matrix: + parameters: + os: + - linux + - api_1-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - auth_3-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-iterative-update-3-amplify_e2e_tests_pkg_linux - - auth_1-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-auth-1-amplify_e2e_tests_pkg_linux - - predictions-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-iterative-rollback-2-amplify_e2e_tests_pkg_linux - - schema-predictions-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-auth-4-amplify_e2e_tests_pkg_linux - - amplify-configure-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - auth_3-amplify_e2e_tests_pkg_linux - - migration-node-function-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - auth_1-amplify_e2e_tests_pkg_linux - - frontend_config_drift-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - predictions-amplify_e2e_tests_pkg_linux + matrix: + parameters: + os: + - linux +commands: + install_packaged_cli: + description: Install Amplify Packaged CLI to PATH + parameters: + os: + type: executor + default: linux-e2e-executor + steps: + - when: + condition: + equal: + - machine: + image: windows-server-2019-vs2019:stable + resource_class: windows.large + shell: powershell.exe + working_directory: ~/repo + environment: + AMPLIFY_DIR: C:/home/circleci/repo/out + AMPLIFY_PATH: C:/home/circleci/repo/out/amplify.exe + - << parameters.os >> + steps: + - run: + name: Rename the Packaged CLI to amplify + command: | + # rename the command to amplify + cd /home/circleci/repo/out + cp amplify-pkg-win.exe amplify.exe + - run: + name: Move to CLI Binary to already existing PATH + command: > + # This is a Hack to make sure the Amplify CLI is in the PATH + + cp /home/circleci/repo/out/amplify.exe + $env:homedrive\$env:homepath\AppData\Local\Microsoft\WindowsApps + - run: + name: Confirm Amplify CLI is installed and available in PATH + command: amplify version + - when: + condition: + or: + - equal: + - docker: + - image: >- + public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo + resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux + - << parameters.os >> + - equal: + - docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN + working_directory: ~/repo + resource_class: large + - << parameters.os >> + steps: + - run: + name: Symlink Amplify packaged CLI + command: | + cd out + ln -sf amplify-pkg-linux amplify + echo "export PATH=$AMPLIFY_DIR:$PATH" >> $BASH_ENV + source $BASH_ENV + - run: + name: Confirm Amplify CLI is installed and available in PATH + command: amplify version + install_yarn: + description: Install Amplify Packaged CLI to PATH + parameters: + os: + type: executor + default: linux-e2e-executor + steps: + - when: + condition: + equal: + - machine: + image: windows-server-2019-vs2019:stable + resource_class: windows.large + shell: powershell.exe + working_directory: ~/repo + environment: + AMPLIFY_DIR: C:/home/circleci/repo/out + AMPLIFY_PATH: C:/home/circleci/repo/out/amplify.exe + - << parameters.os >> + steps: + - run: nvm install 12.22.5 + - run: nvm use 12.22.5 + - run: npm install -g yarn + - run: yarn --cache-folder ~/.cache/yarn + - run: >- + cp /home/circleci/repo/out/amplify-pkg-win.exe + $env:homedrive\$env:homepath\AppData\Local\Microsoft\WindowsApps\amplify.exe + install_java: + description: Install Java on Linux and Docker images + parameters: + os: + type: executor + default: linux-e2e-executor + steps: + - when: + condition: + or: + - equal: + - docker: + - image: >- + public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo + resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux + - << parameters.os >> + - equal: + - docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN + working_directory: ~/repo + resource_class: large + - << parameters.os >> + steps: + - run: + name: Install Java + command: | + sudo apt-get update && sudo apt-get install default-jdk + run_e2e_tests: + description: Run Amplify E2E tests + parameters: + os: + type: executor + default: linux-e2e-executor + steps: + - when: + condition: + equal: + - machine: + image: windows-server-2019-vs2019:stable + resource_class: windows.large + shell: powershell.exe + working_directory: ~/repo + environment: + AMPLIFY_DIR: C:/home/circleci/repo/out + AMPLIFY_PATH: C:/home/circleci/repo/out/amplify.exe + - << parameters.os >> + steps: + - run: + name: Install aws cli + command: msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msi + - run: + name: Run E2E tests + shell: bash.exe + command: | + source .circleci/local_publish_helpers.sh + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + no_output_timeout: 90m + - when: + condition: + or: + - equal: + - docker: + - image: >- + public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo + resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux + - << parameters.os >> + - equal: + - docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN + working_directory: ~/repo + resource_class: large + - << parameters.os >> + steps: + - run: + name: Shuffle AWS Credentials + command: | + source .circleci/local_publish_helpers.sh + setAwsAccountCredentials + - run: + name: Run E2E tests + command: | + source $BASH_ENV + amplify version + source .circleci/local_publish_helpers.sh + setAwsAccountCredentials + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + no_output_timeout: 90m + scan_e2e_test_artifacts: + description: Scan And Cleanup E2E Test Artifacts + parameters: + os: + type: executor + default: linux-e2e-executor + steps: + - when: + condition: + equal: + - machine: + image: windows-server-2019-vs2019:stable + resource_class: windows.large + shell: powershell.exe + working_directory: ~/repo + environment: + AMPLIFY_DIR: C:/home/circleci/repo/out + AMPLIFY_PATH: C:/home/circleci/repo/out/amplify.exe + - << parameters.os >> + steps: + - run: + name: Scan E2E artifacts + shell: bash.exe + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - when: + condition: + or: + - equal: + - docker: + - image: >- + public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo + resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux + - << parameters.os >> + - equal: + - docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN + working_directory: ~/repo + resource_class: large + - << parameters.os >> + steps: + - run: + name: Scan E2E artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + clean_e2e_resources: + description: Cleanup resources + parameters: + os: + type: executor + default: linux-e2e-executor + steps: + - when: + condition: + equal: + - machine: + image: windows-server-2019-vs2019:stable + resource_class: windows.large + shell: powershell.exe + working_directory: ~/repo + environment: + AMPLIFY_DIR: C:/home/circleci/repo/out + AMPLIFY_PATH: C:/home/circleci/repo/out/amplify.exe + - << parameters.os >> + steps: + - run: + name: Scan E2E artifacts + shell: bash.exe + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + when: always + - when: + condition: + or: + - equal: + - docker: + - image: >- + public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo + resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux + - << parameters.os >> + - equal: + - docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN + working_directory: ~/repo + resource_class: large + - << parameters.os >> + steps: + - run: + name: Scan E2E artifacts + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + when: always diff --git a/.circleci/exec b/.circleci/exec new file mode 100755 index 00000000000..a6f2935a2e9 --- /dev/null +++ b/.circleci/exec @@ -0,0 +1,3 @@ +#/bin/bash + +exec "$@" diff --git a/.circleci/local_publish_helpers.sh b/.circleci/local_publish_helpers.sh index 583c650a52b..9fcbeaaf191 100644 --- a/.circleci/local_publish_helpers.sh +++ b/.circleci/local_publish_helpers.sh @@ -5,7 +5,7 @@ default_verdaccio_package=verdaccio@5.1.2 function startLocalRegistry { # Start local registry - tmp_registry_log=`mktemp` + tmp_registry_log=$(mktemp) echo "Registry output file: $tmp_registry_log" (cd && nohup npx ${VERDACCIO_PACKAGE:-$default_verdaccio_package} -c $1 &>$tmp_registry_log &) # Wait for Verdaccio to boot @@ -52,3 +52,46 @@ function setSudoNpmRegistryUrlToLocal { sudo npm set registry "$custom_registry_url" sudo yarn config set registry "$custom_registry_url" } + +function setAwsAccountCredentials { + if [[ "$OSTYPE" == "win32" ]]; then + echo "Using parent account credentials for OSTYPE $OSTYPE" + elif [[ "$OSTYPE" == "cygwin" ]]; then + echo "Using parent account credentials for OSTYPE $OSTYPE" + elif [[ "$OSTYPE" == "msys" ]]; then + # windows provided by circleci has this OSTYPE + if [ -z "$USE_PARENT_ACCOUNT" ]; then + export AWS_PAGER="" + export CREDS=$(aws sts assume-role --role-arn arn:aws:iam::$(aws organizations list-accounts | jq -c -r ".Accounts [$((1 + $RANDOM % 5))].Id"):role/OrganizationAccountAccessRole --role-session-name testSession$((1 + $RANDOM % 10000)) --duration-seconds 3600) + if [ -z $(echo $CREDS | jq -c -r '.AssumedRoleUser.Arn') ]; then + echo "Unable to assume child account role. Falling back to parent AWS account" + else + echo "Using account credentials for $(echo $CREDS | jq -c -r '.AssumedRoleUser.Arn')" + export AWS_ACCESS_KEY_ID=$(echo $CREDS | jq -c -r ".Credentials.AccessKeyId") + export AWS_SECRET_ACCESS_KEY=$(echo $CREDS | jq -c -r ".Credentials.SecretAccessKey") + export AWS_SESSION_TOKEN=$(echo $CREDS | jq -c -r ".Credentials.SessionToken") + fi + else + echo "Using parent account credentials." + fi + else + echo "OSTYPE is $OSTYPE" + if [ -z "$USE_PARENT_ACCOUNT" ]; then + curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + unzip -o awscliv2.zip >/dev/null + export PATH=$PATH:$(pwd)/aws/dist + export AWS_PAGER="" + export CREDS=$(aws sts assume-role --role-arn arn:aws:iam::$(aws organizations list-accounts | jq -c -r ".Accounts [$((1 + $RANDOM % 5))].Id"):role/OrganizationAccountAccessRole --role-session-name testSession$((1 + $RANDOM % 10000)) --duration-seconds 3600) + if [ -z $(echo $CREDS | jq -c -r '.AssumedRoleUser.Arn') ]; then + echo "Unable to assume child account role. Falling back to parent AWS account" + else + echo "Using account credentials for $(echo $CREDS | jq -c -r '.AssumedRoleUser.Arn')" + export AWS_ACCESS_KEY_ID=$(echo $CREDS | jq -c -r ".Credentials.AccessKeyId") + export AWS_SECRET_ACCESS_KEY=$(echo $CREDS | jq -c -r ".Credentials.SecretAccessKey") + export AWS_SESSION_TOKEN=$(echo $CREDS | jq -c -r ".Credentials.SessionToken") + fi + else + echo "Using parent account credentials." + fi + fi +} diff --git a/package.json b/package.json index e8b1a70f954..01296737883 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,8 @@ "clean": "lerna run clean && lerna exec yarn rimraf tsconfig.tsbuildinfo && lerna clean --yes && yarn rimraf node_modules", "build": "lerna run build", "build-tests": "lerna run build-tests", - "production-build": "yarn --frozen-lockfile && lerna run build --concurrency 3 --stream", - "dev-build": "yarn && lerna run build", + "production-build": "yarn --frozen-lockfile --cache-folder ~/.cache/yarn && lerna run build --concurrency 3 --stream", + "dev-build": "yarn --cache-folder ~/.cache/yarn && lerna run build", "link-aa-dev": "cd packages/amplify-app && ln -s \"$(pwd)/bin/amplify-app\" \"$(yarn global bin)/amplify-app-dev\" && cd -", "rm-aa-dev-link": "rm -f \"$(yarn global bin)/amplify-app-dev\"", "link-dev": "cd packages/amplify-cli && ln -s \"$(pwd)/bin/amplify\" \"$(yarn global bin)/amplify-dev\" && cd -", diff --git a/packages/amplify-console-integration-tests/src/consoleHosting/consoleHosting.ts b/packages/amplify-console-integration-tests/src/consoleHosting/consoleHosting.ts index 3459bd1b1c8..337737afe04 100644 --- a/packages/amplify-console-integration-tests/src/consoleHosting/consoleHosting.ts +++ b/packages/amplify-console-integration-tests/src/consoleHosting/consoleHosting.ts @@ -1,19 +1,20 @@ import { addCircleCITags, nspawn as spawn } from 'amplify-e2e-core'; import { getCLIPath } from '../util'; import { HOSTING_NOT_ENABLED, HOSTING_ENABLED_IN_CONSOLE, ORIGINAL_ENV } from './constants'; +import { EOL } from 'os'; const defaultSettings = { - name: '\r', + name: EOL, envName: ORIGINAL_ENV, - editor: '\r', - appType: '\r', - framework: '\r', - srcDir: '\r', - distDir: '\r', - buildCmd: '\r', - startCmd: '\r', - useProfile: '\r', - profileName: '\r', + editor: EOL, + appType: EOL, + framework: EOL, + srcDir: EOL, + distDir: EOL, + buildCmd: EOL, + startCmd: EOL, + useProfile: EOL, + profileName: EOL, }; export function deleteProject(cwd: string, deleteDeploymentBucket: Boolean = true): Promise { @@ -21,7 +22,7 @@ export function deleteProject(cwd: string, deleteDeploymentBucket: Boolean = tru const noOutputTimeout = 10 * 60 * 1000; // 10 minutes spawn(getCLIPath(), ['delete'], { cwd, stripColors: true, noOutputTimeout }) .wait('Are you sure you want to continue?') - .sendLine('y') + .sendConfirmYes() .sendCarriageReturn() .wait('Project deleted locally.') .run((err: Error) => { @@ -54,9 +55,9 @@ export function addManualHosting(cwd: string): Promise { return new Promise((resolve, reject) => { spawn(getCLIPath(), ['add', 'hosting'], { cwd, stripColors: true }) .wait(/.*Hosting with Amplify Console*/) - .sendLine('\r') + .sendCarriageReturn() .wait('Manual deployment') - .sendLine('\r') + .sendCarriageReturn() .run((err: Error) => { if (!err) { resolve(); @@ -71,13 +72,13 @@ export function addCICDHostingWithoutFrontend(cwd: string): Promise { return new Promise((resolve, reject) => { spawn(getCLIPath(), ['add', 'hosting'], { cwd, stripColors: true }) .wait(/.*Hosting with Amplify Console*/) - .sendLine('\r') + .sendCarriageReturn() .wait('Continuous deployment (Git-based deployments)') //move up .send('k') - .sendLine('\r') + .sendCarriageReturn() .wait(/.*Continuous deployment is configured in the Amplify Console.*/) - .sendLine('\r') + .sendCarriageReturn() .wait("No hosting URL found. Run 'amplify add hosting' again to set up hosting with Amplify Console.") .run((err: Error) => { if (!err) { @@ -93,7 +94,7 @@ export function amplifyPublish(cwd: string): Promise { return new Promise((resolve, reject) => { spawn(getCLIPath(), ['publish'], { cwd, stripColors: true }) .wait('Are you sure you want to continue?') - .sendLine('\r') + .sendCarriageReturn() .run((err: Error) => { if (!err) { resolve(); @@ -108,7 +109,7 @@ export function amplifyConfigure(cwd: string): Promise { return new Promise((resolve, reject) => { spawn(getCLIPath(), ['hosting', 'configure'], { cwd, stripColors: true }) .wait(/.*We recommends you open AWS Amplify Console*/) - .sendLine('\r') + .sendCarriageReturn() .run((err: Error) => { if (!err) { resolve(); @@ -123,7 +124,7 @@ export function amplifyServe(cwd: string): Promise { return new Promise((resolve, reject) => { spawn(getCLIPath(), ['hosting', 'configure'], { cwd, stripColors: true }) .wait(/.*You have set up Manual deployment*/) - .sendLine('\r') + .sendCarriageReturn() .run((err: Error) => { if (!err) { resolve(); @@ -139,7 +140,7 @@ export function amplifyStatus(cwd: string, expectedStatus: string): Promise { if (!err) { resolve(); @@ -154,7 +155,7 @@ export function amplifyPush(cwd: string): Promise { return new Promise((resolve, reject) => { spawn(getCLIPath(), ['push'], { cwd, stripColors: true }) .wait('Are you sure you want to continue?') - .sendLine('\r') + .sendCarriageReturn() .run((err: Error) => { if (!err) { resolve(); @@ -169,7 +170,7 @@ export function removeHosting(cwd: string): Promise { return new Promise((resolve, reject) => { spawn(getCLIPath(), ['remove', 'hosting'], { cwd, stripColors: true }) .wait(/.*Are you sure you want to delete the resource*/) - .sendLine('\r') + .sendCarriageReturn() .wait('Successfully removed resource') .run((err: Error) => { if (!err) { diff --git a/packages/amplify-console-integration-tests/src/pullAndInit/deleteProject.ts b/packages/amplify-console-integration-tests/src/pullAndInit/deleteProject.ts index c6e30cf855b..13905eef512 100644 --- a/packages/amplify-console-integration-tests/src/pullAndInit/deleteProject.ts +++ b/packages/amplify-console-integration-tests/src/pullAndInit/deleteProject.ts @@ -5,7 +5,7 @@ export function headlessDelete(projectRootDirPath: string): Promise { return new Promise((resolve, reject) => { spawn(util.getCLIPath(), ['delete'], { cwd: projectRootDirPath, stripColors: true }) .wait('Are you sure you want to continue?') - .sendLine('y') + .sendConfirmYes() .wait('Project deleted locally.') .run((err: Error) => { if (!err) { diff --git a/packages/amplify-console-integration-tests/src/pullAndInit/pullProject.ts b/packages/amplify-console-integration-tests/src/pullAndInit/pullProject.ts index 52f7234cd09..0e3082f6f92 100644 --- a/packages/amplify-console-integration-tests/src/pullAndInit/pullProject.ts +++ b/packages/amplify-console-integration-tests/src/pullAndInit/pullProject.ts @@ -1,17 +1,18 @@ import * as util from '../util'; import { nspawn as spawn, getSocialProviders } from 'amplify-e2e-core'; +import { EOL } from 'os'; const defaultSettings = { - name: '\r', - editor: '\r', - appType: '\r', - framework: '\r', - srcDir: '\r', - distDir: '\r', - buildCmd: '\r', - startCmd: '\r', - useProfile: '\r', - profileName: '\r', + name: EOL, + editor: EOL, + appType: EOL, + framework: EOL, + srcDir: EOL, + distDir: EOL, + buildCmd: EOL, + startCmd: EOL, + useProfile: EOL, + profileName: EOL, }; export type FrontendConfig = { @@ -84,7 +85,7 @@ export function authConfigPull( .wait('Start Command:') .sendLine(s.startCmd) .wait('Do you plan on modifying this backend?') - .sendLine('y') + .sendConfirmYes() .wait('Successfully pulled backend environment dev from the cloud.') .run((err: Error) => { if (!err) { diff --git a/packages/amplify-e2e-core/src/asciinema-recorder.ts b/packages/amplify-e2e-core/src/asciinema-recorder.ts index 7901f5bbbc4..49b8a908058 100644 --- a/packages/amplify-e2e-core/src/asciinema-recorder.ts +++ b/packages/amplify-e2e-core/src/asciinema-recorder.ts @@ -58,6 +58,7 @@ export class Recorder { cols: this.cols, rows: this.rows, cwd: this.cwd, + useConpty: false, ...this.options, }); this.addFrame(this.renderPrompt(this.cwd, this.cmd, this.args)); diff --git a/packages/amplify-e2e-core/src/categories/analytics.ts b/packages/amplify-e2e-core/src/categories/analytics.ts index c425e4054a1..f5811eb32e9 100644 --- a/packages/amplify-e2e-core/src/categories/analytics.ts +++ b/packages/amplify-e2e-core/src/categories/analytics.ts @@ -12,7 +12,7 @@ export function addPinpoint(cwd: string, settings: any): Promise { .delay(1000) // Some delay required for autocomplete and terminal to catch up .sendLine(settings.rightName) .wait('Apps need authorization to send analytics events. Do you want to allow guests') - .sendLine('n') + .sendConfirmNo() .wait(`Successfully added resource ${settings.rightName} locally`) .sendEof() .run((err: Error) => { @@ -40,7 +40,7 @@ export function addKinesis(cwd: string, settings: any): Promise { .wait('Enter number of shards') .sendCarriageReturn() .wait('Apps need authorization to send analytics events. Do you want to allow guests') - .sendLine('n') + .sendConfirmNo() .wait(`Successfully added resource ${settings.rightName} locally`) .sendEof() .run((err: Error) => { diff --git a/packages/amplify-e2e-core/src/categories/api.ts b/packages/amplify-e2e-core/src/categories/api.ts index 571e91efc48..25cd5cfd99f 100644 --- a/packages/amplify-e2e-core/src/categories/api.ts +++ b/packages/amplify-e2e-core/src/categories/api.ts @@ -3,6 +3,7 @@ import * as fs from 'fs-extra'; import { selectRuntime, selectTemplate } from './lambda-function'; import { singleSelect, multiSelect } from '../utils/selectors'; import _ from 'lodash'; +import { EOL } from 'os'; export function getSchemaPath(schemaName: string): string { return `${__dirname}/../../../amplify-e2e-tests/schemas/${schemaName}`; @@ -27,7 +28,7 @@ interface AddApiOptions { } const defaultOptions: AddApiOptions = { - apiName: '\r', + apiName: EOL, }; export function addApiWithoutSchema(cwd: string, opts: Partial = {}) { @@ -47,11 +48,11 @@ export function addApiWithoutSchema(cwd: string, opts: Partial = .wait(/.*Do you want to configure advanced settings for the GraphQL API.*/) .sendCarriageReturn() .wait('Do you have an annotated GraphQL schema?') - .sendLine('n') + .sendConfirmNo() .wait('Choose a schema template:') .sendCarriageReturn() .wait('Do you want to edit the schema now?') - .sendLine('n') + .sendConfirmNo() .wait( '"amplify publish" will build all your local backend and frontend resources (if you have hosting category added) and provision it in the cloud', ) @@ -83,7 +84,7 @@ export function addApiWithSchema(cwd: string, schemaFile: string, opts: Partial< .wait(/.*Do you want to configure advanced settings for the GraphQL API.*/) .sendCarriageReturn() .wait('Do you have an annotated GraphQL schema?') - .sendLine('y') + .sendConfirmYes() .wait('Provide your schema file path:') .sendLine(schemaPath) .wait( @@ -116,13 +117,13 @@ export function addApiWithSchemaAndConflictDetection(cwd: string, schemaFile: st .wait(/.*Do you want to configure advanced settings for the GraphQL API.*/) .sendLine(KEY_DOWN_ARROW) // Down .wait(/.*Configure additional auth types.*/) - .sendLine('n') + .sendConfirmNo() .wait(/.*Enable conflict detection.*/) - .sendLine('y') + .sendConfirmYes() .wait(/.*Select the default resolution strategy.*/) .sendCarriageReturn() .wait(/.*Do you have an annotated GraphQL schema.*/) - .sendLine('y') + .sendConfirmYes() .wait('Provide your schema file path:') .sendLine(schemaPath) .wait( @@ -163,9 +164,9 @@ export function updateApiWithMultiAuth(cwd: string, settings: any) { .wait(/.*Do you want to configure advanced settings for the GraphQL API.*/) .sendLine(KEY_DOWN_ARROW) // Down .wait(/.*Configure additional auth types.*/) - .sendLine('y') + .sendConfirmYes() .wait(/.*Choose the additional authorization types you want to configure for the API.*/) - .sendLine('a\r') // All items + .sendLine('a') // All items // Cognito .wait(/.*Do you want to use the default authentication and security configuration.*/) .sendCarriageReturn() @@ -185,7 +186,7 @@ export function updateApiWithMultiAuth(cwd: string, settings: any) { .wait(/.*Enter the number of milliseconds a token is valid after being authenticated.*/) .sendLine('2000') .wait('Enable conflict detection?') - .sendLine('n') + .sendConfirmNo() .wait(/.*Successfully updated resource.*/) .sendEof() .run((err: Error) => { @@ -234,13 +235,13 @@ export function updateAPIWithResolutionStrategy(cwd: string, settings: any) { .wait(/.*Do you want to configure advanced settings for the GraphQL API.*/) .sendLine(KEY_DOWN_ARROW) // Down .wait(/.*Configure additional auth types.*/) - .sendLine('n') + .sendConfirmNo() .wait(/.*Enable conflict detection.*/) - .sendLine('y') + .sendConfirmYes() .wait(/.*Select the default resolution strategy.*/) .sendLine(KEY_DOWN_ARROW) // Down .wait(/.*Do you want to override default per model settings.*/) - .sendLine('n') + .sendConfirmNo() .wait(/.*Successfully updated resource.*/) .sendEof() .run((err: Error) => { @@ -334,9 +335,9 @@ export function addRestApi(cwd: string, settings: any) { chain .wait('Do you want to configure advanced settings?') - .sendLine('n') + .sendConfirmNo() .wait('Do you want to edit the local lambda function now') - .sendLine('n'); + .sendConfirmNo(); } chain.wait('Restrict API access'); @@ -364,7 +365,7 @@ export function addRestApi(cwd: string, settings: any) { chain .wait('Do you want to add another path') - .sendLine('n') + .sendConfirmNo() .sendEof() .run((err: Error) => { if (!err) { @@ -403,7 +404,7 @@ export function addApi(projectDir: string, settings?: any) { .send(KEY_DOWN_ARROW) //yes .sendCarriageReturn() .wait('Configure additional auth types?') - .sendLine('y'); + .sendConfirmYes(); authTypesToSelectFrom = authTypesToSelectFrom.filter(x => x !== defaultType); @@ -430,11 +431,11 @@ export function addApi(projectDir: string, settings?: any) { chain .wait('Do you have an annotated GraphQL schema?') - .sendLine('n') + .sendConfirmNo() .wait('Choose a schema template:') .sendCarriageReturn() .wait('Do you want to edit the schema now?') - .sendLine('n') + .sendConfirmNo() .wait('"amplify publish" will build all your local backend and frontend resources') .run((err: Error) => { if (!err) { @@ -520,11 +521,11 @@ export function addApiWithCognitoUserPoolAuthTypeWhenAuthExists(projectDir: stri .wait('Do you want to configure advanced settings for the GraphQL AP') .sendCarriageReturn() .wait('Do you have an annotated GraphQL schema?') - .sendLine('n') + .sendConfirmNo() .wait('Choose a schema template:') .sendCarriageReturn() .wait('Do you want to edit the schema now?') - .sendLine('n') + .sendConfirmNo() .wait('"amplify publish" will build all your local backend and frontend resources') .run((err: Error) => { if (!err) { diff --git a/packages/amplify-e2e-core/src/categories/auth.ts b/packages/amplify-e2e-core/src/categories/auth.ts index de06efcae62..fa71b669b0b 100644 --- a/packages/amplify-e2e-core/src/categories/auth.ts +++ b/packages/amplify-e2e-core/src/categories/auth.ts @@ -75,7 +75,7 @@ export function removeAuthWithDefault(cwd: string): Promise { .wait('Choose the resource you would want to remove') .sendCarriageReturn() .wait('Are you sure you want to delete the resource? This') - .sendLine('y') + .sendConfirmYes() .sendEof() .run((err: Error) => { if (!err) { @@ -885,7 +885,7 @@ export function addAuthWithGroupsAndAdminAPI(cwd: string, settings: any): Promis .wait('Provide a name for your user pool group') .sendLine('Admins') .wait('Do you want to add another User Pool Group') - .sendLine('y') + .sendConfirmYes() .wait('Provide a name for your user pool group') .sendLine('Users') .wait('Do you want to add another User Pool Group') @@ -895,7 +895,7 @@ export function addAuthWithGroupsAndAdminAPI(cwd: string, settings: any): Promis .wait('Do you want to add an admin queries API') .sendCarriageReturn() // Yes .wait('Do you want to restrict access to the admin queries API') - .sendLine('y') + .sendConfirmYes() .wait('Select the group to restrict access with') .sendCarriageReturn() // Admins .wait('Multifactor authentication (MFA) user login options') @@ -1017,7 +1017,7 @@ export function addAuthWithMaxOptions(cwd: string, settings: any): Promise .wait('Please specify an email verification message') .sendCarriageReturn() .wait('Do you want to override the default password policy') - .sendLine('y') + .sendConfirmYes() .wait('Enter the minimum password length for this User Pool') .sendCarriageReturn() .wait('Select the password character requirements for your userpool') @@ -1028,7 +1028,7 @@ export function addAuthWithMaxOptions(cwd: string, settings: any): Promise .wait('Specify the app') .sendCarriageReturn() .wait('Do you want to specify the user attributes this app') - .sendLine('y') + .sendConfirmYes() .wait('Specify read attributes') .sendCarriageReturn() .wait('Specify write attributes') @@ -1075,7 +1075,7 @@ export function addAuthWithMaxOptions(cwd: string, settings: any): Promise .wait('Enter your Private Key for your OAuth flow') .sendLine(APPLE_PRIVATE_KEY) .wait('Do you want to configure Lambda Triggers for Cognito') - .sendLine('y') + .sendConfirmYes() .wait('Which triggers do you want to enable for Cognito') .send('a') .send(' ') @@ -1179,7 +1179,7 @@ export function updateAuthAddUserGroups(projectDir: string, groupNames: string[] while (index < groupNames.length) { chain .wait('Do you want to add another User Pool Group') - .sendLine('y') + .sendConfirmYes() .wait('Provide a name for your user pool group') .send(groupNames[index++]); } diff --git a/packages/amplify-e2e-core/src/categories/hosting.ts b/packages/amplify-e2e-core/src/categories/hosting.ts index 3e651da14ed..cc7b13c5ec2 100644 --- a/packages/amplify-e2e-core/src/categories/hosting.ts +++ b/packages/amplify-e2e-core/src/categories/hosting.ts @@ -1,6 +1,6 @@ import * as fs from 'fs-extra'; import * as path from 'path'; -import { nspawn as spawn, getCLIPath, createNewProjectDir, KEY_DOWN_ARROW, readJsonFile } from '..'; +import { nspawn as spawn, getCLIPath, createNewProjectDir, KEY_DOWN_ARROW, readJsonFile, getNpxPath } from '..'; import _ from 'lodash'; import { spawnSync } from 'child_process'; import { getBackendAmplifyMeta } from '../utils'; @@ -164,7 +164,7 @@ export async function createReactTestProject(): Promise { const projectName = path.basename(projRoot); const projectDir = path.dirname(projRoot); - spawnSync('npx', ['create-react-app', projectName], { cwd: projectDir }); + spawnSync(getNpxPath(), ['create-react-app', projectName], { cwd: projectDir }); return projRoot; } diff --git a/packages/amplify-e2e-core/src/categories/interactions.ts b/packages/amplify-e2e-core/src/categories/interactions.ts index f36b98bfe6a..d6327b7d751 100644 --- a/packages/amplify-e2e-core/src/categories/interactions.ts +++ b/packages/amplify-e2e-core/src/categories/interactions.ts @@ -10,7 +10,7 @@ export function addSampleInteraction(cwd: string, settings: any): Promise .wait('Choose a sample chatbot:') .sendCarriageReturn() .wait("Please indicate if your use of this bot is subject to the Children's") - .sendLine('y') + .sendConfirmYes() .sendEof() .run((err: Error) => { if (!err) { diff --git a/packages/amplify-e2e-core/src/categories/predictions.ts b/packages/amplify-e2e-core/src/categories/predictions.ts index 4c0ba985849..d8ff446167e 100644 --- a/packages/amplify-e2e-core/src/categories/predictions.ts +++ b/packages/amplify-e2e-core/src/categories/predictions.ts @@ -6,7 +6,7 @@ export function addConvert(cwd: string, settings: any): Promise { return new Promise((resolve, reject) => { spawn(getCLIPath(), ['predictions', 'add'], { cwd, stripColors: true }) .wait('Please select from one of the categories below') - .sendLine(KEY_DOWN_ARROW) + .send(KEY_DOWN_ARROW) .sendCarriageReturn() .wait('What would you like to convert?') .sendCarriageReturn() @@ -17,7 +17,7 @@ export function addConvert(cwd: string, settings: any): Promise { .wait('What is the target language?') .sendCarriageReturn() .wait('Who should have access?') - .sendLine(KEY_DOWN_ARROW) + .send(KEY_DOWN_ARROW) .sendCarriageReturn() .sendEof() .run((err: Error) => { @@ -38,12 +38,12 @@ export function addIdentifyCollection(cwd: string, settings: any): Promise .wait('Please select from one of the categories below') .sendCarriageReturn() .wait('What would you like to identify?') - .sendLine(KEY_DOWN_ARROW) + .send(KEY_DOWN_ARROW) .sendCarriageReturn() .wait('Provide a friendly name for your resource') .sendLine(`${resourceName}\r`) .wait('Would you like use the default configuration?') - .sendLine(KEY_DOWN_ARROW) + .send(KEY_DOWN_ARROW) .sendCarriageReturn() .wait('Would you like to enable celebrity detection?') .sendLine('y') @@ -54,7 +54,8 @@ export function addIdentifyCollection(cwd: string, settings: any): Promise .wait('Would you like to allow users to add images to this collection?') .sendLine('y') .wait('Who should have access?') - .sendLine(KEY_DOWN_ARROW) + .send(KEY_DOWN_ARROW) + .sendCarriageReturn() .wait('The CLI would be provisioning an S3 bucket') .sendCarriageReturn() .sendEof() @@ -74,7 +75,9 @@ export function addInterpret(cwd: string, settings: any): Promise { return new Promise((resolve, reject) => { spawn(getCLIPath(), ['add', 'predictions'], { cwd, stripColors: true }) .wait('Please select from one of the categories below') - .sendLine(`${KEY_DOWN_ARROW}${KEY_DOWN_ARROW}`) + .send(`${KEY_DOWN_ARROW}`) + .send(`${KEY_DOWN_ARROW}`) + .sendCarriageReturn() .wait('What would you like to interpret?') .sendCarriageReturn() .wait('Provide a friendly name for your resource') @@ -82,8 +85,8 @@ export function addInterpret(cwd: string, settings: any): Promise { .wait('What kind of interpretation would you like?') .sendLine('k') .wait('Who should have access?') - .sendLine(KEY_DOWN_ARROW) - .sendEof() + .send(KEY_DOWN_ARROW) + .sendCarriageReturn() .run((err: Error) => { if (!err) { resolve(); @@ -92,4 +95,4 @@ export function addInterpret(cwd: string, settings: any): Promise { } }); }); -} +} \ No newline at end of file diff --git a/packages/amplify-e2e-core/src/categories/storage.ts b/packages/amplify-e2e-core/src/categories/storage.ts index a5f111caf4b..007ed3d763b 100644 --- a/packages/amplify-e2e-core/src/categories/storage.ts +++ b/packages/amplify-e2e-core/src/categories/storage.ts @@ -26,15 +26,15 @@ export function addSimpleDDB(cwd: string, settings: any): Promise { .wait('Please choose the data type') .sendCarriageReturn() .wait('Would you like to add another column') - .sendLine('n') + .sendConfirmNo() .wait('Please choose partition key for the table') .sendCarriageReturn() .wait('Do you want to add a sort key to your table') - .sendLine('n') + .sendConfirmNo() .wait('Do you want to add global secondary indexes to your table') - .sendLine('n') + .sendConfirmNo() .wait('Do you want to add a Lambda Trigger for your Table') - .sendLine('n') + .sendConfirmNo() .sendEof() .run((err: Error) => { if (!err) { @@ -66,19 +66,19 @@ export function addDDBWithTrigger(cwd: string, settings: { ddbResourceName?: str .wait('Please choose the data type') .sendCarriageReturn() .wait('Would you like to add another column') - .sendLine('n') + .sendConfirmNo() .wait('Please choose partition key for the table') .sendCarriageReturn() .wait('Do you want to add a sort key to your table') - .sendLine('n') + .sendConfirmNo() .wait('Do you want to add global secondary indexes to your table') - .sendLine('n') + .sendConfirmNo() .wait('Do you want to add a Lambda Trigger for your Table') - .sendLine('y') + .sendConfirmYes() .wait('Select from the following options') .sendLine(KEY_DOWN_ARROW) .wait('Do you want to edit the local') - .sendLine('n') + .sendConfirmNo() .sendEof() .run((err: Error) => { if (!err) { @@ -98,17 +98,17 @@ export function updateDDBWithTrigger(cwd: string, settings: any): Promise .wait('Specify the resource that you would want to update') .sendCarriageReturn() .wait('Would you like to add another column') - .sendLine('n') + .sendConfirmNo() .wait('Do you want to add global secondary indexes to your table') - .sendLine('n') + .sendConfirmNo() .wait('Do you want to add a Lambda Trigger for your Table') - .sendLine('y') + .sendConfirmYes() .wait('Select from the following options') .sendLine(KEY_DOWN_ARROW) .wait('Do you want to edit the local') - .sendLine('n') + .sendConfirmNo() .wait('overwrite') - .sendLine('y') + .sendConfirmYes() .sendEof() .run((err: Error) => { if (!err) { @@ -129,15 +129,15 @@ export function updateSimpleDDBwithGSI(cwd: string, settings: any): Promise { if (!err) { @@ -180,30 +180,30 @@ export function addSimpleDDBwithGSI(cwd: string, settings: any): Promise { .wait('Please choose the data type') .sendCarriageReturn() .wait('Would you like to add another column') - .sendLine('y') + .sendConfirmYes() .wait('What would you like to name this column') .sendLine('gsi-col1') .wait('Please choose the data type') .sendCarriageReturn() .wait('Would you like to add another column') - .sendLine('n') + .sendConfirmNo() .wait('Please choose partition key for the table') .sendCarriageReturn() .wait('Do you want to add a sort key to your table') - .sendLine('n') + .sendConfirmNo() .wait('Do you want to add global secondary indexes to your table?') - .sendLine('y') + .sendConfirmYes() .wait('Please provide the GSI name') .sendLine('gsi1') .wait('Please choose partition key for the GSI') .send(KEY_DOWN_ARROW) .sendCarriageReturn() .wait('Do you want to add a sort key to your global secondary index?') - .sendLine('n') + .sendConfirmNo() .wait('Do you want to add more global secondary indexes to your table') - .sendLine('n') + .sendConfirmNo() .wait('Do you want to add a Lambda Trigger for your Table') - .sendLine('n') + .sendConfirmNo() .sendEof() .run((err: Error) => { if (!err) { @@ -229,7 +229,7 @@ export function addS3(cwd: string, settings: any): Promise { .wait('What kind of access do you want') .sendLine(' ') .wait('Do you want to add a Lambda Trigger for your S3 Bucket') - .sendLine('n') + .sendConfirmNo() .sendEof() .run((err: Error) => { if (!err) { @@ -248,7 +248,7 @@ export function addS3AndAuthWithAuthOnlyAccess(cwd: string, settings: any): Prom .wait('Please select from one of the below mentioned services') .sendCarriageReturn() // Content .wait('You need to add auth (Amazon Cognito) to your project in order to add storage') - .sendLine('y') + .sendConfirmYes() .wait('Do you want to use the default authentication and security configuration') .sendCarriageReturn() // Default config .wait('How do you want users to be able to sign in') @@ -265,7 +265,7 @@ export function addS3AndAuthWithAuthOnlyAccess(cwd: string, settings: any): Prom .send('i') // Select all .sendCarriageReturn() .wait('Do you want to add a Lambda Trigger for your S3 Bucket') - .sendLine('n') + .sendConfirmNo() .sendEof() .run((err: Error) => { if (!err) { @@ -297,7 +297,7 @@ export function addS3WithGuestAccess(cwd: string, settings: any): Promise .send(' ') // Select read .sendCarriageReturn() .wait('Do you want to add a Lambda Trigger for your S3 Bucket') - .sendLine('n') + .sendConfirmNo() .sendEof() .run((err: Error) => { if (!err) { @@ -334,7 +334,7 @@ export function addS3WithGroupAccess(cwd: string, settings: any): Promise .send(' ') // Select read .sendCarriageReturn() .wait('Do you want to add a Lambda Trigger for your S3 Bucket') - .sendLine('n') + .sendConfirmNo() .sendEof() .run((err: Error) => { if (!err) { @@ -361,12 +361,12 @@ export function addS3WithTrigger(cwd: string, settings: any): Promise { .send(' ') .sendCarriageReturn() .wait('Do you want to add a Lambda Trigger for your S3 Bucket') - .sendLine('y') + .sendConfirmYes() .wait('Select from the following options') .send(KEY_DOWN_ARROW) .sendCarriageReturn() .wait('Do you want to edit the local') - .sendLine('n') + .sendConfirmNo() .sendCarriageReturn() .sendEof() .run((err: Error) => { @@ -394,12 +394,12 @@ export function updateS3AddTrigger(cwd: string, settings: any): Promise { .wait('What kind of access do you want') // for users? .sendCarriageReturn() .wait('Do you want to add a Lambda Trigger for your S3 Bucket') - .sendLine('y') + .sendConfirmYes() .wait('Select from the following options') .send(KEY_DOWN_ARROW) .sendCarriageReturn() .wait('Do you want to edit the local') - .sendLine('n') + .sendConfirmNo() .sendCarriageReturn() .sendEof() .run((err: Error) => { @@ -441,7 +441,7 @@ export function addS3Storage(projectDir: string): Promise { ['create/update', 'read', 'delete'], ); - chain.wait('Do you want to add a Lambda Trigger for your S3 Bucket?').sendLine('N'); + chain.wait('Do you want to add a Lambda Trigger for your S3 Bucket?').sendConfirmNo(); chain.run((err: Error) => { if (!err) { diff --git a/packages/amplify-e2e-core/src/configure/index.ts b/packages/amplify-e2e-core/src/configure/index.ts index 50e816efa75..d774f035926 100644 --- a/packages/amplify-e2e-core/src/configure/index.ts +++ b/packages/amplify-e2e-core/src/configure/index.ts @@ -1,4 +1,5 @@ import { nspawn as spawn, getCLIPath, singleSelect } from '..'; +import { EOL } from 'os'; type AmplifyConfiguration = { accessKeyId: string; @@ -10,7 +11,7 @@ type AmplifyConfiguration = { const defaultSettings = { profileName: 'amplify-integ-test-user', region: 'us-east-2', - userName: '\r', + userName: EOL, }; export const amplifyRegions = [ @@ -47,7 +48,7 @@ export function amplifyConfigure(settings: AmplifyConfiguration): Promise } return new Promise((resolve, reject) => { - const chain = spawn(getCLIPath(), ['configure'], { stripColors: true }) + const chain = spawn(getCLIPath(process.platform !== 'win32'), ['configure'], { stripColors: true }) .wait('Sign in to your AWS administrator account:') .wait('Press Enter to continue') .sendCarriageReturn() diff --git a/packages/amplify-e2e-core/src/index.ts b/packages/amplify-e2e-core/src/index.ts index ab47336b198..963e5e0e4b9 100644 --- a/packages/amplify-e2e-core/src/index.ts +++ b/packages/amplify-e2e-core/src/index.ts @@ -25,9 +25,39 @@ declare global { const amplifyTestsDir = 'amplify-e2e-tests'; export function getCLIPath(testingWithLatestCodebase = false) { - return testingWithLatestCodebase - ? path.join(__dirname, '..', '..', 'amplify-cli', 'bin', 'amplify') - : process.env.AMPLIFY_PATH || 'amplify'; + if (!testingWithLatestCodebase) { + if (process.env.AMPLIFY_PATH && fs.existsSync(process.env.AMPLIFY_PATH)) { + return process.env.AMPLIFY_PATH; + } + + return process.platform === 'win32' ? 'amplify.exe' : 'amplify'; + } + + const amplifyScriptPath = path.join(__dirname, '..', '..', 'amplify-cli', 'bin', 'amplify'); + return amplifyScriptPath; +} + +export function isTestingWithLatestCodebase(scriptRunnerPath) { + return scriptRunnerPath === process.execPath +} + +export function getScriptRunnerPath(testingWithLatestCodebase = false) { + if (!testingWithLatestCodebase) { + return process.platform === 'win32' + ? 'C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe' + : 'exec'; + } + + // nodejs executable + return process.execPath; +} + +export function getNpxPath() { + let npxPath = 'npx'; + if (process.platform === 'win32') { + npxPath = getScriptRunnerPath().replace('node.exe', 'npx.cmd'); + } + return npxPath; } export function isCI(): boolean { @@ -51,6 +81,9 @@ export async function installAmplifyCLI(version: string = 'latest') { env: process.env, stdio: 'inherit', }); + process.env.AMPLIFY_PATH = process.platform === 'win32' + ? path.join(os.homedir(), '..', '..', 'Program` Files', 'nodejs', 'node_modules', '@aws-amplify', 'cli', 'bin', 'amplify') + : path.join(os.homedir(), '.npm-global', 'bin', 'amplify'); } export async function createNewProjectDir( diff --git a/packages/amplify-e2e-core/src/init/amplifyPull.ts b/packages/amplify-e2e-core/src/init/amplifyPull.ts index 0b55329c37f..322a4c060c4 100644 --- a/packages/amplify-e2e-core/src/init/amplifyPull.ts +++ b/packages/amplify-e2e-core/src/init/amplifyPull.ts @@ -50,7 +50,7 @@ export function amplifyPull( .wait('Local changes detected') .wait('Pulling changes from the cloud will override your local changes') .wait('Are you sure you would like to continue') - .sendLine('y'); + .sendConfirmYes(); } if (settings.noUpdateBackend) { diff --git a/packages/amplify-e2e-core/src/init/amplifyPush.ts b/packages/amplify-e2e-core/src/init/amplifyPush.ts index 6bf71b874fa..87206fa53b2 100644 --- a/packages/amplify-e2e-core/src/init/amplifyPush.ts +++ b/packages/amplify-e2e-core/src/init/amplifyPush.ts @@ -24,7 +24,7 @@ export function amplifyPush(cwd: string, testingWithLatestCodebase: boolean = fa .wait('Are you sure you want to continue?') .sendConfirmYes() .wait('Do you want to generate code for your newly created GraphQL API') - .sendLine('n') + .sendConfirmNo() .wait(/.*/) .run((err: Error) => { if (!err) { diff --git a/packages/amplify-e2e-core/src/init/initProjectHelper.ts b/packages/amplify-e2e-core/src/init/initProjectHelper.ts index 95152cccad2..0a942b3e89e 100644 --- a/packages/amplify-e2e-core/src/init/initProjectHelper.ts +++ b/packages/amplify-e2e-core/src/init/initProjectHelper.ts @@ -1,19 +1,20 @@ import { nspawn as spawn, getCLIPath, singleSelect, addCircleCITags } from '..'; import { KEY_DOWN_ARROW } from '../utils'; import { amplifyRegions } from '../configure'; +import { EOL } from 'os'; const defaultSettings = { - name: '\r', + name: EOL, envName: 'integtest', - editor: '\r', - appType: '\r', - framework: '\r', - srcDir: '\r', - distDir: '\r', - buildCmd: '\r', - startCmd: '\r', - useProfile: '\r', - profileName: '\r', + editor: EOL, + appType: EOL, + framework: EOL, + srcDir: EOL, + distDir: EOL, + buildCmd: EOL, + startCmd: EOL, + useProfile: EOL, + profileName: EOL, region: process.env.CLI_REGION, local: false, disableAmplifyAppCreation: true, @@ -49,7 +50,7 @@ export function initJSProjectWithProfile(cwd: string, settings?: Partial { if (!err) { resolve(); @@ -428,7 +429,7 @@ export function amplifyStatus(cwd: string, expectedStatus: string, testingWithLa let regex = new RegExp(`.*${expectedStatus}*`); spawn(getCLIPath(testingWithLatestCodebase), ['status'], { cwd, stripColors: true }) .wait(regex) - .sendLine('\r') + .sendCarriageReturn() .run((err: Error) => { if (!err) { resolve(); diff --git a/packages/amplify-e2e-core/src/init/pull-headless.ts b/packages/amplify-e2e-core/src/init/pull-headless.ts index 4c204b01a43..99ae91bdccf 100644 --- a/packages/amplify-e2e-core/src/init/pull-headless.ts +++ b/packages/amplify-e2e-core/src/init/pull-headless.ts @@ -1,17 +1,18 @@ import { nspawn as spawn, getCLIPath } from '..'; +import { EOL } from 'os'; const defaultSettings = { - name: '\r', + name: EOL, envName: 'integtest', - editor: '\r', - appType: '\r', - framework: '\r', - srcDir: '\r', - distDir: '\r', - buildCmd: '\r', - startCmd: '\r', - useProfile: '\r', - profileName: '\r', + editor: EOL, + appType: EOL, + framework: EOL, + srcDir: EOL, + distDir: EOL, + buildCmd: EOL, + startCmd: EOL, + useProfile: EOL, + profileName: EOL, appId: '', }; @@ -38,7 +39,7 @@ export function pullProject(cwd: string, settings: Object): Promise { .wait('Start Command:') .sendCarriageReturn() .wait('Do you plan on modifying this backend?') - .sendLine('n') + .sendConfirmNo() .wait('Added backend environment config object to your project.') .run((err: Error) => { if (!err) { diff --git a/packages/amplify-e2e-core/src/utils/nexpect.ts b/packages/amplify-e2e-core/src/utils/nexpect.ts index 373fec5f008..42cbe32b56c 100644 --- a/packages/amplify-e2e-core/src/utils/nexpect.ts +++ b/packages/amplify-e2e-core/src/utils/nexpect.ts @@ -22,6 +22,7 @@ import retimer = require('retimer'); import { join, parse } from 'path'; import * as fs from 'fs-extra'; import * as os from 'os'; +import { getScriptRunnerPath, isTestingWithLatestCodebase } from '..'; const DEFAULT_NO_OUTPUT_TIMEOUT = process.env.AMPLIFY_TEST_TIMEOUT_SEC ? Number.parseInt(process.env.AMPLIFY_TEST_TIMEOUT_SEC, 10) * 1000 @@ -272,7 +273,7 @@ function chain(context: Context): ExecutionContext { sendEof: function (): ExecutionContext { var _sendEof: ExecutionStep = { fn: () => { - context.process.write(''); + context.process.sendEof(); return true; }, shift: true, @@ -621,6 +622,12 @@ export function nspawn(command: string | string[], params: string[] = [], option params = params || parsedArgs.slice(1); } + const testingWithLatestCodebase = isTestingWithLatestCodebase(command); + if (testingWithLatestCodebase) { + params.unshift(command); + command = getScriptRunnerPath(testingWithLatestCodebase); + } + let childEnv = undefined; let pushEnv = undefined; diff --git a/packages/amplify-e2e-core/src/utils/pinpoint.ts b/packages/amplify-e2e-core/src/utils/pinpoint.ts index 596bf69a39e..779cdc8391e 100644 --- a/packages/amplify-e2e-core/src/utils/pinpoint.ts +++ b/packages/amplify-e2e-core/src/utils/pinpoint.ts @@ -1,17 +1,18 @@ import { Pinpoint } from 'aws-sdk'; import { getCLIPath, nspawn as spawn, singleSelect, amplifyRegions, addCircleCITags, KEY_DOWN_ARROW } from '..'; import _ from 'lodash'; +import { EOL } from 'os'; const settings = { - name: '\r', + name: EOL, envName: 'test', - editor: '\r', - appType: '\r', - framework: '\r', - srcDir: '\r', - distDir: '\r', - buildCmd: '\r', - startCmd: '\r', + editor: EOL, + appType: EOL, + framework: EOL, + srcDir: EOL, + distDir: EOL, + buildCmd: EOL, + startCmd: EOL, accessKeyId: process.env.AWS_ACCESS_KEY_ID, secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY, sessionToken: process.env.AWS_SESSION_TOKEN, @@ -87,7 +88,7 @@ export function initProjectForPinpoint(cwd: string): Promise { .wait('Enter a name for the project') .sendLine(settings.name) .wait('Initialize the project with the above configuration?') - .sendLine('n') + .sendConfirmNo() .wait('Enter a name for the environment') .sendLine(settings.envName) .wait('Choose your default editor:') @@ -136,7 +137,7 @@ export function addPinpointAnalytics(cwd: string): Promise { .wait('Provide your pinpoint resource name:') .sendLine(settings.pinpointResourceName) .wait('Apps need authorization to send analytics events. Do you want to allow guests') - .sendLine('n') + .sendConfirmNo() .wait(`Successfully added resource ${settings.pinpointResourceName} locally`) .sendEof() .run((err: Error) => { @@ -170,7 +171,7 @@ export function amplifyDelete(cwd: string): Promise { return new Promise((resolve, reject) => { spawn(getCLIPath(), ['delete'], { cwd, stripColors: true }) .wait('Are you sure you want to continue?') - .sendLine('Y') + .sendConfirmYes() .wait('Project deleted in the cloud') .wait('Project deleted locally.') .run((err: Error) => { diff --git a/packages/amplify-e2e-tests/src/__tests__/migration/node.function.test.ts b/packages/amplify-e2e-tests/src/__tests__/migration/node.function.test.ts index d1cebcf6e57..dbc012ec328 100644 --- a/packages/amplify-e2e-tests/src/__tests__/migration/node.function.test.ts +++ b/packages/amplify-e2e-tests/src/__tests__/migration/node.function.test.ts @@ -94,7 +94,7 @@ describe('nodejs version migration tests', () => { .sendConfirmYes() .wait('Node.js runtime version successfully updated') .wait('Are you sure you want to continue?') - .sendLine('y') + .sendConfirmYes() .wait(/.*/) .run((err: Error) => { if (!err) { diff --git a/packages/amplify-e2e-tests/src/codegen/add.ts b/packages/amplify-e2e-tests/src/codegen/add.ts index 8c9b1c64c02..4fa09c294c6 100644 --- a/packages/amplify-e2e-tests/src/codegen/add.ts +++ b/packages/amplify-e2e-tests/src/codegen/add.ts @@ -10,7 +10,7 @@ export function addCodegen(cwd: string, settings: any): Promise { .wait('Enter the file name pattern of graphql queries, mutations and subscriptions') .sendCarriageReturn() .wait('Do you want to generate/update all possible GraphQL operations') - .sendLine('y') + .sendConfirmYes() .wait('Enter maximum statement depth [increase from default if your schema is deeply') .sendCarriageReturn(); if (settings.ios) { diff --git a/packages/amplify-e2e-tests/src/environment/env.ts b/packages/amplify-e2e-tests/src/environment/env.ts index bf0a9c7f4de..cd927fa7875 100644 --- a/packages/amplify-e2e-tests/src/environment/env.ts +++ b/packages/amplify-e2e-tests/src/environment/env.ts @@ -241,7 +241,7 @@ export function removeEnvironment(cwd: string, settings: { envName: string }): P return new Promise((resolve, reject) => { spawn(getCLIPath(), ['env', 'remove', settings.envName], { cwd, stripColors: true }) .wait(`Are you sure you want to continue?`) - .sendLine('y') + .sendConfirmYes() .wait('Successfully removed environment from your project locally') .run((err: Error) => { if (!err) { diff --git a/packages/amplify-e2e-tests/src/init-special-cases/index.ts b/packages/amplify-e2e-tests/src/init-special-cases/index.ts index 86173937a9d..814c6c95ea1 100644 --- a/packages/amplify-e2e-tests/src/init-special-cases/index.ts +++ b/packages/amplify-e2e-tests/src/init-special-cases/index.ts @@ -56,7 +56,7 @@ async function initWorkflow(cwd: string, settings: { accessKeyId: string; secret .wait('Enter a name for the project') .sendCarriageReturn() .wait('Initialize the project with the above configuration?') - .sendLine('n') + .sendConfirmNo() .wait('Enter a name for the environment') .sendCarriageReturn() .wait('Choose your default editor:') diff --git a/packages/amplify-migration-tests/src/migration-helpers/init.ts b/packages/amplify-migration-tests/src/migration-helpers/init.ts index f5936c80ab7..3df5a4d542c 100644 --- a/packages/amplify-migration-tests/src/migration-helpers/init.ts +++ b/packages/amplify-migration-tests/src/migration-helpers/init.ts @@ -1,17 +1,18 @@ import { addCircleCITags, getCLIPath, nspawn as spawn } from 'amplify-e2e-core'; +import { EOL } from 'os'; const defaultSettings = { - name: '\r', + name: EOL, envName: 'integtest', - editor: '\r', - appType: '\r', - framework: '\r', - srcDir: '\r', - distDir: '\r', - buildCmd: '\r', - startCmd: '\r', - useProfile: '\r', - profileName: '\r', + editor: EOL, + appType: EOL, + framework: EOL, + srcDir: EOL, + distDir: EOL, + buildCmd: EOL, + startCmd: EOL, + useProfile: EOL, + profileName: EOL, region: process.env.CLI_REGION, local: false, disableAmplifyAppCreation: true, @@ -82,7 +83,7 @@ export function initJSProjectWithProfile(cwd: string, settings: Object, testingW .wait('Enter a name for the project') .sendLine(s.name) .wait('Initialize the project with the above configuration?') - .sendLine('n') + .sendConfirmNo() .wait('Enter a name for the environment') .sendLine(s.envName) .wait('Choose your default editor:') diff --git a/scripts/split-e2e-tests.ts b/scripts/split-e2e-tests.ts index 18035cb17ec..35ff42a8228 100644 --- a/scripts/split-e2e-tests.ts +++ b/scripts/split-e2e-tests.ts @@ -4,7 +4,79 @@ import { join } from 'path'; import * as fs from 'fs-extra'; import { supportedRegions } from '../packages/amplify-category-geo/src/constants'; -const CONCURRENCY = 4; +const CONCURRENCY = 12; +// Some our e2e tests are known to fail when run on windows hosts +// These are caused by issues with our test harness, not broken cli behavior on windows +// (examples: sending line endings when we shouldn't, java/gradle not installed on windows host) +// Each of these failures should be independently investigated, resolved, and removed from this list. +// For now, this list is being used to skip creation of circleci jobs for these tasks +const WINDOWS_TEST_FAILURES = [ + 'amplify-app-amplify_e2e_tests', + 'api_1-amplify_e2e_tests', + 'api_2-amplify_e2e_tests', + 'api_3-amplify_e2e_tests', + 'api_4-amplify_e2e_tests', + 'api_5-amplify_e2e_tests', + 'auth_1-amplify_e2e_tests', + 'auth_2-amplify_e2e_tests', + 'auth_3-amplify_e2e_tests', + // Auth tests are failing because + // us-east-1 region is not allowed in parent e2e test account + // and `singleSelect` for region is not working properly in windows + 'auth_5-amplify_e2e_tests', + 'auth_6-amplify_e2e_tests', + 'datastore-modelgen-amplify_e2e_tests', + 'delete-amplify_e2e_tests', + 'env-amplify_e2e_tests', + 'feature-flags-amplify_e2e_tests', + 'function_1-amplify_e2e_tests', + 'function_2-amplify_e2e_tests', + 'function_3-amplify_e2e_tests', + 'function_4-amplify_e2e_tests', + 'function_6-amplify_e2e_tests', + 'function_5-amplify_e2e_tests', + 'function_7-amplify_e2e_tests', + 'hosting-amplify_e2e_tests', + 'hostingPROD-amplify_e2e_tests', + 'import_auth_1-amplify_e2e_tests', + 'import_auth_2-amplify_e2e_tests', + 'import_dynamodb_1-amplify_e2e_tests', + 'import_dynamodb_2-amplify_e2e_tests', + 'import_s3_1-amplify_e2e_tests', + 'layer-amplify_e2e_tests', + 'layer-2-amplify_e2e_tests', + 'migration-api-connection-migration-amplify_e2e_tests', + 'migration-api-key-migration1-amplify_e2e_tests', + 'migration-api-key-migration2-amplify_e2e_tests', + 'migration-api-key-migration3-amplify_e2e_tests', + 'migration-node-function-amplify_e2e_tests', + 'predictions-amplify_e2e_tests', + 'pull-amplify_e2e_tests', + 'schema-auth-1-amplify_e2e_tests', + 'schema-auth-2-amplify_e2e_tests', + 'schema-auth-3-amplify_e2e_tests', + 'schema-auth-4-amplify_e2e_tests', + 'schema-auth-5-amplify_e2e_tests', + 'schema-auth-6-amplify_e2e_tests', + 'schema-auth-7-amplify_e2e_tests', + 'schema-auth-8-amplify_e2e_tests', + 'schema-auth-9-amplify_e2e_tests', + 'schema-auth-10-amplify_e2e_tests', + 'schema-auth-11-amplify_e2e_tests', + 'schema-data-access-patterns-amplify_e2e_tests', + 'schema-function-amplify_e2e_tests', + 'schema-iterative-update-1-amplify_e2e_tests', + 'schema-iterative-update-2-amplify_e2e_tests', + 'schema-iterative-update-3-amplify_e2e_tests', + 'schema-iterative-update-4-amplify_e2e_tests', + 'schema-iterative-update-locking-amplify_e2e_tests', + 'schema-iterative-rollback-1-amplify_e2e_tests', + 'schema-iterative-rollback-2-amplify_e2e_tests', + 'schema-key-amplify_e2e_tests_pkg', + 'schema-model-amplify_e2e_tests', + 'storage-amplify_e2e_tests', +]; + // Ensure to update packages/amplify-e2e-tests/src/cleanup-e2e-resources.ts is also updated this gets updated const AWS_REGIONS_TO_RUN_TESTS = [ 'us-east-2', @@ -16,6 +88,20 @@ const AWS_REGIONS_TO_RUN_TESTS = [ 'ap-southeast-2', ]; +// Some services (eg. amazon lex) are not available in all regions +// Tests added to this list will always run in us-west-2 +const FORCE_US_WEST_2 = ['interactions-amplify_e2e_tests']; + +const USE_PARENT_ACCOUNT = [ + 'api_2-amplify_e2e_tests', + 'api_1-amplify_e2e_tests', + 'auth_2-amplify_e2e_tests', + 'import_dynamodb_1-amplify_e2e_tests', + 'import_s3_1-amplify_e2e_tests', + 'migration-api-key-migration2-amplify_e2e_tests', + 'storage-amplify_e2e_tests', +]; + // This array needs to be update periodically when new tests suites get added // or when a test suite changes drastically @@ -78,6 +164,7 @@ const KNOWN_SUITES_SORTED_ACCORDING_TO_RUNTIME = [ 'src/__tests__/schema-auth-9.test.ts', 'src/__tests__/schema-auth-11.test.ts', 'src/__tests__/migration/api.key.migration2.test.ts', + 'src/__tests__/migration/api.key.migration3.test.ts', 'src/__tests__/function_1.test.ts', 'src/__tests__/schema-auth-1.test.ts', 'src/__tests__/function_4.test.ts', @@ -95,6 +182,8 @@ const KNOWN_SUITES_SORTED_ACCORDING_TO_RUNTIME = [ //<55m 'src/__tests__/storage.test.ts', 'src/__tests__/api_2.test.ts', + 'src/__tests__/api_5.test.ts', + 'src/__tests__/api_6.test.ts', 'src/__tests__/schema-iterative-update-4.test.ts', ]; @@ -134,7 +223,8 @@ export type CircleCIConfig = { }; function getTestFiles(dir: string, pattern = 'src/**/*.test.ts'): string[] { - return sortTestsBasedOnTime(glob.sync(pattern, { cwd: dir })).reverse(); + // Todo: add reverse to run longest tests first + return sortTestsBasedOnTime(glob.sync(pattern, { cwd: dir })); // .reverse(); } function generateJobName(baseName: string, testSuitePath: string): string { @@ -169,16 +259,19 @@ function splitTests( const newJobs = testSuites.reduce((acc, suite, index) => { const supportedRegions = getSupportedRegions(suite); - const testRegion = supportedRegions[index % supportedRegions.length]; + const newJobName = generateJobName(jobName, suite); + const testRegion = FORCE_US_WEST_2.some(job => newJobName.startsWith(job)) + ? 'us-west-2' + : supportedRegions[index % supportedRegions.length]; const newJob = { ...job, environment: { - ...job.environment, + ...(job?.environment || {}), TEST_SUITE: suite, CLI_REGION: testRegion, + ...(USE_PARENT_ACCOUNT.some(job => newJobName.startsWith(job)) ? { USE_PARENT_ACCOUNT: 1 } : {}), }, }; - const newJobName = generateJobName(jobName, suite); return { ...acc, [newJobName]: newJob }; }, {}); @@ -216,6 +309,14 @@ function splitTests( [newJobName]: { ...Object.values(workflowJob)[0], requires: [...(requires ? [requires] : workflowJob[jobName].requires || [])], + matrix: { + parameters: { + os: + WINDOWS_TEST_FAILURES.some(failingJob => newJobName.startsWith(failingJob)) || !newJobName.endsWith('_pkg') + ? ['linux'] + : ['linux', 'windows'], + }, + }, }, }; } @@ -319,7 +420,7 @@ function loadConfig(): CircleCIConfig { function saveConfig(config: CircleCIConfig): void { const configFile = join(process.cwd(), '.circleci', 'config.yml'); - const output = ['# auto generated file. Edit config.base.yaml if you want to change', yaml.dump(config)]; + const output = ['# auto generated file. Edit config.base.yaml if you want to change', yaml.dump(config, { noRefs: true })]; fs.writeFileSync(configFile, output.join('\n')); } function main(): void { @@ -333,7 +434,7 @@ function main(): void { ); const splitPkgTests = splitTests( splitNodeTests, - 'amplify_e2e_tests_pkg_linux', + 'amplify_e2e_tests_pkg', 'build_test_deploy', join(process.cwd(), 'packages', 'amplify-e2e-tests'), CONCURRENCY, From bd74bfb892e83d5f0a676904c48f6d941f86abb1 Mon Sep 17 00:00:00 2001 From: Yathi <511386+yuth@users.noreply.github.com> Date: Mon, 27 Sep 2021 16:04:16 -0700 Subject: [PATCH 03/30] chore: add additional instance types to @searchable directive (#8284) --- .../src/cdk/create-cfnParameters.ts | 22 +++++++++++++++++++ .../src/resources.ts | 21 ++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/packages/amplify-graphql-searchable-transformer/src/cdk/create-cfnParameters.ts b/packages/amplify-graphql-searchable-transformer/src/cdk/create-cfnParameters.ts index 239b0d66853..66dcb2bbc1f 100644 --- a/packages/amplify-graphql-searchable-transformer/src/cdk/create-cfnParameters.ts +++ b/packages/amplify-graphql-searchable-transformer/src/cdk/create-cfnParameters.ts @@ -15,6 +15,7 @@ export function createParametersStack(stack: Stack): Map { OpenSearchInstanceType, OpenSearchEBSVolumeGB, } = ResourceConstants.PARAMETERS; + return new Map([ [ OpenSearchAccessIAMRoleName, @@ -135,6 +136,27 @@ export function createParametersStack(stack: Stack): Map { 'i3.4xlarge.elasticsearch', 'i3.8xlarge.elasticsearch', 'i3.16xlarge.elasticsearch', + 'r6gd.12xlarge.elasticsearch', + 'ultrawarm1.xlarge.elasticsearch', + 'm5.4xlarge.elasticsearch', + 't3.xlarge.elasticsearch', + 'm6g.xlarge.elasticsearch', + 'm6g.12xlarge.elasticsearch', + 't2.micro.elasticsearch', + 'r6gd.16xlarge.elasticsearch', + 'd2.2xlarge.elasticsearch', + 't3.micro.elasticsearch', + 'm5.large.elasticsearch', + 'd2.4xlarge.elasticsearch', + 't3.small.elasticsearch', + 'c5.2xlarge.elasticsearch', + 'c6g.2xlarge.elasticsearch', + 'd2.8xlarge.elasticsearch', + 'c5.4xlarge.elasticsearch', + 't4g.medium.elasticsearch', + 'c6g.4xlarge.elasticsearch', + 'c6g.xlarge.elasticsearch', + 'c6g.12xlarge.elasticsearch', ], }), ], diff --git a/packages/graphql-elasticsearch-transformer/src/resources.ts b/packages/graphql-elasticsearch-transformer/src/resources.ts index e5342be879c..1c7e7a4aaf7 100644 --- a/packages/graphql-elasticsearch-transformer/src/resources.ts +++ b/packages/graphql-elasticsearch-transformer/src/resources.ts @@ -98,6 +98,27 @@ export class ResourceFactory { 'i3.4xlarge.elasticsearch', 'i3.8xlarge.elasticsearch', 'i3.16xlarge.elasticsearch', + 'r6gd.12xlarge.elasticsearch', + 'ultrawarm1.xlarge.elasticsearch', + 'm5.4xlarge.elasticsearch', + 't3.xlarge.elasticsearch', + 'm6g.xlarge.elasticsearch', + 'm6g.12xlarge.elasticsearch', + 't2.micro.elasticsearch', + 'r6gd.16xlarge.elasticsearch', + 'd2.2xlarge.elasticsearch', + 't3.micro.elasticsearch', + 'm5.large.elasticsearch', + 'd2.4xlarge.elasticsearch', + 't3.small.elasticsearch', + 'c5.2xlarge.elasticsearch', + 'c6g.2xlarge.elasticsearch', + 'd2.8xlarge.elasticsearch', + 'c5.4xlarge.elasticsearch', + 't4g.medium.elasticsearch', + 'c6g.4xlarge.elasticsearch', + 'c6g.xlarge.elasticsearch', + 'c6g.12xlarge.elasticsearch', ], }), [ResourceConstants.PARAMETERS.ElasticsearchEBSVolumeGB]: new NumberParameter({ From 7f04962bce1e0ef64fedf4ffe34e0bae8f1803dd Mon Sep 17 00:00:00 2001 From: John Corser Date: Mon, 27 Sep 2021 23:20:24 -0400 Subject: [PATCH 04/30] ci: support multi-account e2e cleanup (#8082) --- .../src/cleanup-e2e-resources.ts | 70 +++++++++++++++---- 1 file changed, 56 insertions(+), 14 deletions(-) diff --git a/packages/amplify-e2e-tests/src/cleanup-e2e-resources.ts b/packages/amplify-e2e-tests/src/cleanup-e2e-resources.ts index 0673f98ba84..1e96f87161c 100644 --- a/packages/amplify-e2e-tests/src/cleanup-e2e-resources.ts +++ b/packages/amplify-e2e-tests/src/cleanup-e2e-resources.ts @@ -70,8 +70,8 @@ type ReportEntry = { /** * Configure the AWS SDK with credentials and retry */ -const configureAws = (): void => { - if (!process.env.AWS_ACCESS_KEY_ID || !process.env.AWS_SECRET_ACCESS_KEY) { +const configureAws = (accessKeyId, secretAccessKey, sessionToken = null): void => { + if (!accessKeyId || !secretAccessKey) { throw new Error('AWS credentials are not configured. Set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables'); } @@ -210,7 +210,7 @@ export const getJobCircleCIDetails = async (jobId: number): Promise { }) .help().argv; config(); - configureAws(); let filterPredicate; if (args._.length === 0) { @@ -454,18 +453,61 @@ export const cleanup = async () => { const amplifyApps: AmplifyAppInfo[] = []; const stacks: StackInfo[] = []; - for (const region of AWS_REGIONS_TO_RUN_TESTS) { - amplifyApps.push(...(await getAmplifyApps(region))); - stacks.push(...(await getStacks(region))); + const orgApi = new aws.Organizations({ + apiVersion: '2016-11-28', + // the region where the organization exists + region: 'us-east-1', + }); + let accs; + try { + accs = await orgApi.listAccounts().promise(); + accs = accs.map(async account => { + const randomNumber = Math.floor(Math.random() * 100000); + const assumeRoleRes = await new aws.STS({ + apiVersion: '2011-06-15', + accessKeyId: process.env.AWS_ACCESS_KEY_ID, + secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY, + sessionToken: process.env.AWS_SESSION_TOKEN, + }) + .assumeRole({ + RoleArn: `arn:aws:iam::${account.Id}:role/OrganizationAccountAccessRole`, + RoleSessionName: `testSession${randomNumber}`, + // One hour + DurationSeconds: 1 * 60 * 60, + }) + .promise(); + return { + accessKeyId: assumeRoleRes.Credentials.AccessKeyId, + secretAccessKey: assumeRoleRes.Credentials.SecretAccessKey, + sessionToken: assumeRoleRes.Credentials.SessionToken, + }; + }); + accs = await Promise.all(accs); + } catch (e) { + console.log('No child accounts found. Using parent AWS account.'); + accs = [ + { + accessKeyId: process.env.AWS_ACCESS_KEY_ID, + secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY, + sessionToken: process.env.AWS_SESSION_TOKEN, + }, + ]; } - const buckets = await getS3Buckets(); - const allResources = mergeResourcesByCCIJob(amplifyApps, stacks, buckets); - const staleResources = _.pickBy(allResources, filterPredicate); - generateReport(staleResources); - await deleteResources(staleResources); + for (const account of accs) { + configureAws(account.accessKeyId, account.secretAccessKey, account.sessionToken); + for (const region of AWS_REGIONS_TO_RUN_TESTS) { + amplifyApps.push(...(await getAmplifyApps(region))); + stacks.push(...(await getStacks(region))); + } - console.log('Cleanup done!'); + const buckets = await getS3Buckets(); + const allResources = mergeResourcesByCCIJob(amplifyApps, stacks, buckets); + const staleResources = _.pickBy(allResources, filterPredicate); + generateReport(staleResources); + await deleteResources(staleResources); + console.log('Cleanup done!'); + } }; cleanup(); From 93a28dfc43e323172b68a6d8c56dd0ac8502b221 Mon Sep 17 00:00:00 2001 From: Edward Foyle Date: Tue, 28 Sep 2021 12:55:46 -0700 Subject: [PATCH 05/30] test: update pinpoint test region mapping (#8295) --- packages/amplify-e2e-core/src/utils/pinpoint.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/amplify-e2e-core/src/utils/pinpoint.ts b/packages/amplify-e2e-core/src/utils/pinpoint.ts index 779cdc8391e..4735a2b32cf 100644 --- a/packages/amplify-e2e-core/src/utils/pinpoint.ts +++ b/packages/amplify-e2e-core/src/utils/pinpoint.ts @@ -25,21 +25,21 @@ const serviceRegionMap = { 'us-east-1': 'us-east-1', 'us-east-2': 'us-east-1', 'sa-east-1': 'us-east-1', - 'ca-central-1': 'us-east-1', + 'ca-central-1': 'ca-central-1', 'us-west-1': 'us-west-2', 'us-west-2': 'us-west-2', 'cn-north-1': 'us-west-2', 'cn-northwest-1': 'us-west-2', - 'ap-south-1': 'us-west-2', + 'ap-south-1': 'ap-south-1', 'ap-northeast-3': 'us-west-2', - 'ap-northeast-2': 'us-west-2', - 'ap-southeast-1': 'us-west-2', - 'ap-southeast-2': 'us-west-2', - 'ap-northeast-1': 'us-west-2', + 'ap-northeast-2': 'ap-northeast-2', + 'ap-southeast-1': 'ap-southeast-1', + 'ap-southeast-2': 'ap-southeast-2', + 'ap-northeast-1': 'ap-northeast-1', 'eu-central-1': 'eu-central-1', 'eu-north-1': 'eu-central-1', 'eu-west-1': 'eu-west-1', - 'eu-west-2': 'eu-west-1', + 'eu-west-2': 'eu-west-2', 'eu-west-3': 'eu-west-1', 'me-south-1': 'ap-south-1', }; From f1a834284ecd8f78d8625d3f9459ec0b480b4aef Mon Sep 17 00:00:00 2001 From: John Corser Date: Tue, 28 Sep 2021 15:58:37 -0400 Subject: [PATCH 06/30] ci: improve parallelization (#8292) --- .circleci/config.base.yml | 69 +-- .circleci/config.yml | 779 +++++++++++++---------------- .circleci/local_publish_helpers.sh | 60 +-- scripts/split-e2e-tests.ts | 8 + 4 files changed, 406 insertions(+), 510 deletions(-) diff --git a/.circleci/config.base.yml b/.circleci/config.base.yml index ac5de237fda..02c3ee8e5a7 100644 --- a/.circleci/config.base.yml +++ b/.circleci/config.base.yml @@ -16,15 +16,6 @@ executors: AMPLIFY_DIR: C:/home/circleci/repo/out AMPLIFY_PATH: C:/home/circleci/repo/out/amplify.exe - build_img: &build-executor - docker: - - image: circleci/node:12 - auth: - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_ACCESS_TOKEN - working_directory: ~/repo - resource_class: large - linux: &linux-e2e-executor docker: - image: public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest @@ -34,15 +25,6 @@ executors: AMPLIFY_DIR: /home/circleci/repo/out AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux -node12: &node12 - working_directory: ~/repo - docker: - - image: circleci/node:12 - auth: - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_ACCESS_TOKEN - resource_class: large - defaults: &defaults working_directory: ~/repo parameters: @@ -100,7 +82,7 @@ jobs: parameters: os: type: executor - default: build_img + default: linux executor: << parameters.os >> steps: - checkout @@ -121,7 +103,7 @@ jobs: root: . paths: . test: - <<: *node12 + <<: *linux-e2e-executor steps: - attach_workspace: at: ./ @@ -141,7 +123,7 @@ jobs: command: yarn coverage mock_e2e_tests: - <<: *node12 + <<: *linux-e2e-executor steps: - attach_workspace: at: ./ @@ -160,7 +142,7 @@ jobs: path: packages/amplify-util-mock/ publish_to_local_registry: - <<: *node12 + <<: *linux-e2e-executor steps: - attach_workspace: at: ./ @@ -200,7 +182,7 @@ jobs: - ~/repo/.amplify-pkg-version build_pkg_binaries: - <<: *node12 + <<: *linux-e2e-executor steps: - attach_workspace: at: ./ @@ -280,12 +262,12 @@ jobs: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports done_with_node_e2e_tests: - <<: *node12 + <<: *linux-e2e-executor steps: - run: echo 'Done with Node CLI E2E Tests' done_with_pkg_e2e_tests: - <<: *node12 + <<: *linux-e2e-executor steps: - run: echo 'Done with pkg CLI E2E Tests' @@ -293,7 +275,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -584,7 +566,7 @@ jobs: path: /root/aws-amplify-cypress-api/cypress/screenshots deploy: - <<: *node12 + <<: *linux-e2e-executor steps: - attach_workspace: at: ./ @@ -600,7 +582,7 @@ jobs: bash ./.circleci/publish.sh - run: *scan_e2e_test_artifacts github_prerelease: - <<: *node12 + <<: *linux-e2e-executor steps: - attach_workspace: at: ./ @@ -624,7 +606,7 @@ jobs: yarn ts-node scripts/github-prerelease.ts $version github_prerelease_install_sanity_check: - <<: *node12 + <<: *linux-e2e-executor steps: - restore_cache: key: amplfiy-pkg-tag-{{ .Branch }}-{{ .Revision }} @@ -639,7 +621,7 @@ jobs: command: | amplify version github_release: - <<: *node12 + <<: *linux-e2e-executor steps: - attach_workspace: at: ./ @@ -653,7 +635,7 @@ jobs: version=$(cat .amplify-pkg-version) yarn ts-node scripts/github-release.ts $version cleanup_resources: - <<: *node12 + <<: *linux-e2e-executor steps: - attach_workspace: at: ./ @@ -671,7 +653,7 @@ jobs: working_directory: ~/repo cleanup_resources_after_e2e_runs: - <<: *node12 + <<: *linux-e2e-executor steps: - attach_workspace: at: ./ @@ -737,7 +719,6 @@ workflows: os: - linux - windows - - build_img - test: requires: - build @@ -811,7 +792,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries - done_with_node_e2e_tests: requires: - amplify_e2e_tests @@ -828,7 +808,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries - done_with_pkg_e2e_tests: requires: @@ -1014,9 +993,7 @@ commands: - when: condition: - or: - - equal: [*linux-e2e-executor, << parameters.os >>] - - equal: [*build-executor, << parameters.os >>] + equal: [*linux-e2e-executor, << parameters.os >>] steps: - run: name: Symlink Amplify packaged CLI @@ -1054,9 +1031,7 @@ commands: steps: - when: condition: - or: - - equal: [*linux-e2e-executor, << parameters.os >>] - - equal: [*build-executor, << parameters.os >>] + equal: [*linux-e2e-executor, << parameters.os >>] steps: - run: name: Install Java @@ -1088,9 +1063,7 @@ commands: no_output_timeout: 90m - when: condition: - or: - - equal: [*linux-e2e-executor, << parameters.os >>] - - equal: [*build-executor, << parameters.os >>] + equal: [*linux-e2e-executor, << parameters.os >>] steps: - run: name: Shuffle AWS Credentials @@ -1131,9 +1104,7 @@ commands: - when: condition: - or: - - equal: [*linux-e2e-executor, << parameters.os >>] - - equal: [*build-executor, << parameters.os >>] + equal: [*linux-e2e-executor, << parameters.os >>] steps: - run: name: Scan E2E artifacts @@ -1166,9 +1137,7 @@ commands: - when: condition: - or: - - equal: [*linux-e2e-executor, << parameters.os >>] - - equal: [*build-executor, << parameters.os >>] + equal: [*linux-e2e-executor, << parameters.os >>] steps: - run: name: Scan E2E artifacts diff --git a/.circleci/config.yml b/.circleci/config.yml index a457c997e11..9211ae0846a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,14 +15,6 @@ executors: environment: AMPLIFY_DIR: C:/home/circleci/repo/out AMPLIFY_PATH: C:/home/circleci/repo/out/amplify.exe - build_img: - docker: - - image: circleci/node:12 - auth: - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_ACCESS_TOKEN - working_directory: ~/repo - resource_class: large linux: docker: - image: public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest @@ -31,14 +23,6 @@ executors: environment: AMPLIFY_DIR: /home/circleci/repo/out AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux -node12: - working_directory: ~/repo - docker: - - image: circleci/node:12 - auth: - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_ACCESS_TOKEN - resource_class: large defaults: working_directory: ~/repo parameters: @@ -91,7 +75,7 @@ jobs: parameters: os: type: executor - default: build_img + default: linux executor: << parameters.os >> steps: - checkout @@ -123,13 +107,13 @@ jobs: root: . paths: . test: - working_directory: ~/repo docker: - - image: circleci/node:12 - auth: - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_ACCESS_TOKEN + - image: public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux steps: - attach_workspace: at: ./ @@ -150,13 +134,13 @@ jobs: name: Collect code coverage command: yarn coverage mock_e2e_tests: - working_directory: ~/repo docker: - - image: circleci/node:12 - auth: - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_ACCESS_TOKEN + - image: public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux steps: - attach_workspace: at: ./ @@ -176,13 +160,13 @@ jobs: - store_test_results: path: packages/amplify-util-mock/ publish_to_local_registry: - working_directory: ~/repo docker: - - image: circleci/node:12 - auth: - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_ACCESS_TOKEN + - image: public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux steps: - attach_workspace: at: ./ @@ -223,13 +207,13 @@ jobs: paths: - ~/repo/.amplify-pkg-version build_pkg_binaries: - working_directory: ~/repo docker: - - image: circleci/node:12 - auth: - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_ACCESS_TOKEN + - image: public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux steps: - attach_workspace: at: ./ @@ -359,30 +343,30 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports done_with_node_e2e_tests: - working_directory: ~/repo docker: - - image: circleci/node:12 - auth: - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_ACCESS_TOKEN + - image: public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux steps: - run: echo 'Done with Node CLI E2E Tests' done_with_pkg_e2e_tests: - working_directory: ~/repo docker: - - image: circleci/node:12 - auth: - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_ACCESS_TOKEN + - image: public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux steps: - run: echo 'Done with pkg CLI E2E Tests' amplify_e2e_tests_pkg: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -782,13 +766,13 @@ jobs: - store_artifacts: path: /root/aws-amplify-cypress-api/cypress/screenshots deploy: - working_directory: ~/repo docker: - - image: circleci/node:12 - auth: - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_ACCESS_TOKEN + - image: public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux steps: - attach_workspace: at: ./ @@ -812,13 +796,13 @@ jobs: fi when: always github_prerelease: - working_directory: ~/repo docker: - - image: circleci/node:12 - auth: - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_ACCESS_TOKEN + - image: public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux steps: - attach_workspace: at: ./ @@ -841,13 +825,13 @@ jobs: version=$(cat .amplify-pkg-version) yarn ts-node scripts/github-prerelease.ts $version github_prerelease_install_sanity_check: - working_directory: ~/repo docker: - - image: circleci/node:12 - auth: - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_ACCESS_TOKEN + - image: public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux steps: - restore_cache: key: amplfiy-pkg-tag-{{ .Branch }}-{{ .Revision }} @@ -865,13 +849,13 @@ jobs: command: | amplify version github_release: - working_directory: ~/repo docker: - - image: circleci/node:12 - auth: - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_ACCESS_TOKEN + - image: public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux steps: - attach_workspace: at: ./ @@ -885,13 +869,13 @@ jobs: version=$(cat .amplify-pkg-version) yarn ts-node scripts/github-release.ts $version cleanup_resources: - working_directory: ~/repo docker: - - image: circleci/node:12 - auth: - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_ACCESS_TOKEN + - image: public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux steps: - attach_workspace: at: ./ @@ -917,13 +901,13 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports cleanup_resources_after_e2e_runs: - working_directory: ~/repo docker: - - image: circleci/node:12 - auth: - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_ACCESS_TOKEN + - image: public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux steps: - attach_workspace: at: ./ @@ -1006,6 +990,8 @@ jobs: environment: TEST_SUITE: src/__tests__/api_4.test.ts CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify auth_6-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1064,6 +1050,8 @@ jobs: environment: TEST_SUITE: src/__tests__/auth_6.test.ts CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify configure-project-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1122,6 +1110,8 @@ jobs: environment: TEST_SUITE: src/__tests__/configure-project.test.ts CLI_REGION: eu-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify container-hosting-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1180,6 +1170,8 @@ jobs: environment: TEST_SUITE: src/__tests__/container-hosting.test.ts CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify frontend_config_drift-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1238,6 +1230,8 @@ jobs: environment: TEST_SUITE: src/__tests__/frontend_config_drift.test.ts CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify function_5-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1296,6 +1290,8 @@ jobs: environment: TEST_SUITE: src/__tests__/function_5.test.ts CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify function_6-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1354,6 +1350,8 @@ jobs: environment: TEST_SUITE: src/__tests__/function_6.test.ts CLI_REGION: ap-southeast-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify function_7-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1412,6 +1410,8 @@ jobs: environment: TEST_SUITE: src/__tests__/function_7.test.ts CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify hooks-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1470,6 +1470,8 @@ jobs: environment: TEST_SUITE: src/__tests__/hooks.test.ts CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify iam-permissions-boundary-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1528,6 +1530,8 @@ jobs: environment: TEST_SUITE: src/__tests__/iam-permissions-boundary.test.ts CLI_REGION: eu-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify layer-2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1586,6 +1590,8 @@ jobs: environment: TEST_SUITE: src/__tests__/layer-2.test.ts CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify migration-node-function-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1644,6 +1650,8 @@ jobs: environment: TEST_SUITE: src/__tests__/migration/node.function.test.ts CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify pull-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1702,6 +1710,8 @@ jobs: environment: TEST_SUITE: src/__tests__/pull.test.ts CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify s3-sse-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1760,6 +1770,8 @@ jobs: environment: TEST_SUITE: src/__tests__/s3-sse.test.ts CLI_REGION: ap-southeast-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-iterative-update-locking-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1818,6 +1830,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-iterative-update-locking.test.ts CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify plugin-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1876,6 +1890,8 @@ jobs: environment: TEST_SUITE: src/__tests__/plugin.test.ts CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify init-special-case-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1934,6 +1950,8 @@ jobs: environment: TEST_SUITE: src/__tests__/init-special-case.test.ts CLI_REGION: eu-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify datastore-modelgen-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1992,6 +2010,8 @@ jobs: environment: TEST_SUITE: src/__tests__/datastore-modelgen.test.ts CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify amplify-configure-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2050,6 +2070,8 @@ jobs: environment: TEST_SUITE: src/__tests__/amplify-configure.test.ts CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify init-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2108,6 +2130,8 @@ jobs: environment: TEST_SUITE: src/__tests__/init.test.ts CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify tags-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2166,6 +2190,8 @@ jobs: environment: TEST_SUITE: src/__tests__/tags.test.ts CLI_REGION: ap-southeast-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify notifications-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2224,6 +2250,8 @@ jobs: environment: TEST_SUITE: src/__tests__/notifications.test.ts CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-versioned-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2282,6 +2310,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-versioned.test.ts CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-data-access-patterns-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2340,6 +2370,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-data-access-patterns.test.ts CLI_REGION: eu-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify interactions-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2398,6 +2430,8 @@ jobs: environment: TEST_SUITE: src/__tests__/interactions.test.ts CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-predictions-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2456,6 +2490,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-predictions.test.ts CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify amplify-app-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2514,6 +2550,8 @@ jobs: environment: TEST_SUITE: src/__tests__/amplify-app.test.ts CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify hosting-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2572,6 +2610,8 @@ jobs: environment: TEST_SUITE: src/__tests__/hosting.test.ts CLI_REGION: ap-southeast-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify analytics-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2630,6 +2670,8 @@ jobs: environment: TEST_SUITE: src/__tests__/analytics.test.ts CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify feature-flags-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2688,6 +2730,8 @@ jobs: environment: TEST_SUITE: src/__tests__/feature-flags.test.ts CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-iterative-update-2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2746,6 +2790,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-iterative-update-2.test.ts CLI_REGION: eu-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify containers-api-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2804,6 +2850,8 @@ jobs: environment: TEST_SUITE: src/__tests__/containers-api.test.ts CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify predictions-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2862,6 +2910,8 @@ jobs: environment: TEST_SUITE: src/__tests__/predictions.test.ts CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify hostingPROD-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2920,6 +2970,8 @@ jobs: environment: TEST_SUITE: src/__tests__/hostingPROD.test.ts CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify geo-add-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2978,6 +3030,8 @@ jobs: environment: TEST_SUITE: src/__tests__/geo-add.test.ts CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify geo-update-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3036,6 +3090,8 @@ jobs: environment: TEST_SUITE: src/__tests__/geo-update.test.ts CLI_REGION: ap-southeast-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify geo-remove-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3094,6 +3150,8 @@ jobs: environment: TEST_SUITE: src/__tests__/geo-remove.test.ts CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-auth-10-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3152,6 +3210,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-10.test.ts CLI_REGION: eu-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-key-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3210,6 +3270,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-key.test.ts CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify auth_1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3268,6 +3330,8 @@ jobs: environment: TEST_SUITE: src/__tests__/auth_1.test.ts CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify auth_5-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3326,6 +3390,8 @@ jobs: environment: TEST_SUITE: src/__tests__/auth_5.test.ts CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify function_3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3384,6 +3450,8 @@ jobs: environment: TEST_SUITE: src/__tests__/function_3.test.ts CLI_REGION: ap-southeast-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-iterative-update-1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3442,6 +3510,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-iterative-update-1.test.ts CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-auth-3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3500,6 +3570,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-3.test.ts CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify delete-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3558,6 +3630,8 @@ jobs: environment: TEST_SUITE: src/__tests__/delete.test.ts CLI_REGION: eu-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify function_2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3616,6 +3690,8 @@ jobs: environment: TEST_SUITE: src/__tests__/function_2.test.ts CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify auth_3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3674,6 +3750,8 @@ jobs: environment: TEST_SUITE: src/__tests__/auth_3.test.ts CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify layer-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3732,6 +3810,8 @@ jobs: environment: TEST_SUITE: src/__tests__/layer.test.ts CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify migration-api-key-migration1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3790,6 +3870,8 @@ jobs: environment: TEST_SUITE: src/__tests__/migration/api.key.migration1.test.ts CLI_REGION: ap-southeast-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify auth_4-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3848,6 +3930,8 @@ jobs: environment: TEST_SUITE: src/__tests__/auth_4.test.ts CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-auth-7-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3906,6 +3990,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-7.test.ts CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-auth-8-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3964,6 +4050,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-8.test.ts CLI_REGION: eu-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-searchable-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4022,6 +4110,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-searchable.test.ts CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-auth-4-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4080,6 +4170,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-4.test.ts CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify api_3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4138,6 +4230,8 @@ jobs: environment: TEST_SUITE: src/__tests__/api_3.test.ts CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify import_auth_1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4196,6 +4290,8 @@ jobs: environment: TEST_SUITE: src/__tests__/import_auth_1.test.ts CLI_REGION: ap-southeast-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify import_auth_2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4254,6 +4350,8 @@ jobs: environment: TEST_SUITE: src/__tests__/import_auth_2.test.ts CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify import_s3_1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4313,6 +4411,8 @@ jobs: TEST_SUITE: src/__tests__/import_s3_1.test.ts CLI_REGION: us-west-2 USE_PARENT_ACCOUNT: 1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify import_dynamodb_1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4372,6 +4472,8 @@ jobs: TEST_SUITE: src/__tests__/import_dynamodb_1.test.ts CLI_REGION: eu-west-2 USE_PARENT_ACCOUNT: 1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-iterative-rollback-1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4430,6 +4532,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-iterative-rollback-1.test.ts CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-iterative-rollback-2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4488,6 +4592,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-iterative-rollback-2.test.ts CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify env-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4546,6 +4652,8 @@ jobs: environment: TEST_SUITE: src/__tests__/env.test.ts CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify auth_2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4605,6 +4713,8 @@ jobs: TEST_SUITE: src/__tests__/auth_2.test.ts CLI_REGION: ap-southeast-2 USE_PARENT_ACCOUNT: 1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-auth-9-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4663,6 +4773,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-9.test.ts CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-auth-11-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4721,6 +4833,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-11.test.ts CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify migration-api-key-migration2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4780,6 +4894,8 @@ jobs: TEST_SUITE: src/__tests__/migration/api.key.migration2.test.ts CLI_REGION: eu-west-2 USE_PARENT_ACCOUNT: 1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify function_1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4838,6 +4954,8 @@ jobs: environment: TEST_SUITE: src/__tests__/function_1.test.ts CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-auth-1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4896,6 +5014,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-1.test.ts CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify function_4-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4954,6 +5074,8 @@ jobs: environment: TEST_SUITE: src/__tests__/function_4.test.ts CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-function-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5012,6 +5134,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-function.test.ts CLI_REGION: ap-southeast-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-model-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5070,6 +5194,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-model.test.ts CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify migration-api-connection-migration-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5128,6 +5254,8 @@ jobs: environment: TEST_SUITE: src/__tests__/migration/api.connection.migration.test.ts CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-connection-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5186,6 +5314,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-connection.test.ts CLI_REGION: eu-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-auth-6-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5244,6 +5374,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-6.test.ts CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-iterative-update-3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5302,6 +5434,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-iterative-update-3.test.ts CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-auth-2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5360,6 +5494,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-2.test.ts CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify api_1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5419,6 +5555,8 @@ jobs: TEST_SUITE: src/__tests__/api_1.test.ts CLI_REGION: ap-southeast-2 USE_PARENT_ACCOUNT: 1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-auth-5-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5477,6 +5615,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-5.test.ts CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify storage-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5536,6 +5676,8 @@ jobs: TEST_SUITE: src/__tests__/storage.test.ts CLI_REGION: us-west-2 USE_PARENT_ACCOUNT: 1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify api_2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5595,6 +5737,8 @@ jobs: TEST_SUITE: src/__tests__/api_2.test.ts CLI_REGION: eu-west-2 USE_PARENT_ACCOUNT: 1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-iterative-update-4-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5653,11 +5797,13 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-iterative-update-4.test.ts CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify api_4-amplify_e2e_tests_pkg: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -5694,7 +5840,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -5731,7 +5877,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -5768,7 +5914,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -5805,7 +5951,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -5842,7 +5988,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -5879,7 +6025,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -5916,7 +6062,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -5953,7 +6099,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -5990,7 +6136,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6027,7 +6173,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6064,7 +6210,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6101,7 +6247,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6138,7 +6284,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6175,7 +6321,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6212,7 +6358,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6249,7 +6395,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6286,7 +6432,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6323,7 +6469,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6360,7 +6506,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6397,7 +6543,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6434,7 +6580,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6471,7 +6617,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6508,7 +6654,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6545,7 +6691,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6582,7 +6728,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6619,7 +6765,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6656,7 +6802,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6693,7 +6839,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6730,7 +6876,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6767,7 +6913,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6804,7 +6950,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6841,7 +6987,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6878,7 +7024,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6915,7 +7061,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6952,7 +7098,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -6989,7 +7135,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7026,7 +7172,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7063,7 +7209,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7100,7 +7246,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7137,7 +7283,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7174,7 +7320,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7211,7 +7357,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7248,7 +7394,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7285,7 +7431,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7322,7 +7468,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7359,7 +7505,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7396,7 +7542,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7433,7 +7579,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7470,7 +7616,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7507,7 +7653,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7544,7 +7690,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7581,7 +7727,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7618,7 +7764,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7655,7 +7801,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7692,7 +7838,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7729,7 +7875,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7766,7 +7912,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7804,7 +7950,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7842,7 +7988,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7879,7 +8025,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7916,7 +8062,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7953,7 +8099,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -7991,7 +8137,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -8028,7 +8174,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -8065,7 +8211,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -8103,7 +8249,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -8140,7 +8286,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -8177,7 +8323,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -8214,7 +8360,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -8251,7 +8397,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -8288,7 +8434,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -8325,7 +8471,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -8362,7 +8508,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -8399,7 +8545,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -8436,7 +8582,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -8473,7 +8619,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -8511,7 +8657,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -8548,7 +8694,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -8586,7 +8732,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -8624,7 +8770,7 @@ jobs: parameters: os: type: executor - default: os.build_img + default: os.linux executor: << parameters.os >> working_directory: ~/repo steps: @@ -8705,7 +8851,6 @@ workflows: os: - linux - windows - - build_img - test: requires: - build @@ -9107,7 +9252,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9134,7 +9278,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9161,7 +9304,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9188,7 +9330,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9215,7 +9356,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9242,7 +9382,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9269,7 +9408,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9296,7 +9434,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9323,7 +9460,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9350,7 +9486,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9377,7 +9512,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9404,7 +9538,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9431,7 +9564,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9458,7 +9590,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9485,7 +9616,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9512,7 +9642,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9539,7 +9668,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9566,7 +9694,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9593,7 +9720,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9620,7 +9746,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9647,7 +9772,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9674,7 +9798,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9701,7 +9824,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9728,7 +9850,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9755,7 +9876,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9782,7 +9902,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9809,7 +9928,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9836,7 +9954,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9863,7 +9980,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9890,7 +10006,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9917,7 +10032,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9944,7 +10058,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9971,7 +10084,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9998,7 +10110,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10025,7 +10136,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10052,7 +10162,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10079,7 +10188,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10106,7 +10214,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10133,7 +10240,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10160,7 +10266,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10187,7 +10292,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10214,7 +10318,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10241,7 +10344,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10268,7 +10370,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10295,7 +10396,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10322,7 +10422,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10349,7 +10448,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10376,7 +10474,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10403,7 +10500,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10430,7 +10526,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10457,7 +10552,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10484,7 +10578,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10511,7 +10604,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10538,7 +10630,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10565,7 +10656,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10592,7 +10682,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10619,7 +10708,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10646,7 +10734,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10673,7 +10760,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10700,7 +10786,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10727,7 +10812,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10754,7 +10838,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10781,7 +10864,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10808,7 +10890,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10835,7 +10916,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10862,7 +10942,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10889,7 +10968,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10916,7 +10994,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10943,7 +11020,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10970,7 +11046,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10997,7 +11072,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -11024,7 +11098,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -11051,7 +11124,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -11078,7 +11150,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -11105,7 +11176,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -11132,7 +11202,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -11159,7 +11228,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -11186,7 +11254,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -11213,7 +11280,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -11240,7 +11306,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -11267,7 +11332,6 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -11285,7 +11349,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11304,7 +11367,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11323,7 +11385,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11342,7 +11403,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11362,7 +11422,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11382,7 +11441,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11402,7 +11460,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11421,7 +11478,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11441,7 +11497,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11460,7 +11515,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11479,7 +11533,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11498,7 +11551,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11517,13 +11569,11 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: os: - linux - - windows - hooks-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull @@ -11537,7 +11587,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11557,7 +11606,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11577,7 +11625,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11597,7 +11644,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11617,7 +11663,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11636,7 +11681,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11655,7 +11699,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11674,7 +11717,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11693,7 +11735,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11712,7 +11753,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11731,7 +11771,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11750,7 +11789,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11770,7 +11808,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11790,7 +11827,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11810,7 +11846,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11829,7 +11864,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11848,7 +11882,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11867,7 +11900,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11886,7 +11918,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11905,7 +11936,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11924,7 +11954,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11943,7 +11972,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11963,7 +11991,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11982,7 +12009,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12002,7 +12028,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12021,7 +12046,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12040,7 +12064,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12060,7 +12083,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12079,7 +12101,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12098,7 +12119,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12118,7 +12138,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12137,7 +12156,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12156,7 +12174,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12175,7 +12192,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12194,7 +12210,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12214,7 +12229,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12233,7 +12247,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12253,7 +12266,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12273,7 +12285,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12292,7 +12303,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12311,7 +12321,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12330,7 +12339,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12349,7 +12357,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12368,7 +12375,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12387,7 +12393,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12406,7 +12411,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12425,7 +12429,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12444,7 +12447,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12464,7 +12466,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12483,7 +12484,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12502,7 +12502,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12522,13 +12521,11 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: os: - linux - - windows - layer-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull @@ -12542,7 +12539,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12561,7 +12557,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12580,7 +12575,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12599,7 +12593,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12618,7 +12611,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12637,7 +12629,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12656,7 +12647,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12676,7 +12666,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12696,7 +12685,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12715,7 +12703,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12735,7 +12722,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12754,7 +12740,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12773,7 +12758,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12792,7 +12776,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12811,7 +12794,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12830,7 +12812,6 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12875,26 +12856,16 @@ commands: command: amplify version - when: condition: - or: - - equal: - - docker: - - image: >- - public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest - working_directory: ~/repo - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - - << parameters.os >> - - equal: - - docker: - - image: circleci/node:12 - auth: - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_ACCESS_TOKEN - working_directory: ~/repo - resource_class: large - - << parameters.os >> + equal: + - docker: + - image: >- + public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo + resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux + - << parameters.os >> steps: - run: name: Symlink Amplify packaged CLI @@ -12942,26 +12913,16 @@ commands: steps: - when: condition: - or: - - equal: - - docker: - - image: >- - public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest - working_directory: ~/repo - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - - << parameters.os >> - - equal: - - docker: - - image: circleci/node:12 - auth: - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_ACCESS_TOKEN - working_directory: ~/repo - resource_class: large - - << parameters.os >> + equal: + - docker: + - image: >- + public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo + resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux + - << parameters.os >> steps: - run: name: Install Java @@ -13001,26 +12962,16 @@ commands: no_output_timeout: 90m - when: condition: - or: - - equal: - - docker: - - image: >- - public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest - working_directory: ~/repo - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - - << parameters.os >> - - equal: - - docker: - - image: circleci/node:12 - auth: - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_ACCESS_TOKEN - working_directory: ~/repo - resource_class: large - - << parameters.os >> + equal: + - docker: + - image: >- + public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo + resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux + - << parameters.os >> steps: - run: name: Shuffle AWS Credentials @@ -13069,26 +13020,16 @@ commands: when: always - when: condition: - or: - - equal: - - docker: - - image: >- - public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest - working_directory: ~/repo - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - - << parameters.os >> - - equal: - - docker: - - image: circleci/node:12 - auth: - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_ACCESS_TOKEN - working_directory: ~/repo - resource_class: large - - << parameters.os >> + equal: + - docker: + - image: >- + public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo + resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux + - << parameters.os >> steps: - run: name: Scan E2E artifacts @@ -13129,26 +13070,16 @@ commands: when: always - when: condition: - or: - - equal: - - docker: - - image: >- - public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest - working_directory: ~/repo - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - - << parameters.os >> - - equal: - - docker: - - image: circleci/node:12 - auth: - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_ACCESS_TOKEN - working_directory: ~/repo - resource_class: large - - << parameters.os >> + equal: + - docker: + - image: >- + public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo + resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux + - << parameters.os >> steps: - run: name: Scan E2E artifacts diff --git a/.circleci/local_publish_helpers.sh b/.circleci/local_publish_helpers.sh index 9fcbeaaf191..30698540585 100644 --- a/.circleci/local_publish_helpers.sh +++ b/.circleci/local_publish_helpers.sh @@ -53,45 +53,33 @@ function setSudoNpmRegistryUrlToLocal { sudo yarn config set registry "$custom_registry_url" } -function setAwsAccountCredentials { - if [[ "$OSTYPE" == "win32" ]]; then - echo "Using parent account credentials for OSTYPE $OSTYPE" - elif [[ "$OSTYPE" == "cygwin" ]]; then - echo "Using parent account credentials for OSTYPE $OSTYPE" - elif [[ "$OSTYPE" == "msys" ]]; then - # windows provided by circleci has this OSTYPE - if [ -z "$USE_PARENT_ACCOUNT" ]; then - export AWS_PAGER="" - export CREDS=$(aws sts assume-role --role-arn arn:aws:iam::$(aws organizations list-accounts | jq -c -r ".Accounts [$((1 + $RANDOM % 5))].Id"):role/OrganizationAccountAccessRole --role-session-name testSession$((1 + $RANDOM % 10000)) --duration-seconds 3600) - if [ -z $(echo $CREDS | jq -c -r '.AssumedRoleUser.Arn') ]; then - echo "Unable to assume child account role. Falling back to parent AWS account" - else - echo "Using account credentials for $(echo $CREDS | jq -c -r '.AssumedRoleUser.Arn')" - export AWS_ACCESS_KEY_ID=$(echo $CREDS | jq -c -r ".Credentials.AccessKeyId") - export AWS_SECRET_ACCESS_KEY=$(echo $CREDS | jq -c -r ".Credentials.SecretAccessKey") - export AWS_SESSION_TOKEN=$(echo $CREDS | jq -c -r ".Credentials.SessionToken") - fi +function useChildAccountCredentials { + if [ -z "$USE_PARENT_ACCOUNT" ]; then + export AWS_PAGER="" + export ORGANIZATION_SIZE=$(aws organizations list-accounts | jq '.Accounts | length') + export CREDS=$(aws sts assume-role --role-arn arn:aws:iam::$(aws organizations list-accounts | jq -c -r ".Accounts [$(($RANDOM % $ORGANIZATION_SIZE))].Id"):role/OrganizationAccountAccessRole --role-session-name testSession$((1 + $RANDOM % 10000)) --duration-seconds 3600) + if [ -z $(echo $CREDS | jq -c -r '.AssumedRoleUser.Arn') ]; then + echo "Unable to assume child account role. Falling back to parent AWS account" else - echo "Using parent account credentials." + echo "Using account credentials for $(echo $CREDS | jq -c -r '.AssumedRoleUser.Arn')" + export AWS_ACCESS_KEY_ID=$(echo $CREDS | jq -c -r ".Credentials.AccessKeyId") + export AWS_SECRET_ACCESS_KEY=$(echo $CREDS | jq -c -r ".Credentials.SecretAccessKey") + export AWS_SESSION_TOKEN=$(echo $CREDS | jq -c -r ".Credentials.SessionToken") fi + else + echo "Using parent account credentials." + fi +} + +function setAwsAccountCredentials { + if [[ "$OSTYPE" == "msys" ]]; then + # windows provided by circleci has this OSTYPE + useChildAccountCredentials else echo "OSTYPE is $OSTYPE" - if [ -z "$USE_PARENT_ACCOUNT" ]; then - curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" - unzip -o awscliv2.zip >/dev/null - export PATH=$PATH:$(pwd)/aws/dist - export AWS_PAGER="" - export CREDS=$(aws sts assume-role --role-arn arn:aws:iam::$(aws organizations list-accounts | jq -c -r ".Accounts [$((1 + $RANDOM % 5))].Id"):role/OrganizationAccountAccessRole --role-session-name testSession$((1 + $RANDOM % 10000)) --duration-seconds 3600) - if [ -z $(echo $CREDS | jq -c -r '.AssumedRoleUser.Arn') ]; then - echo "Unable to assume child account role. Falling back to parent AWS account" - else - echo "Using account credentials for $(echo $CREDS | jq -c -r '.AssumedRoleUser.Arn')" - export AWS_ACCESS_KEY_ID=$(echo $CREDS | jq -c -r ".Credentials.AccessKeyId") - export AWS_SECRET_ACCESS_KEY=$(echo $CREDS | jq -c -r ".Credentials.SecretAccessKey") - export AWS_SESSION_TOKEN=$(echo $CREDS | jq -c -r ".Credentials.SessionToken") - fi - else - echo "Using parent account credentials." - fi + curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + unzip -o awscliv2.zip >/dev/null + export PATH=$PATH:$(pwd)/aws/dist + useChildAccountCredentials fi } diff --git a/scripts/split-e2e-tests.ts b/scripts/split-e2e-tests.ts index 35ff42a8228..47802cd78ee 100644 --- a/scripts/split-e2e-tests.ts +++ b/scripts/split-e2e-tests.ts @@ -272,6 +272,14 @@ function splitTests( ...(USE_PARENT_ACCOUNT.some(job => newJobName.startsWith(job)) ? { USE_PARENT_ACCOUNT: 1 } : {}), }, }; + const isPkg = newJobName.endsWith('_pkg'); + if (!isPkg) { + (newJob.environment as any) = { + ...newJob.environment, + AMPLIFY_DIR: '/home/circleci/repo/packages/amplify-cli/bin', + AMPLIFY_PATH: '/home/circleci/repo/packages/amplify-cli/bin/amplify', + } + } return { ...acc, [newJobName]: newJob }; }, {}); From 07dce3e62c248e572206da2ec1bb46ad077591c2 Mon Sep 17 00:00:00 2001 From: Edward Foyle Date: Tue, 28 Sep 2021 13:17:39 -0700 Subject: [PATCH 07/30] test: fix cci pipeline flow (#8296) --- .circleci/config.base.yml | 1 + .circleci/config.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.circleci/config.base.yml b/.circleci/config.base.yml index 02c3ee8e5a7..f1e0e133bd7 100644 --- a/.circleci/config.base.yml +++ b/.circleci/config.base.yml @@ -939,6 +939,7 @@ workflows: - graphql_e2e_tests - integration_test - done_with_pkg_e2e_tests + - done_with_node_e2e_tests - amplify_sudo_install_test - amplify_console_integration_tests - amplify_migration_tests_latest diff --git a/.circleci/config.yml b/.circleci/config.yml index 9211ae0846a..0abd7d2d1be 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9206,6 +9206,7 @@ workflows: - graphql_e2e_tests - integration_test - done_with_pkg_e2e_tests + - done_with_node_e2e_tests - amplify_sudo_install_test - amplify_console_integration_tests - amplify_migration_tests_latest From 569c16c9b79f1427589df66a99645bb2d17eddd9 Mon Sep 17 00:00:00 2001 From: Edward Foyle Date: Tue, 28 Sep 2021 15:31:31 -0700 Subject: [PATCH 08/30] test: remove aws cli win install step (#8299) --- .circleci/config.base.yml | 3 --- .circleci/config.yml | 3 --- 2 files changed, 6 deletions(-) diff --git a/.circleci/config.base.yml b/.circleci/config.base.yml index f1e0e133bd7..13857ca2d10 100644 --- a/.circleci/config.base.yml +++ b/.circleci/config.base.yml @@ -1050,9 +1050,6 @@ commands: condition: equal: [*windows-e2e-executor, << parameters.os >>] steps: - - run: - name: Install aws cli - command: msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msi - run: name: Run E2E tests shell: bash.exe diff --git a/.circleci/config.yml b/.circleci/config.yml index 0abd7d2d1be..d5100aeabf9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12949,9 +12949,6 @@ commands: AMPLIFY_PATH: C:/home/circleci/repo/out/amplify.exe - << parameters.os >> steps: - - run: - name: Install aws cli - command: msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msi - run: name: Run E2E tests shell: bash.exe From 1fc7a9ae0a585b1abf9f94ad982e5573ead22391 Mon Sep 17 00:00:00 2001 From: josef Date: Tue, 28 Sep 2021 17:32:17 -0500 Subject: [PATCH 09/30] fix: logic to display searchable instance warning (#8297) --- .../src/transform-graphql-schema.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/amplify-provider-awscloudformation/src/transform-graphql-schema.ts b/packages/amplify-provider-awscloudformation/src/transform-graphql-schema.ts index 3537ee2983d..014d6aaee35 100644 --- a/packages/amplify-provider-awscloudformation/src/transform-graphql-schema.ts +++ b/packages/amplify-provider-awscloudformation/src/transform-graphql-schema.ts @@ -54,14 +54,16 @@ const ROOT_APPSYNC_S3_KEY = 'amplify-appsync-files'; const s3ServiceName = 'S3'; export function searchablePushChecks(context, map): void { - const searchableModelTypes = Object.keys(map).filter(type => !map[type].includes('searchable') && map[type].includes('model')); + const searchableModelTypes = Object.keys(map).filter(type => map[type].includes('searchable') && map[type].includes('model')); if (searchableModelTypes.length) { const currEnv = context.amplify.getEnvInfo().envName; const teamProviderInfo = stateManager.getTeamProviderInfo(); const apiCategory = teamProviderInfo[currEnv]?.categories?.api; const instanceType = apiCategory ? apiCategory[ResourceConstants.PARAMETERS.ElasticsearchInstanceType] : null; if (!instanceType || instanceType === 't2.small.elasticsearch') { - printer.warn("Your instance type for OpenSearch is t2.small, you may experience performance issues or data loss. Consider reconfiguring with the instructions here https://docs.amplify.aws/cli/graphql-transformer/searchable/") + printer.warn( + 'Your instance type for OpenSearch is t2.small, you may experience performance issues or data loss. Consider reconfiguring with the instructions here https://docs.amplify.aws/cli/graphql-transformer/searchable/', + ); } } } From 5c9e216f2776c4e1856c26d625d369353702f1b4 Mon Sep 17 00:00:00 2001 From: Edward Foyle Date: Tue, 28 Sep 2021 17:42:02 -0700 Subject: [PATCH 10/30] test: dont run geo e2e tests on windows (#8300) --- .circleci/config.yml | 3 --- scripts/split-e2e-tests.ts | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d5100aeabf9..3e85d3a8ee0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11447,7 +11447,6 @@ workflows: parameters: os: - linux - - windows - schema-iterative-update-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull @@ -12508,7 +12507,6 @@ workflows: parameters: os: - linux - - windows - auth_5-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull @@ -12709,7 +12707,6 @@ workflows: parameters: os: - linux - - windows - function_3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull diff --git a/scripts/split-e2e-tests.ts b/scripts/split-e2e-tests.ts index 47802cd78ee..438454f8079 100644 --- a/scripts/split-e2e-tests.ts +++ b/scripts/split-e2e-tests.ts @@ -36,6 +36,9 @@ const WINDOWS_TEST_FAILURES = [ 'function_6-amplify_e2e_tests', 'function_5-amplify_e2e_tests', 'function_7-amplify_e2e_tests', + 'geo-add-amplify_e2e_tests', + 'geo-update-amplify_e2e_tests', + 'geo-remove-amplify_e2e_tests', 'hosting-amplify_e2e_tests', 'hostingPROD-amplify_e2e_tests', 'import_auth_1-amplify_e2e_tests', @@ -278,7 +281,7 @@ function splitTests( ...newJob.environment, AMPLIFY_DIR: '/home/circleci/repo/packages/amplify-cli/bin', AMPLIFY_PATH: '/home/circleci/repo/packages/amplify-cli/bin/amplify', - } + }; } return { ...acc, [newJobName]: newJob }; }, {}); From b1229477e871a7e4724131bb709f55f5f77358cb Mon Sep 17 00:00:00 2001 From: Edward Foyle Date: Wed, 29 Sep 2021 09:51:18 -0700 Subject: [PATCH 11/30] test: revert test timeout change (#8301) --- .circleci/config.base.yml | 2 +- .circleci/config.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.base.yml b/.circleci/config.base.yml index 13857ca2d10..47dc07a584e 100644 --- a/.circleci/config.base.yml +++ b/.circleci/config.base.yml @@ -320,7 +320,7 @@ jobs: changeNpmGlobalPath cd packages/amplify-migration-tests yarn run migration_v4.0.0 --maxWorkers=3 $TEST_SUITE - no_output_timeout: 30m + no_output_timeout: 90m - run: *scan_e2e_test_artifacts - store_test_results: path: packages/amplify-migration-tests/ diff --git a/.circleci/config.yml b/.circleci/config.yml index 3e85d3a8ee0..b973c178acf 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -419,7 +419,7 @@ jobs: changeNpmGlobalPath cd packages/amplify-migration-tests yarn run migration_v4.0.0 --maxWorkers=3 $TEST_SUITE - no_output_timeout: 30m + no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts command: | From eaee9e544db880afccce1474bd93bc4ccba4099d Mon Sep 17 00:00:00 2001 From: John Corser Date: Wed, 29 Sep 2021 17:42:33 -0400 Subject: [PATCH 12/30] Automatically retry CircleCi e2e tasks (#8306) --- .circleci/config.base.yml | 179 +- .circleci/config.yml | 8188 +++++++++++------ .circleci/local_publish_helpers.sh | 154 +- .../src/__tests__/api_2.test.ts | 153 - .../src/__tests__/api_5.test.ts | 192 + .../src/__tests__/auth_1.test.ts | 29 - .../src/__tests__/auth_5.test.ts | 50 - .../src/__tests__/auth_7.test.ts | 96 + .../src/__tests__/auth_8.test.ts | 62 + .../src/__tests__/function_2.test.ts | 250 - .../src/__tests__/function_4.test.ts | 165 - .../src/__tests__/function_8.test.ts | 192 + .../src/__tests__/function_9.test.ts | 298 + .../src/__tests__/import_auth_1.test.ts | 188 - .../src/__tests__/import_auth_3.test.ts | 319 + .../src/__tests__/import_dynamodb_1.test.ts | 133 - .../src/__tests__/import_dynamodb_2.test.ts | 252 + .../src/__tests__/import_s3_1.test.ts | 131 - .../src/__tests__/import_s3_2.test.ts | 250 + .../{layer.test.ts => layer-1.test.ts} | 197 +- .../src/__tests__/layer-3.test.ts | 158 + .../src/__tests__/layer-4.test.ts | 101 + .../api.connection.migration.test.ts | 36 - .../api.connection.migration2.test.ts | 51 + .../src/__tests__/schema-auth-1.test.ts | 10 - .../src/__tests__/schema-auth-12.test.ts | 25 + .../src/__tests__/schema-auth-13.test.ts | 26 + .../src/__tests__/schema-auth-2.test.ts | 9 - ...tion.test.ts => schema-function-1.test.ts} | 10 - .../src/__tests__/schema-function-2.test.ts | 26 + .../{storage.test.ts => storage-1.test.ts} | 65 - .../src/__tests__/storage-2.test.ts | 37 + .../src/__tests__/storage-3.test.ts | 62 + .../api.key.migration-2.test.ts | 42 + .../api.key.migration.test.ts | 17 - scripts/split-e2e-tests.ts | 30 +- 36 files changed, 7856 insertions(+), 4327 deletions(-) create mode 100644 packages/amplify-e2e-tests/src/__tests__/api_5.test.ts create mode 100644 packages/amplify-e2e-tests/src/__tests__/auth_7.test.ts create mode 100644 packages/amplify-e2e-tests/src/__tests__/auth_8.test.ts create mode 100644 packages/amplify-e2e-tests/src/__tests__/function_8.test.ts create mode 100644 packages/amplify-e2e-tests/src/__tests__/function_9.test.ts create mode 100644 packages/amplify-e2e-tests/src/__tests__/import_auth_3.test.ts create mode 100644 packages/amplify-e2e-tests/src/__tests__/import_dynamodb_2.test.ts create mode 100644 packages/amplify-e2e-tests/src/__tests__/import_s3_2.test.ts rename packages/amplify-e2e-tests/src/__tests__/{layer.test.ts => layer-1.test.ts} (53%) create mode 100644 packages/amplify-e2e-tests/src/__tests__/layer-3.test.ts create mode 100644 packages/amplify-e2e-tests/src/__tests__/layer-4.test.ts create mode 100644 packages/amplify-e2e-tests/src/__tests__/migration/api.connection.migration2.test.ts create mode 100644 packages/amplify-e2e-tests/src/__tests__/schema-auth-12.test.ts create mode 100644 packages/amplify-e2e-tests/src/__tests__/schema-auth-13.test.ts rename packages/amplify-e2e-tests/src/__tests__/{schema-function.test.ts => schema-function-1.test.ts} (74%) create mode 100644 packages/amplify-e2e-tests/src/__tests__/schema-function-2.test.ts rename packages/amplify-e2e-tests/src/__tests__/{storage.test.ts => storage-1.test.ts} (59%) create mode 100644 packages/amplify-e2e-tests/src/__tests__/storage-2.test.ts create mode 100644 packages/amplify-e2e-tests/src/__tests__/storage-3.test.ts create mode 100644 packages/amplify-migration-tests/src/__tests__/migration_tests/transformer_migration/api.key.migration-2.test.ts diff --git a/.circleci/config.base.yml b/.circleci/config.base.yml index 47dc07a584e..95c082649e0 100644 --- a/.circleci/config.base.yml +++ b/.circleci/config.base.yml @@ -10,7 +10,7 @@ executors: machine: image: 'windows-server-2019-vs2019:stable' resource_class: 'windows.large' - shell: powershell.exe + shell: bash.exe working_directory: ~/repo environment: AMPLIFY_DIR: C:/home/circleci/repo/out @@ -51,21 +51,6 @@ scan_e2e_test_artifacts: &scan_e2e_test_artifacts fi when: always -run_e2e_tests: &run_e2e_tests - name: Run Amplify end-to-end tests - command: | - source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl - no_output_timeout: 90m - install_cli_from_local_registery: &install_cli_from_local_registery name: Start verdaccio, install node CLI and amplify-app command: | @@ -134,7 +119,10 @@ jobs: command: sudo apt-get update && sudo apt-get install default-jdk - run: name: Run Transformer end-to-end tests with mock server - command: cd packages/amplify-util-mock/ && yarn e2e + command: | + source .circleci/local_publish_helpers.sh + cd packages/amplify-util-mock/ + yarn e2e no_output_timeout: 90m environment: JEST_JUNIT_OUTPUT: 'reports/junit/js-test-results.xml' @@ -213,7 +201,10 @@ jobs: key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} - run: name: Run GraphQL end-to-end tests - command: cd packages/graphql-transformers-e2e-tests/ && yarn e2e --maxWorkers=3 + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -254,7 +245,12 @@ jobs: - restore_cache: key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - run: *install_cli_from_local_registery - - run: *run_e2e_tests + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + retry runE2eTest + no_output_timeout: 90m - run: *scan_e2e_test_artifacts - store_test_results: path: packages/amplify-e2e-tests/ @@ -345,7 +341,7 @@ jobs: source .circleci/local_publish_helpers.sh changeNpmGlobalPath cd packages/amplify-migration-tests - yarn run migration_v4.28.2_nonmultienv_layers --maxWorkers=3 $TEST_SUITE + retry yarn run migration_v4.28.2_nonmultienv_layers --maxWorkers=3 $TEST_SUITE no_output_timeout: 90m - run: *scan_e2e_test_artifacts - store_test_results: @@ -371,7 +367,7 @@ jobs: source .circleci/local_publish_helpers.sh changeNpmGlobalPath cd packages/amplify-migration-tests - yarn run migration_v4.52.0_multienv_layers --maxWorkers=3 $TEST_SUITE + retry yarn run migration_v4.52.0_multienv_layers --maxWorkers=3 $TEST_SUITE no_output_timeout: 90m - run: *scan_e2e_test_artifacts - store_test_results: @@ -400,7 +396,7 @@ jobs: source .circleci/local_publish_helpers.sh changeNpmGlobalPath cd packages/amplify-migration-tests - yarn run migration_v4.30.0_auth --maxWorkers=3 + retry yarn run migration_v4.30.0_auth --maxWorkers=3 no_output_timeout: 90m - run: *scan_e2e_test_artifacts - store_test_results: @@ -447,9 +443,10 @@ jobs: command: | echo "export PATH=~/.npm-global/bin:$PATH" >> $BASH_ENV source $BASH_ENV + source .circleci/local_publish_helpers.sh amplify -v cd packages/amplify-console-integration-tests - yarn run console-integration --maxWorkers=3 + retry yarn run console-integration --maxWorkers=3 name: 'Run Amplify Console integration tests' no_output_timeout: 90m - run: *scan_e2e_test_artifacts @@ -734,7 +731,7 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build - mock_e2e_tests @@ -748,7 +745,7 @@ workflows: - master - beta - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build - mock_e2e_tests @@ -760,7 +757,7 @@ workflows: - beta - release - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build - build_pkg_binaries: @@ -775,7 +772,7 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ - amplify_e2e_tests: context: - amplify-ecr-image-pull @@ -789,7 +786,7 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry - done_with_node_e2e_tests: @@ -806,7 +803,7 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries - done_with_pkg_e2e_tests: @@ -823,7 +820,7 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build - build_pkg_binaries @@ -838,7 +835,7 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build - build_pkg_binaries @@ -853,7 +850,7 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build - build_pkg_binaries @@ -868,7 +865,7 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build - build_pkg_binaries @@ -883,7 +880,7 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build - build_pkg_binaries @@ -978,12 +975,14 @@ commands: equal: [*windows-e2e-executor, << parameters.os >>] steps: - run: + shell: powershell.exe name: Rename the Packaged CLI to amplify command: | # rename the command to amplify cd /home/circleci/repo/out cp amplify-pkg-win.exe amplify.exe - run: + shell: powershell.exe name: Move to CLI Binary to already existing PATH command: | # This is a Hack to make sure the Amplify CLI is in the PATH @@ -1022,7 +1021,9 @@ commands: - run: nvm use 12.22.5 - run: npm install -g yarn - run: yarn --cache-folder ~/.cache/yarn - - run: cp /home/circleci/repo/out/amplify-pkg-win.exe $env:homedrive\$env:homepath\AppData\Local\Microsoft\WindowsApps\amplify.exe + - run: + shell: powershell.exe + command: cp /home/circleci/repo/out/amplify-pkg-win.exe $env:homedrive\$env:homepath\AppData\Local\Microsoft\WindowsApps\amplify.exe install_java: description: 'Install Java on Linux and Docker images' parameters: @@ -1046,38 +1047,14 @@ commands: type: executor default: linux-e2e-executor steps: - - when: - condition: - equal: [*windows-e2e-executor, << parameters.os >>] - steps: - - run: - name: Run E2E tests - shell: bash.exe - command: | - source .circleci/local_publish_helpers.sh - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - no_output_timeout: 90m - - when: - condition: - equal: [*linux-e2e-executor, << parameters.os >>] - steps: - - run: - name: Shuffle AWS Credentials - command: | - source .circleci/local_publish_helpers.sh - setAwsAccountCredentials - - run: - name: Run E2E tests - command: | - source $BASH_ENV - amplify version - source .circleci/local_publish_helpers.sh - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - no_output_timeout: 90m + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + source $BASH_ENV + amplify version + retry runE2eTest + no_output_timeout: 90m scan_e2e_test_artifacts: description: 'Scan And Cleanup E2E Test Artifacts' parameters: @@ -1085,34 +1062,15 @@ commands: type: executor default: linux-e2e-executor steps: - - when: - condition: - equal: [*windows-e2e-executor, << parameters.os >>] - steps: - - run: - name: Scan E2E artifacts - shell: bash.exe - command: | - if ! yarn ts-node .circleci/scan_artifacts.ts; then - echo "Cleaning the repository" - git clean -fdx - exit 1 - fi - when: always - - - when: - condition: - equal: [*linux-e2e-executor, << parameters.os >>] - steps: - - run: - name: Scan E2E artifacts - command: | - if ! yarn ts-node .circleci/scan_artifacts.ts; then - echo "Cleaning the repository" - git clean -fdx - exit 1 - fi - when: always + - run: + name: Scan E2E artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always clean_e2e_resources: description: Cleanup resources parameters: @@ -1120,27 +1078,10 @@ commands: type: executor default: linux-e2e-executor steps: - - when: - condition: - equal: [*windows-e2e-executor, << parameters.os >>] - steps: - - run: - name: Scan E2E artifacts - shell: bash.exe - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - when: always - - - when: - condition: - equal: [*linux-e2e-executor, << parameters.os >>] - steps: - - run: - name: Scan E2E artifacts - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - when: always + - run: + name: Scan E2E artifacts + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + when: always diff --git a/.circleci/config.yml b/.circleci/config.yml index b973c178acf..b412ca6e45a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,7 +10,7 @@ executors: machine: image: windows-server-2019-vs2019:stable resource_class: windows.large - shell: powershell.exe + shell: bash.exe working_directory: ~/repo environment: AMPLIFY_DIR: C:/home/circleci/repo/out @@ -46,20 +46,6 @@ scan_e2e_test_artifacts: exit 1 fi when: always -run_e2e_tests: - name: Run Amplify end-to-end tests - command: | - source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl - no_output_timeout: 90m install_cli_from_local_registery: name: Start verdaccio, install node CLI and amplify-app command: | @@ -153,7 +139,10 @@ jobs: command: sudo apt-get update && sudo apt-get install default-jdk - run: name: Run Transformer end-to-end tests with mock server - command: cd packages/amplify-util-mock/ && yarn e2e + command: | + source .circleci/local_publish_helpers.sh + cd packages/amplify-util-mock/ + yarn e2e no_output_timeout: 90m environment: JEST_JUNIT_OUTPUT: reports/junit/js-test-results.xml @@ -252,9 +241,10 @@ jobs: arch }} - run: name: Run GraphQL end-to-end tests - command: >- - cd packages/graphql-transformers-e2e-tests/ && yarn e2e - --maxWorkers=3 + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -316,18 +306,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -460,7 +442,7 @@ jobs: cd packages/amplify-migration-tests - yarn run migration_v4.28.2_nonmultienv_layers --maxWorkers=3 + retry yarn run migration_v4.28.2_nonmultienv_layers --maxWorkers=3 $TEST_SUITE no_output_timeout: 90m - run: @@ -503,7 +485,7 @@ jobs: cd packages/amplify-migration-tests - yarn run migration_v4.52.0_multienv_layers --maxWorkers=3 + retry yarn run migration_v4.52.0_multienv_layers --maxWorkers=3 $TEST_SUITE no_output_timeout: 90m - run: @@ -546,7 +528,7 @@ jobs: source .circleci/local_publish_helpers.sh changeNpmGlobalPath cd packages/amplify-migration-tests - yarn run migration_v4.30.0_auth --maxWorkers=3 + retry yarn run migration_v4.30.0_auth --maxWorkers=3 no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -626,9 +608,10 @@ jobs: command: | echo "export PATH=~/.npm-global/bin:$PATH" >> $BASH_ENV source $BASH_ENV + source .circleci/local_publish_helpers.sh amplify -v cd packages/amplify-console-integration-tests - yarn run console-integration --maxWorkers=3 + retry yarn run console-integration --maxWorkers=3 name: Run Amplify Console integration tests no_output_timeout: 90m - run: @@ -961,18 +944,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -1021,18 +996,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -1052,7 +1019,7 @@ jobs: CLI_REGION: us-west-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - configure-project-amplify_e2e_tests: + auth_7-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -1081,18 +1048,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -1108,11 +1067,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/configure-project.test.ts + TEST_SUITE: src/__tests__/auth_7.test.ts CLI_REGION: eu-west-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - container-hosting-amplify_e2e_tests: + auth_8-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -1141,18 +1100,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -1168,11 +1119,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/container-hosting.test.ts + TEST_SUITE: src/__tests__/auth_8.test.ts CLI_REGION: eu-central-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - frontend_config_drift-amplify_e2e_tests: + configure-project-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -1201,18 +1152,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -1228,11 +1171,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/frontend_config_drift.test.ts + TEST_SUITE: src/__tests__/configure-project.test.ts CLI_REGION: ap-northeast-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - function_5-amplify_e2e_tests: + container-hosting-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -1261,18 +1204,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -1288,11 +1223,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/function_5.test.ts + TEST_SUITE: src/__tests__/container-hosting.test.ts CLI_REGION: ap-southeast-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - function_6-amplify_e2e_tests: + frontend_config_drift-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -1321,18 +1256,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -1348,11 +1275,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/function_6.test.ts + TEST_SUITE: src/__tests__/frontend_config_drift.test.ts CLI_REGION: ap-southeast-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - function_7-amplify_e2e_tests: + function_5-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -1381,18 +1308,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -1408,11 +1327,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/function_7.test.ts + TEST_SUITE: src/__tests__/function_5.test.ts CLI_REGION: us-east-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - hooks-amplify_e2e_tests: + function_6-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -1441,18 +1360,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -1468,11 +1379,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/hooks.test.ts + TEST_SUITE: src/__tests__/function_6.test.ts CLI_REGION: us-west-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - iam-permissions-boundary-amplify_e2e_tests: + function_7-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -1501,18 +1412,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -1528,11 +1431,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/iam-permissions-boundary.test.ts + TEST_SUITE: src/__tests__/function_7.test.ts CLI_REGION: eu-west-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - layer-2-amplify_e2e_tests: + function_8-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -1561,18 +1464,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -1588,11 +1483,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/layer-2.test.ts + TEST_SUITE: src/__tests__/function_8.test.ts CLI_REGION: eu-central-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - migration-node-function-amplify_e2e_tests: + function_9-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -1621,18 +1516,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -1648,11 +1535,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/migration/node.function.test.ts + TEST_SUITE: src/__tests__/function_9.test.ts CLI_REGION: ap-northeast-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - pull-amplify_e2e_tests: + hooks-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -1681,18 +1568,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -1708,11 +1587,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/pull.test.ts + TEST_SUITE: src/__tests__/hooks.test.ts CLI_REGION: ap-southeast-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - s3-sse-amplify_e2e_tests: + iam-permissions-boundary-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -1741,18 +1620,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -1768,11 +1639,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/s3-sse.test.ts + TEST_SUITE: src/__tests__/iam-permissions-boundary.test.ts CLI_REGION: ap-southeast-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-iterative-update-locking-amplify_e2e_tests: + import_auth_3-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -1801,18 +1672,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -1828,11 +1691,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-iterative-update-locking.test.ts + TEST_SUITE: src/__tests__/import_auth_3.test.ts CLI_REGION: us-east-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - plugin-amplify_e2e_tests: + import_dynamodb_2-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -1861,18 +1724,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -1888,11 +1743,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/plugin.test.ts + TEST_SUITE: src/__tests__/import_dynamodb_2.test.ts CLI_REGION: us-west-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - init-special-case-amplify_e2e_tests: + import_s3_2-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -1921,18 +1776,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -1948,11 +1795,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/init-special-case.test.ts + TEST_SUITE: src/__tests__/import_s3_2.test.ts CLI_REGION: eu-west-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - datastore-modelgen-amplify_e2e_tests: + layer-1-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -1981,18 +1828,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -2008,11 +1847,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/datastore-modelgen.test.ts + TEST_SUITE: src/__tests__/layer-1.test.ts CLI_REGION: eu-central-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - amplify-configure-amplify_e2e_tests: + layer-2-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -2041,18 +1880,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -2068,11 +1899,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/amplify-configure.test.ts + TEST_SUITE: src/__tests__/layer-2.test.ts CLI_REGION: ap-northeast-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - init-amplify_e2e_tests: + layer-3-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -2101,18 +1932,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -2128,11 +1951,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/init.test.ts + TEST_SUITE: src/__tests__/layer-3.test.ts CLI_REGION: ap-southeast-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - tags-amplify_e2e_tests: + layer-4-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -2161,18 +1984,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -2188,11 +2003,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/tags.test.ts + TEST_SUITE: src/__tests__/layer-4.test.ts CLI_REGION: ap-southeast-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - notifications-amplify_e2e_tests: + migration-api-connection-migration2-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -2221,18 +2036,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -2248,11 +2055,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/notifications.test.ts + TEST_SUITE: src/__tests__/migration/api.connection.migration2.test.ts CLI_REGION: us-east-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-versioned-amplify_e2e_tests: + migration-node-function-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -2281,18 +2088,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -2308,11 +2107,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-versioned.test.ts + TEST_SUITE: src/__tests__/migration/node.function.test.ts CLI_REGION: us-west-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-data-access-patterns-amplify_e2e_tests: + pull-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -2341,18 +2140,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -2368,11 +2159,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-data-access-patterns.test.ts + TEST_SUITE: src/__tests__/pull.test.ts CLI_REGION: eu-west-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - interactions-amplify_e2e_tests: + s3-sse-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -2401,18 +2192,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -2428,11 +2211,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/interactions.test.ts - CLI_REGION: us-west-2 + TEST_SUITE: src/__tests__/s3-sse.test.ts + CLI_REGION: eu-central-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-predictions-amplify_e2e_tests: + schema-auth-12-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -2461,18 +2244,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -2488,11 +2263,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-predictions.test.ts + TEST_SUITE: src/__tests__/schema-auth-12.test.ts CLI_REGION: ap-northeast-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - amplify-app-amplify_e2e_tests: + schema-auth-13-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -2521,18 +2296,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -2548,11 +2315,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/amplify-app.test.ts + TEST_SUITE: src/__tests__/schema-auth-13.test.ts CLI_REGION: ap-southeast-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - hosting-amplify_e2e_tests: + schema-function-1-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -2581,18 +2348,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -2608,11 +2367,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/hosting.test.ts + TEST_SUITE: src/__tests__/schema-function-1.test.ts CLI_REGION: ap-southeast-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - analytics-amplify_e2e_tests: + schema-function-2-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -2641,18 +2400,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -2668,11 +2419,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/analytics.test.ts + TEST_SUITE: src/__tests__/schema-function-2.test.ts CLI_REGION: us-east-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - feature-flags-amplify_e2e_tests: + schema-iterative-update-locking-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -2701,18 +2452,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -2728,11 +2471,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/feature-flags.test.ts + TEST_SUITE: src/__tests__/schema-iterative-update-locking.test.ts CLI_REGION: us-west-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-iterative-update-2-amplify_e2e_tests: + storage-1-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -2761,18 +2504,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -2788,11 +2523,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-iterative-update-2.test.ts + TEST_SUITE: src/__tests__/storage-1.test.ts CLI_REGION: eu-west-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - containers-api-amplify_e2e_tests: + storage-2-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -2821,18 +2556,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -2848,11 +2575,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/containers-api.test.ts + TEST_SUITE: src/__tests__/storage-2.test.ts CLI_REGION: eu-central-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - predictions-amplify_e2e_tests: + storage-3-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -2881,18 +2608,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -2908,11 +2627,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/predictions.test.ts + TEST_SUITE: src/__tests__/storage-3.test.ts CLI_REGION: ap-northeast-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - hostingPROD-amplify_e2e_tests: + plugin-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -2941,18 +2660,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -2968,11 +2679,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/hostingPROD.test.ts + TEST_SUITE: src/__tests__/plugin.test.ts CLI_REGION: ap-southeast-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - geo-add-amplify_e2e_tests: + init-special-case-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -3001,18 +2712,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -3028,11 +2731,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/geo-add.test.ts - CLI_REGION: ap-southeast-1 + TEST_SUITE: src/__tests__/init-special-case.test.ts + CLI_REGION: ap-southeast-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - geo-update-amplify_e2e_tests: + datastore-modelgen-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -3061,18 +2764,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -3088,11 +2783,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/geo-update.test.ts - CLI_REGION: ap-southeast-2 + TEST_SUITE: src/__tests__/datastore-modelgen.test.ts + CLI_REGION: us-east-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - geo-remove-amplify_e2e_tests: + amplify-configure-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -3121,18 +2816,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -3148,11 +2835,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/geo-remove.test.ts - CLI_REGION: us-east-2 + TEST_SUITE: src/__tests__/amplify-configure.test.ts + CLI_REGION: us-west-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-auth-10-amplify_e2e_tests: + init-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -3181,18 +2868,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -3208,11 +2887,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-auth-10.test.ts + TEST_SUITE: src/__tests__/init.test.ts CLI_REGION: eu-west-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-key-amplify_e2e_tests: + tags-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -3241,18 +2920,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -3268,11 +2939,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-key.test.ts + TEST_SUITE: src/__tests__/tags.test.ts CLI_REGION: eu-central-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - auth_1-amplify_e2e_tests: + notifications-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -3301,18 +2972,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -3328,11 +2991,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/auth_1.test.ts + TEST_SUITE: src/__tests__/notifications.test.ts CLI_REGION: ap-northeast-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - auth_5-amplify_e2e_tests: + schema-versioned-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -3361,18 +3024,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -3388,11 +3043,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/auth_5.test.ts + TEST_SUITE: src/__tests__/schema-versioned.test.ts CLI_REGION: ap-southeast-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - function_3-amplify_e2e_tests: + schema-data-access-patterns-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -3421,18 +3076,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -3448,11 +3095,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/function_3.test.ts + TEST_SUITE: src/__tests__/schema-data-access-patterns.test.ts CLI_REGION: ap-southeast-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-iterative-update-1-amplify_e2e_tests: + interactions-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -3481,18 +3128,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -3508,11 +3147,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-iterative-update-1.test.ts - CLI_REGION: us-east-2 + TEST_SUITE: src/__tests__/interactions.test.ts + CLI_REGION: us-west-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-auth-3-amplify_e2e_tests: + schema-predictions-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -3541,18 +3180,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -3568,11 +3199,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-auth-3.test.ts + TEST_SUITE: src/__tests__/schema-predictions.test.ts CLI_REGION: us-west-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - delete-amplify_e2e_tests: + amplify-app-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -3601,18 +3232,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -3628,11 +3251,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/delete.test.ts + TEST_SUITE: src/__tests__/amplify-app.test.ts CLI_REGION: eu-west-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - function_2-amplify_e2e_tests: + hosting-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -3661,18 +3284,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -3688,11 +3303,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/function_2.test.ts + TEST_SUITE: src/__tests__/hosting.test.ts CLI_REGION: eu-central-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - auth_3-amplify_e2e_tests: + analytics-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -3721,18 +3336,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -3748,11 +3355,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/auth_3.test.ts + TEST_SUITE: src/__tests__/analytics.test.ts CLI_REGION: ap-northeast-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - layer-amplify_e2e_tests: + feature-flags-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -3781,18 +3388,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -3808,11 +3407,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/layer.test.ts + TEST_SUITE: src/__tests__/feature-flags.test.ts CLI_REGION: ap-southeast-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - migration-api-key-migration1-amplify_e2e_tests: + schema-iterative-update-2-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -3841,18 +3440,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -3868,11 +3459,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/migration/api.key.migration1.test.ts + TEST_SUITE: src/__tests__/schema-iterative-update-2.test.ts CLI_REGION: ap-southeast-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - auth_4-amplify_e2e_tests: + containers-api-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -3901,18 +3492,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -3928,11 +3511,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/auth_4.test.ts + TEST_SUITE: src/__tests__/containers-api.test.ts CLI_REGION: us-east-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-auth-7-amplify_e2e_tests: + predictions-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -3961,18 +3544,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -3988,11 +3563,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-auth-7.test.ts + TEST_SUITE: src/__tests__/predictions.test.ts CLI_REGION: us-west-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-auth-8-amplify_e2e_tests: + hostingPROD-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -4021,18 +3596,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -4048,11 +3615,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-auth-8.test.ts + TEST_SUITE: src/__tests__/hostingPROD.test.ts CLI_REGION: eu-west-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-searchable-amplify_e2e_tests: + geo-add-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -4081,18 +3648,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -4108,11 +3667,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-searchable.test.ts - CLI_REGION: eu-central-1 + TEST_SUITE: src/__tests__/geo-add.test.ts + CLI_REGION: ap-southeast-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-auth-4-amplify_e2e_tests: + geo-update-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -4141,18 +3700,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -4168,11 +3719,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-auth-4.test.ts - CLI_REGION: ap-northeast-1 + TEST_SUITE: src/__tests__/geo-update.test.ts + CLI_REGION: ap-southeast-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - api_3-amplify_e2e_tests: + geo-remove-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -4201,18 +3752,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -4228,11 +3771,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/api_3.test.ts - CLI_REGION: ap-southeast-1 + TEST_SUITE: src/__tests__/geo-remove.test.ts + CLI_REGION: us-east-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - import_auth_1-amplify_e2e_tests: + schema-auth-10-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -4261,18 +3804,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -4288,11 +3823,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/import_auth_1.test.ts + TEST_SUITE: src/__tests__/schema-auth-10.test.ts CLI_REGION: ap-southeast-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - import_auth_2-amplify_e2e_tests: + schema-key-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -4321,18 +3856,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -4348,11 +3875,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/import_auth_2.test.ts + TEST_SUITE: src/__tests__/schema-key.test.ts CLI_REGION: us-east-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - import_s3_1-amplify_e2e_tests: + auth_1-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -4381,18 +3908,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -4408,12 +3927,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/import_s3_1.test.ts + TEST_SUITE: src/__tests__/auth_1.test.ts CLI_REGION: us-west-2 - USE_PARENT_ACCOUNT: 1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - import_dynamodb_1-amplify_e2e_tests: + auth_5-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -4442,18 +3960,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -4469,12 +3979,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/import_dynamodb_1.test.ts + TEST_SUITE: src/__tests__/auth_5.test.ts CLI_REGION: eu-west-2 - USE_PARENT_ACCOUNT: 1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-iterative-rollback-1-amplify_e2e_tests: + function_3-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -4503,18 +4012,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -4530,11 +4031,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-iterative-rollback-1.test.ts + TEST_SUITE: src/__tests__/function_3.test.ts CLI_REGION: eu-central-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-iterative-rollback-2-amplify_e2e_tests: + schema-iterative-update-1-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -4563,18 +4064,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -4590,11 +4083,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-iterative-rollback-2.test.ts + TEST_SUITE: src/__tests__/schema-iterative-update-1.test.ts CLI_REGION: ap-northeast-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - env-amplify_e2e_tests: + schema-auth-3-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -4623,18 +4116,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -4650,11 +4135,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/env.test.ts + TEST_SUITE: src/__tests__/schema-auth-3.test.ts CLI_REGION: ap-southeast-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - auth_2-amplify_e2e_tests: + delete-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -4683,18 +4168,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -4710,12 +4187,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/auth_2.test.ts + TEST_SUITE: src/__tests__/delete.test.ts CLI_REGION: ap-southeast-2 - USE_PARENT_ACCOUNT: 1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-auth-9-amplify_e2e_tests: + function_2-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -4744,18 +4220,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -4771,11 +4239,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-auth-9.test.ts + TEST_SUITE: src/__tests__/function_2.test.ts CLI_REGION: us-east-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-auth-11-amplify_e2e_tests: + auth_3-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -4804,18 +4272,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -4831,11 +4291,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-auth-11.test.ts + TEST_SUITE: src/__tests__/auth_3.test.ts CLI_REGION: us-west-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - migration-api-key-migration2-amplify_e2e_tests: + migration-api-key-migration1-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -4864,18 +4324,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -4891,12 +4343,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/migration/api.key.migration2.test.ts + TEST_SUITE: src/__tests__/migration/api.key.migration1.test.ts CLI_REGION: eu-west-2 - USE_PARENT_ACCOUNT: 1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - function_1-amplify_e2e_tests: + auth_4-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -4925,18 +4376,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -4952,11 +4395,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/function_1.test.ts + TEST_SUITE: src/__tests__/auth_4.test.ts CLI_REGION: eu-central-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-auth-1-amplify_e2e_tests: + schema-auth-7-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -4985,18 +4428,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -5012,11 +4447,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-auth-1.test.ts + TEST_SUITE: src/__tests__/schema-auth-7.test.ts CLI_REGION: ap-northeast-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - function_4-amplify_e2e_tests: + schema-auth-8-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -5045,18 +4480,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -5072,11 +4499,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/function_4.test.ts + TEST_SUITE: src/__tests__/schema-auth-8.test.ts CLI_REGION: ap-southeast-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-function-amplify_e2e_tests: + schema-searchable-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -5105,18 +4532,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -5132,11 +4551,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-function.test.ts + TEST_SUITE: src/__tests__/schema-searchable.test.ts CLI_REGION: ap-southeast-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-model-amplify_e2e_tests: + schema-auth-4-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -5165,18 +4584,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -5192,11 +4603,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-model.test.ts + TEST_SUITE: src/__tests__/schema-auth-4.test.ts CLI_REGION: us-east-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - migration-api-connection-migration-amplify_e2e_tests: + api_3-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -5225,18 +4636,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -5252,11 +4655,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/migration/api.connection.migration.test.ts + TEST_SUITE: src/__tests__/api_3.test.ts CLI_REGION: us-west-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-connection-amplify_e2e_tests: + import_auth_1-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -5285,18 +4688,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -5312,11 +4707,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-connection.test.ts + TEST_SUITE: src/__tests__/import_auth_1.test.ts CLI_REGION: eu-west-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-auth-6-amplify_e2e_tests: + import_auth_2-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -5345,18 +4740,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -5372,11 +4759,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-auth-6.test.ts + TEST_SUITE: src/__tests__/import_auth_2.test.ts CLI_REGION: eu-central-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-iterative-update-3-amplify_e2e_tests: + import_s3_1-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -5405,18 +4792,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -5432,11 +4811,12 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-iterative-update-3.test.ts + TEST_SUITE: src/__tests__/import_s3_1.test.ts CLI_REGION: ap-northeast-1 + USE_PARENT_ACCOUNT: 1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-auth-2-amplify_e2e_tests: + import_dynamodb_1-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -5465,18 +4845,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -5492,11 +4864,12 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-auth-2.test.ts + TEST_SUITE: src/__tests__/import_dynamodb_1.test.ts CLI_REGION: ap-southeast-1 + USE_PARENT_ACCOUNT: 1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - api_1-amplify_e2e_tests: + schema-iterative-rollback-1-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -5525,18 +4898,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -5552,12 +4917,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/api_1.test.ts + TEST_SUITE: src/__tests__/schema-iterative-rollback-1.test.ts CLI_REGION: ap-southeast-2 - USE_PARENT_ACCOUNT: 1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-auth-5-amplify_e2e_tests: + schema-iterative-rollback-2-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -5586,18 +4950,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -5613,11 +4969,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-auth-5.test.ts + TEST_SUITE: src/__tests__/schema-iterative-rollback-2.test.ts CLI_REGION: us-east-2 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - storage-amplify_e2e_tests: + env-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -5646,18 +5002,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -5673,12 +5021,11 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/storage.test.ts + TEST_SUITE: src/__tests__/env.test.ts CLI_REGION: us-west-2 - USE_PARENT_ACCOUNT: 1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - api_2-amplify_e2e_tests: + auth_2-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -5707,18 +5054,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -5734,12 +5073,12 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/api_2.test.ts + TEST_SUITE: src/__tests__/auth_2.test.ts CLI_REGION: eu-west-2 USE_PARENT_ACCOUNT: 1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - schema-iterative-update-4-amplify_e2e_tests: + schema-auth-9-amplify_e2e_tests: working_directory: ~/repo parameters: os: @@ -5768,18 +5107,10 @@ jobs: npm install -g amplify-app unsetNpmRegistryUrl - run: - name: Run Amplify end-to-end tests + name: Run E2e Tests command: | source .circleci/local_publish_helpers.sh - changeNpmGlobalPath - amplify -v - amplify-app --version - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - unsetNpmRegistryUrl + retry runE2eTest no_output_timeout: 90m - run: name: Scan And Cleanup E2E Test Artifacts @@ -5795,17 +5126,17 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-iterative-update-4.test.ts + TEST_SUITE: src/__tests__/schema-auth-9.test.ts CLI_REGION: eu-central-1 AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify - api_4-amplify_e2e_tests_pkg: + schema-auth-11-amplify_e2e_tests: + working_directory: ~/repo parameters: os: type: executor - default: os.linux + default: linux executor: << parameters.os >> - working_directory: ~/repo steps: - attach_workspace: at: ./ @@ -5815,34 +5146,49 @@ jobs: arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - - restore_cache: - key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - - install_yarn: - os: << parameters.os >> - - install_packaged_cli: - os: << parameters.os >> - - run_e2e_tests: - os: << parameters.os >> - - scan_e2e_test_artifacts: - os: << parameters.os >> + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + retry runE2eTest + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-e2e-tests/ - store_artifacts: - path: packages/amplify-e2e-tests/amplify-e2e-reports - - clean_e2e_resources: - os: << parameters.os >> + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/api_4.test.ts - CLI_REGION: us-east-2 - auth_6-amplify_e2e_tests_pkg: + TEST_SUITE: src/__tests__/schema-auth-11.test.ts + CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + migration-api-key-migration2-amplify_e2e_tests: + working_directory: ~/repo parameters: os: type: executor - default: os.linux + default: linux executor: << parameters.os >> - working_directory: ~/repo steps: - attach_workspace: at: ./ @@ -5852,34 +5198,50 @@ jobs: arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - - restore_cache: - key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - - install_yarn: - os: << parameters.os >> - - install_packaged_cli: - os: << parameters.os >> - - run_e2e_tests: - os: << parameters.os >> - - scan_e2e_test_artifacts: - os: << parameters.os >> + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + retry runE2eTest + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-e2e-tests/ - store_artifacts: - path: packages/amplify-e2e-tests/amplify-e2e-reports - - clean_e2e_resources: - os: << parameters.os >> + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/auth_6.test.ts - CLI_REGION: us-west-2 - configure-project-amplify_e2e_tests_pkg: + TEST_SUITE: src/__tests__/migration/api.key.migration2.test.ts + CLI_REGION: ap-southeast-1 + USE_PARENT_ACCOUNT: 1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + function_1-amplify_e2e_tests: + working_directory: ~/repo parameters: os: type: executor - default: os.linux + default: linux executor: << parameters.os >> - working_directory: ~/repo steps: - attach_workspace: at: ./ @@ -5889,34 +5251,49 @@ jobs: arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - - restore_cache: - key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - - install_yarn: - os: << parameters.os >> - - install_packaged_cli: - os: << parameters.os >> - - run_e2e_tests: - os: << parameters.os >> - - scan_e2e_test_artifacts: - os: << parameters.os >> + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + retry runE2eTest + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-e2e-tests/ - store_artifacts: - path: packages/amplify-e2e-tests/amplify-e2e-reports - - clean_e2e_resources: - os: << parameters.os >> + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/configure-project.test.ts - CLI_REGION: eu-west-2 - container-hosting-amplify_e2e_tests_pkg: + TEST_SUITE: src/__tests__/function_1.test.ts + CLI_REGION: ap-southeast-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + schema-auth-1-amplify_e2e_tests: + working_directory: ~/repo parameters: os: type: executor - default: os.linux + default: linux executor: << parameters.os >> - working_directory: ~/repo steps: - attach_workspace: at: ./ @@ -5926,34 +5303,49 @@ jobs: arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - - restore_cache: - key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - - install_yarn: - os: << parameters.os >> - - install_packaged_cli: - os: << parameters.os >> - - run_e2e_tests: - os: << parameters.os >> - - scan_e2e_test_artifacts: - os: << parameters.os >> + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + retry runE2eTest + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-e2e-tests/ - store_artifacts: - path: packages/amplify-e2e-tests/amplify-e2e-reports - - clean_e2e_resources: - os: << parameters.os >> + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/container-hosting.test.ts - CLI_REGION: eu-central-1 - frontend_config_drift-amplify_e2e_tests_pkg: + TEST_SUITE: src/__tests__/schema-auth-1.test.ts + CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + function_4-amplify_e2e_tests: + working_directory: ~/repo parameters: os: type: executor - default: os.linux + default: linux executor: << parameters.os >> - working_directory: ~/repo steps: - attach_workspace: at: ./ @@ -5963,34 +5355,49 @@ jobs: arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - - restore_cache: - key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - - install_yarn: - os: << parameters.os >> - - install_packaged_cli: - os: << parameters.os >> - - run_e2e_tests: - os: << parameters.os >> - - scan_e2e_test_artifacts: - os: << parameters.os >> - - store_test_results: - path: packages/amplify-e2e-tests/ - - store_artifacts: - path: packages/amplify-e2e-tests/amplify-e2e-reports - - clean_e2e_resources: - os: << parameters.os >> - environment: - TEST_SUITE: src/__tests__/frontend_config_drift.test.ts - CLI_REGION: ap-northeast-1 - function_5-amplify_e2e_tests_pkg: + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + retry runE2eTest + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports + environment: + TEST_SUITE: src/__tests__/function_4.test.ts + CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + schema-model-amplify_e2e_tests: + working_directory: ~/repo parameters: os: type: executor - default: os.linux + default: linux executor: << parameters.os >> - working_directory: ~/repo steps: - attach_workspace: at: ./ @@ -6000,34 +5407,49 @@ jobs: arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - - restore_cache: - key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - - install_yarn: - os: << parameters.os >> - - install_packaged_cli: - os: << parameters.os >> - - run_e2e_tests: - os: << parameters.os >> - - scan_e2e_test_artifacts: - os: << parameters.os >> + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + retry runE2eTest + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-e2e-tests/ - store_artifacts: - path: packages/amplify-e2e-tests/amplify-e2e-reports - - clean_e2e_resources: - os: << parameters.os >> + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/function_5.test.ts - CLI_REGION: ap-southeast-1 - function_6-amplify_e2e_tests_pkg: + TEST_SUITE: src/__tests__/schema-model.test.ts + CLI_REGION: eu-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + migration-api-connection-migration-amplify_e2e_tests: + working_directory: ~/repo parameters: os: type: executor - default: os.linux + default: linux executor: << parameters.os >> - working_directory: ~/repo steps: - attach_workspace: at: ./ @@ -6037,34 +5459,49 @@ jobs: arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - - restore_cache: - key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - - install_yarn: - os: << parameters.os >> - - install_packaged_cli: - os: << parameters.os >> - - run_e2e_tests: - os: << parameters.os >> - - scan_e2e_test_artifacts: - os: << parameters.os >> + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + retry runE2eTest + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-e2e-tests/ - store_artifacts: - path: packages/amplify-e2e-tests/amplify-e2e-reports - - clean_e2e_resources: - os: << parameters.os >> + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/function_6.test.ts - CLI_REGION: ap-southeast-2 - function_7-amplify_e2e_tests_pkg: + TEST_SUITE: src/__tests__/migration/api.connection.migration.test.ts + CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + schema-connection-amplify_e2e_tests: + working_directory: ~/repo parameters: os: type: executor - default: os.linux + default: linux executor: << parameters.os >> - working_directory: ~/repo steps: - attach_workspace: at: ./ @@ -6074,34 +5511,49 @@ jobs: arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - - restore_cache: - key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - - install_yarn: - os: << parameters.os >> - - install_packaged_cli: - os: << parameters.os >> - - run_e2e_tests: - os: << parameters.os >> - - scan_e2e_test_artifacts: - os: << parameters.os >> + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + retry runE2eTest + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-e2e-tests/ - store_artifacts: - path: packages/amplify-e2e-tests/amplify-e2e-reports - - clean_e2e_resources: - os: << parameters.os >> + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/function_7.test.ts - CLI_REGION: us-east-2 - hooks-amplify_e2e_tests_pkg: + TEST_SUITE: src/__tests__/schema-connection.test.ts + CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + schema-auth-6-amplify_e2e_tests: + working_directory: ~/repo parameters: os: type: executor - default: os.linux + default: linux executor: << parameters.os >> - working_directory: ~/repo steps: - attach_workspace: at: ./ @@ -6111,34 +5563,49 @@ jobs: arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - - restore_cache: - key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - - install_yarn: - os: << parameters.os >> - - install_packaged_cli: - os: << parameters.os >> - - run_e2e_tests: - os: << parameters.os >> - - scan_e2e_test_artifacts: - os: << parameters.os >> + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + retry runE2eTest + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-e2e-tests/ - store_artifacts: - path: packages/amplify-e2e-tests/amplify-e2e-reports - - clean_e2e_resources: - os: << parameters.os >> + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/hooks.test.ts - CLI_REGION: us-west-2 - iam-permissions-boundary-amplify_e2e_tests_pkg: + TEST_SUITE: src/__tests__/schema-auth-6.test.ts + CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + schema-iterative-update-3-amplify_e2e_tests: + working_directory: ~/repo parameters: os: type: executor - default: os.linux + default: linux executor: << parameters.os >> - working_directory: ~/repo steps: - attach_workspace: at: ./ @@ -6148,34 +5615,49 @@ jobs: arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - - restore_cache: - key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - - install_yarn: - os: << parameters.os >> - - install_packaged_cli: - os: << parameters.os >> - - run_e2e_tests: - os: << parameters.os >> - - scan_e2e_test_artifacts: - os: << parameters.os >> - - store_test_results: - path: packages/amplify-e2e-tests/ - - store_artifacts: - path: packages/amplify-e2e-tests/amplify-e2e-reports - - clean_e2e_resources: - os: << parameters.os >> - environment: - TEST_SUITE: src/__tests__/iam-permissions-boundary.test.ts - CLI_REGION: eu-west-2 - layer-2-amplify_e2e_tests_pkg: - parameters: - os: + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + retry runE2eTest + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports + environment: + TEST_SUITE: src/__tests__/schema-iterative-update-3.test.ts + CLI_REGION: ap-southeast-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + schema-auth-2-amplify_e2e_tests: + working_directory: ~/repo + parameters: + os: type: executor - default: os.linux + default: linux executor: << parameters.os >> - working_directory: ~/repo steps: - attach_workspace: at: ./ @@ -6185,34 +5667,49 @@ jobs: arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - - restore_cache: - key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - - install_yarn: - os: << parameters.os >> - - install_packaged_cli: - os: << parameters.os >> - - run_e2e_tests: - os: << parameters.os >> - - scan_e2e_test_artifacts: - os: << parameters.os >> + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + retry runE2eTest + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-e2e-tests/ - store_artifacts: - path: packages/amplify-e2e-tests/amplify-e2e-reports - - clean_e2e_resources: - os: << parameters.os >> + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/layer-2.test.ts - CLI_REGION: eu-central-1 - migration-node-function-amplify_e2e_tests_pkg: + TEST_SUITE: src/__tests__/schema-auth-2.test.ts + CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + api_1-amplify_e2e_tests: + working_directory: ~/repo parameters: os: type: executor - default: os.linux + default: linux executor: << parameters.os >> - working_directory: ~/repo steps: - attach_workspace: at: ./ @@ -6222,34 +5719,50 @@ jobs: arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - - restore_cache: - key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - - install_yarn: - os: << parameters.os >> - - install_packaged_cli: - os: << parameters.os >> - - run_e2e_tests: - os: << parameters.os >> - - scan_e2e_test_artifacts: - os: << parameters.os >> + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + retry runE2eTest + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-e2e-tests/ - store_artifacts: - path: packages/amplify-e2e-tests/amplify-e2e-reports - - clean_e2e_resources: - os: << parameters.os >> + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/migration/node.function.test.ts - CLI_REGION: ap-northeast-1 - pull-amplify_e2e_tests_pkg: + TEST_SUITE: src/__tests__/api_1.test.ts + CLI_REGION: us-west-2 + USE_PARENT_ACCOUNT: 1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + schema-auth-5-amplify_e2e_tests: + working_directory: ~/repo parameters: os: type: executor - default: os.linux + default: linux executor: << parameters.os >> - working_directory: ~/repo steps: - attach_workspace: at: ./ @@ -6259,34 +5772,49 @@ jobs: arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - - restore_cache: - key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - - install_yarn: - os: << parameters.os >> - - install_packaged_cli: - os: << parameters.os >> - - run_e2e_tests: - os: << parameters.os >> - - scan_e2e_test_artifacts: - os: << parameters.os >> + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + retry runE2eTest + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-e2e-tests/ - store_artifacts: - path: packages/amplify-e2e-tests/amplify-e2e-reports - - clean_e2e_resources: - os: << parameters.os >> + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/pull.test.ts - CLI_REGION: ap-southeast-1 - s3-sse-amplify_e2e_tests_pkg: + TEST_SUITE: src/__tests__/schema-auth-5.test.ts + CLI_REGION: eu-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + api_2-amplify_e2e_tests: + working_directory: ~/repo parameters: os: type: executor - default: os.linux + default: linux executor: << parameters.os >> - working_directory: ~/repo steps: - attach_workspace: at: ./ @@ -6296,34 +5824,50 @@ jobs: arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - - restore_cache: - key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - - install_yarn: - os: << parameters.os >> - - install_packaged_cli: - os: << parameters.os >> - - run_e2e_tests: - os: << parameters.os >> - - scan_e2e_test_artifacts: - os: << parameters.os >> + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + retry runE2eTest + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-e2e-tests/ - store_artifacts: - path: packages/amplify-e2e-tests/amplify-e2e-reports - - clean_e2e_resources: - os: << parameters.os >> + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/s3-sse.test.ts - CLI_REGION: ap-southeast-2 - schema-iterative-update-locking-amplify_e2e_tests_pkg: + TEST_SUITE: src/__tests__/api_2.test.ts + CLI_REGION: eu-central-1 + USE_PARENT_ACCOUNT: 1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + api_5-amplify_e2e_tests: + working_directory: ~/repo parameters: os: type: executor - default: os.linux + default: linux executor: << parameters.os >> - working_directory: ~/repo steps: - attach_workspace: at: ./ @@ -6333,28 +5877,95 @@ jobs: arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - - restore_cache: - key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - - install_yarn: - os: << parameters.os >> - - install_packaged_cli: - os: << parameters.os >> - - run_e2e_tests: - os: << parameters.os >> - - scan_e2e_test_artifacts: - os: << parameters.os >> - - store_test_results: - path: packages/amplify-e2e-tests/ - - store_artifacts: - path: packages/amplify-e2e-tests/amplify-e2e-reports - - clean_e2e_resources: - os: << parameters.os >> - environment: - TEST_SUITE: src/__tests__/schema-iterative-update-locking.test.ts - CLI_REGION: us-east-2 - plugin-amplify_e2e_tests_pkg: + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + retry runE2eTest + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports + environment: + TEST_SUITE: src/__tests__/api_5.test.ts + CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + schema-iterative-update-4-amplify_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + retry runE2eTest + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports + environment: + TEST_SUITE: src/__tests__/schema-iterative-update-4.test.ts + CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + api_4-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6389,9 +6000,46 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/plugin.test.ts + TEST_SUITE: src/__tests__/api_4.test.ts + CLI_REGION: us-east-2 + auth_6-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/auth_6.test.ts CLI_REGION: us-west-2 - init-special-case-amplify_e2e_tests_pkg: + auth_7-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6426,9 +6074,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/init-special-case.test.ts + TEST_SUITE: src/__tests__/auth_7.test.ts CLI_REGION: eu-west-2 - datastore-modelgen-amplify_e2e_tests_pkg: + auth_8-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6463,9 +6111,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/datastore-modelgen.test.ts + TEST_SUITE: src/__tests__/auth_8.test.ts CLI_REGION: eu-central-1 - amplify-configure-amplify_e2e_tests_pkg: + configure-project-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6500,9 +6148,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/amplify-configure.test.ts + TEST_SUITE: src/__tests__/configure-project.test.ts CLI_REGION: ap-northeast-1 - init-amplify_e2e_tests_pkg: + container-hosting-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6537,9 +6185,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/init.test.ts + TEST_SUITE: src/__tests__/container-hosting.test.ts CLI_REGION: ap-southeast-1 - tags-amplify_e2e_tests_pkg: + frontend_config_drift-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6574,9 +6222,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/tags.test.ts + TEST_SUITE: src/__tests__/frontend_config_drift.test.ts CLI_REGION: ap-southeast-2 - notifications-amplify_e2e_tests_pkg: + function_5-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6611,9 +6259,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/notifications.test.ts + TEST_SUITE: src/__tests__/function_5.test.ts CLI_REGION: us-east-2 - schema-versioned-amplify_e2e_tests_pkg: + function_6-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6648,9 +6296,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-versioned.test.ts + TEST_SUITE: src/__tests__/function_6.test.ts CLI_REGION: us-west-2 - schema-data-access-patterns-amplify_e2e_tests_pkg: + function_7-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6685,9 +6333,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-data-access-patterns.test.ts + TEST_SUITE: src/__tests__/function_7.test.ts CLI_REGION: eu-west-2 - interactions-amplify_e2e_tests_pkg: + function_8-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6722,9 +6370,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/interactions.test.ts - CLI_REGION: us-west-2 - schema-predictions-amplify_e2e_tests_pkg: + TEST_SUITE: src/__tests__/function_8.test.ts + CLI_REGION: eu-central-1 + function_9-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6759,9 +6407,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-predictions.test.ts + TEST_SUITE: src/__tests__/function_9.test.ts CLI_REGION: ap-northeast-1 - amplify-app-amplify_e2e_tests_pkg: + hooks-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6796,9 +6444,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/amplify-app.test.ts + TEST_SUITE: src/__tests__/hooks.test.ts CLI_REGION: ap-southeast-1 - hosting-amplify_e2e_tests_pkg: + iam-permissions-boundary-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6833,9 +6481,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/hosting.test.ts + TEST_SUITE: src/__tests__/iam-permissions-boundary.test.ts CLI_REGION: ap-southeast-2 - analytics-amplify_e2e_tests_pkg: + import_auth_3-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6870,9 +6518,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/analytics.test.ts + TEST_SUITE: src/__tests__/import_auth_3.test.ts CLI_REGION: us-east-2 - feature-flags-amplify_e2e_tests_pkg: + import_dynamodb_2-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6907,9 +6555,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/feature-flags.test.ts + TEST_SUITE: src/__tests__/import_dynamodb_2.test.ts CLI_REGION: us-west-2 - schema-iterative-update-2-amplify_e2e_tests_pkg: + import_s3_2-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6944,9 +6592,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-iterative-update-2.test.ts + TEST_SUITE: src/__tests__/import_s3_2.test.ts CLI_REGION: eu-west-2 - containers-api-amplify_e2e_tests_pkg: + layer-1-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6981,9 +6629,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/containers-api.test.ts + TEST_SUITE: src/__tests__/layer-1.test.ts CLI_REGION: eu-central-1 - predictions-amplify_e2e_tests_pkg: + layer-2-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7018,9 +6666,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/predictions.test.ts + TEST_SUITE: src/__tests__/layer-2.test.ts CLI_REGION: ap-northeast-1 - hostingPROD-amplify_e2e_tests_pkg: + layer-3-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7055,9 +6703,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/hostingPROD.test.ts + TEST_SUITE: src/__tests__/layer-3.test.ts CLI_REGION: ap-southeast-1 - geo-add-amplify_e2e_tests_pkg: + layer-4-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7092,9 +6740,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/geo-add.test.ts - CLI_REGION: ap-southeast-1 - geo-update-amplify_e2e_tests_pkg: + TEST_SUITE: src/__tests__/layer-4.test.ts + CLI_REGION: ap-southeast-2 + migration-api-connection-migration2-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7129,9 +6777,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/geo-update.test.ts - CLI_REGION: ap-southeast-2 - geo-remove-amplify_e2e_tests_pkg: + TEST_SUITE: src/__tests__/migration/api.connection.migration2.test.ts + CLI_REGION: us-east-2 + migration-node-function-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7166,9 +6814,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/geo-remove.test.ts - CLI_REGION: us-east-2 - schema-auth-10-amplify_e2e_tests_pkg: + TEST_SUITE: src/__tests__/migration/node.function.test.ts + CLI_REGION: us-west-2 + pull-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7203,9 +6851,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-auth-10.test.ts + TEST_SUITE: src/__tests__/pull.test.ts CLI_REGION: eu-west-2 - schema-key-amplify_e2e_tests_pkg: + s3-sse-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7240,9 +6888,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-key.test.ts + TEST_SUITE: src/__tests__/s3-sse.test.ts CLI_REGION: eu-central-1 - auth_1-amplify_e2e_tests_pkg: + schema-auth-12-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7277,9 +6925,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/auth_1.test.ts + TEST_SUITE: src/__tests__/schema-auth-12.test.ts CLI_REGION: ap-northeast-1 - auth_5-amplify_e2e_tests_pkg: + schema-auth-13-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7314,9 +6962,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/auth_5.test.ts + TEST_SUITE: src/__tests__/schema-auth-13.test.ts CLI_REGION: ap-southeast-1 - function_3-amplify_e2e_tests_pkg: + schema-function-1-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7351,9 +6999,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/function_3.test.ts + TEST_SUITE: src/__tests__/schema-function-1.test.ts CLI_REGION: ap-southeast-2 - schema-iterative-update-1-amplify_e2e_tests_pkg: + schema-function-2-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7388,9 +7036,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-iterative-update-1.test.ts + TEST_SUITE: src/__tests__/schema-function-2.test.ts CLI_REGION: us-east-2 - schema-auth-3-amplify_e2e_tests_pkg: + schema-iterative-update-locking-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7425,9 +7073,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-auth-3.test.ts + TEST_SUITE: src/__tests__/schema-iterative-update-locking.test.ts CLI_REGION: us-west-2 - delete-amplify_e2e_tests_pkg: + storage-1-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7462,9 +7110,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/delete.test.ts + TEST_SUITE: src/__tests__/storage-1.test.ts CLI_REGION: eu-west-2 - function_2-amplify_e2e_tests_pkg: + storage-2-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7499,9 +7147,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/function_2.test.ts + TEST_SUITE: src/__tests__/storage-2.test.ts CLI_REGION: eu-central-1 - auth_3-amplify_e2e_tests_pkg: + storage-3-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7536,9 +7184,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/auth_3.test.ts + TEST_SUITE: src/__tests__/storage-3.test.ts CLI_REGION: ap-northeast-1 - layer-amplify_e2e_tests_pkg: + plugin-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7573,9 +7221,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/layer.test.ts + TEST_SUITE: src/__tests__/plugin.test.ts CLI_REGION: ap-southeast-1 - migration-api-key-migration1-amplify_e2e_tests_pkg: + init-special-case-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7610,9 +7258,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/migration/api.key.migration1.test.ts + TEST_SUITE: src/__tests__/init-special-case.test.ts CLI_REGION: ap-southeast-2 - auth_4-amplify_e2e_tests_pkg: + datastore-modelgen-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7647,9 +7295,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/auth_4.test.ts + TEST_SUITE: src/__tests__/datastore-modelgen.test.ts CLI_REGION: us-east-2 - schema-auth-7-amplify_e2e_tests_pkg: + amplify-configure-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7684,9 +7332,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-auth-7.test.ts + TEST_SUITE: src/__tests__/amplify-configure.test.ts CLI_REGION: us-west-2 - schema-auth-8-amplify_e2e_tests_pkg: + init-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7721,9 +7369,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-auth-8.test.ts + TEST_SUITE: src/__tests__/init.test.ts CLI_REGION: eu-west-2 - schema-searchable-amplify_e2e_tests_pkg: + tags-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7758,9 +7406,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-searchable.test.ts + TEST_SUITE: src/__tests__/tags.test.ts CLI_REGION: eu-central-1 - schema-auth-4-amplify_e2e_tests_pkg: + notifications-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7795,9 +7443,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-auth-4.test.ts + TEST_SUITE: src/__tests__/notifications.test.ts CLI_REGION: ap-northeast-1 - api_3-amplify_e2e_tests_pkg: + schema-versioned-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7832,9 +7480,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/api_3.test.ts + TEST_SUITE: src/__tests__/schema-versioned.test.ts CLI_REGION: ap-southeast-1 - import_auth_1-amplify_e2e_tests_pkg: + schema-data-access-patterns-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7869,9 +7517,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/import_auth_1.test.ts + TEST_SUITE: src/__tests__/schema-data-access-patterns.test.ts CLI_REGION: ap-southeast-2 - import_auth_2-amplify_e2e_tests_pkg: + interactions-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7906,9 +7554,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/import_auth_2.test.ts - CLI_REGION: us-east-2 - import_s3_1-amplify_e2e_tests_pkg: + TEST_SUITE: src/__tests__/interactions.test.ts + CLI_REGION: us-west-2 + schema-predictions-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7943,10 +7591,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/import_s3_1.test.ts + TEST_SUITE: src/__tests__/schema-predictions.test.ts CLI_REGION: us-west-2 - USE_PARENT_ACCOUNT: 1 - import_dynamodb_1-amplify_e2e_tests_pkg: + amplify-app-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7981,10 +7628,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/import_dynamodb_1.test.ts + TEST_SUITE: src/__tests__/amplify-app.test.ts CLI_REGION: eu-west-2 - USE_PARENT_ACCOUNT: 1 - schema-iterative-rollback-1-amplify_e2e_tests_pkg: + hosting-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8019,9 +7665,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-iterative-rollback-1.test.ts + TEST_SUITE: src/__tests__/hosting.test.ts CLI_REGION: eu-central-1 - schema-iterative-rollback-2-amplify_e2e_tests_pkg: + analytics-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8056,9 +7702,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-iterative-rollback-2.test.ts + TEST_SUITE: src/__tests__/analytics.test.ts CLI_REGION: ap-northeast-1 - env-amplify_e2e_tests_pkg: + feature-flags-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8093,9 +7739,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/env.test.ts + TEST_SUITE: src/__tests__/feature-flags.test.ts CLI_REGION: ap-southeast-1 - auth_2-amplify_e2e_tests_pkg: + schema-iterative-update-2-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8130,10 +7776,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/auth_2.test.ts + TEST_SUITE: src/__tests__/schema-iterative-update-2.test.ts CLI_REGION: ap-southeast-2 - USE_PARENT_ACCOUNT: 1 - schema-auth-9-amplify_e2e_tests_pkg: + containers-api-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8168,9 +7813,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-auth-9.test.ts + TEST_SUITE: src/__tests__/containers-api.test.ts CLI_REGION: us-east-2 - schema-auth-11-amplify_e2e_tests_pkg: + predictions-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8205,9 +7850,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-auth-11.test.ts + TEST_SUITE: src/__tests__/predictions.test.ts CLI_REGION: us-west-2 - migration-api-key-migration2-amplify_e2e_tests_pkg: + hostingPROD-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8242,10 +7887,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/migration/api.key.migration2.test.ts + TEST_SUITE: src/__tests__/hostingPROD.test.ts CLI_REGION: eu-west-2 - USE_PARENT_ACCOUNT: 1 - function_1-amplify_e2e_tests_pkg: + geo-add-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8280,9 +7924,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/function_1.test.ts - CLI_REGION: eu-central-1 - schema-auth-1-amplify_e2e_tests_pkg: + TEST_SUITE: src/__tests__/geo-add.test.ts + CLI_REGION: ap-southeast-1 + geo-update-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8317,9 +7961,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-auth-1.test.ts - CLI_REGION: ap-northeast-1 - function_4-amplify_e2e_tests_pkg: + TEST_SUITE: src/__tests__/geo-update.test.ts + CLI_REGION: ap-southeast-2 + geo-remove-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8354,9 +7998,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/function_4.test.ts - CLI_REGION: ap-southeast-1 - schema-function-amplify_e2e_tests_pkg: + TEST_SUITE: src/__tests__/geo-remove.test.ts + CLI_REGION: us-east-2 + schema-auth-10-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8391,9 +8035,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-function.test.ts + TEST_SUITE: src/__tests__/schema-auth-10.test.ts CLI_REGION: ap-southeast-2 - schema-model-amplify_e2e_tests_pkg: + schema-key-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8428,9 +8072,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-model.test.ts + TEST_SUITE: src/__tests__/schema-key.test.ts CLI_REGION: us-east-2 - migration-api-connection-migration-amplify_e2e_tests_pkg: + auth_1-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8465,9 +8109,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/migration/api.connection.migration.test.ts + TEST_SUITE: src/__tests__/auth_1.test.ts CLI_REGION: us-west-2 - schema-connection-amplify_e2e_tests_pkg: + auth_5-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8502,9 +8146,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-connection.test.ts + TEST_SUITE: src/__tests__/auth_5.test.ts CLI_REGION: eu-west-2 - schema-auth-6-amplify_e2e_tests_pkg: + function_3-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8539,9 +8183,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-auth-6.test.ts + TEST_SUITE: src/__tests__/function_3.test.ts CLI_REGION: eu-central-1 - schema-iterative-update-3-amplify_e2e_tests_pkg: + schema-iterative-update-1-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8576,9 +8220,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-iterative-update-3.test.ts + TEST_SUITE: src/__tests__/schema-iterative-update-1.test.ts CLI_REGION: ap-northeast-1 - schema-auth-2-amplify_e2e_tests_pkg: + schema-auth-3-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8613,9 +8257,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-auth-2.test.ts + TEST_SUITE: src/__tests__/schema-auth-3.test.ts CLI_REGION: ap-southeast-1 - api_1-amplify_e2e_tests_pkg: + delete-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8650,10 +8294,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/api_1.test.ts + TEST_SUITE: src/__tests__/delete.test.ts CLI_REGION: ap-southeast-2 - USE_PARENT_ACCOUNT: 1 - schema-auth-5-amplify_e2e_tests_pkg: + function_2-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8688,9 +8331,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-auth-5.test.ts + TEST_SUITE: src/__tests__/function_2.test.ts CLI_REGION: us-east-2 - storage-amplify_e2e_tests_pkg: + auth_3-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8725,10 +8368,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/storage.test.ts + TEST_SUITE: src/__tests__/auth_3.test.ts CLI_REGION: us-west-2 - USE_PARENT_ACCOUNT: 1 - api_2-amplify_e2e_tests_pkg: + migration-api-key-migration1-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8763,10 +8405,9 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/api_2.test.ts + TEST_SUITE: src/__tests__/migration/api.key.migration1.test.ts CLI_REGION: eu-west-2 - USE_PARENT_ACCOUNT: 1 - schema-iterative-update-4-amplify_e2e_tests_pkg: + auth_4-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8801,360 +8442,3826 @@ jobs: - clean_e2e_resources: os: << parameters.os >> environment: - TEST_SUITE: src/__tests__/schema-iterative-update-4.test.ts + TEST_SUITE: src/__tests__/auth_4.test.ts CLI_REGION: eu-central-1 -workflows: - version: 2 - nightly_console_integration_tests: - triggers: - - schedule: - cron: 0 14 * * * - filters: - branches: - only: - - master - jobs: - - build - - publish_to_local_registry: - requires: - - build - - amplify_console_integration_tests: - context: - - amplify-ecr-image-pull - - console-e2e-test - - e2e-auth-credentials - - e2e-test-context - requires: - - build - - publish_to_local_registry - e2e_resource_cleanup: - triggers: - - schedule: - cron: 45 0,12 * * * - filters: - branches: - only: - - master - jobs: - - build - - cleanup_resources: - context: - - cleanup-resources - - e2e-test-context - requires: - - build - build_test_deploy: - jobs: - - build: - matrix: - parameters: - os: - - linux - - windows - - test: - requires: - - build - - mock_e2e_tests: - requires: - - build - - graphql_e2e_tests: - context: - - amplify-ecr-image-pull - - e2e-test-context - filters: - branches: - only: - - master - - /tagged-release\/.*/ - - /run-e2e\/*./ - requires: - - build - - mock_e2e_tests - - integration_test: - context: - - amplify-ecr-image-pull - - e2e-test-context - filters: - branches: - only: - - master - - beta - - /tagged-release\/.*/ - - /run-e2e\/*./ - requires: - - build - - mock_e2e_tests - - publish_to_local_registry: - filters: - branches: - only: - - master - - beta - - release - - /tagged-release\/.*/ - - /run-e2e\/*./ - requires: - - build - - build_pkg_binaries: - requires: - - publish_to_local_registry - - amplify_sudo_install_test: - context: amplify-ecr-image-pull - requires: - - publish_to_local_registry - filters: - branches: - only: - - master - - /tagged-release\/.*/ - - /run-e2e\/*./ - - done_with_node_e2e_tests: - requires: - - api_4-amplify_e2e_tests - - function_7-amplify_e2e_tests - - schema-iterative-update-locking-amplify_e2e_tests - - notifications-amplify_e2e_tests - - analytics-amplify_e2e_tests - - geo-remove-amplify_e2e_tests - - schema-iterative-update-1-amplify_e2e_tests - - auth_4-amplify_e2e_tests - - import_auth_2-amplify_e2e_tests - - schema-auth-9-amplify_e2e_tests - - schema-model-amplify_e2e_tests - - schema-auth-5-amplify_e2e_tests - - auth_6-amplify_e2e_tests - - hooks-amplify_e2e_tests - - plugin-amplify_e2e_tests - - schema-versioned-amplify_e2e_tests - - interactions-amplify_e2e_tests - - feature-flags-amplify_e2e_tests - - schema-auth-3-amplify_e2e_tests - - schema-auth-7-amplify_e2e_tests - - import_s3_1-amplify_e2e_tests - - schema-auth-11-amplify_e2e_tests - - migration-api-connection-migration-amplify_e2e_tests - - storage-amplify_e2e_tests - - configure-project-amplify_e2e_tests - - iam-permissions-boundary-amplify_e2e_tests - - init-special-case-amplify_e2e_tests - - schema-data-access-patterns-amplify_e2e_tests - - schema-iterative-update-2-amplify_e2e_tests - - schema-auth-10-amplify_e2e_tests - - delete-amplify_e2e_tests - - schema-auth-8-amplify_e2e_tests - - import_dynamodb_1-amplify_e2e_tests - - migration-api-key-migration2-amplify_e2e_tests - - schema-connection-amplify_e2e_tests - - api_2-amplify_e2e_tests - - container-hosting-amplify_e2e_tests - - layer-2-amplify_e2e_tests - - datastore-modelgen-amplify_e2e_tests - - containers-api-amplify_e2e_tests - - schema-key-amplify_e2e_tests - - function_2-amplify_e2e_tests - - schema-searchable-amplify_e2e_tests - - schema-iterative-rollback-1-amplify_e2e_tests - - function_1-amplify_e2e_tests - - schema-auth-6-amplify_e2e_tests - - schema-iterative-update-4-amplify_e2e_tests - - frontend_config_drift-amplify_e2e_tests - - migration-node-function-amplify_e2e_tests + schema-auth-7-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-7.test.ts + CLI_REGION: ap-northeast-1 + schema-auth-8-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-8.test.ts + CLI_REGION: ap-southeast-1 + schema-searchable-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-searchable.test.ts + CLI_REGION: ap-southeast-2 + schema-auth-4-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-4.test.ts + CLI_REGION: us-east-2 + api_3-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/api_3.test.ts + CLI_REGION: us-west-2 + import_auth_1-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/import_auth_1.test.ts + CLI_REGION: eu-west-2 + import_auth_2-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/import_auth_2.test.ts + CLI_REGION: eu-central-1 + import_s3_1-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/import_s3_1.test.ts + CLI_REGION: ap-northeast-1 + USE_PARENT_ACCOUNT: 1 + import_dynamodb_1-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/import_dynamodb_1.test.ts + CLI_REGION: ap-southeast-1 + USE_PARENT_ACCOUNT: 1 + schema-iterative-rollback-1-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-iterative-rollback-1.test.ts + CLI_REGION: ap-southeast-2 + schema-iterative-rollback-2-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-iterative-rollback-2.test.ts + CLI_REGION: us-east-2 + env-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/env.test.ts + CLI_REGION: us-west-2 + auth_2-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/auth_2.test.ts + CLI_REGION: eu-west-2 + USE_PARENT_ACCOUNT: 1 + schema-auth-9-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-9.test.ts + CLI_REGION: eu-central-1 + schema-auth-11-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-11.test.ts + CLI_REGION: ap-northeast-1 + migration-api-key-migration2-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/migration/api.key.migration2.test.ts + CLI_REGION: ap-southeast-1 + USE_PARENT_ACCOUNT: 1 + function_1-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/function_1.test.ts + CLI_REGION: ap-southeast-2 + schema-auth-1-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-1.test.ts + CLI_REGION: us-east-2 + function_4-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/function_4.test.ts + CLI_REGION: us-west-2 + schema-model-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-model.test.ts + CLI_REGION: eu-west-2 + migration-api-connection-migration-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/migration/api.connection.migration.test.ts + CLI_REGION: eu-central-1 + schema-connection-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-connection.test.ts + CLI_REGION: ap-northeast-1 + schema-auth-6-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-6.test.ts + CLI_REGION: ap-southeast-1 + schema-iterative-update-3-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-iterative-update-3.test.ts + CLI_REGION: ap-southeast-2 + schema-auth-2-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-2.test.ts + CLI_REGION: us-east-2 + api_1-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/api_1.test.ts + CLI_REGION: us-west-2 + USE_PARENT_ACCOUNT: 1 + schema-auth-5-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-5.test.ts + CLI_REGION: eu-west-2 + api_2-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/api_2.test.ts + CLI_REGION: eu-central-1 + USE_PARENT_ACCOUNT: 1 + api_5-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/api_5.test.ts + CLI_REGION: ap-northeast-1 + schema-iterative-update-4-amplify_e2e_tests_pkg: + parameters: + os: + type: executor + default: os.linux + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-iterative-update-4.test.ts + CLI_REGION: ap-southeast-1 + ConnectionsWithAuthTests-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/ConnectionsWithAuthTests.e2e.test.ts + CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + CustomRoots-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/CustomRoots.e2e.test.ts + CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + DynamoDBModelTransformer-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/DynamoDBModelTransformer.e2e.test.ts + CLI_REGION: eu-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + FunctionTransformerTests-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/FunctionTransformerTests.e2e.test.ts + CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + HttpTransformer-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/HttpTransformer.e2e.test.ts + CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + IndexTransformer-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/IndexTransformer.e2e.test.ts + CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + KeyTransformer-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/KeyTransformer.e2e.test.ts + CLI_REGION: ap-southeast-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + KeyTransformerLocal-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/KeyTransformerLocal.e2e.test.ts + CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + KeyWithAuth-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/KeyWithAuth.e2e.test.ts + CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + ModelAuthTransformer-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/ModelAuthTransformer.e2e.test.ts + CLI_REGION: eu-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + ModelConnectionTransformer-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/ModelConnectionTransformer.e2e.test.ts + CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + ModelConnectionWithKeyTransformer-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/ModelConnectionWithKeyTransformer.e2e.test.ts + CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + ModelTransformer-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/ModelTransformer.e2e.test.ts + CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + MultiAuthModelAuthTransformer-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/MultiAuthModelAuthTransformer.e2e.test.ts + CLI_REGION: ap-southeast-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + MutationCondition-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/MutationCondition.e2e.test.ts + CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + NestedStacksTest-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/NestedStacksTest.e2e.test.ts + CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + NewConnectionTransformer-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/NewConnectionTransformer.e2e.test.ts + CLI_REGION: eu-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + NewConnectionWithAuth-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/NewConnectionWithAuth.e2e.test.ts + CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + NoneEnvFunctionTransformer-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/NoneEnvFunctionTransformer.e2e.test.ts + CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + NonModelAuthFunction-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/NonModelAuthFunction.e2e.test.ts + CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + PerFieldAuthTests-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/PerFieldAuthTests.e2e.test.ts + CLI_REGION: ap-southeast-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + PredictionsTransformerTests-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/PredictionsTransformerTests.e2e.test.ts + CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + RelationalTransformers-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/RelationalTransformers.e2e.test.ts + CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + SearchableModelTransformer-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/SearchableModelTransformer.e2e.test.ts + CLI_REGION: eu-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + SearchableModelTransformerV2-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/SearchableModelTransformerV2.e2e.test.ts + CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + SearchableWithAuthTests-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/SearchableWithAuthTests.e2e.test.ts + CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + SubscriptionsWithAuthTest-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/SubscriptionsWithAuthTest.e2e.test.ts + CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + TestComplexStackMappingsLocal-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/TestComplexStackMappingsLocal.e2e.test.ts + CLI_REGION: ap-southeast-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify + VersionedModelTransformer-e2e-graphql_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - run: + name: Run GraphQL end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + cd packages/graphql-transformers-e2e-tests/ + yarn e2e --maxWorkers=3 + environment: + AMPLIFY_CLI_DISABLE_LOGGING: 'true' + no_output_timeout: 90m + - store_test_results: + path: packages/graphql-transformers-e2e-tests/ + environment: + TEST_SUITE: src/__tests__/VersionedModelTransformer.e2e.test.ts + CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify +workflows: + version: 2 + nightly_console_integration_tests: + triggers: + - schedule: + cron: 0 14 * * * + filters: + branches: + only: + - master + jobs: + - build + - publish_to_local_registry: + requires: + - build + - amplify_console_integration_tests: + context: + - amplify-ecr-image-pull + - console-e2e-test + - e2e-auth-credentials + - e2e-test-context + requires: + - build + - publish_to_local_registry + e2e_resource_cleanup: + triggers: + - schedule: + cron: 45 0,12 * * * + filters: + branches: + only: + - master + jobs: + - build + - cleanup_resources: + context: + - cleanup-resources + - e2e-test-context + requires: + - build + build_test_deploy: + jobs: + - build: + matrix: + parameters: + os: + - linux + - windows + - test: + requires: + - build + - mock_e2e_tests: + requires: + - build + - integration_test: + context: + - amplify-ecr-image-pull + - e2e-test-context + filters: + branches: + only: + - master + - beta + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - build + - mock_e2e_tests + - publish_to_local_registry: + filters: + branches: + only: + - master + - beta + - release + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - build + - build_pkg_binaries: + requires: + - publish_to_local_registry + - amplify_sudo_install_test: + context: amplify-ecr-image-pull + requires: + - publish_to_local_registry + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + - done_with_node_e2e_tests: + requires: + - api_4-amplify_e2e_tests + - function_5-amplify_e2e_tests + - import_auth_3-amplify_e2e_tests + - migration-api-connection-migration2-amplify_e2e_tests + - schema-function-2-amplify_e2e_tests + - datastore-modelgen-amplify_e2e_tests + - containers-api-amplify_e2e_tests + - geo-remove-amplify_e2e_tests + - schema-key-amplify_e2e_tests + - function_2-amplify_e2e_tests + - schema-auth-4-amplify_e2e_tests + - schema-iterative-rollback-2-amplify_e2e_tests + - schema-auth-1-amplify_e2e_tests + - schema-auth-2-amplify_e2e_tests + - auth_6-amplify_e2e_tests + - function_6-amplify_e2e_tests + - import_dynamodb_2-amplify_e2e_tests + - migration-node-function-amplify_e2e_tests + - schema-iterative-update-locking-amplify_e2e_tests - amplify-configure-amplify_e2e_tests + - interactions-amplify_e2e_tests - schema-predictions-amplify_e2e_tests - predictions-amplify_e2e_tests - auth_1-amplify_e2e_tests - auth_3-amplify_e2e_tests - - schema-auth-4-amplify_e2e_tests - - schema-iterative-rollback-2-amplify_e2e_tests - - schema-auth-1-amplify_e2e_tests - - schema-iterative-update-3-amplify_e2e_tests - - function_5-amplify_e2e_tests + - api_3-amplify_e2e_tests + - env-amplify_e2e_tests + - function_4-amplify_e2e_tests + - api_1-amplify_e2e_tests + - auth_7-amplify_e2e_tests + - function_7-amplify_e2e_tests + - import_s3_2-amplify_e2e_tests - pull-amplify_e2e_tests + - storage-1-amplify_e2e_tests - init-amplify_e2e_tests - amplify-app-amplify_e2e_tests - hostingPROD-amplify_e2e_tests - - geo-add-amplify_e2e_tests - auth_5-amplify_e2e_tests - - layer-amplify_e2e_tests - - api_3-amplify_e2e_tests - - env-amplify_e2e_tests - - function_4-amplify_e2e_tests - - schema-auth-2-amplify_e2e_tests - - function_6-amplify_e2e_tests + - migration-api-key-migration1-amplify_e2e_tests + - import_auth_1-amplify_e2e_tests + - auth_2-amplify_e2e_tests + - schema-model-amplify_e2e_tests + - schema-auth-5-amplify_e2e_tests + - auth_8-amplify_e2e_tests + - function_8-amplify_e2e_tests + - layer-1-amplify_e2e_tests - s3-sse-amplify_e2e_tests + - storage-2-amplify_e2e_tests - tags-amplify_e2e_tests - hosting-amplify_e2e_tests - - geo-update-amplify_e2e_tests - function_3-amplify_e2e_tests - - migration-api-key-migration1-amplify_e2e_tests - - import_auth_1-amplify_e2e_tests - - auth_2-amplify_e2e_tests - - schema-function-amplify_e2e_tests - - api_1-amplify_e2e_tests + - auth_4-amplify_e2e_tests + - import_auth_2-amplify_e2e_tests + - schema-auth-9-amplify_e2e_tests + - migration-api-connection-migration-amplify_e2e_tests + - api_2-amplify_e2e_tests + - configure-project-amplify_e2e_tests + - function_9-amplify_e2e_tests + - layer-2-amplify_e2e_tests + - schema-auth-12-amplify_e2e_tests + - storage-3-amplify_e2e_tests + - notifications-amplify_e2e_tests + - analytics-amplify_e2e_tests + - schema-iterative-update-1-amplify_e2e_tests + - schema-auth-7-amplify_e2e_tests + - import_s3_1-amplify_e2e_tests + - schema-auth-11-amplify_e2e_tests + - schema-connection-amplify_e2e_tests + - api_5-amplify_e2e_tests + - container-hosting-amplify_e2e_tests + - hooks-amplify_e2e_tests + - layer-3-amplify_e2e_tests + - schema-auth-13-amplify_e2e_tests + - plugin-amplify_e2e_tests + - schema-versioned-amplify_e2e_tests + - feature-flags-amplify_e2e_tests + - geo-add-amplify_e2e_tests + - schema-auth-3-amplify_e2e_tests + - schema-auth-8-amplify_e2e_tests + - import_dynamodb_1-amplify_e2e_tests + - migration-api-key-migration2-amplify_e2e_tests + - schema-auth-6-amplify_e2e_tests + - schema-iterative-update-4-amplify_e2e_tests + - frontend_config_drift-amplify_e2e_tests + - iam-permissions-boundary-amplify_e2e_tests + - layer-4-amplify_e2e_tests + - schema-function-1-amplify_e2e_tests + - init-special-case-amplify_e2e_tests + - schema-data-access-patterns-amplify_e2e_tests + - schema-iterative-update-2-amplify_e2e_tests + - geo-update-amplify_e2e_tests + - schema-auth-10-amplify_e2e_tests + - delete-amplify_e2e_tests + - schema-searchable-amplify_e2e_tests + - schema-iterative-rollback-1-amplify_e2e_tests + - function_1-amplify_e2e_tests + - schema-iterative-update-3-amplify_e2e_tests - done_with_pkg_e2e_tests: requires: - - api_4-amplify_e2e_tests_pkg - - function_7-amplify_e2e_tests_pkg - - schema-iterative-update-locking-amplify_e2e_tests_pkg - - notifications-amplify_e2e_tests_pkg - - analytics-amplify_e2e_tests_pkg - - geo-remove-amplify_e2e_tests_pkg - - schema-iterative-update-1-amplify_e2e_tests_pkg - - auth_4-amplify_e2e_tests_pkg - - import_auth_2-amplify_e2e_tests_pkg - - schema-auth-9-amplify_e2e_tests_pkg - - schema-model-amplify_e2e_tests_pkg - - schema-auth-5-amplify_e2e_tests_pkg - - auth_6-amplify_e2e_tests_pkg - - hooks-amplify_e2e_tests_pkg - - plugin-amplify_e2e_tests_pkg - - schema-versioned-amplify_e2e_tests_pkg - - interactions-amplify_e2e_tests_pkg - - feature-flags-amplify_e2e_tests_pkg - - schema-auth-3-amplify_e2e_tests_pkg - - schema-auth-7-amplify_e2e_tests_pkg - - import_s3_1-amplify_e2e_tests_pkg - - schema-auth-11-amplify_e2e_tests_pkg - - migration-api-connection-migration-amplify_e2e_tests_pkg - - storage-amplify_e2e_tests_pkg - - configure-project-amplify_e2e_tests_pkg - - iam-permissions-boundary-amplify_e2e_tests_pkg - - init-special-case-amplify_e2e_tests_pkg - - schema-data-access-patterns-amplify_e2e_tests_pkg - - schema-iterative-update-2-amplify_e2e_tests_pkg - - schema-auth-10-amplify_e2e_tests_pkg - - delete-amplify_e2e_tests_pkg - - schema-auth-8-amplify_e2e_tests_pkg - - import_dynamodb_1-amplify_e2e_tests_pkg - - migration-api-key-migration2-amplify_e2e_tests_pkg - - schema-connection-amplify_e2e_tests_pkg - - api_2-amplify_e2e_tests_pkg - - container-hosting-amplify_e2e_tests_pkg - - layer-2-amplify_e2e_tests_pkg - - datastore-modelgen-amplify_e2e_tests_pkg - - containers-api-amplify_e2e_tests_pkg - - schema-key-amplify_e2e_tests_pkg - - function_2-amplify_e2e_tests_pkg - - schema-searchable-amplify_e2e_tests_pkg - - schema-iterative-rollback-1-amplify_e2e_tests_pkg - - function_1-amplify_e2e_tests_pkg - - schema-auth-6-amplify_e2e_tests_pkg - - schema-iterative-update-4-amplify_e2e_tests_pkg - - frontend_config_drift-amplify_e2e_tests_pkg - - migration-node-function-amplify_e2e_tests_pkg - - amplify-configure-amplify_e2e_tests_pkg - - schema-predictions-amplify_e2e_tests_pkg - - predictions-amplify_e2e_tests_pkg - - auth_1-amplify_e2e_tests_pkg - - auth_3-amplify_e2e_tests_pkg - - schema-auth-4-amplify_e2e_tests_pkg - - schema-iterative-rollback-2-amplify_e2e_tests_pkg - - schema-auth-1-amplify_e2e_tests_pkg - - schema-iterative-update-3-amplify_e2e_tests_pkg - - function_5-amplify_e2e_tests_pkg - - pull-amplify_e2e_tests_pkg - - init-amplify_e2e_tests_pkg - - amplify-app-amplify_e2e_tests_pkg - - hostingPROD-amplify_e2e_tests_pkg - - geo-add-amplify_e2e_tests_pkg - - auth_5-amplify_e2e_tests_pkg - - layer-amplify_e2e_tests_pkg - - api_3-amplify_e2e_tests_pkg - - env-amplify_e2e_tests_pkg - - function_4-amplify_e2e_tests_pkg - - schema-auth-2-amplify_e2e_tests_pkg - - function_6-amplify_e2e_tests_pkg - - s3-sse-amplify_e2e_tests_pkg - - tags-amplify_e2e_tests_pkg - - hosting-amplify_e2e_tests_pkg - - geo-update-amplify_e2e_tests_pkg - - function_3-amplify_e2e_tests_pkg - - migration-api-key-migration1-amplify_e2e_tests_pkg - - import_auth_1-amplify_e2e_tests_pkg - - auth_2-amplify_e2e_tests_pkg - - schema-function-amplify_e2e_tests_pkg - - api_1-amplify_e2e_tests_pkg - - amplify_migration_tests_latest: + - api_4-amplify_e2e_tests_pkg + - function_5-amplify_e2e_tests_pkg + - import_auth_3-amplify_e2e_tests_pkg + - migration-api-connection-migration2-amplify_e2e_tests_pkg + - schema-function-2-amplify_e2e_tests_pkg + - datastore-modelgen-amplify_e2e_tests_pkg + - containers-api-amplify_e2e_tests_pkg + - geo-remove-amplify_e2e_tests_pkg + - schema-key-amplify_e2e_tests_pkg + - function_2-amplify_e2e_tests_pkg + - schema-auth-4-amplify_e2e_tests_pkg + - schema-iterative-rollback-2-amplify_e2e_tests_pkg + - schema-auth-1-amplify_e2e_tests_pkg + - schema-auth-2-amplify_e2e_tests_pkg + - auth_6-amplify_e2e_tests_pkg + - function_6-amplify_e2e_tests_pkg + - import_dynamodb_2-amplify_e2e_tests_pkg + - migration-node-function-amplify_e2e_tests_pkg + - schema-iterative-update-locking-amplify_e2e_tests_pkg + - amplify-configure-amplify_e2e_tests_pkg + - interactions-amplify_e2e_tests_pkg + - schema-predictions-amplify_e2e_tests_pkg + - predictions-amplify_e2e_tests_pkg + - auth_1-amplify_e2e_tests_pkg + - auth_3-amplify_e2e_tests_pkg + - api_3-amplify_e2e_tests_pkg + - env-amplify_e2e_tests_pkg + - function_4-amplify_e2e_tests_pkg + - api_1-amplify_e2e_tests_pkg + - auth_7-amplify_e2e_tests_pkg + - function_7-amplify_e2e_tests_pkg + - import_s3_2-amplify_e2e_tests_pkg + - pull-amplify_e2e_tests_pkg + - storage-1-amplify_e2e_tests_pkg + - init-amplify_e2e_tests_pkg + - amplify-app-amplify_e2e_tests_pkg + - hostingPROD-amplify_e2e_tests_pkg + - auth_5-amplify_e2e_tests_pkg + - migration-api-key-migration1-amplify_e2e_tests_pkg + - import_auth_1-amplify_e2e_tests_pkg + - auth_2-amplify_e2e_tests_pkg + - schema-model-amplify_e2e_tests_pkg + - schema-auth-5-amplify_e2e_tests_pkg + - auth_8-amplify_e2e_tests_pkg + - function_8-amplify_e2e_tests_pkg + - layer-1-amplify_e2e_tests_pkg + - s3-sse-amplify_e2e_tests_pkg + - storage-2-amplify_e2e_tests_pkg + - tags-amplify_e2e_tests_pkg + - hosting-amplify_e2e_tests_pkg + - function_3-amplify_e2e_tests_pkg + - auth_4-amplify_e2e_tests_pkg + - import_auth_2-amplify_e2e_tests_pkg + - schema-auth-9-amplify_e2e_tests_pkg + - migration-api-connection-migration-amplify_e2e_tests_pkg + - api_2-amplify_e2e_tests_pkg + - configure-project-amplify_e2e_tests_pkg + - function_9-amplify_e2e_tests_pkg + - layer-2-amplify_e2e_tests_pkg + - schema-auth-12-amplify_e2e_tests_pkg + - storage-3-amplify_e2e_tests_pkg + - notifications-amplify_e2e_tests_pkg + - analytics-amplify_e2e_tests_pkg + - schema-iterative-update-1-amplify_e2e_tests_pkg + - schema-auth-7-amplify_e2e_tests_pkg + - import_s3_1-amplify_e2e_tests_pkg + - schema-auth-11-amplify_e2e_tests_pkg + - schema-connection-amplify_e2e_tests_pkg + - api_5-amplify_e2e_tests_pkg + - container-hosting-amplify_e2e_tests_pkg + - hooks-amplify_e2e_tests_pkg + - layer-3-amplify_e2e_tests_pkg + - schema-auth-13-amplify_e2e_tests_pkg + - plugin-amplify_e2e_tests_pkg + - schema-versioned-amplify_e2e_tests_pkg + - feature-flags-amplify_e2e_tests_pkg + - geo-add-amplify_e2e_tests_pkg + - schema-auth-3-amplify_e2e_tests_pkg + - schema-auth-8-amplify_e2e_tests_pkg + - import_dynamodb_1-amplify_e2e_tests_pkg + - migration-api-key-migration2-amplify_e2e_tests_pkg + - schema-auth-6-amplify_e2e_tests_pkg + - schema-iterative-update-4-amplify_e2e_tests_pkg + - frontend_config_drift-amplify_e2e_tests_pkg + - iam-permissions-boundary-amplify_e2e_tests_pkg + - layer-4-amplify_e2e_tests_pkg + - schema-function-1-amplify_e2e_tests_pkg + - init-special-case-amplify_e2e_tests_pkg + - schema-data-access-patterns-amplify_e2e_tests_pkg + - schema-iterative-update-2-amplify_e2e_tests_pkg + - geo-update-amplify_e2e_tests_pkg + - schema-auth-10-amplify_e2e_tests_pkg + - delete-amplify_e2e_tests_pkg + - schema-searchable-amplify_e2e_tests_pkg + - schema-iterative-rollback-1-amplify_e2e_tests_pkg + - function_1-amplify_e2e_tests_pkg + - schema-iterative-update-3-amplify_e2e_tests_pkg + - amplify_migration_tests_latest: + context: + - amplify-ecr-image-pull + - e2e-auth-credentials + - clean_e2e_resources + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - build + - build_pkg_binaries + - amplify_migration_tests_v4: + context: + - amplify-ecr-image-pull + - e2e-auth-credentials + - clean_e2e_resources + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - build + - build_pkg_binaries + - amplify_migration_tests_v4_30_0: + context: + - amplify-ecr-image-pull + - e2e-auth-credentials + - clean_e2e_resources + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - build + - build_pkg_binaries + - amplify_migration_tests_non_multi_env_layers: + context: + - amplify-ecr-image-pull + - e2e-auth-credentials + - clean_e2e_resources + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - build + - build_pkg_binaries + - amplify_migration_tests_multi_env_layers: + context: + - amplify-ecr-image-pull + - e2e-auth-credentials + - clean_e2e_resources + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - build + - build_pkg_binaries + - amplify_console_integration_tests: + context: + - amplify-ecr-image-pull + - e2e-auth-credentials + - clean_e2e_resources + - console-e2e-test + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - beta + requires: + - build + - publish_to_local_registry + - github_prerelease: + context: github-publish + requires: + - build_pkg_binaries + filters: + branches: + only: + - release + - github_prerelease_install_sanity_check: + requires: + - github_prerelease + filters: + branches: + only: + - release + - cleanup_resources_after_e2e_runs: + context: + - cleanup-resources + - e2e-test-context + requires: + - done_with_pkg_e2e_tests + - amplify_migration_tests_latest + - amplify_migration_tests_v4 + - amplify_migration_tests_v4_30_0 + - done_with_node_e2e_tests + - deploy: + context: + - amplify-ecr-image-pull + - npm-publish + requires: + - test + - mock_e2e_tests + - integration_test + - done_with_pkg_e2e_tests + - done_with_node_e2e_tests + - amplify_sudo_install_test + - amplify_console_integration_tests + - amplify_migration_tests_latest + - amplify_migration_tests_v4 + - amplify_migration_tests_v4_30_0 + - amplify_migration_tests_non_multi_env_layers + - amplify_migration_tests_multi_env_layers + - github_prerelease_install_sanity_check + - ConnectionsWithAuthTests-e2e-graphql_e2e_tests + - KeyTransformerLocal-e2e-graphql_e2e_tests + - MutationCondition-e2e-graphql_e2e_tests + - PredictionsTransformerTests-e2e-graphql_e2e_tests + - VersionedModelTransformer-e2e-graphql_e2e_tests + - CustomRoots-e2e-graphql_e2e_tests + - KeyWithAuth-e2e-graphql_e2e_tests + - NestedStacksTest-e2e-graphql_e2e_tests + - RelationalTransformers-e2e-graphql_e2e_tests + - DynamoDBModelTransformer-e2e-graphql_e2e_tests + - ModelAuthTransformer-e2e-graphql_e2e_tests + - NewConnectionTransformer-e2e-graphql_e2e_tests + - SearchableModelTransformer-e2e-graphql_e2e_tests + - FunctionTransformerTests-e2e-graphql_e2e_tests + - ModelConnectionTransformer-e2e-graphql_e2e_tests + - NewConnectionWithAuth-e2e-graphql_e2e_tests + - SearchableModelTransformerV2-e2e-graphql_e2e_tests + - HttpTransformer-e2e-graphql_e2e_tests + - ModelConnectionWithKeyTransformer-e2e-graphql_e2e_tests + - NoneEnvFunctionTransformer-e2e-graphql_e2e_tests + - SearchableWithAuthTests-e2e-graphql_e2e_tests + - IndexTransformer-e2e-graphql_e2e_tests + - ModelTransformer-e2e-graphql_e2e_tests + - NonModelAuthFunction-e2e-graphql_e2e_tests + - SubscriptionsWithAuthTest-e2e-graphql_e2e_tests + - KeyTransformer-e2e-graphql_e2e_tests + - MultiAuthModelAuthTransformer-e2e-graphql_e2e_tests + - PerFieldAuthTests-e2e-graphql_e2e_tests + - TestComplexStackMappingsLocal-e2e-graphql_e2e_tests + filters: + branches: + only: + - release + - master + - beta + - /tagged-release\/.*/ + - /tagged-release-without-e2e-tests\/.*/ + - github_release: + context: github-publish + requires: + - deploy + filters: + branches: + only: + - release + - api_4-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - function_5-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - import_auth_3-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - migration-api-connection-migration2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-function-2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - datastore-modelgen-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - containers-api-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - geo-remove-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-key-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - function_2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-auth-4-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-iterative-rollback-2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-auth-1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-auth-2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - auth_6-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - function_6-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - import_dynamodb_2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - migration-node-function-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-iterative-update-locking-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - amplify-configure-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - interactions-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-predictions-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - predictions-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - auth_1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - auth_3-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - api_3-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - env-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - function_4-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - api_1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - auth_7-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - function_7-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - import_s3_2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - pull-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - storage-1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - init-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - amplify-app-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - hostingPROD-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - auth_5-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - migration-api-key-migration1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - import_auth_1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - auth_2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-model-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-auth-5-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - auth_8-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - function_8-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - layer-1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - s3-sse-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - storage-2-amplify_e2e_tests: context: - amplify-ecr-image-pull - - e2e-auth-credentials - clean_e2e_resources + - e2e-auth-credentials - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build - - build_pkg_binaries - - amplify_migration_tests_v4: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - tags-amplify_e2e_tests: context: - amplify-ecr-image-pull - - e2e-auth-credentials - clean_e2e_resources + - e2e-auth-credentials - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build - - build_pkg_binaries - - amplify_migration_tests_v4_30_0: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - hosting-amplify_e2e_tests: context: - amplify-ecr-image-pull - - e2e-auth-credentials - clean_e2e_resources + - e2e-auth-credentials - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build - - build_pkg_binaries - - amplify_migration_tests_non_multi_env_layers: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - function_3-amplify_e2e_tests: context: - amplify-ecr-image-pull - - e2e-auth-credentials - clean_e2e_resources + - e2e-auth-credentials - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build - - build_pkg_binaries - - amplify_migration_tests_multi_env_layers: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - auth_4-amplify_e2e_tests: context: - amplify-ecr-image-pull - - e2e-auth-credentials - clean_e2e_resources + - e2e-auth-credentials - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build - - build_pkg_binaries - - amplify_console_integration_tests: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - import_auth_2-amplify_e2e_tests: context: - amplify-ecr-image-pull - - e2e-auth-credentials - clean_e2e_resources - - console-e2e-test + - e2e-auth-credentials - e2e-test-context post-steps: - run: @@ -9167,71 +12274,146 @@ workflows: filters: branches: only: - - beta + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ requires: - - build - publish_to_local_registry - - github_prerelease: - context: github-publish - requires: - - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-auth-9-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo filters: branches: only: - - release - - github_prerelease_install_sanity_check: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ requires: - - github_prerelease + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - migration-api-connection-migration-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo filters: branches: only: - - release - - cleanup_resources_after_e2e_runs: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - api_2-amplify_e2e_tests: context: - - cleanup-resources + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ requires: - - done_with_pkg_e2e_tests - - amplify_migration_tests_latest - - amplify_migration_tests_v4 - - amplify_migration_tests_v4_30_0 - - done_with_node_e2e_tests - - deploy: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - configure-project-amplify_e2e_tests: context: - amplify-ecr-image-pull - - npm-publish - requires: - - test - - mock_e2e_tests - - graphql_e2e_tests - - integration_test - - done_with_pkg_e2e_tests - - done_with_node_e2e_tests - - amplify_sudo_install_test - - amplify_console_integration_tests - - amplify_migration_tests_latest - - amplify_migration_tests_v4 - - amplify_migration_tests_v4_30_0 - - amplify_migration_tests_non_multi_env_layers - - amplify_migration_tests_multi_env_layers - - github_prerelease_install_sanity_check + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo filters: branches: only: - - release - master - - beta - /tagged-release\/.*/ - - /tagged-release-without-e2e-tests\/.*/ - - github_release: - context: github-publish + - /run-e2e\/.*/ requires: - - deploy + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - function_9-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo filters: branches: only: - - release - - api_4-amplify_e2e_tests: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - layer-2-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9250,14 +12432,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - function_7-amplify_e2e_tests: + - schema-auth-12-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9276,14 +12458,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - schema-iterative-update-locking-amplify_e2e_tests: + - storage-3-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9302,7 +12484,7 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: @@ -9328,7 +12510,7 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: @@ -9354,14 +12536,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - geo-remove-amplify_e2e_tests: + - schema-iterative-update-1-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9380,14 +12562,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - schema-iterative-update-1-amplify_e2e_tests: + - schema-auth-7-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9406,14 +12588,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - auth_4-amplify_e2e_tests: + - import_s3_1-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9432,14 +12614,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - import_auth_2-amplify_e2e_tests: + - schema-auth-11-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9458,14 +12640,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - schema-auth-9-amplify_e2e_tests: + - schema-connection-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9484,14 +12666,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - schema-model-amplify_e2e_tests: + - api_5-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9510,14 +12692,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - schema-auth-5-amplify_e2e_tests: + - container-hosting-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9536,14 +12718,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - auth_6-amplify_e2e_tests: + - hooks-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9562,14 +12744,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - hooks-amplify_e2e_tests: + - layer-3-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9588,14 +12770,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - plugin-amplify_e2e_tests: + - schema-auth-13-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9614,14 +12796,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - schema-versioned-amplify_e2e_tests: + - plugin-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9640,14 +12822,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - interactions-amplify_e2e_tests: + - schema-versioned-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9666,7 +12848,7 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: @@ -9692,14 +12874,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - schema-auth-3-amplify_e2e_tests: + - geo-add-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9718,14 +12900,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - schema-auth-7-amplify_e2e_tests: + - schema-auth-3-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9744,14 +12926,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - import_s3_1-amplify_e2e_tests: + - schema-auth-8-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9770,14 +12952,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - schema-auth-11-amplify_e2e_tests: + - import_dynamodb_1-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9796,14 +12978,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - migration-api-connection-migration-amplify_e2e_tests: + - migration-api-key-migration2-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9822,14 +13004,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - storage-amplify_e2e_tests: + - schema-auth-6-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9848,14 +13030,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - configure-project-amplify_e2e_tests: + - schema-iterative-update-4-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9874,14 +13056,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - iam-permissions-boundary-amplify_e2e_tests: + - frontend_config_drift-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9900,14 +13082,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - init-special-case-amplify_e2e_tests: + - iam-permissions-boundary-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9926,14 +13108,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - schema-data-access-patterns-amplify_e2e_tests: + - layer-4-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9952,14 +13134,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - schema-iterative-update-2-amplify_e2e_tests: + - schema-function-1-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9978,14 +13160,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - schema-auth-10-amplify_e2e_tests: + - init-special-case-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -10004,14 +13186,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - delete-amplify_e2e_tests: + - schema-data-access-patterns-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -10030,14 +13212,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - schema-auth-8-amplify_e2e_tests: + - schema-iterative-update-2-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -10056,14 +13238,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - import_dynamodb_1-amplify_e2e_tests: + - geo-update-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -10082,14 +13264,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - migration-api-key-migration2-amplify_e2e_tests: + - schema-auth-10-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -10108,14 +13290,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - schema-connection-amplify_e2e_tests: + - delete-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -10134,14 +13316,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - api_2-amplify_e2e_tests: + - schema-searchable-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -10160,14 +13342,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - container-hosting-amplify_e2e_tests: + - schema-iterative-rollback-1-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -10186,14 +13368,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - layer-2-amplify_e2e_tests: + - function_1-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -10212,14 +13394,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - datastore-modelgen-amplify_e2e_tests: + - schema-iterative-update-3-amplify_e2e_tests: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -10238,1106 +13420,829 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - publish_to_local_registry matrix: parameters: os: - linux - - containers-api-amplify_e2e_tests: + - api_4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - schema-key-amplify_e2e_tests: + - function_5-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - function_2-amplify_e2e_tests: + - import_auth_3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - schema-searchable-amplify_e2e_tests: + - migration-api-connection-migration2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - schema-iterative-rollback-1-amplify_e2e_tests: + - schema-function-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - function_1-amplify_e2e_tests: + - datastore-modelgen-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - schema-auth-6-amplify_e2e_tests: + - containers-api-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - schema-iterative-update-4-amplify_e2e_tests: + - windows + - geo-remove-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - frontend_config_drift-amplify_e2e_tests: + - schema-key-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - migration-node-function-amplify_e2e_tests: + - function_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - amplify-configure-amplify_e2e_tests: + - schema-auth-4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - schema-predictions-amplify_e2e_tests: + - schema-iterative-rollback-2-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-auth-1-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-auth-2-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - auth_6-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - predictions-amplify_e2e_tests: + - function_6-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - auth_1-amplify_e2e_tests: + - import_dynamodb_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - auth_3-amplify_e2e_tests: + - migration-node-function-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - schema-auth-4-amplify_e2e_tests: + - schema-iterative-update-locking-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - schema-iterative-rollback-2-amplify_e2e_tests: + - amplify-configure-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - schema-auth-1-amplify_e2e_tests: + - windows + - interactions-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - schema-iterative-update-3-amplify_e2e_tests: + - windows + - schema-predictions-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - function_5-amplify_e2e_tests: + - windows + - predictions-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - pull-amplify_e2e_tests: + - auth_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - init-amplify_e2e_tests: + - auth_3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - amplify-app-amplify_e2e_tests: + - api_3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - hostingPROD-amplify_e2e_tests: + - env-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - geo-add-amplify_e2e_tests: + - function_4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - auth_5-amplify_e2e_tests: + - api_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - layer-amplify_e2e_tests: + - auth_7-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - api_3-amplify_e2e_tests: + - function_7-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - env-amplify_e2e_tests: + - import_s3_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - function_4-amplify_e2e_tests: + - pull-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - schema-auth-2-amplify_e2e_tests: + - storage-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - function_6-amplify_e2e_tests: + - init-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - s3-sse-amplify_e2e_tests: - context: - - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo + - windows + - amplify-app-amplify_e2e_tests_pkg: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - tags-amplify_e2e_tests: + - hostingPROD-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - hosting-amplify_e2e_tests: + - auth_5-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - geo-update-amplify_e2e_tests: + - migration-api-key-migration1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - function_3-amplify_e2e_tests: + - import_auth_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - migration-api-key-migration1-amplify_e2e_tests: + - auth_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - import_auth_1-amplify_e2e_tests: + - schema-model-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - auth_2-amplify_e2e_tests: + - schema-auth-5-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - schema-function-amplify_e2e_tests: + - auth_8-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - api_1-amplify_e2e_tests: + - function_8-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: - linux - - api_4-amplify_e2e_tests_pkg: + - layer-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11348,14 +14253,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - function_7-amplify_e2e_tests_pkg: + - s3-sse-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11366,14 +14271,15 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - schema-iterative-update-locking-amplify_e2e_tests_pkg: + - windows + - storage-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11384,14 +14290,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - notifications-amplify_e2e_tests_pkg: + - tags-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11402,7 +14308,7 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: @@ -11410,7 +14316,7 @@ workflows: os: - linux - windows - - analytics-amplify_e2e_tests_pkg: + - hosting-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11421,15 +14327,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - windows - - geo-remove-amplify_e2e_tests_pkg: + - function_3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11440,14 +14345,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - schema-iterative-update-1-amplify_e2e_tests_pkg: + - auth_4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11458,14 +14363,15 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - auth_4-amplify_e2e_tests_pkg: + - windows + - import_auth_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11476,15 +14382,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - windows - - import_auth_2-amplify_e2e_tests_pkg: + - schema-auth-9-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11495,14 +14400,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - schema-auth-9-amplify_e2e_tests_pkg: + - migration-api-connection-migration-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11513,14 +14418,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - schema-model-amplify_e2e_tests_pkg: + - api_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11531,14 +14436,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - schema-auth-5-amplify_e2e_tests_pkg: + - configure-project-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11549,14 +14454,15 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - auth_6-amplify_e2e_tests_pkg: + - windows + - function_9-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11567,14 +14473,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - hooks-amplify_e2e_tests_pkg: + - layer-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11585,15 +14491,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - windows - - plugin-amplify_e2e_tests_pkg: + - schema-auth-12-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11604,15 +14509,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - windows - - schema-versioned-amplify_e2e_tests_pkg: + - storage-3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11623,7 +14527,7 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: @@ -11631,7 +14535,7 @@ workflows: os: - linux - windows - - interactions-amplify_e2e_tests_pkg: + - notifications-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11642,7 +14546,7 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: @@ -11650,7 +14554,7 @@ workflows: os: - linux - windows - - feature-flags-amplify_e2e_tests_pkg: + - analytics-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11661,14 +14565,15 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - schema-auth-3-amplify_e2e_tests_pkg: + - windows + - schema-iterative-update-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11679,7 +14584,7 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: @@ -11697,7 +14602,7 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: @@ -11715,7 +14620,7 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: @@ -11733,14 +14638,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - migration-api-connection-migration-amplify_e2e_tests_pkg: + - schema-connection-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11751,14 +14656,15 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - storage-amplify_e2e_tests_pkg: + - windows + - api_5-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11769,14 +14675,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - configure-project-amplify_e2e_tests_pkg: + - container-hosting-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11787,7 +14693,7 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: @@ -11795,7 +14701,7 @@ workflows: os: - linux - windows - - iam-permissions-boundary-amplify_e2e_tests_pkg: + - hooks-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11806,7 +14712,7 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: @@ -11814,7 +14720,7 @@ workflows: os: - linux - windows - - init-special-case-amplify_e2e_tests_pkg: + - layer-3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11825,15 +14731,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - windows - - schema-data-access-patterns-amplify_e2e_tests_pkg: + - schema-auth-13-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11844,14 +14749,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - schema-iterative-update-2-amplify_e2e_tests_pkg: + - plugin-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11862,14 +14767,15 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - schema-auth-10-amplify_e2e_tests_pkg: + - windows + - schema-versioned-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11880,14 +14786,15 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - delete-amplify_e2e_tests_pkg: + - windows + - feature-flags-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11898,14 +14805,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - schema-auth-8-amplify_e2e_tests_pkg: + - geo-add-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11916,14 +14823,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - import_dynamodb_1-amplify_e2e_tests_pkg: + - schema-auth-3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11934,14 +14841,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - migration-api-key-migration2-amplify_e2e_tests_pkg: + - schema-auth-8-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11952,14 +14859,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - schema-connection-amplify_e2e_tests_pkg: + - import_dynamodb_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11970,15 +14877,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - windows - - api_2-amplify_e2e_tests_pkg: + - migration-api-key-migration2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11989,14 +14895,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - container-hosting-amplify_e2e_tests_pkg: + - schema-auth-6-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12007,15 +14913,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - windows - - layer-2-amplify_e2e_tests_pkg: + - schema-iterative-update-4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12026,14 +14931,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - datastore-modelgen-amplify_e2e_tests_pkg: + - frontend_config_drift-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12044,14 +14949,15 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - containers-api-amplify_e2e_tests_pkg: + - windows + - iam-permissions-boundary-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12062,7 +14968,7 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: @@ -12070,7 +14976,7 @@ workflows: os: - linux - windows - - schema-key-amplify_e2e_tests_pkg: + - layer-4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12081,14 +14987,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - function_2-amplify_e2e_tests_pkg: + - schema-function-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12099,14 +15005,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - schema-searchable-amplify_e2e_tests_pkg: + - init-special-case-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12117,7 +15023,7 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: @@ -12125,7 +15031,7 @@ workflows: os: - linux - windows - - schema-iterative-rollback-1-amplify_e2e_tests_pkg: + - schema-data-access-patterns-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12136,14 +15042,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - function_1-amplify_e2e_tests_pkg: + - schema-iterative-update-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12154,14 +15060,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - schema-auth-6-amplify_e2e_tests_pkg: + - geo-update-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12172,14 +15078,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - schema-iterative-update-4-amplify_e2e_tests_pkg: + - schema-auth-10-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12190,14 +15096,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - frontend_config_drift-amplify_e2e_tests_pkg: + - delete-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12208,15 +15114,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - windows - - migration-node-function-amplify_e2e_tests_pkg: + - schema-searchable-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12227,14 +15132,15 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - amplify-configure-amplify_e2e_tests_pkg: + - windows + - schema-iterative-rollback-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12245,15 +15151,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - windows - - schema-predictions-amplify_e2e_tests_pkg: + - function_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12264,15 +15169,14 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - windows - - predictions-amplify_e2e_tests_pkg: + - schema-iterative-update-3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12283,534 +15187,502 @@ workflows: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - build_pkg_binaries matrix: parameters: os: - linux - - auth_1-amplify_e2e_tests_pkg: + - ConnectionsWithAuthTests-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - auth_3-amplify_e2e_tests_pkg: + - KeyTransformerLocal-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - schema-auth-4-amplify_e2e_tests_pkg: + - MutationCondition-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - schema-iterative-rollback-2-amplify_e2e_tests_pkg: + - PredictionsTransformerTests-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - schema-auth-1-amplify_e2e_tests_pkg: + - VersionedModelTransformer-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - schema-iterative-update-3-amplify_e2e_tests_pkg: + - CustomRoots-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - function_5-amplify_e2e_tests_pkg: + - KeyWithAuth-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - pull-amplify_e2e_tests_pkg: + - NestedStacksTest-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - init-amplify_e2e_tests_pkg: + - RelationalTransformers-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - windows - - amplify-app-amplify_e2e_tests_pkg: + - DynamoDBModelTransformer-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - hostingPROD-amplify_e2e_tests_pkg: + - ModelAuthTransformer-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - geo-add-amplify_e2e_tests_pkg: + - NewConnectionTransformer-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - auth_5-amplify_e2e_tests_pkg: + - SearchableModelTransformer-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - layer-amplify_e2e_tests_pkg: + - FunctionTransformerTests-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - api_3-amplify_e2e_tests_pkg: + - ModelConnectionTransformer-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - env-amplify_e2e_tests_pkg: + - NewConnectionWithAuth-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - function_4-amplify_e2e_tests_pkg: + - SearchableModelTransformerV2-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - schema-auth-2-amplify_e2e_tests_pkg: + - HttpTransformer-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - function_6-amplify_e2e_tests_pkg: + - ModelConnectionWithKeyTransformer-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - s3-sse-amplify_e2e_tests_pkg: + - NoneEnvFunctionTransformer-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - windows - - tags-amplify_e2e_tests_pkg: + - SearchableWithAuthTests-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - windows - - hosting-amplify_e2e_tests_pkg: + - IndexTransformer-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - geo-update-amplify_e2e_tests_pkg: + - ModelTransformer-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - function_3-amplify_e2e_tests_pkg: + - NonModelAuthFunction-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - migration-api-key-migration1-amplify_e2e_tests_pkg: + - SubscriptionsWithAuthTest-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - import_auth_1-amplify_e2e_tests_pkg: + - KeyTransformer-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - auth_2-amplify_e2e_tests_pkg: + - MultiAuthModelAuthTransformer-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - schema-function-amplify_e2e_tests_pkg: + - PerFieldAuthTests-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: - linux - - api_1-amplify_e2e_tests_pkg: + - TestComplexStackMappingsLocal-e2e-graphql_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - /tagged-release\/.*/ - - /run-e2e\/*./ + - /run-e2e\/.*/ requires: - - build_pkg_binaries + - build + - mock_e2e_tests matrix: parameters: os: @@ -12829,7 +15701,7 @@ commands: - machine: image: windows-server-2019-vs2019:stable resource_class: windows.large - shell: powershell.exe + shell: bash.exe working_directory: ~/repo environment: AMPLIFY_DIR: C:/home/circleci/repo/out @@ -12837,12 +15709,14 @@ commands: - << parameters.os >> steps: - run: + shell: powershell.exe name: Rename the Packaged CLI to amplify command: | # rename the command to amplify cd /home/circleci/repo/out cp amplify-pkg-win.exe amplify.exe - run: + shell: powershell.exe name: Move to CLI Binary to already existing PATH command: > # This is a Hack to make sure the Amplify CLI is in the PATH @@ -12888,7 +15762,7 @@ commands: - machine: image: windows-server-2019-vs2019:stable resource_class: windows.large - shell: powershell.exe + shell: bash.exe working_directory: ~/repo environment: AMPLIFY_DIR: C:/home/circleci/repo/out @@ -12899,9 +15773,11 @@ commands: - run: nvm use 12.22.5 - run: npm install -g yarn - run: yarn --cache-folder ~/.cache/yarn - - run: >- - cp /home/circleci/repo/out/amplify-pkg-win.exe - $env:homedrive\$env:homepath\AppData\Local\Microsoft\WindowsApps\amplify.exe + - run: + shell: powershell.exe + command: >- + cp /home/circleci/repo/out/amplify-pkg-win.exe + $env:homedrive\$env:homepath\AppData\Local\Microsoft\WindowsApps\amplify.exe install_java: description: Install Java on Linux and Docker images parameters: @@ -12933,56 +15809,14 @@ commands: type: executor default: linux-e2e-executor steps: - - when: - condition: - equal: - - machine: - image: windows-server-2019-vs2019:stable - resource_class: windows.large - shell: powershell.exe - working_directory: ~/repo - environment: - AMPLIFY_DIR: C:/home/circleci/repo/out - AMPLIFY_PATH: C:/home/circleci/repo/out/amplify.exe - - << parameters.os >> - steps: - - run: - name: Run E2E tests - shell: bash.exe - command: | - source .circleci/local_publish_helpers.sh - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - no_output_timeout: 90m - - when: - condition: - equal: - - docker: - - image: >- - public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest - working_directory: ~/repo - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - - << parameters.os >> - steps: - - run: - name: Shuffle AWS Credentials - command: | - source .circleci/local_publish_helpers.sh - setAwsAccountCredentials - - run: - name: Run E2E tests - command: | - source $BASH_ENV - amplify version - source .circleci/local_publish_helpers.sh - setAwsAccountCredentials - cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE - no_output_timeout: 90m + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + source $BASH_ENV + amplify version + retry runE2eTest + no_output_timeout: 90m scan_e2e_test_artifacts: description: Scan And Cleanup E2E Test Artifacts parameters: @@ -12990,51 +15824,15 @@ commands: type: executor default: linux-e2e-executor steps: - - when: - condition: - equal: - - machine: - image: windows-server-2019-vs2019:stable - resource_class: windows.large - shell: powershell.exe - working_directory: ~/repo - environment: - AMPLIFY_DIR: C:/home/circleci/repo/out - AMPLIFY_PATH: C:/home/circleci/repo/out/amplify.exe - - << parameters.os >> - steps: - - run: - name: Scan E2E artifacts - shell: bash.exe - command: | - if ! yarn ts-node .circleci/scan_artifacts.ts; then - echo "Cleaning the repository" - git clean -fdx - exit 1 - fi - when: always - - when: - condition: - equal: - - docker: - - image: >- - public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest - working_directory: ~/repo - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - - << parameters.os >> - steps: - - run: - name: Scan E2E artifacts - command: | - if ! yarn ts-node .circleci/scan_artifacts.ts; then - echo "Cleaning the repository" - git clean -fdx - exit 1 - fi - when: always + - run: + name: Scan E2E artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always clean_e2e_resources: description: Cleanup resources parameters: @@ -13042,44 +15840,10 @@ commands: type: executor default: linux-e2e-executor steps: - - when: - condition: - equal: - - machine: - image: windows-server-2019-vs2019:stable - resource_class: windows.large - shell: powershell.exe - working_directory: ~/repo - environment: - AMPLIFY_DIR: C:/home/circleci/repo/out - AMPLIFY_PATH: C:/home/circleci/repo/out/amplify.exe - - << parameters.os >> - steps: - - run: - name: Scan E2E artifacts - shell: bash.exe - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - when: always - - when: - condition: - equal: - - docker: - - image: >- - public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest - working_directory: ~/repo - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - - << parameters.os >> - steps: - - run: - name: Scan E2E artifacts - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - when: always + - run: + name: Scan E2E artifacts + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + when: always diff --git a/.circleci/local_publish_helpers.sh b/.circleci/local_publish_helpers.sh index 30698540585..382844f7cb1 100644 --- a/.circleci/local_publish_helpers.sh +++ b/.circleci/local_publish_helpers.sh @@ -4,82 +4,138 @@ custom_registry_url=http://localhost:4873 default_verdaccio_package=verdaccio@5.1.2 function startLocalRegistry { - # Start local registry - tmp_registry_log=$(mktemp) - echo "Registry output file: $tmp_registry_log" - (cd && nohup npx ${VERDACCIO_PACKAGE:-$default_verdaccio_package} -c $1 &>$tmp_registry_log &) - # Wait for Verdaccio to boot - grep -q 'http address' <(tail -f $tmp_registry_log) + # Start local registry + tmp_registry_log=$(mktemp) + echo "Registry output file: $tmp_registry_log" + (cd && nohup npx ${VERDACCIO_PACKAGE:-$default_verdaccio_package} -c $1 &>$tmp_registry_log &) + # Wait for Verdaccio to boot + grep -q 'http address' <(tail -f $tmp_registry_log) } function loginToLocalRegistry { - # Login so we can publish packages - (cd && npx npm-auth-to-token@1.0.0 -u user -p password -e user@example.com -r "$custom_registry_url") + # Login so we can publish packages + (cd && npx npm-auth-to-token@1.0.0 -u user -p password -e user@example.com -r "$custom_registry_url") } function unsetNpmRegistryUrl { - # Restore the original NPM and Yarn registry URLs - npm set registry "https://registry.npmjs.org/" - yarn config set registry "https://registry.npmjs.org/" + # Restore the original NPM and Yarn registry URLs + npm set registry "https://registry.npmjs.org/" + yarn config set registry "https://registry.npmjs.org/" } function unsetSudoNpmRegistryUrl { - # Restore the original NPM and Yarn registry URLs - sudo npm set registry "https://registry.npmjs.org/" - sudo yarn config set registry "https://registry.npmjs.org/" + # Restore the original NPM and Yarn registry URLs + sudo npm set registry "https://registry.npmjs.org/" + sudo yarn config set registry "https://registry.npmjs.org/" } function changeNpmGlobalPath { - mkdir -p ~/.npm-global - npm config set prefix '~/.npm-global' - export PATH=~/.npm-global/bin:$PATH + mkdir -p ~/.npm-global + npm config set prefix '~/.npm-global' + export PATH=~/.npm-global/bin:$PATH } function changeSudoNpmGlobalPath { - mkdir -p ~/.npm-global-sudo - npm config set prefix '~/.npm-global-sudo' - export PATH=~/.npm-global/bin:$PATH + mkdir -p ~/.npm-global-sudo + npm config set prefix '~/.npm-global-sudo' + export PATH=~/.npm-global/bin:$PATH } function setNpmRegistryUrlToLocal { - # Set registry to local registry - npm set registry "$custom_registry_url" - yarn config set registry "$custom_registry_url" + # Set registry to local registry + npm set registry "$custom_registry_url" + yarn config set registry "$custom_registry_url" } function setSudoNpmRegistryUrlToLocal { - # Set registry to local registry - sudo npm set registry "$custom_registry_url" - sudo yarn config set registry "$custom_registry_url" + # Set registry to local registry + sudo npm set registry "$custom_registry_url" + sudo yarn config set registry "$custom_registry_url" } function useChildAccountCredentials { - if [ -z "$USE_PARENT_ACCOUNT" ]; then - export AWS_PAGER="" - export ORGANIZATION_SIZE=$(aws organizations list-accounts | jq '.Accounts | length') - export CREDS=$(aws sts assume-role --role-arn arn:aws:iam::$(aws organizations list-accounts | jq -c -r ".Accounts [$(($RANDOM % $ORGANIZATION_SIZE))].Id"):role/OrganizationAccountAccessRole --role-session-name testSession$((1 + $RANDOM % 10000)) --duration-seconds 3600) - if [ -z $(echo $CREDS | jq -c -r '.AssumedRoleUser.Arn') ]; then - echo "Unable to assume child account role. Falling back to parent AWS account" + if [ -z "$USE_PARENT_ACCOUNT" ]; then + export AWS_PAGER="" + export ORGANIZATION_SIZE=$(aws organizations list-accounts | jq '.Accounts | length') + export CREDS=$(aws sts assume-role --role-arn arn:aws:iam::$(aws organizations list-accounts | jq -c -r ".Accounts [$(($RANDOM % $ORGANIZATION_SIZE))].Id"):role/OrganizationAccountAccessRole --role-session-name testSession$((1 + $RANDOM % 10000)) --duration-seconds 3600) + if [ -z $(echo $CREDS | jq -c -r '.AssumedRoleUser.Arn') ]; then + echo "Unable to assume child account role. Falling back to parent AWS account" + else + echo "Using account credentials for $(echo $CREDS | jq -c -r '.AssumedRoleUser.Arn')" + export AWS_ACCESS_KEY_ID=$(echo $CREDS | jq -c -r ".Credentials.AccessKeyId") + export AWS_SECRET_ACCESS_KEY=$(echo $CREDS | jq -c -r ".Credentials.SecretAccessKey") + export AWS_SESSION_TOKEN=$(echo $CREDS | jq -c -r ".Credentials.SessionToken") + fi else - echo "Using account credentials for $(echo $CREDS | jq -c -r '.AssumedRoleUser.Arn')" - export AWS_ACCESS_KEY_ID=$(echo $CREDS | jq -c -r ".Credentials.AccessKeyId") - export AWS_SECRET_ACCESS_KEY=$(echo $CREDS | jq -c -r ".Credentials.SecretAccessKey") - export AWS_SESSION_TOKEN=$(echo $CREDS | jq -c -r ".Credentials.SessionToken") + echo "Using parent account credentials." + fi +} + +retry() { + # TODO: Bump MAX_ATTEMPTS when there is more team buy-in to this strategy + MAX_ATTEMPTS=1 + SLEEP_DURATION=5 + n=0 + until [ $n -ge $MAX_ATTEMPTS ] + do + echo "Attempting $@ with max retries $MAX_ATTEMPTS" + "$@" && break + n=$[$n+1] + echo "Attempt $n completed." + sleep $SLEEP_DURATION + done + if [ $n -ge $MAX_ATTEMPTS ]; then + echo "failed: ${@}" >&2 + exit 1 + fi + echo "Attempt $n succeeded." +} + +function resetAwsAccountCredentials { + if [ -z "$AWS_ACCESS_KEY_ID_ORIG" ]; then + echo "AWS Access Key environment variable is already set" + else + export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID_ORIG + fi + if [ -z "$AWS_SECRET_ACCESS_KEY_ORIG" ]; then + echo "AWS Secret Access Key environment variable is already set" + else + export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY_ORIG + fi + if [ -z "$AWS_SESSION_TOKEN_ORIG" ]; then + echo "AWS Session Token environment variable is already set" + else + export AWS_SESSION_TOKEN=$AWS_SESSION_TOKEN_ORIG fi - else - echo "Using parent account credentials." - fi } function setAwsAccountCredentials { - if [[ "$OSTYPE" == "msys" ]]; then - # windows provided by circleci has this OSTYPE - useChildAccountCredentials - else - echo "OSTYPE is $OSTYPE" - curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" - unzip -o awscliv2.zip >/dev/null - export PATH=$PATH:$(pwd)/aws/dist - useChildAccountCredentials - fi + resetAwsAccountCredentials + export AWS_ACCESS_KEY_ID_ORIG=$AWS_ACCESS_KEY_ID + export AWS_SECRET_ACCESS_KEY_ORIG=$AWS_SECRET_ACCESS_KEY + export AWS_SESSION_TOKEN_ORIG=$AWS_SESSION_TOKEN + if [[ "$OSTYPE" == "msys" ]]; then + # windows provided by circleci has this OSTYPE + useChildAccountCredentials + else + echo "OSTYPE is $OSTYPE" + curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + unzip -o awscliv2.zip >/dev/null + export PATH=$PATH:$(pwd)/aws/dist + useChildAccountCredentials + fi +} + +function runE2eTest { + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + amplify -v + amplify-app --version + setAwsAccountCredentials + cd $(pwd)/packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl } diff --git a/packages/amplify-e2e-tests/src/__tests__/api_2.test.ts b/packages/amplify-e2e-tests/src/__tests__/api_2.test.ts index 1b8b5d639b7..968bff75d5e 100644 --- a/packages/amplify-e2e-tests/src/__tests__/api_2.test.ts +++ b/packages/amplify-e2e-tests/src/__tests__/api_2.test.ts @@ -306,156 +306,3 @@ describe('amplify add api (GraphQL)', () => { // } // }); }); - -describe('amplify add api (REST)', () => { - let projRoot: string; - beforeEach(async () => { - projRoot = await createNewProjectDir('rest-api'); - }); - - afterEach(async () => { - const meta = getProjectMeta(projRoot); - expect(meta.providers.awscloudformation).toBeDefined(); - const { - AuthRoleArn: authRoleArn, - UnauthRoleArn: unauthRoleArn, - DeploymentBucketName: bucketName, - Region: region, - StackId: stackId, - } = meta.providers.awscloudformation; - expect(authRoleArn).toBeDefined(); - expect(unauthRoleArn).toBeDefined(); - expect(region).toBeDefined(); - expect(stackId).toBeDefined(); - const bucketExists = await checkIfBucketExists(bucketName, region); - expect(bucketExists).toMatchObject({}); - - expect(meta.function).toBeDefined(); - let seenAtLeastOneFunc = false; - for (let key of Object.keys(meta.function)) { - const { - service, - build, - lastBuildTimeStamp, - lastPackageTimeStamp, - distZipFilename, - lastPushTimeStamp, - lastPushDirHash, - } = meta.function[key]; - expect(service).toBe('Lambda'); - expect(build).toBeTruthy(); - expect(lastBuildTimeStamp).toBeDefined(); - expect(lastPackageTimeStamp).toBeDefined(); - expect(distZipFilename).toBeDefined(); - expect(lastPushTimeStamp).toBeDefined(); - expect(lastPushDirHash).toBeDefined(); - seenAtLeastOneFunc = true; - } - expect(seenAtLeastOneFunc).toBeTruthy(); - - await deleteProject(projRoot); - deleteProjectDir(projRoot); - }); - - it('init a project, add a DDB, then add a crud rest api', async () => { - const randomId = await global.getRandomId(); - const DDB_NAME = `ddb${randomId}`; - await initJSProjectWithProfile(projRoot, {}); - await addSimpleDDB(projRoot, { name: DDB_NAME }); - await addRestApi(projRoot, { isCrud: true }); - await amplifyPushUpdate(projRoot); - - const meta = getProjectMeta(projRoot); - expect(meta.storage[DDB_NAME]).toBeDefined(); - const { service, lastPushTimeStamp, lastPushDirHash } = meta.storage[DDB_NAME]; - expect(service).toBe('DynamoDB'); - expect(lastPushTimeStamp).toBeDefined(); - expect(lastPushDirHash).toBeDefined(); - }); - - it('init a project, then add a serverless rest api', async () => { - await initJSProjectWithProfile(projRoot, {}); - await addRestApi(projRoot, { isCrud: false }); - await amplifyPushUpdate(projRoot); - }); - - it('init a project, create lambda and attach it to an api', async () => { - await initJSProjectWithProfile(projRoot, {}); - await addFunction(projRoot, { functionTemplate: 'Hello World' }, 'nodejs'); - await addRestApi(projRoot, { existingLambda: true }); - await amplifyPushUpdate(projRoot); - }); - - it('init a project, create lambda and attach multiple rest apis', async () => { - await initJSProjectWithProfile(projRoot, {}); - await addFunction(projRoot, { functionTemplate: 'Hello World' }, 'nodejs'); - await addRestApi(projRoot, { - existingLambda: true, - restrictAccess: true, - allowGuestUsers: true, - }); - await addRestApi(projRoot, { - isFirstRestApi: false, - existingLambda: true, - restrictAccess: true, - allowGuestUsers: true, - }); - await addRestApi(projRoot, { - isFirstRestApi: false, - existingLambda: true, - restrictAccess: true, - allowGuestUsers: false, - }); - await addRestApi(projRoot, { isFirstRestApi: false, existingLambda: true }); - await updateAuthAddAdminQueries(projRoot); - await amplifyPushUpdate(projRoot); - - const amplifyMeta = getProjectMeta(projRoot); - const meta = amplifyMeta.providers.awscloudformation; - const { AuthRoleName, UnauthRoleName, Region } = meta; - - expect(await listRolePolicies(AuthRoleName, Region)).toEqual([]); - expect(await listRolePolicies(UnauthRoleName, Region)).toEqual([]); - - const authPolicies = await listAttachedRolePolicies(AuthRoleName, Region); - expect(authPolicies.length).toBeGreaterThan(0); - - for (let i = 0; i < authPolicies.length; i++) { - expect(authPolicies[i].PolicyName).toMatch(/PolicyAPIGWAuth\d/); - } - - const unauthPolicies = await listAttachedRolePolicies(UnauthRoleName, Region); - expect(unauthPolicies.length).toBeGreaterThan(0); - - for (let i = 0; i < unauthPolicies.length; i++) { - expect(unauthPolicies[i].PolicyName).toMatch(/PolicyAPIGWUnauth\d/); - } - }); - - it('adds a rest api and then adds a path to the existing api', async () => { - await initJSProjectWithProfile(projRoot, {}); - await addFunction(projRoot, { functionTemplate: 'Hello World' }, 'nodejs'); - await addRestApi(projRoot, { existingLambda: true }); - await addRestApi(projRoot, { isFirstRestApi: false, existingLambda: true, path: '/newpath' }); - await amplifyPushUpdate(projRoot); - }); - - it('migrates malformed project files during push', async () => { - await initJSProjectWithProfile(projRoot, {}); - await addFunction(projRoot, { functionTemplate: 'Hello World' }, 'nodejs'); - await addRestApi(projRoot, { existingLambda: true, restrictAccess: true }); - - const apisDirectory = path.join(projRoot, 'amplify', 'backend', 'api'); - const apis = readdirSync(apisDirectory); - const apiName = apis[0]; - const apiDirectory = path.join(apisDirectory, apiName); - const cfnTemplateFile = path.join(apiDirectory, `${apiName}-cloudformation-template.json`); - const cfnTemplate = JSON.parse(readFileSync(cfnTemplateFile, 'utf8')); - - // The ApiId output is required, and will be added automatically if it is missing. - cfnTemplate.Outputs.ApiId = undefined; - - writeFileSync(cfnTemplateFile, JSON.stringify(cfnTemplate)); - await amplifyPushUpdate(projRoot); - }); -}); diff --git a/packages/amplify-e2e-tests/src/__tests__/api_5.test.ts b/packages/amplify-e2e-tests/src/__tests__/api_5.test.ts new file mode 100644 index 00000000000..e17e45de418 --- /dev/null +++ b/packages/amplify-e2e-tests/src/__tests__/api_5.test.ts @@ -0,0 +1,192 @@ +import { + amplifyPush, + amplifyPushUpdate, + deleteProject, + initJSProjectWithProfile, + listAttachedRolePolicies, + listRolePolicies, + updateAuthAddAdminQueries, +} from 'amplify-e2e-core'; +import * as path from 'path'; +import { existsSync, readFileSync, readdirSync, writeFileSync } from 'fs'; +import AWSAppSyncClient, { AUTH_TYPE } from 'aws-appsync'; +import gql from 'graphql-tag'; +const providerName = 'awscloudformation'; + +import { + addApiWithSchema, + addApiWithSchemaAndConflictDetection, + addRestApi, + updateAPIWithResolutionStrategy, + apiUpdateToggleDataStore, + addFunction, + addSimpleDDB, + checkIfBucketExists, + createNewProjectDir, + deleteProjectDir, + getAppSyncApi, + getProjectMeta, + getLocalEnvInfo, + getTransformConfig, + enableAdminUI, +} from 'amplify-e2e-core'; +import { TRANSFORM_CURRENT_VERSION } from 'graphql-transformer-core'; +import _ from 'lodash'; + +// to deal with bug in cognito-identity-js +(global as any).fetch = require('node-fetch'); +// to deal with subscriptions in node env +(global as any).WebSocket = require('ws'); + +describe('amplify add api (REST)', () => { + let projRoot: string; + beforeEach(async () => { + projRoot = await createNewProjectDir('rest-api'); + }); + + afterEach(async () => { + const meta = getProjectMeta(projRoot); + expect(meta.providers.awscloudformation).toBeDefined(); + const { + AuthRoleArn: authRoleArn, + UnauthRoleArn: unauthRoleArn, + DeploymentBucketName: bucketName, + Region: region, + StackId: stackId, + } = meta.providers.awscloudformation; + expect(authRoleArn).toBeDefined(); + expect(unauthRoleArn).toBeDefined(); + expect(region).toBeDefined(); + expect(stackId).toBeDefined(); + const bucketExists = await checkIfBucketExists(bucketName, region); + expect(bucketExists).toMatchObject({}); + + expect(meta.function).toBeDefined(); + let seenAtLeastOneFunc = false; + for (let key of Object.keys(meta.function)) { + const { + service, + build, + lastBuildTimeStamp, + lastPackageTimeStamp, + distZipFilename, + lastPushTimeStamp, + lastPushDirHash, + } = meta.function[key]; + expect(service).toBe('Lambda'); + expect(build).toBeTruthy(); + expect(lastBuildTimeStamp).toBeDefined(); + expect(lastPackageTimeStamp).toBeDefined(); + expect(distZipFilename).toBeDefined(); + expect(lastPushTimeStamp).toBeDefined(); + expect(lastPushDirHash).toBeDefined(); + seenAtLeastOneFunc = true; + } + expect(seenAtLeastOneFunc).toBeTruthy(); + + await deleteProject(projRoot); + deleteProjectDir(projRoot); + }); + + it('init a project, add a DDB, then add a crud rest api', async () => { + const randomId = await global.getRandomId(); + const DDB_NAME = `ddb${randomId}`; + await initJSProjectWithProfile(projRoot, {}); + await addSimpleDDB(projRoot, { name: DDB_NAME }); + await addRestApi(projRoot, { isCrud: true }); + await amplifyPushUpdate(projRoot); + + const meta = getProjectMeta(projRoot); + expect(meta.storage[DDB_NAME]).toBeDefined(); + const { service, lastPushTimeStamp, lastPushDirHash } = meta.storage[DDB_NAME]; + expect(service).toBe('DynamoDB'); + expect(lastPushTimeStamp).toBeDefined(); + expect(lastPushDirHash).toBeDefined(); + }); + + it('init a project, then add a serverless rest api', async () => { + await initJSProjectWithProfile(projRoot, {}); + await addRestApi(projRoot, { isCrud: false }); + await amplifyPushUpdate(projRoot); + }); + + it('init a project, create lambda and attach it to an api', async () => { + await initJSProjectWithProfile(projRoot, {}); + await addFunction(projRoot, { functionTemplate: 'Hello World' }, 'nodejs'); + await addRestApi(projRoot, { existingLambda: true }); + await amplifyPushUpdate(projRoot); + }); + + it('init a project, create lambda and attach multiple rest apis', async () => { + await initJSProjectWithProfile(projRoot, {}); + await addFunction(projRoot, { functionTemplate: 'Hello World' }, 'nodejs'); + await addRestApi(projRoot, { + existingLambda: true, + restrictAccess: true, + allowGuestUsers: true, + }); + await addRestApi(projRoot, { + isFirstRestApi: false, + existingLambda: true, + restrictAccess: true, + allowGuestUsers: true, + }); + await addRestApi(projRoot, { + isFirstRestApi: false, + existingLambda: true, + restrictAccess: true, + allowGuestUsers: false, + }); + await addRestApi(projRoot, { isFirstRestApi: false, existingLambda: true }); + await updateAuthAddAdminQueries(projRoot); + await amplifyPushUpdate(projRoot); + + const amplifyMeta = getProjectMeta(projRoot); + const meta = amplifyMeta.providers.awscloudformation; + const { AuthRoleName, UnauthRoleName, Region } = meta; + + expect(await listRolePolicies(AuthRoleName, Region)).toEqual([]); + expect(await listRolePolicies(UnauthRoleName, Region)).toEqual([]); + + const authPolicies = await listAttachedRolePolicies(AuthRoleName, Region); + expect(authPolicies.length).toBeGreaterThan(0); + + for (let i = 0; i < authPolicies.length; i++) { + expect(authPolicies[i].PolicyName).toMatch(/PolicyAPIGWAuth\d/); + } + + const unauthPolicies = await listAttachedRolePolicies(UnauthRoleName, Region); + expect(unauthPolicies.length).toBeGreaterThan(0); + + for (let i = 0; i < unauthPolicies.length; i++) { + expect(unauthPolicies[i].PolicyName).toMatch(/PolicyAPIGWUnauth\d/); + } + }); + + it('adds a rest api and then adds a path to the existing api', async () => { + await initJSProjectWithProfile(projRoot, {}); + await addFunction(projRoot, { functionTemplate: 'Hello World' }, 'nodejs'); + await addRestApi(projRoot, { existingLambda: true }); + await addRestApi(projRoot, { isFirstRestApi: false, existingLambda: true, path: '/newpath' }); + await amplifyPushUpdate(projRoot); + }); + + it('migrates malformed project files during push', async () => { + await initJSProjectWithProfile(projRoot, {}); + await addFunction(projRoot, { functionTemplate: 'Hello World' }, 'nodejs'); + await addRestApi(projRoot, { existingLambda: true, restrictAccess: true }); + + const apisDirectory = path.join(projRoot, 'amplify', 'backend', 'api'); + const apis = readdirSync(apisDirectory); + const apiName = apis[0]; + const apiDirectory = path.join(apisDirectory, apiName); + const cfnTemplateFile = path.join(apiDirectory, `${apiName}-cloudformation-template.json`); + const cfnTemplate = JSON.parse(readFileSync(cfnTemplateFile, 'utf8')); + + // The ApiId output is required, and will be added automatically if it is missing. + cfnTemplate.Outputs.ApiId = undefined; + + writeFileSync(cfnTemplateFile, JSON.stringify(cfnTemplate)); + await amplifyPushUpdate(projRoot); + }); +}); diff --git a/packages/amplify-e2e-tests/src/__tests__/auth_1.test.ts b/packages/amplify-e2e-tests/src/__tests__/auth_1.test.ts index dd6cb83f89b..5baf0d5fc54 100644 --- a/packages/amplify-e2e-tests/src/__tests__/auth_1.test.ts +++ b/packages/amplify-e2e-tests/src/__tests__/auth_1.test.ts @@ -110,33 +110,4 @@ describe('amplify add auth...', () => { const userPool = await getUserPool(id, meta.providers.awscloudformation.Region); expect(userPool.UserPool).toBeDefined(); }); - - it('...should init a project and add auth with defaults and then remove auth and add another auth and push', async () => { - await initJSProjectWithProfile(projRoot, defaultsSettings); - await addAuthWithDefault(projRoot, {}); - await amplifyPushAuth(projRoot); - await removeAuthWithDefault(projRoot); - await addAuthWithDefault(projRoot, {}); - await amplifyPushAuth(projRoot); - }); - - it('...should init a Flutter project and add auth with defaults', async () => { - await initFlutterProjectWithProfile(projRoot, defaultsSettings); - await addAuthWithDefault(projRoot, {}); - await amplifyPushAuth(projRoot); - const meta = getProjectMeta(projRoot); - const id = Object.keys(meta.auth).map(key => meta.auth[key])[0].output.UserPoolId; - const userPool = await getUserPool(id, meta.providers.awscloudformation.Region); - expect(userPool.UserPool).toBeDefined(); - expect(fs.existsSync(path.join(projRoot, 'lib', 'amplifyconfiguration.dart'))).toBe(true); - }); - - it('...should init a project and add auth with defaults and then remove auth and add another auth and push', async () => { - await initFlutterProjectWithProfile(projRoot, defaultsSettings); - await addAuthWithDefault(projRoot, {}); - await amplifyPushAuth(projRoot); - await removeAuthWithDefault(projRoot); - await addAuthWithDefault(projRoot, {}); - await amplifyPushAuth(projRoot); - }); }); diff --git a/packages/amplify-e2e-tests/src/__tests__/auth_5.test.ts b/packages/amplify-e2e-tests/src/__tests__/auth_5.test.ts index faa54d767d3..d485fe24904 100644 --- a/packages/amplify-e2e-tests/src/__tests__/auth_5.test.ts +++ b/packages/amplify-e2e-tests/src/__tests__/auth_5.test.ts @@ -115,54 +115,4 @@ describe('headless auth', () => { const { auth: authBackendConfigAfter } = getCloudBackendConfig(projRoot); expect(_.isEmpty(authBackendConfigAfter)).toBe(true); }); - - describe(' import', () => { - let ogProjectSettings: {name: string}; - let ogProjectRoot: string; - - beforeEach(async () => { - const ogProjectPrefix = 'ogauimphea'; - ogProjectSettings = { - name: ogProjectPrefix, - }; - ogProjectRoot = await createNewProjectDir(ogProjectSettings.name); - await initJSProjectWithProfile(ogProjectRoot, ogProjectSettings); - }); - - afterEach(async () => { - await deleteProject(ogProjectRoot); - deleteProjectDir(ogProjectRoot); - }); - - test.each([ - ['userpool only', false], - ['userpool with identitypool', true], - ])(' cognito userpool %s', async (_: string, withIdentityPool: boolean) => { - const ogProjectDetails = await setupOgProjectWithAuth(ogProjectRoot, ogProjectSettings, withIdentityPool); - - const importAuthRequest: ImportAuthRequest = { - version: 1, - userPoolId: ogProjectDetails.meta.UserPoolId, - nativeClientId: ogProjectDetails.meta.AppClientID, - webClientId: ogProjectDetails.meta.AppClientIDWeb, - }; - if (withIdentityPool) { - importAuthRequest.identityPoolId = ogProjectDetails.meta.IdentityPoolId; - } - - await initJSProjectWithProfile(projRoot, defaultsSettings); - await headlessAuthImport(projRoot, importAuthRequest); - await amplifyPushAuth(projRoot); - - let projectDetails = getAuthProjectDetails(projRoot); - expectAuthProjectDetailsMatch(projectDetails, ogProjectDetails); - expectLocalAndCloudMetaFilesMatching(projRoot); - - await removeImportedAuthWithDefault(projRoot); - await amplifyPushAuth(projRoot); - - expectNoAuthInMeta(projRoot); - expectLocalTeamInfoHasNoCategories(projRoot); - }); - }); }); diff --git a/packages/amplify-e2e-tests/src/__tests__/auth_7.test.ts b/packages/amplify-e2e-tests/src/__tests__/auth_7.test.ts new file mode 100644 index 00000000000..c53be09f784 --- /dev/null +++ b/packages/amplify-e2e-tests/src/__tests__/auth_7.test.ts @@ -0,0 +1,96 @@ +import { + initJSProjectWithProfile, + deleteProject, + amplifyPushAuth, + addHeadlessAuth, + updateHeadlessAuth, + removeHeadlessAuth, + getCloudBackendConfig, + headlessAuthImport, +} from 'amplify-e2e-core'; +import { addAuthWithDefault, getBackendAmplifyMeta } from 'amplify-e2e-core'; +import { createNewProjectDir, deleteProjectDir, getProjectMeta, getUserPool } from 'amplify-e2e-core'; +import { + AddAuthRequest, + CognitoUserPoolSigninMethod, + CognitoUserProperty, + ImportAuthRequest, + UpdateAuthRequest, +} from 'amplify-headless-interface'; +import _ from 'lodash'; +import { + expectAuthProjectDetailsMatch, + expectLocalAndCloudMetaFilesMatching, + expectLocalTeamInfoHasNoCategories, + expectNoAuthInMeta, + getAuthProjectDetails, + removeImportedAuthWithDefault, + setupOgProjectWithAuth, +} from '../import-helpers'; + +const PROJECT_NAME = 'authTest'; +const defaultsSettings = { + name: PROJECT_NAME, +}; + +describe('headless auth', () => { + let projRoot: string; + beforeEach(async () => { + projRoot = await createNewProjectDir('auth-update'); + }); + + afterEach(async () => { + await deleteProject(projRoot); + deleteProjectDir(projRoot); + }); + + describe(' import', () => { + let ogProjectSettings: {name: string}; + let ogProjectRoot: string; + + beforeEach(async () => { + const ogProjectPrefix = 'ogauimphea'; + ogProjectSettings = { + name: ogProjectPrefix, + }; + ogProjectRoot = await createNewProjectDir(ogProjectSettings.name); + await initJSProjectWithProfile(ogProjectRoot, ogProjectSettings); + }); + + afterEach(async () => { + await deleteProject(ogProjectRoot); + deleteProjectDir(ogProjectRoot); + }); + + test.each([ + ['userpool only', false], + ['userpool with identitypool', true], + ])(' cognito userpool %s', async (_: string, withIdentityPool: boolean) => { + const ogProjectDetails = await setupOgProjectWithAuth(ogProjectRoot, ogProjectSettings, withIdentityPool); + + const importAuthRequest: ImportAuthRequest = { + version: 1, + userPoolId: ogProjectDetails.meta.UserPoolId, + nativeClientId: ogProjectDetails.meta.AppClientID, + webClientId: ogProjectDetails.meta.AppClientIDWeb, + }; + if (withIdentityPool) { + importAuthRequest.identityPoolId = ogProjectDetails.meta.IdentityPoolId; + } + + await initJSProjectWithProfile(projRoot, defaultsSettings); + await headlessAuthImport(projRoot, importAuthRequest); + await amplifyPushAuth(projRoot); + + let projectDetails = getAuthProjectDetails(projRoot); + expectAuthProjectDetailsMatch(projectDetails, ogProjectDetails); + expectLocalAndCloudMetaFilesMatching(projRoot); + + await removeImportedAuthWithDefault(projRoot); + await amplifyPushAuth(projRoot); + + expectNoAuthInMeta(projRoot); + expectLocalTeamInfoHasNoCategories(projRoot); + }); + }); +}); diff --git a/packages/amplify-e2e-tests/src/__tests__/auth_8.test.ts b/packages/amplify-e2e-tests/src/__tests__/auth_8.test.ts new file mode 100644 index 00000000000..31870b09bce --- /dev/null +++ b/packages/amplify-e2e-tests/src/__tests__/auth_8.test.ts @@ -0,0 +1,62 @@ +import * as fs from 'fs-extra'; +import * as path from 'path'; +import { + initJSProjectWithProfile, + initFlutterProjectWithProfile, + deleteProject, + amplifyPushAuth, + getAwsIOSConfig, + getUserPoolClients, + getParameters, + setParameters, + initIosProjectWithProfile, + getAwsAndroidConfig, + initAndroidProjectWithProfile, +} from 'amplify-e2e-core'; +import { addAuthWithDefault, runAmplifyAuthConsole, removeAuthWithDefault } from 'amplify-e2e-core'; +import { createNewProjectDir, deleteProjectDir, getProjectMeta, getUserPool } from 'amplify-e2e-core'; + +const defaultsSettings = { + name: 'authTest', +}; + +describe('amplify add auth...', () => { + let projRoot: string; + beforeEach(async () => { + projRoot = await createNewProjectDir('auth'); + }); + + afterEach(async () => { + await deleteProject(projRoot); + deleteProjectDir(projRoot); + }); + + it('...should init a project and add auth with defaults and then remove auth and add another auth and push', async () => { + await initJSProjectWithProfile(projRoot, defaultsSettings); + await addAuthWithDefault(projRoot, {}); + await amplifyPushAuth(projRoot); + await removeAuthWithDefault(projRoot); + await addAuthWithDefault(projRoot, {}); + await amplifyPushAuth(projRoot); + }); + + it('...should init a Flutter project and add auth with defaults', async () => { + await initFlutterProjectWithProfile(projRoot, defaultsSettings); + await addAuthWithDefault(projRoot, {}); + await amplifyPushAuth(projRoot); + const meta = getProjectMeta(projRoot); + const id = Object.keys(meta.auth).map(key => meta.auth[key])[0].output.UserPoolId; + const userPool = await getUserPool(id, meta.providers.awscloudformation.Region); + expect(userPool.UserPool).toBeDefined(); + expect(fs.existsSync(path.join(projRoot, 'lib', 'amplifyconfiguration.dart'))).toBe(true); + }); + + it('...should init a project and add auth with defaults and then remove auth and add another auth and push', async () => { + await initFlutterProjectWithProfile(projRoot, defaultsSettings); + await addAuthWithDefault(projRoot, {}); + await amplifyPushAuth(projRoot); + await removeAuthWithDefault(projRoot); + await addAuthWithDefault(projRoot, {}); + await amplifyPushAuth(projRoot); + }); +}); diff --git a/packages/amplify-e2e-tests/src/__tests__/function_2.test.ts b/packages/amplify-e2e-tests/src/__tests__/function_2.test.ts index d06803a3a57..1eb2c43e7a6 100644 --- a/packages/amplify-e2e-tests/src/__tests__/function_2.test.ts +++ b/packages/amplify-e2e-tests/src/__tests__/function_2.test.ts @@ -268,255 +268,5 @@ describe('nodejs', () => { expect(lambdaSource.includes('TODOTABLE_ARN')).toBeTruthy(); expect(lambdaSource.includes('GRAPHQLAPIIDOUTPUT')).toBeTruthy(); }); - - it('environment vars comment should update on permission update', async () => { - await initJSProjectWithProfile(projRoot, {}); - const random = Math.floor(Math.random() * 10000); - const funcName = `nodetestfn${random}`; - const ddbName = `nodetestddb`; - - await addFunction( - projRoot, - { - name: funcName, - functionTemplate: 'Hello World', - }, - 'nodejs', - ); - await addSimpleDDB(projRoot, { name: ddbName }); - await updateFunction( - projRoot, - { - additionalPermissions: { - permissions: ['storage'], - choices: ['function', 'storage'], - operations: ['read'], - resources: [ddbName], - }, - }, - 'nodejs', - ); - const lambdaHandlerContents = fs.readFileSync( - path.join(projRoot, 'amplify', 'backend', 'function', funcName, 'src', 'index.js'), - 'utf8', - ); - expect(lambdaHandlerContents).toMatchSnapshot(); - }); - - it('adding api and storage permissions should not add duplicates to CFN', async () => { - await initJSProjectWithProfile(projRoot, {}); - await addApiWithSchema(projRoot, 'two-model-schema.graphql'); - - const random = Math.floor(Math.random() * 10000); - const fnName = `integtestfn${random}`; - const ddbName = `ddbTable${random}`; - - await addSimpleDDB(projRoot, { name: ddbName }); - await addFunction( - projRoot, - { - name: fnName, - functionTemplate: 'Hello World', - additionalPermissions: { - permissions: ['storage'], - choices: ['api', 'storage'], - resources: [ddbName, 'Post:@model(appsync)', 'Comment:@model(appsync)'], - resourceChoices: [ddbName, 'Post:@model(appsync)', 'Comment:@model(appsync)'], - operations: ['read'], - }, - }, - 'nodejs', - ); - - const lambdaCFN = readJsonFile( - path.join(projRoot, 'amplify', 'backend', 'function', fnName, `${fnName}-cloudformation-template.json`), - ); - expect(lambdaCFN.Resources.AmplifyResourcesPolicy.Properties.PolicyDocument.Statement.length).toBe(3); - }); - - it('update DDB trigger function to add permissions should not changed its dependsOn attributes of the trigger source', async () => { - await initJSProjectWithProfile(projRoot, {}); - const ddbResourceName = 'testddbresource'; - await addDDBWithTrigger(projRoot, { ddbResourceName }); - - const originalAmplifyMeta = getBackendAmplifyMeta(projRoot); - const functionResourceName = Object.keys(originalAmplifyMeta.function)[0]; - const originalAttributes = originalAmplifyMeta.function[functionResourceName].dependsOn[0].attributes.sort(); - - await updateFunction( - projRoot, - { - additionalPermissions: { - resources: [ddbResourceName], - permissions: ['storage'], - choices: ['function', 'storage'], - operations: ['read', 'update'], - }, - }, - 'nodejs', - ); - - const updateAmplifyMeta = getBackendAmplifyMeta(projRoot); - const updateAttributes = updateAmplifyMeta.function[functionResourceName].dependsOn[0].attributes.sort(); - expect(originalAttributes).toEqual(updateAttributes); - - await amplifyPushAuth(projRoot); - const amplifyMeta = getBackendAmplifyMeta(projRoot); - expect(amplifyMeta.function[functionResourceName].output).toBeDefined(); - expect(amplifyMeta.function[functionResourceName].output.Arn).toBeDefined(); - }); - - it('function dependencies should be preserved when not editing permissions during `amplify update function`', async () => { - await initJSProjectWithProfile(projRoot, {}); - await addApiWithSchema(projRoot, 'two-model-schema.graphql'); - - const random = Math.floor(Math.random() * 10000); - const fnName = `integtestfn${random}`; - const ddbName = `ddbTable${random}`; - - await addSimpleDDB(projRoot, { name: ddbName }); - await addFunction( - projRoot, - { - name: fnName, - functionTemplate: 'Hello World', - additionalPermissions: { - permissions: ['storage'], - choices: ['api', 'storage'], - resources: [ddbName, 'Post:@model(appsync)', 'Comment:@model(appsync)'], - resourceChoices: [ddbName, 'Post:@model(appsync)', 'Comment:@model(appsync)'], - operations: ['read'], - }, - }, - 'nodejs', - ); - - const configPath = path.join(projRoot, 'amplify', 'backend', 'backend-config.json'); - const metaPath = path.join(projRoot, 'amplify', 'backend', 'amplify-meta.json'); - const functionConfig = readJsonFile(configPath).function[fnName]; - const functionMeta = readJsonFile(metaPath).function[fnName]; - delete functionMeta.lastPushTimeStamp; - - await updateFunction( - projRoot, - { - additionalPermissions: { - permissions: [], // keep existing selection - choices: ['api', 'storage', 'function'], - resources: [ddbName, 'Post:@model(appsync)', 'Comment:@model(appsync)'], - keepExistingResourceSelection: true, // keep existing resource selection - resourceChoices: [ddbName, 'Post:@model(appsync)', 'Comment:@model(appsync)'], - operations: [], // keep existing selection - }, - }, - 'nodejs', - ); - const updatedFunctionConfig = readJsonFile(configPath).function[fnName]; - const updatedFunctionMeta = readJsonFile(metaPath).function[fnName]; - delete updatedFunctionMeta.lastPushTimeStamp; - expect(functionConfig).toStrictEqual(updatedFunctionConfig); - expect(functionMeta).toStrictEqual(updatedFunctionMeta); - }); - - it('should be able to query AppSync with minimal permissions with featureFlag', async () => { - const random = Math.floor(Math.random() * 10000); - const fnName = `apienvvar${random}`; - const createTodo = ` - mutation CreateTodo($input: CreateTodoInput!) { - createTodo(input: $input) { - id - name - description - createdAt - updatedAt - } - } - `; - await initJSProjectWithProfile(projRoot, {}); - await addApi(projRoot, { - IAM: {}, - }); - const beforeMeta = getBackendConfig(projRoot); - const apiName = Object.keys(beforeMeta.api)[0]; - await addFunction( - projRoot, - { - name: fnName, - functionTemplate: 'Hello World', - additionalPermissions: { - permissions: ['api'], - choices: ['api'], - resources: [apiName], - operations: ['Mutation'], - }, - }, - 'nodejs', - ); - // Pin aws-appsync to 4.0.3 until https://github.com/awslabs/aws-mobile-appsync-sdk-js/issues/647 is fixed. - addNodeDependencies(projRoot, fnName, ['aws-appsync@4.0.3', 'isomorphic-fetch', 'graphql-tag']); - overrideFunctionCodeNode(projRoot, fnName, 'mutation-appsync.js'); - await amplifyPush(projRoot); - const meta = getProjectMeta(projRoot); - const { Region: region, Name: functionName } = Object.keys(meta.function).map(key => meta.function[key])[0].output; - const lambdaCFN = readJsonFile( - path.join(projRoot, 'amplify', 'backend', 'function', fnName, `${fnName}-cloudformation-template.json`), - ); - const urlKey = Object.keys(lambdaCFN.Resources.LambdaFunction.Properties.Environment.Variables).filter(value => - value.endsWith('GRAPHQLAPIENDPOINTOUTPUT'), - )[0]; - const payloadObj = { urlKey, mutation: createTodo, variables: { input: { name: 'todo', description: 'sampleDesc' } } }; - const fnResponse = await invokeFunction(functionName, JSON.stringify(payloadObj), region); - - expect(fnResponse.StatusCode).toBe(200); - expect(fnResponse.Payload).toBeDefined(); - const gqlResponse = JSON.parse(fnResponse.Payload as string); - - expect(gqlResponse.data).toBeDefined(); - expect(gqlResponse.data.createTodo.name).toEqual('todo'); - expect(gqlResponse.data.createTodo.description).toEqual('sampleDesc'); - }); - - it('should be able to make console calls with feature flag turned off', async () => { - const random = Math.floor(Math.random() * 10000); - const fnName = `apienvvar${random}`; - await initJSProjectWithProfile(projRoot, {}); - await addApi(projRoot, { - IAM: {}, - }); - const beforeMeta = getBackendConfig(projRoot); - const apiName = Object.keys(beforeMeta.api)[0]; - addFeatureFlag(projRoot, 'appsync', 'generategraphqlpermissions', false); - await addFunction( - projRoot, - { - name: fnName, - functionTemplate: 'Hello World', - additionalPermissions: { - permissions: ['api'], - choices: ['api'], - resources: [apiName], - operations: ['read'], - }, - }, - 'nodejs', - ); - overrideFunctionCodeNode(projRoot, fnName, 'get-api-appsync.js'); - await amplifyPush(projRoot); - const meta = getProjectMeta(projRoot); - const { Region: region, Name: functionName } = Object.keys(meta.function).map(key => meta.function[key])[0].output; - const lambdaCFN = readJsonFile( - path.join(projRoot, 'amplify', 'backend', 'function', fnName, `${fnName}-cloudformation-template.json`), - ); - const idKey = Object.keys(lambdaCFN.Resources.LambdaFunction.Properties.Environment.Variables).filter(value => - value.endsWith('GRAPHQLAPIIDOUTPUT'), - )[0]; - const fnResponse = await invokeFunction(functionName, JSON.stringify({ idKey }), region); - - expect(fnResponse.StatusCode).toBe(200); - expect(fnResponse.Payload).toBeDefined(); - const apiResponse = JSON.parse(fnResponse.Payload as string); - expect(apiResponse.graphqlApi).toBeDefined(); - expect(apiResponse.graphqlApi.name).toContain(apiName); - }); }); }); diff --git a/packages/amplify-e2e-tests/src/__tests__/function_4.test.ts b/packages/amplify-e2e-tests/src/__tests__/function_4.test.ts index abf2f58fc96..71ce370b534 100644 --- a/packages/amplify-e2e-tests/src/__tests__/function_4.test.ts +++ b/packages/amplify-e2e-tests/src/__tests__/function_4.test.ts @@ -26,171 +26,6 @@ import { } from 'amplify-e2e-core'; import { v4 as uuid } from 'uuid'; -describe('java function tests', () => { - const helloWorldSuccessObj = { - greetings: 'Hello John Doe!', - }; - const helloWorldSuccessString = ' "greetings": "Hello John Doe!"'; - let projRoot: string; - let funcName: string; - - beforeEach(async () => { - projRoot = await createNewProjectDir('java-functions'); - await initJSProjectWithProfile(projRoot, {}); - - const [shortId] = uuid().split('-'); - funcName = `javatestfn${shortId}`; - - await addFunction( - projRoot, - { - name: funcName, - functionTemplate: 'Hello World', - }, - 'java', - ); - }); - - afterEach(async () => { - await deleteProject(projRoot); - deleteProjectDir(projRoot); - }); - - it('add java hello world function and mock locally', async () => { - await functionMockAssert(projRoot, { - funcName, - successString: helloWorldSuccessString, - eventFile: 'src/event.json', - }); // will throw if successString is not in output - }); - - it('add java hello world function and invoke in the cloud', async () => { - const payload = '{"firstName":"John","lastName" : "Doe"}'; - await amplifyPushAuth(projRoot); - const response = await functionCloudInvoke(projRoot, { funcName, payload }); - expect(JSON.parse(response.Payload.toString())).toEqual(helloWorldSuccessObj); - }); -}); - -describe('amplify add/update/remove function based on schedule rule', () => { - let projRoot: string; - - beforeEach(async () => { - projRoot = await createNewProjectDir('schedule'); - }); - - afterEach(async () => { - await deleteProject(projRoot); - deleteProjectDir(projRoot); - }); - - it('add a schedule rule for daily', async () => { - await initJSProjectWithProfile(projRoot, {}); - await addFunction( - projRoot, - { - functionTemplate: 'Hello World', - schedulePermissions: { - interval: 'Daily', - }, - }, - 'nodejs', - ); - await functionBuild(projRoot, {}); - await amplifyPushAuth(projRoot); - const meta = getProjectMeta(projRoot); - const { Arn: functionArn, Name: functionName, Region: region, CloudWatchEventRule: ruleName } = Object.keys(meta.function).map( - key => meta.function[key], - )[0].output; - expect(functionArn).toBeDefined(); - expect(functionName).toBeDefined(); - expect(region).toBeDefined(); - expect(ruleName).toBeDefined(); - const cloudFunction = await getFunction(functionName, region); - expect(cloudFunction.Configuration.FunctionArn).toEqual(functionArn); - const ScheduleRuleName = await getCloudWatchEventRule(functionArn, meta.providers.awscloudformation.Region); - expect(ScheduleRuleName.RuleNames[0]).toEqual(ruleName); - }); - - it('update a schedule rule for daily', async () => { - await initJSProjectWithProfile(projRoot, {}); - await addFunction( - projRoot, - { - functionTemplate: 'Hello World', - schedulePermissions: { - interval: 'Daily', - }, - }, - 'nodejs', - ); - await functionBuild(projRoot, {}); - await updateFunction( - projRoot, - { - functionTemplate: 'Hello World', - schedulePermissions: { - interval: 'Daily', - action: 'Update the schedule', - }, - }, - 'nodejs', - ); - await amplifyPushAuth(projRoot); - const meta = getProjectMeta(projRoot); - const { Arn: functionArn, Name: functionName, Region: region, CloudWatchEventRule: ruleName } = Object.keys(meta.function).map( - key => meta.function[key], - )[0].output; - expect(functionArn).toBeDefined(); - expect(functionName).toBeDefined(); - expect(region).toBeDefined(); - expect(ruleName).toBeDefined(); - - const cloudFunction = await getFunction(functionName, region); - expect(cloudFunction.Configuration.FunctionArn).toEqual(functionArn); - const ScheduleRuleName = await getCloudWatchEventRule(functionArn, meta.providers.awscloudformation.Region); - expect(ScheduleRuleName.RuleNames[0]).toEqual(ruleName); - }); - - it('remove a schedule rule for daily', async () => { - await initJSProjectWithProfile(projRoot, {}); - await addFunction( - projRoot, - { - functionTemplate: 'Hello World', - schedulePermissions: { - interval: 'Daily', - }, - }, - 'nodejs', - ); - await functionBuild(projRoot, {}); - await updateFunction( - projRoot, - { - functionTemplate: 'Hello World', - schedulePermissions: { - interval: 'Daily', - action: 'Remove the schedule', - }, - }, - 'nodejs', - ); - await amplifyPushAuth(projRoot); - const meta = getProjectMeta(projRoot); - const { Arn: functionArn, Name: functionName, Region: region, CloudWatchEventRule: ruleName } = Object.keys(meta.function).map( - key => meta.function[key], - )[0].output; - expect(functionArn).toBeDefined(); - expect(functionName).toBeDefined(); - expect(region).toBeDefined(); - expect(ruleName).toBeUndefined(); - - const cloudFunction = await getFunction(functionName, region); - expect(cloudFunction.Configuration.FunctionArn).toEqual(functionArn); - }); -}); - describe('add function with layers for runtime nodeJS', () => { let projRoot: string; let projName: string; diff --git a/packages/amplify-e2e-tests/src/__tests__/function_8.test.ts b/packages/amplify-e2e-tests/src/__tests__/function_8.test.ts new file mode 100644 index 00000000000..53337d1ffcc --- /dev/null +++ b/packages/amplify-e2e-tests/src/__tests__/function_8.test.ts @@ -0,0 +1,192 @@ +import { + addFunction, + addLayer, + addOptData, + amplifyPushAuth, + amplifyPushLayer, + createNewProjectDir, + deleteProject, + deleteProjectDir, + functionBuild, + functionCloudInvoke, + functionMockAssert, + getCloudWatchEventRule, + getFunction, + getProjectConfig, + getProjectMeta, + initJSProjectWithProfile, + LayerOptions, + LayerRuntime, + loadFunctionTestFile, + overrideFunctionSrcNode, + overrideFunctionSrcPython, + overrideLayerCodeNode, + overrideLayerCodePython, + updateFunction, +} from 'amplify-e2e-core'; +import { v4 as uuid } from 'uuid'; + +describe('java function tests', () => { + const helloWorldSuccessObj = { + greetings: 'Hello John Doe!', + }; + const helloWorldSuccessString = ' "greetings": "Hello John Doe!"'; + let projRoot: string; + let funcName: string; + + beforeEach(async () => { + projRoot = await createNewProjectDir('java-functions'); + await initJSProjectWithProfile(projRoot, {}); + + const [shortId] = uuid().split('-'); + funcName = `javatestfn${shortId}`; + + await addFunction( + projRoot, + { + name: funcName, + functionTemplate: 'Hello World', + }, + 'java', + ); + }); + + afterEach(async () => { + await deleteProject(projRoot); + deleteProjectDir(projRoot); + }); + + it('add java hello world function and mock locally', async () => { + await functionMockAssert(projRoot, { + funcName, + successString: helloWorldSuccessString, + eventFile: 'src/event.json', + }); // will throw if successString is not in output + }); + + it('add java hello world function and invoke in the cloud', async () => { + const payload = '{"firstName":"John","lastName" : "Doe"}'; + await amplifyPushAuth(projRoot); + const response = await functionCloudInvoke(projRoot, { funcName, payload }); + expect(JSON.parse(response.Payload.toString())).toEqual(helloWorldSuccessObj); + }); +}); + +describe('amplify add/update/remove function based on schedule rule', () => { + let projRoot: string; + + beforeEach(async () => { + projRoot = await createNewProjectDir('schedule'); + }); + + afterEach(async () => { + await deleteProject(projRoot); + deleteProjectDir(projRoot); + }); + + it('add a schedule rule for daily', async () => { + await initJSProjectWithProfile(projRoot, {}); + await addFunction( + projRoot, + { + functionTemplate: 'Hello World', + schedulePermissions: { + interval: 'Daily', + }, + }, + 'nodejs', + ); + await functionBuild(projRoot, {}); + await amplifyPushAuth(projRoot); + const meta = getProjectMeta(projRoot); + const { Arn: functionArn, Name: functionName, Region: region, CloudWatchEventRule: ruleName } = Object.keys(meta.function).map( + key => meta.function[key], + )[0].output; + expect(functionArn).toBeDefined(); + expect(functionName).toBeDefined(); + expect(region).toBeDefined(); + expect(ruleName).toBeDefined(); + const cloudFunction = await getFunction(functionName, region); + expect(cloudFunction.Configuration.FunctionArn).toEqual(functionArn); + const ScheduleRuleName = await getCloudWatchEventRule(functionArn, meta.providers.awscloudformation.Region); + expect(ScheduleRuleName.RuleNames[0]).toEqual(ruleName); + }); + + it('update a schedule rule for daily', async () => { + await initJSProjectWithProfile(projRoot, {}); + await addFunction( + projRoot, + { + functionTemplate: 'Hello World', + schedulePermissions: { + interval: 'Daily', + }, + }, + 'nodejs', + ); + await functionBuild(projRoot, {}); + await updateFunction( + projRoot, + { + functionTemplate: 'Hello World', + schedulePermissions: { + interval: 'Daily', + action: 'Update the schedule', + }, + }, + 'nodejs', + ); + await amplifyPushAuth(projRoot); + const meta = getProjectMeta(projRoot); + const { Arn: functionArn, Name: functionName, Region: region, CloudWatchEventRule: ruleName } = Object.keys(meta.function).map( + key => meta.function[key], + )[0].output; + expect(functionArn).toBeDefined(); + expect(functionName).toBeDefined(); + expect(region).toBeDefined(); + expect(ruleName).toBeDefined(); + + const cloudFunction = await getFunction(functionName, region); + expect(cloudFunction.Configuration.FunctionArn).toEqual(functionArn); + const ScheduleRuleName = await getCloudWatchEventRule(functionArn, meta.providers.awscloudformation.Region); + expect(ScheduleRuleName.RuleNames[0]).toEqual(ruleName); + }); + + it('remove a schedule rule for daily', async () => { + await initJSProjectWithProfile(projRoot, {}); + await addFunction( + projRoot, + { + functionTemplate: 'Hello World', + schedulePermissions: { + interval: 'Daily', + }, + }, + 'nodejs', + ); + await functionBuild(projRoot, {}); + await updateFunction( + projRoot, + { + functionTemplate: 'Hello World', + schedulePermissions: { + interval: 'Daily', + action: 'Remove the schedule', + }, + }, + 'nodejs', + ); + await amplifyPushAuth(projRoot); + const meta = getProjectMeta(projRoot); + const { Arn: functionArn, Name: functionName, Region: region, CloudWatchEventRule: ruleName } = Object.keys(meta.function).map( + key => meta.function[key], + )[0].output; + expect(functionArn).toBeDefined(); + expect(functionName).toBeDefined(); + expect(region).toBeDefined(); + expect(ruleName).toBeUndefined(); + + const cloudFunction = await getFunction(functionName, region); + expect(cloudFunction.Configuration.FunctionArn).toEqual(functionArn); + }); +}); diff --git a/packages/amplify-e2e-tests/src/__tests__/function_9.test.ts b/packages/amplify-e2e-tests/src/__tests__/function_9.test.ts new file mode 100644 index 00000000000..30e89832eac --- /dev/null +++ b/packages/amplify-e2e-tests/src/__tests__/function_9.test.ts @@ -0,0 +1,298 @@ +import { + addApiWithSchema, + addApi, + addAuthWithDefault, + addDDBWithTrigger, + addFunction, + addS3StorageWithSettings, + addSimpleDDB, + AddStorageSettings, + amplifyPush, + amplifyPushAuth, + amplifyPushForce, + createNewProjectDir, + deleteProject, + deleteProjectDir, + getBackendAmplifyMeta, + getFunctionSrcNode, + getProjectMeta, + initJSProjectWithProfile, + invokeFunction, + overrideFunctionSrcNode, + addNodeDependencies, + readJsonFile, + updateFunction, + overrideFunctionCodeNode, + getBackendConfig, + addFeatureFlag, + addAuthWithGroupsAndAdminAPI, + getFunction, + loadFunctionTestFile, +} from 'amplify-e2e-core'; +import fs from 'fs-extra'; +import path from 'path'; +import _ from 'lodash'; + +describe('nodejs', () => { + describe('amplify add function with additional permissions', () => { + let projRoot: string; + beforeEach(async () => { + projRoot = await createNewProjectDir('fn-with-perm'); + }); + + afterEach(async () => { + await deleteProject(projRoot); + deleteProjectDir(projRoot); + }); + + it('environment vars comment should update on permission update', async () => { + await initJSProjectWithProfile(projRoot, {}); + const random = Math.floor(Math.random() * 10000); + const funcName = `nodetestfn${random}`; + const ddbName = `nodetestddb`; + + await addFunction( + projRoot, + { + name: funcName, + functionTemplate: 'Hello World', + }, + 'nodejs', + ); + await addSimpleDDB(projRoot, { name: ddbName }); + await updateFunction( + projRoot, + { + additionalPermissions: { + permissions: ['storage'], + choices: ['function', 'storage'], + operations: ['read'], + resources: [ddbName], + }, + }, + 'nodejs', + ); + const lambdaHandlerContents = fs.readFileSync( + path.join(projRoot, 'amplify', 'backend', 'function', funcName, 'src', 'index.js'), + 'utf8', + ); + expect(lambdaHandlerContents).toMatchSnapshot(); + }); + + it('adding api and storage permissions should not add duplicates to CFN', async () => { + await initJSProjectWithProfile(projRoot, {}); + await addApiWithSchema(projRoot, 'two-model-schema.graphql'); + + const random = Math.floor(Math.random() * 10000); + const fnName = `integtestfn${random}`; + const ddbName = `ddbTable${random}`; + + await addSimpleDDB(projRoot, { name: ddbName }); + await addFunction( + projRoot, + { + name: fnName, + functionTemplate: 'Hello World', + additionalPermissions: { + permissions: ['storage'], + choices: ['api', 'storage'], + resources: [ddbName, 'Post:@model(appsync)', 'Comment:@model(appsync)'], + resourceChoices: [ddbName, 'Post:@model(appsync)', 'Comment:@model(appsync)'], + operations: ['read'], + }, + }, + 'nodejs', + ); + + const lambdaCFN = readJsonFile( + path.join(projRoot, 'amplify', 'backend', 'function', fnName, `${fnName}-cloudformation-template.json`), + ); + expect(lambdaCFN.Resources.AmplifyResourcesPolicy.Properties.PolicyDocument.Statement.length).toBe(3); + }); + + it('update DDB trigger function to add permissions should not changed its dependsOn attributes of the trigger source', async () => { + await initJSProjectWithProfile(projRoot, {}); + const ddbResourceName = 'testddbresource'; + await addDDBWithTrigger(projRoot, { ddbResourceName }); + + const originalAmplifyMeta = getBackendAmplifyMeta(projRoot); + const functionResourceName = Object.keys(originalAmplifyMeta.function)[0]; + const originalAttributes = originalAmplifyMeta.function[functionResourceName].dependsOn[0].attributes.sort(); + + await updateFunction( + projRoot, + { + additionalPermissions: { + resources: [ddbResourceName], + permissions: ['storage'], + choices: ['function', 'storage'], + operations: ['read', 'update'], + }, + }, + 'nodejs', + ); + + const updateAmplifyMeta = getBackendAmplifyMeta(projRoot); + const updateAttributes = updateAmplifyMeta.function[functionResourceName].dependsOn[0].attributes.sort(); + expect(originalAttributes).toEqual(updateAttributes); + + await amplifyPushAuth(projRoot); + const amplifyMeta = getBackendAmplifyMeta(projRoot); + expect(amplifyMeta.function[functionResourceName].output).toBeDefined(); + expect(amplifyMeta.function[functionResourceName].output.Arn).toBeDefined(); + }); + + it('function dependencies should be preserved when not editing permissions during `amplify update function`', async () => { + await initJSProjectWithProfile(projRoot, {}); + await addApiWithSchema(projRoot, 'two-model-schema.graphql'); + + const random = Math.floor(Math.random() * 10000); + const fnName = `integtestfn${random}`; + const ddbName = `ddbTable${random}`; + + await addSimpleDDB(projRoot, { name: ddbName }); + await addFunction( + projRoot, + { + name: fnName, + functionTemplate: 'Hello World', + additionalPermissions: { + permissions: ['storage'], + choices: ['api', 'storage'], + resources: [ddbName, 'Post:@model(appsync)', 'Comment:@model(appsync)'], + resourceChoices: [ddbName, 'Post:@model(appsync)', 'Comment:@model(appsync)'], + operations: ['read'], + }, + }, + 'nodejs', + ); + + const configPath = path.join(projRoot, 'amplify', 'backend', 'backend-config.json'); + const metaPath = path.join(projRoot, 'amplify', 'backend', 'amplify-meta.json'); + const functionConfig = readJsonFile(configPath).function[fnName]; + const functionMeta = readJsonFile(metaPath).function[fnName]; + delete functionMeta.lastPushTimeStamp; + + await updateFunction( + projRoot, + { + additionalPermissions: { + permissions: [], // keep existing selection + choices: ['api', 'storage', 'function'], + resources: [ddbName, 'Post:@model(appsync)', 'Comment:@model(appsync)'], + keepExistingResourceSelection: true, // keep existing resource selection + resourceChoices: [ddbName, 'Post:@model(appsync)', 'Comment:@model(appsync)'], + operations: [], // keep existing selection + }, + }, + 'nodejs', + ); + const updatedFunctionConfig = readJsonFile(configPath).function[fnName]; + const updatedFunctionMeta = readJsonFile(metaPath).function[fnName]; + delete updatedFunctionMeta.lastPushTimeStamp; + expect(functionConfig).toStrictEqual(updatedFunctionConfig); + expect(functionMeta).toStrictEqual(updatedFunctionMeta); + }); + + it('should be able to query AppSync with minimal permissions with featureFlag', async () => { + const random = Math.floor(Math.random() * 10000); + const fnName = `apienvvar${random}`; + const createTodo = ` + mutation CreateTodo($input: CreateTodoInput!) { + createTodo(input: $input) { + id + name + description + createdAt + updatedAt + } + } + `; + await initJSProjectWithProfile(projRoot, {}); + await addApi(projRoot, { + IAM: {}, + }); + const beforeMeta = getBackendConfig(projRoot); + const apiName = Object.keys(beforeMeta.api)[0]; + await addFunction( + projRoot, + { + name: fnName, + functionTemplate: 'Hello World', + additionalPermissions: { + permissions: ['api'], + choices: ['api'], + resources: [apiName], + operations: ['Mutation'], + }, + }, + 'nodejs', + ); + // Pin aws-appsync to 4.0.3 until https://github.com/awslabs/aws-mobile-appsync-sdk-js/issues/647 is fixed. + addNodeDependencies(projRoot, fnName, ['aws-appsync@4.0.3', 'isomorphic-fetch', 'graphql-tag']); + overrideFunctionCodeNode(projRoot, fnName, 'mutation-appsync.js'); + await amplifyPush(projRoot); + const meta = getProjectMeta(projRoot); + const { Region: region, Name: functionName } = Object.keys(meta.function).map(key => meta.function[key])[0].output; + const lambdaCFN = readJsonFile( + path.join(projRoot, 'amplify', 'backend', 'function', fnName, `${fnName}-cloudformation-template.json`), + ); + const urlKey = Object.keys(lambdaCFN.Resources.LambdaFunction.Properties.Environment.Variables).filter(value => + value.endsWith('GRAPHQLAPIENDPOINTOUTPUT'), + )[0]; + const payloadObj = { urlKey, mutation: createTodo, variables: { input: { name: 'todo', description: 'sampleDesc' } } }; + const fnResponse = await invokeFunction(functionName, JSON.stringify(payloadObj), region); + + expect(fnResponse.StatusCode).toBe(200); + expect(fnResponse.Payload).toBeDefined(); + const gqlResponse = JSON.parse(fnResponse.Payload as string); + + expect(gqlResponse.data).toBeDefined(); + expect(gqlResponse.data.createTodo.name).toEqual('todo'); + expect(gqlResponse.data.createTodo.description).toEqual('sampleDesc'); + }); + + it('should be able to make console calls with feature flag turned off', async () => { + const random = Math.floor(Math.random() * 10000); + const fnName = `apienvvar${random}`; + await initJSProjectWithProfile(projRoot, {}); + await addApi(projRoot, { + IAM: {}, + }); + const beforeMeta = getBackendConfig(projRoot); + const apiName = Object.keys(beforeMeta.api)[0]; + addFeatureFlag(projRoot, 'appsync', 'generategraphqlpermissions', false); + await addFunction( + projRoot, + { + name: fnName, + functionTemplate: 'Hello World', + additionalPermissions: { + permissions: ['api'], + choices: ['api'], + resources: [apiName], + operations: ['read'], + }, + }, + 'nodejs', + ); + overrideFunctionCodeNode(projRoot, fnName, 'get-api-appsync.js'); + await amplifyPush(projRoot); + const meta = getProjectMeta(projRoot); + const { Region: region, Name: functionName } = Object.keys(meta.function).map(key => meta.function[key])[0].output; + const lambdaCFN = readJsonFile( + path.join(projRoot, 'amplify', 'backend', 'function', fnName, `${fnName}-cloudformation-template.json`), + ); + const idKey = Object.keys(lambdaCFN.Resources.LambdaFunction.Properties.Environment.Variables).filter(value => + value.endsWith('GRAPHQLAPIIDOUTPUT'), + )[0]; + const fnResponse = await invokeFunction(functionName, JSON.stringify({ idKey }), region); + + expect(fnResponse.StatusCode).toBe(200); + expect(fnResponse.Payload).toBeDefined(); + const apiResponse = JSON.parse(fnResponse.Payload as string); + expect(apiResponse.graphqlApi).toBeDefined(); + expect(apiResponse.graphqlApi.name).toContain(apiName); + }); + }); +}); diff --git a/packages/amplify-e2e-tests/src/__tests__/import_auth_1.test.ts b/packages/amplify-e2e-tests/src/__tests__/import_auth_1.test.ts index 442123d54ab..e36ec0bb424 100644 --- a/packages/amplify-e2e-tests/src/__tests__/import_auth_1.test.ts +++ b/packages/amplify-e2e-tests/src/__tests__/import_auth_1.test.ts @@ -244,192 +244,4 @@ describe('auth import userpool only', () => { await amplifyPush(projectRoot); // successful push indicates iam auth works when only importing user pool }); - - it('imported auth, push, pull to empty directory, files should match', async () => { - await initJSProjectWithProfile(projectRoot, { - ...projectSettings, - disableAmplifyAppCreation: false, - }); - await importUserPoolOnly(projectRoot, ogSettings.userPoolName, { native: '_app_client ', web: '_app_clientWeb' }); - - const functionName = randomizedFunctionName('authimpfunc'); - const authResourceName = getCognitoResourceName(projectRoot); - - await addFunction( - projectRoot, - { - name: functionName, - functionTemplate: 'Hello World', - additionalPermissions: { - permissions: ['auth'], - choices: ['auth'], - resources: [authResourceName], - resourceChoices: [authResourceName], - operations: ['create', 'read', 'update', 'delete'], - }, - }, - 'nodejs', - ); - - await amplifyPushAuth(projectRoot); - - const appId = getAppId(projectRoot); - expect(appId).toBeDefined(); - - let projectRootPull; - - try { - projectRootPull = await createNewProjectDir('authimport-pull'); - - await amplifyPull(projectRootPull, { override: false, emptyDir: true, appId }); - - expectLocalAndCloudMetaFilesMatching(projectRoot); - expectLocalAndPulledBackendConfigMatching(projectRoot, projectRootPull); - expectAuthLocalAndOGMetaFilesOutputMatching(projectRoot, projectRootPull); - } finally { - deleteProjectDir(projectRootPull); - } - }); - - it('imported auth, create prod env, files should match', async () => { - await initJSProjectWithProfile(projectRoot, projectSettings); - await importUserPoolOnly(projectRoot, ogSettings.userPoolName, { native: '_app_client ', web: '_app_clientWeb' }); - - await amplifyPushAuth(projectRoot); - - const firstEnvName = 'integtest'; - const secondEnvName = 'prod'; - - await addEnvironmentWithImportedAuth(projectRoot, { - envName: secondEnvName, - currentEnvName: firstEnvName, - }); - - let teamInfo = getTeamProviderInfo(projectRoot); - const env1 = teamInfo[firstEnvName]; - const env2 = teamInfo[secondEnvName]; - - // Verify that same auth resource object is present (second does not have hostedUIProviderCreds until push) - expect(Object.keys(env1)[0]).toEqual(Object.keys(env2)[0]); - - await amplifyPushAuth(projectRoot); - - // Meta is matching the data with the OG project's resources - expectLocalAndCloudMetaFilesMatching(projectRoot); - expectAuthLocalAndOGMetaFilesOutputMatching(projectRoot, ogProjectRoot); - - await checkoutEnvironment(projectRoot, { - envName: firstEnvName, - }); - - await removeEnvironment(projectRoot, { - envName: secondEnvName, - }); - - teamInfo = getTeamProviderInfo(projectRoot); - - // No prod in team proovider info - expect(teamInfo.prod).toBeUndefined(); - }); - - // Disable as credentials are correctly not listing any UserPools with OG prefix - it.skip('init project in different region, import auth, should fail with error', async () => { - // Set it to make sure deleteProject error will be ignored - ignoreProjectDeleteErrors = true; - - const { AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY } = getEnvVars(); - if (!AWS_ACCESS_KEY_ID || !AWS_SECRET_ACCESS_KEY) { - throw new Error('Set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY either in .env file or as Environment variable'); - } - - const newProjectRegion = process.env.CLI_REGION === 'us-west-2' ? 'us-east-2' : 'us-west-2'; - - await initProjectWithAccessKey(projectRoot, { - ...projectSettings, - envName: 'integtest', - accessKeyId: AWS_ACCESS_KEY_ID, - secretAccessKey: AWS_SECRET_ACCESS_KEY, - region: newProjectRegion, - } as any); - - // The previously configured Cognito User Pool: '${userPoolName}' (${userPoolId}) cannot be found. - await expect( - await importUserPoolOnly(projectRoot, ogSettings.userPoolName, { native: '_app_client ', web: '_app_clientWeb' }), - ).rejects.toThrowError('Process exited with non zero exit code 1'); - }); - - // Used for creating custom app clients. This should match with web app client setting for import to work - const customAppClientSettings: AppClientSettings = { - supportedIdentityProviders: ['COGNITO', 'Facebook', 'Google', 'LoginWithAmazon', 'SignInWithApple'], - allowedOAuthFlowsUserPoolClient: true, - callbackURLs: ['https://sin1/', 'https://sin2/'], - logoutURLs: ['https://sout1/', 'https://sout2/'], - allowedOAuthFlows: ['code'], - allowedScopes: ['aws.cognito.signin.user.admin', 'email', 'openid', 'phone', 'profile'], - }; - - it('should support importing AppClient with secret', async () => { - const nativeAppClientName = 'nativeClientWithSecret'; - let appClientId; - let appclientSecret; - try { - await initJSProjectWithProfile(projectRoot, projectSettings); - ({ appClientId, appclientSecret } = await addAppClientWithSecret( - profileName, - ogProjectRoot, - nativeAppClientName, - customAppClientSettings, - )); - await await importUserPoolOnly(projectRoot, ogSettings.userPoolName, { native: nativeAppClientName, web: '_app_clientWeb' }); - await amplifyPushAuth(projectRoot); - expectLocalAndCloudMetaFilesMatching(projectRoot); - const projectDetails = getAuthProjectDetails(projectRoot); - expectAuthProjectDetailsMatch(projectDetails, { - ...ogProjectDetails, - meta: { ...ogProjectDetails.meta, AppClientID: appClientId, AppClientSecret: appclientSecret }, - team: { ...ogProjectDetails.team, nativeClientId: appClientId }, - }); - } finally { - // delete the app client - if (appClientId) { - deleteAppClient(profileName, ogProjectRoot, appClientId); - } - } - }); - - it('should support importing AppClient with out secret', async () => { - const nativeAppClientName = 'nativeClientWithOutSecret'; - let appClientId; - let appclientSecret; - - try { - await initJSProjectWithProfile(projectRoot, projectSettings); - - ({ appClientId, appclientSecret } = await addAppClientWithoutSecret( - profileName, - ogProjectRoot, - nativeAppClientName, - customAppClientSettings, - )); - - await await importUserPoolOnly(projectRoot, ogSettings.userPoolName, { native: nativeAppClientName, web: '_app_clientWeb' }); - - await amplifyPushAuth(projectRoot); - - expectLocalAndCloudMetaFilesMatching(projectRoot); - - const projectDetails = getAuthProjectDetails(projectRoot); - - expectAuthProjectDetailsMatch(projectDetails, { - ...ogProjectDetails, - meta: { ...ogProjectDetails.meta, AppClientID: appClientId, AppClientSecret: appclientSecret }, - team: { ...ogProjectDetails.team, nativeClientId: appClientId }, - }); - } finally { - // delete the app client - if (appClientId) { - deleteAppClient(profileName, ogProjectRoot, appClientId); - } - } - }); }); diff --git a/packages/amplify-e2e-tests/src/__tests__/import_auth_3.test.ts b/packages/amplify-e2e-tests/src/__tests__/import_auth_3.test.ts new file mode 100644 index 00000000000..03a2e18c601 --- /dev/null +++ b/packages/amplify-e2e-tests/src/__tests__/import_auth_3.test.ts @@ -0,0 +1,319 @@ +import * as fs from 'fs-extra'; +import * as path from 'path'; + +import { $TSObject, JSONUtilities } from 'amplify-cli-core'; +import { + AddAuthUserPoolOnlyWithOAuthSettings, + addApiWithCognitoUserPoolAuthTypeWhenAuthExists, + addAuthUserPoolOnlyWithOAuth, + addFunction, + amplifyPull, + amplifyPush, + amplifyPushAuth, + amplifyStatus, + createNewProjectDir, + deleteProject, + deleteProjectDir, + getAppId, + getEnvVars, + getTeamProviderInfo, + initJSProjectWithProfile, + initProjectWithAccessKey, + addApi, + updateApiSchema, +} from 'amplify-e2e-core'; +import { + AppClientSettings, + AuthProjectDetails, + addAppClientWithSecret, + addAppClientWithoutSecret, + addS3WithAuthConfigurationMismatchErrorExit, + createUserPoolOnlyWithOAuthSettings, + deleteAppClient, + expectApiHasCorrectAuthConfig, + expectAuthLocalAndOGMetaFilesOutputMatching, + expectAuthProjectDetailsMatch, + expectLocalAndCloudMetaFilesMatching, + expectLocalAndPulledBackendConfigMatching, + expectLocalTeamInfoHasNoCategories, + expectNoAuthInMeta, + getAuthProjectDetails, + getOGAuthProjectDetails, + getShortId, + importIdentityPoolAndUserPool, + importUserPoolOnly, + readRootStack, + removeImportedAuthWithDefault, +} from '../import-helpers'; +import { addEnvironmentWithImportedAuth, checkoutEnvironment, removeEnvironment } from '../environment/env'; + +import { getCognitoResourceName } from '../schema-api-directives/authHelper'; +import { randomizedFunctionName } from '../schema-api-directives/functionTester'; + +describe('auth import userpool only', () => { + const profileName = 'amplify-integ-test-user'; + + const projectPrefix = 'auimpup'; + const ogProjectPrefix = 'ogauimpup'; + + const projectSettings = { + name: projectPrefix, + }; + + const ogProjectSettings = { + name: ogProjectPrefix, + }; + + const dummyOGProjectSettings = { + name: 'dummyog1', + }; + + // OG is the CLI project that creates the user pool to import by other test projects + let ogProjectRoot: string; + let ogShortId: string; + let ogSettings: AddAuthUserPoolOnlyWithOAuthSettings; + let ogProjectDetails: AuthProjectDetails; + + // We need an extra OG project to make sure that autocomplete prompt hits in + let dummyOGProjectRoot: string; + let dummyOGShortId: string; + let dummyOGSettings: AddAuthUserPoolOnlyWithOAuthSettings; + + let projectRoot: string; + let ignoreProjectDeleteErrors: boolean = false; + + beforeAll(async () => { + ogProjectRoot = await createNewProjectDir(ogProjectSettings.name); + ogShortId = getShortId(); + ogSettings = createUserPoolOnlyWithOAuthSettings(ogProjectSettings.name, ogShortId); + + await initJSProjectWithProfile(ogProjectRoot, ogProjectSettings); + await addAuthUserPoolOnlyWithOAuth(ogProjectRoot, ogSettings); + await amplifyPushAuth(ogProjectRoot); + + ogProjectDetails = getOGAuthProjectDetails(ogProjectRoot); + + dummyOGProjectRoot = await createNewProjectDir(dummyOGProjectSettings.name); + dummyOGShortId = getShortId(); + dummyOGSettings = createUserPoolOnlyWithOAuthSettings(dummyOGProjectSettings.name, ogShortId); + + await initJSProjectWithProfile(dummyOGProjectRoot, dummyOGProjectSettings); + await addAuthUserPoolOnlyWithOAuth(dummyOGProjectRoot, dummyOGSettings); + await amplifyPushAuth(dummyOGProjectRoot); + }); + + afterAll(async () => { + await deleteProject(ogProjectRoot); + deleteProjectDir(ogProjectRoot); + + await deleteProject(dummyOGProjectRoot); + deleteProjectDir(dummyOGProjectRoot); + }); + + beforeEach(async () => { + projectRoot = await createNewProjectDir(projectPrefix); + ignoreProjectDeleteErrors = false; + }); + + afterEach(async () => { + try { + await deleteProject(projectRoot); + } catch (error) { + // In some tests where project initialization fails it can lead to errors on cleanup which we + // can ignore if set by the test + if (!ignoreProjectDeleteErrors) { + throw error; + } + } + + deleteProjectDir(projectRoot); + }); + + it('imported auth, push, pull to empty directory, files should match', async () => { + await initJSProjectWithProfile(projectRoot, { + ...projectSettings, + disableAmplifyAppCreation: false, + }); + await importUserPoolOnly(projectRoot, ogSettings.userPoolName, { native: '_app_client ', web: '_app_clientWeb' }); + + const functionName = randomizedFunctionName('authimpfunc'); + const authResourceName = getCognitoResourceName(projectRoot); + + await addFunction( + projectRoot, + { + name: functionName, + functionTemplate: 'Hello World', + additionalPermissions: { + permissions: ['auth'], + choices: ['auth'], + resources: [authResourceName], + resourceChoices: [authResourceName], + operations: ['create', 'read', 'update', 'delete'], + }, + }, + 'nodejs', + ); + + await amplifyPushAuth(projectRoot); + + const appId = getAppId(projectRoot); + expect(appId).toBeDefined(); + + let projectRootPull; + + try { + projectRootPull = await createNewProjectDir('authimport-pull'); + + await amplifyPull(projectRootPull, { override: false, emptyDir: true, appId }); + + expectLocalAndCloudMetaFilesMatching(projectRoot); + expectLocalAndPulledBackendConfigMatching(projectRoot, projectRootPull); + expectAuthLocalAndOGMetaFilesOutputMatching(projectRoot, projectRootPull); + } finally { + deleteProjectDir(projectRootPull); + } + }); + + it('imported auth, create prod env, files should match', async () => { + await initJSProjectWithProfile(projectRoot, projectSettings); + await importUserPoolOnly(projectRoot, ogSettings.userPoolName, { native: '_app_client ', web: '_app_clientWeb' }); + + await amplifyPushAuth(projectRoot); + + const firstEnvName = 'integtest'; + const secondEnvName = 'prod'; + + await addEnvironmentWithImportedAuth(projectRoot, { + envName: secondEnvName, + currentEnvName: firstEnvName, + }); + + let teamInfo = getTeamProviderInfo(projectRoot); + const env1 = teamInfo[firstEnvName]; + const env2 = teamInfo[secondEnvName]; + + // Verify that same auth resource object is present (second does not have hostedUIProviderCreds until push) + expect(Object.keys(env1)[0]).toEqual(Object.keys(env2)[0]); + + await amplifyPushAuth(projectRoot); + + // Meta is matching the data with the OG project's resources + expectLocalAndCloudMetaFilesMatching(projectRoot); + expectAuthLocalAndOGMetaFilesOutputMatching(projectRoot, ogProjectRoot); + + await checkoutEnvironment(projectRoot, { + envName: firstEnvName, + }); + + await removeEnvironment(projectRoot, { + envName: secondEnvName, + }); + + teamInfo = getTeamProviderInfo(projectRoot); + + // No prod in team proovider info + expect(teamInfo.prod).toBeUndefined(); + }); + + // Disable as credentials are correctly not listing any UserPools with OG prefix + it.skip('init project in different region, import auth, should fail with error', async () => { + // Set it to make sure deleteProject error will be ignored + ignoreProjectDeleteErrors = true; + + const { AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY } = getEnvVars(); + if (!AWS_ACCESS_KEY_ID || !AWS_SECRET_ACCESS_KEY) { + throw new Error('Set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY either in .env file or as Environment variable'); + } + + const newProjectRegion = process.env.CLI_REGION === 'us-west-2' ? 'us-east-2' : 'us-west-2'; + + await initProjectWithAccessKey(projectRoot, { + ...projectSettings, + envName: 'integtest', + accessKeyId: AWS_ACCESS_KEY_ID, + secretAccessKey: AWS_SECRET_ACCESS_KEY, + region: newProjectRegion, + } as any); + + // The previously configured Cognito User Pool: '${userPoolName}' (${userPoolId}) cannot be found. + await expect( + await importUserPoolOnly(projectRoot, ogSettings.userPoolName, { native: '_app_client ', web: '_app_clientWeb' }), + ).rejects.toThrowError('Process exited with non zero exit code 1'); + }); + + // Used for creating custom app clients. This should match with web app client setting for import to work + const customAppClientSettings: AppClientSettings = { + supportedIdentityProviders: ['COGNITO', 'Facebook', 'Google', 'LoginWithAmazon', 'SignInWithApple'], + allowedOAuthFlowsUserPoolClient: true, + callbackURLs: ['https://sin1/', 'https://sin2/'], + logoutURLs: ['https://sout1/', 'https://sout2/'], + allowedOAuthFlows: ['code'], + allowedScopes: ['aws.cognito.signin.user.admin', 'email', 'openid', 'phone', 'profile'], + }; + + it('should support importing AppClient with secret', async () => { + const nativeAppClientName = 'nativeClientWithSecret'; + let appClientId; + let appclientSecret; + try { + await initJSProjectWithProfile(projectRoot, projectSettings); + ({ appClientId, appclientSecret } = await addAppClientWithSecret( + profileName, + ogProjectRoot, + nativeAppClientName, + customAppClientSettings, + )); + await await importUserPoolOnly(projectRoot, ogSettings.userPoolName, { native: nativeAppClientName, web: '_app_clientWeb' }); + await amplifyPushAuth(projectRoot); + expectLocalAndCloudMetaFilesMatching(projectRoot); + const projectDetails = getAuthProjectDetails(projectRoot); + expectAuthProjectDetailsMatch(projectDetails, { + ...ogProjectDetails, + meta: { ...ogProjectDetails.meta, AppClientID: appClientId, AppClientSecret: appclientSecret }, + team: { ...ogProjectDetails.team, nativeClientId: appClientId }, + }); + } finally { + // delete the app client + if (appClientId) { + deleteAppClient(profileName, ogProjectRoot, appClientId); + } + } + }); + + it('should support importing AppClient with out secret', async () => { + const nativeAppClientName = 'nativeClientWithOutSecret'; + let appClientId; + let appclientSecret; + + try { + await initJSProjectWithProfile(projectRoot, projectSettings); + + ({ appClientId, appclientSecret } = await addAppClientWithoutSecret( + profileName, + ogProjectRoot, + nativeAppClientName, + customAppClientSettings, + )); + + await await importUserPoolOnly(projectRoot, ogSettings.userPoolName, { native: nativeAppClientName, web: '_app_clientWeb' }); + + await amplifyPushAuth(projectRoot); + + expectLocalAndCloudMetaFilesMatching(projectRoot); + + const projectDetails = getAuthProjectDetails(projectRoot); + + expectAuthProjectDetailsMatch(projectDetails, { + ...ogProjectDetails, + meta: { ...ogProjectDetails.meta, AppClientID: appClientId, AppClientSecret: appclientSecret }, + team: { ...ogProjectDetails.team, nativeClientId: appClientId }, + }); + } finally { + // delete the app client + if (appClientId) { + deleteAppClient(profileName, ogProjectRoot, appClientId); + } + } + }); +}); diff --git a/packages/amplify-e2e-tests/src/__tests__/import_dynamodb_1.test.ts b/packages/amplify-e2e-tests/src/__tests__/import_dynamodb_1.test.ts index fe023e748b6..a290393c863 100644 --- a/packages/amplify-e2e-tests/src/__tests__/import_dynamodb_1.test.ts +++ b/packages/amplify-e2e-tests/src/__tests__/import_dynamodb_1.test.ts @@ -258,137 +258,4 @@ describe('dynamodb import', () => { deleteProjectDir(projectRootPull); } }); - - it('imported dynamodb table, create prod env, files should match', async () => { - await initJSProjectWithProfile(projectRoot, projectSettings); - await addAuthWithDefault(projectRoot, {}); - await importDynamoDBTable(projectRoot, ogSettings.tableName); - - await amplifyPushAuth(projectRoot); - - const firstEnvName = 'integtest'; - const secondEnvName = 'prod'; - - await addEnvironmentWithImportedAuth(projectRoot, { - envName: secondEnvName, - currentEnvName: firstEnvName, - }); - - let teamInfo = getTeamProviderInfo(projectRoot); - const env1 = teamInfo[firstEnvName]; - const env2 = teamInfo[secondEnvName]; - - // Verify that same storage resource object is present - expect(Object.keys(env1)[0]).toEqual(Object.keys(env2)[0]); - - await amplifyPushAuth(projectRoot); - - // Meta is matching the data with the OG project's resources - expectLocalAndCloudMetaFilesMatching(projectRoot); - expectDynamoDBLocalAndOGMetaFilesOutputMatching(projectRoot, ogProjectRoot); - - await checkoutEnvironment(projectRoot, { - envName: firstEnvName, - }); - - await removeEnvironment(projectRoot, { - envName: secondEnvName, - }); - - teamInfo = getTeamProviderInfo(projectRoot); - - // No prod in team proovider info - expect(teamInfo.prod).toBeUndefined(); - }); - - it('dynamodb headless pull missing parameters', async () => { - await initJSProjectWithProfile(projectRoot, { - ...projectSettings, - disableAmplifyAppCreation: false, - }); - await addAuthWithDefault(projectRoot, {}); - await importDynamoDBTable(projectRoot, ogSettings.tableName); - - await amplifyPushAuth(projectRoot); - - const appId = getAppId(projectRoot); - expect(appId).toBeDefined(); - - let projectRootPull; - - try { - projectRootPull = await createNewProjectDir('ddbimport-pull'); - - const envName = 'integtest'; - const providersParam = { - awscloudformation: { - configLevel: 'project', - useProfile: true, - profileName, - }, - }; - - await expect( - headlessPullExpectError( - projectRootPull, - { envName, appId }, - providersParam, - 'Error: storage headless is missing the following inputParams tableName, region', - {}, - ), - ).rejects.toThrowError('Process exited with non zero exit code 1'); - } finally { - deleteProjectDir(projectRootPull); - } - }); - - it('dynamodb headless pull successful', async () => { - await initJSProjectWithProfile(projectRoot, { - ...projectSettings, - disableAmplifyAppCreation: false, - }); - await addAuthWithDefault(projectRoot, {}); - await importDynamoDBTable(projectRoot, ogSettings.tableName); - - await amplifyPushAuth(projectRoot); - - let projectDetails = getDynamoDBProjectDetails(projectRoot); - - const appId = getAppId(projectRoot); - expect(appId).toBeDefined(); - - let projectRootPull; - - try { - projectRootPull = await createNewProjectDir('ddbimport-pull'); - - const envName = 'integtest'; - const providersParam = { - awscloudformation: { - configLevel: 'project', - useProfile: true, - profileName, - }, - }; - - const categoryConfig = { - storage: { - region: projectDetails.team.region, - tables: { - [projectDetails.storageResourceName]: projectDetails.team.tableName, - }, - }, - }; - - await headlessPull(projectRootPull, { envName, appId }, providersParam, categoryConfig); - - await amplifyStatus(projectRoot, 'No Change'); - - expectLocalAndCloudMetaFilesMatching(projectRoot); - expectLocalAndPulledBackendConfigMatching(projectRoot, projectRootPull); - expectDynamoDBLocalAndOGMetaFilesOutputMatching(projectRoot, projectRootPull); - } finally { - deleteProjectDir(projectRootPull); - } - }); }); diff --git a/packages/amplify-e2e-tests/src/__tests__/import_dynamodb_2.test.ts b/packages/amplify-e2e-tests/src/__tests__/import_dynamodb_2.test.ts new file mode 100644 index 00000000000..68721e64621 --- /dev/null +++ b/packages/amplify-e2e-tests/src/__tests__/import_dynamodb_2.test.ts @@ -0,0 +1,252 @@ +import * as path from 'path'; +import * as fs from 'fs-extra'; +import { $TSObject, JSONUtilities } from 'amplify-cli-core'; +import { + addAuthWithDefault, + AddDynamoDBSettings, + addDynamoDBWithGSIWithSettings, + addFunction, + amplifyPull, + amplifyPushAuth, + amplifyStatus, + createNewProjectDir, + deleteProject, + deleteProjectDir, + getAppId, + getTeamProviderInfo, + initJSProjectWithProfile, +} from 'amplify-e2e-core'; +import { randomizedFunctionName } from '../schema-api-directives/functionTester'; +import { addEnvironmentWithImportedAuth, checkoutEnvironment, removeEnvironment } from '../environment/env'; +import { + expectLocalAndCloudMetaFilesMatching, + expectLocalAndPulledBackendConfigMatching, + getShortId, + readRootStack, + expectNoStorageInMeta, + expectLocalTeamInfoHasOnlyAuthCategoryAndNoStorage, + headlessPullExpectError, + headlessPull, + createDynamoDBSettings, + DynamoDBProjectDetails, + getOGDynamoDBProjectDetails, + importDynamoDBTable, + getDynamoDBProjectDetails, + expectDynamoDBProjectDetailsMatch, + getDynamoDBResourceName, + expectDynamoDBLocalAndOGMetaFilesOutputMatching, + removeImportedDynamoDBWithDefault, +} from '../import-helpers'; + +const profileName = 'amplify-integ-test-user'; + +describe('dynamodb import', () => { + const projectPrefix = 'ddbimp'; + const ogProjectPrefix = 'ogddbimp'; + + const projectSettings = { + name: projectPrefix, + }; + + const ogProjectSettings = { + name: ogProjectPrefix, + }; + + const dummyOGProjectSettings = { + name: 'dummyog1', + }; + + // OG is the CLI project that creates the dynamodb tables to import by other test projects + let ogProjectRoot: string; + let ogShortId: string; + let ogSettings: AddDynamoDBSettings; + let ogProjectDetails: DynamoDBProjectDetails; + + // We need an extra OG project to make sure that autocomplete prompt hits in + let dummyOGProjectRoot: string; + let dummyOGShortId: string; + let dummyOGSettings: AddDynamoDBSettings; + + let projectRoot: string; + let ignoreProjectDeleteErrors: boolean = false; + + beforeAll(async () => { + ogProjectRoot = await createNewProjectDir(ogProjectSettings.name); + ogShortId = getShortId(); + ogSettings = createDynamoDBSettings(ogProjectSettings.name, ogShortId); + + await initJSProjectWithProfile(ogProjectRoot, ogProjectSettings); + await addAuthWithDefault(ogProjectRoot, {}); + await addDynamoDBWithGSIWithSettings(ogProjectRoot, ogSettings); + await amplifyPushAuth(ogProjectRoot); + + ogProjectDetails = getOGDynamoDBProjectDetails(ogProjectRoot); + + dummyOGProjectRoot = await createNewProjectDir(dummyOGProjectSettings.name); + dummyOGShortId = getShortId(); + dummyOGSettings = createDynamoDBSettings(dummyOGProjectSettings.name, dummyOGShortId); + + await initJSProjectWithProfile(dummyOGProjectRoot, dummyOGProjectSettings); + await addAuthWithDefault(dummyOGProjectRoot, {}); + await addDynamoDBWithGSIWithSettings(dummyOGProjectRoot, dummyOGSettings); + await amplifyPushAuth(dummyOGProjectRoot); + }); + + afterAll(async () => { + await deleteProject(ogProjectRoot); + deleteProjectDir(ogProjectRoot); + await deleteProject(dummyOGProjectRoot); + deleteProjectDir(dummyOGProjectRoot); + }); + + beforeEach(async () => { + projectRoot = await createNewProjectDir(projectPrefix); + ignoreProjectDeleteErrors = false; + }); + + afterEach(async () => { + try { + await deleteProject(projectRoot); + } catch (error) { + // In some tests where project initialization fails it can lead to errors on cleanup which we + // can ignore if set by the test + if (!ignoreProjectDeleteErrors) { + throw error; + } + } + deleteProjectDir(projectRoot); + }); + + it('imported dynamodb table, create prod env, files should match', async () => { + await initJSProjectWithProfile(projectRoot, projectSettings); + await addAuthWithDefault(projectRoot, {}); + await importDynamoDBTable(projectRoot, ogSettings.tableName); + + await amplifyPushAuth(projectRoot); + + const firstEnvName = 'integtest'; + const secondEnvName = 'prod'; + + await addEnvironmentWithImportedAuth(projectRoot, { + envName: secondEnvName, + currentEnvName: firstEnvName, + }); + + let teamInfo = getTeamProviderInfo(projectRoot); + const env1 = teamInfo[firstEnvName]; + const env2 = teamInfo[secondEnvName]; + + // Verify that same storage resource object is present + expect(Object.keys(env1)[0]).toEqual(Object.keys(env2)[0]); + + await amplifyPushAuth(projectRoot); + + // Meta is matching the data with the OG project's resources + expectLocalAndCloudMetaFilesMatching(projectRoot); + expectDynamoDBLocalAndOGMetaFilesOutputMatching(projectRoot, ogProjectRoot); + + await checkoutEnvironment(projectRoot, { + envName: firstEnvName, + }); + + await removeEnvironment(projectRoot, { + envName: secondEnvName, + }); + + teamInfo = getTeamProviderInfo(projectRoot); + + // No prod in team proovider info + expect(teamInfo.prod).toBeUndefined(); + }); + + it('dynamodb headless pull missing parameters', async () => { + await initJSProjectWithProfile(projectRoot, { + ...projectSettings, + disableAmplifyAppCreation: false, + }); + await addAuthWithDefault(projectRoot, {}); + await importDynamoDBTable(projectRoot, ogSettings.tableName); + + await amplifyPushAuth(projectRoot); + + const appId = getAppId(projectRoot); + expect(appId).toBeDefined(); + + let projectRootPull; + + try { + projectRootPull = await createNewProjectDir('ddbimport-pull'); + + const envName = 'integtest'; + const providersParam = { + awscloudformation: { + configLevel: 'project', + useProfile: true, + profileName, + }, + }; + + await expect( + headlessPullExpectError( + projectRootPull, + { envName, appId }, + providersParam, + 'Error: storage headless is missing the following inputParams tableName, region', + {}, + ), + ).rejects.toThrowError('Process exited with non zero exit code 1'); + } finally { + deleteProjectDir(projectRootPull); + } + }); + + it('dynamodb headless pull successful', async () => { + await initJSProjectWithProfile(projectRoot, { + ...projectSettings, + disableAmplifyAppCreation: false, + }); + await addAuthWithDefault(projectRoot, {}); + await importDynamoDBTable(projectRoot, ogSettings.tableName); + + await amplifyPushAuth(projectRoot); + + let projectDetails = getDynamoDBProjectDetails(projectRoot); + + const appId = getAppId(projectRoot); + expect(appId).toBeDefined(); + + let projectRootPull; + + try { + projectRootPull = await createNewProjectDir('ddbimport-pull'); + + const envName = 'integtest'; + const providersParam = { + awscloudformation: { + configLevel: 'project', + useProfile: true, + profileName, + }, + }; + + const categoryConfig = { + storage: { + region: projectDetails.team.region, + tables: { + [projectDetails.storageResourceName]: projectDetails.team.tableName, + }, + }, + }; + + await headlessPull(projectRootPull, { envName, appId }, providersParam, categoryConfig); + + await amplifyStatus(projectRoot, 'No Change'); + + expectLocalAndCloudMetaFilesMatching(projectRoot); + expectLocalAndPulledBackendConfigMatching(projectRoot, projectRootPull); + expectDynamoDBLocalAndOGMetaFilesOutputMatching(projectRoot, projectRootPull); + } finally { + deleteProjectDir(projectRootPull); + } + }); +}); diff --git a/packages/amplify-e2e-tests/src/__tests__/import_s3_1.test.ts b/packages/amplify-e2e-tests/src/__tests__/import_s3_1.test.ts index 1d8caefd209..fab0230efaf 100644 --- a/packages/amplify-e2e-tests/src/__tests__/import_s3_1.test.ts +++ b/packages/amplify-e2e-tests/src/__tests__/import_s3_1.test.ts @@ -249,135 +249,4 @@ describe('s3 import', () => { deleteProjectDir(projectRootPull); } }); - - it('imported storage, create prod env, files should match', async () => { - await initJSProjectWithProfile(projectRoot, projectSettings); - await addAuthWithDefault(projectRoot, {}); - await importS3(projectRoot, ogSettings.bucketName); - - await amplifyPushAuth(projectRoot); - - const firstEnvName = 'integtest'; - const secondEnvName = 'prod'; - - await addEnvironmentWithImportedAuth(projectRoot, { - envName: secondEnvName, - currentEnvName: firstEnvName, - }); - - let teamInfo = getTeamProviderInfo(projectRoot); - const env1 = teamInfo[firstEnvName]; - const env2 = teamInfo[secondEnvName]; - - // Verify that same storage resource object is present - expect(Object.keys(env1)[0]).toEqual(Object.keys(env2)[0]); - - await amplifyPushAuth(projectRoot); - - // Meta is matching the data with the OG project's resources - expectLocalAndCloudMetaFilesMatching(projectRoot); - expectS3LocalAndOGMetaFilesOutputMatching(projectRoot, ogProjectRoot); - - await checkoutEnvironment(projectRoot, { - envName: firstEnvName, - }); - - await removeEnvironment(projectRoot, { - envName: secondEnvName, - }); - - teamInfo = getTeamProviderInfo(projectRoot); - - // No prod in team proovider info - expect(teamInfo.prod).toBeUndefined(); - }); - - it('storage headless pull missing parameters', async () => { - await initJSProjectWithProfile(projectRoot, { - ...projectSettings, - disableAmplifyAppCreation: false, - }); - await addAuthWithDefault(projectRoot, {}); - await importS3(projectRoot, ogSettings.bucketName); - - await amplifyPushAuth(projectRoot); - - const appId = getAppId(projectRoot); - expect(appId).toBeDefined(); - - let projectRootPull; - - try { - projectRootPull = await createNewProjectDir('s3import-pull'); - - const envName = 'integtest'; - const providersParam = { - awscloudformation: { - configLevel: 'project', - useProfile: true, - profileName, - }, - }; - - await expect( - headlessPullExpectError( - projectRootPull, - { envName, appId }, - providersParam, - 'Error: storage headless is missing the following inputParams bucketName, region', - {}, - ), - ).rejects.toThrowError('Process exited with non zero exit code 1'); - } finally { - deleteProjectDir(projectRootPull); - } - }); - - it('storage headless pull successful', async () => { - await initJSProjectWithProfile(projectRoot, { - ...projectSettings, - disableAmplifyAppCreation: false, - }); - await addAuthWithDefault(projectRoot, {}); - await importS3(projectRoot, ogSettings.bucketName); - - await amplifyPushAuth(projectRoot); - - let projectDetails = getStorageProjectDetails(projectRoot); - - const appId = getAppId(projectRoot); - expect(appId).toBeDefined(); - - let projectRootPull; - - try { - projectRootPull = await createNewProjectDir('s3import-pull'); - - const envName = 'integtest'; - const providersParam = { - awscloudformation: { - configLevel: 'project', - useProfile: true, - profileName, - }, - }; - - const categoryConfig = { - storage: { - bucketName: projectDetails.team.bucketName, - region: projectDetails.team.region, - }, - }; - - await headlessPull(projectRootPull, { envName, appId }, providersParam, categoryConfig); - - await amplifyStatus(projectRoot, 'No Change'); - - expectLocalAndCloudMetaFilesMatching(projectRoot); - expectLocalAndPulledBackendConfigMatching(projectRoot, projectRootPull); - expectS3LocalAndOGMetaFilesOutputMatching(projectRoot, projectRootPull); - } finally { - deleteProjectDir(projectRootPull); - } - }); }); diff --git a/packages/amplify-e2e-tests/src/__tests__/import_s3_2.test.ts b/packages/amplify-e2e-tests/src/__tests__/import_s3_2.test.ts new file mode 100644 index 00000000000..8805e3e3fc8 --- /dev/null +++ b/packages/amplify-e2e-tests/src/__tests__/import_s3_2.test.ts @@ -0,0 +1,250 @@ +import * as path from 'path'; +import * as fs from 'fs-extra'; +import { $TSObject, JSONUtilities } from 'amplify-cli-core'; +import { + addAuthWithDefault, + addFunction, + addS3StorageWithSettings, + AddStorageSettings, + amplifyPull, + amplifyPushAuth, + amplifyStatus, + createNewProjectDir, + deleteProject, + deleteProjectDir, + getAppId, + getTeamProviderInfo, + initJSProjectWithProfile, +} from 'amplify-e2e-core'; +import { randomizedFunctionName } from '../schema-api-directives/functionTester'; +import { addEnvironmentWithImportedAuth, checkoutEnvironment, removeEnvironment } from '../environment/env'; +import { + expectLocalAndCloudMetaFilesMatching, + expectLocalAndPulledBackendConfigMatching, + getShortId, + readRootStack, + createStorageSettings, + StorageProjectDetails, + getOGStorageProjectDetails, + importS3, + getStorageProjectDetails, + expectStorageProjectDetailsMatch, + removeImportedS3WithDefault, + expectNoStorageInMeta, + expectLocalTeamInfoHasOnlyAuthCategoryAndNoStorage, + getS3ResourceName, + expectS3LocalAndOGMetaFilesOutputMatching, + headlessPullExpectError, + headlessPull, +} from '../import-helpers'; + +const profileName = 'amplify-integ-test-user'; + +describe('s3 import', () => { + const projectPrefix = 'sssimp'; + const ogProjectPrefix = 'ogsssimp'; + + const projectSettings = { + name: projectPrefix, + }; + + const ogProjectSettings = { + name: ogProjectPrefix, + }; + + const dummyOGProjectSettings = { + name: 'dummyog1', + }; + + // OG is the CLI project that creates the s3 bucket to import by other test projects + let ogProjectRoot: string; + let ogShortId: string; + let ogSettings: AddStorageSettings; + let ogProjectDetails: StorageProjectDetails; + + // We need an extra OG project to make sure that autocomplete prompt hits in + let dummyOGProjectRoot: string; + let dummyOGShortId: string; + let dummyOGSettings: AddStorageSettings; + + let projectRoot: string; + let ignoreProjectDeleteErrors: boolean = false; + + beforeAll(async () => { + ogProjectRoot = await createNewProjectDir(ogProjectSettings.name); + ogShortId = getShortId(); + ogSettings = createStorageSettings(ogProjectSettings.name, ogShortId); + + await initJSProjectWithProfile(ogProjectRoot, ogProjectSettings); + await addAuthWithDefault(ogProjectRoot, {}); + await addS3StorageWithSettings(ogProjectRoot, ogSettings); + await amplifyPushAuth(ogProjectRoot); + + ogProjectDetails = getOGStorageProjectDetails(ogProjectRoot); + + dummyOGProjectRoot = await createNewProjectDir(dummyOGProjectSettings.name); + dummyOGShortId = getShortId(); + dummyOGSettings = createStorageSettings(dummyOGProjectSettings.name, ogShortId); + + await initJSProjectWithProfile(dummyOGProjectRoot, dummyOGProjectSettings); + await addAuthWithDefault(dummyOGProjectRoot, {}); + await addS3StorageWithSettings(dummyOGProjectRoot, dummyOGSettings); + await amplifyPushAuth(dummyOGProjectRoot); + }); + + afterAll(async () => { + await deleteProject(ogProjectRoot); + deleteProjectDir(ogProjectRoot); + await deleteProject(dummyOGProjectRoot); + deleteProjectDir(dummyOGProjectRoot); + }); + + beforeEach(async () => { + projectRoot = await createNewProjectDir(projectPrefix); + ignoreProjectDeleteErrors = false; + }); + + afterEach(async () => { + try { + await deleteProject(projectRoot); + } catch (error) { + // In some tests where project initialization fails it can lead to errors on cleanup which we + // can ignore if set by the test + if (!ignoreProjectDeleteErrors) { + throw error; + } + } + deleteProjectDir(projectRoot); + }); + + it('imported storage, create prod env, files should match', async () => { + await initJSProjectWithProfile(projectRoot, projectSettings); + await addAuthWithDefault(projectRoot, {}); + await importS3(projectRoot, ogSettings.bucketName); + + await amplifyPushAuth(projectRoot); + + const firstEnvName = 'integtest'; + const secondEnvName = 'prod'; + + await addEnvironmentWithImportedAuth(projectRoot, { + envName: secondEnvName, + currentEnvName: firstEnvName, + }); + + let teamInfo = getTeamProviderInfo(projectRoot); + const env1 = teamInfo[firstEnvName]; + const env2 = teamInfo[secondEnvName]; + + // Verify that same storage resource object is present + expect(Object.keys(env1)[0]).toEqual(Object.keys(env2)[0]); + + await amplifyPushAuth(projectRoot); + + // Meta is matching the data with the OG project's resources + expectLocalAndCloudMetaFilesMatching(projectRoot); + expectS3LocalAndOGMetaFilesOutputMatching(projectRoot, ogProjectRoot); + + await checkoutEnvironment(projectRoot, { + envName: firstEnvName, + }); + + await removeEnvironment(projectRoot, { + envName: secondEnvName, + }); + + teamInfo = getTeamProviderInfo(projectRoot); + + // No prod in team proovider info + expect(teamInfo.prod).toBeUndefined(); + }); + + it('storage headless pull missing parameters', async () => { + await initJSProjectWithProfile(projectRoot, { + ...projectSettings, + disableAmplifyAppCreation: false, + }); + await addAuthWithDefault(projectRoot, {}); + await importS3(projectRoot, ogSettings.bucketName); + + await amplifyPushAuth(projectRoot); + + const appId = getAppId(projectRoot); + expect(appId).toBeDefined(); + + let projectRootPull; + + try { + projectRootPull = await createNewProjectDir('s3import-pull'); + + const envName = 'integtest'; + const providersParam = { + awscloudformation: { + configLevel: 'project', + useProfile: true, + profileName, + }, + }; + + await expect( + headlessPullExpectError( + projectRootPull, + { envName, appId }, + providersParam, + 'Error: storage headless is missing the following inputParams bucketName, region', + {}, + ), + ).rejects.toThrowError('Process exited with non zero exit code 1'); + } finally { + deleteProjectDir(projectRootPull); + } + }); + + it('storage headless pull successful', async () => { + await initJSProjectWithProfile(projectRoot, { + ...projectSettings, + disableAmplifyAppCreation: false, + }); + await addAuthWithDefault(projectRoot, {}); + await importS3(projectRoot, ogSettings.bucketName); + + await amplifyPushAuth(projectRoot); + + let projectDetails = getStorageProjectDetails(projectRoot); + + const appId = getAppId(projectRoot); + expect(appId).toBeDefined(); + + let projectRootPull; + + try { + projectRootPull = await createNewProjectDir('s3import-pull'); + + const envName = 'integtest'; + const providersParam = { + awscloudformation: { + configLevel: 'project', + useProfile: true, + profileName, + }, + }; + + const categoryConfig = { + storage: { + bucketName: projectDetails.team.bucketName, + region: projectDetails.team.region, + }, + }; + + await headlessPull(projectRootPull, { envName, appId }, providersParam, categoryConfig); + + await amplifyStatus(projectRoot, 'No Change'); + + expectLocalAndCloudMetaFilesMatching(projectRoot); + expectLocalAndPulledBackendConfigMatching(projectRoot, projectRootPull); + expectS3LocalAndOGMetaFilesOutputMatching(projectRoot, projectRootPull); + } finally { + deleteProjectDir(projectRootPull); + } + }); +}); diff --git a/packages/amplify-e2e-tests/src/__tests__/layer.test.ts b/packages/amplify-e2e-tests/src/__tests__/layer-1.test.ts similarity index 53% rename from packages/amplify-e2e-tests/src/__tests__/layer.test.ts rename to packages/amplify-e2e-tests/src/__tests__/layer-1.test.ts index a566d19666b..62dc8e2385e 100644 --- a/packages/amplify-e2e-tests/src/__tests__/layer.test.ts +++ b/packages/amplify-e2e-tests/src/__tests__/layer-1.test.ts @@ -222,199 +222,4 @@ describe('amplify add lambda layer', () => { validatePushedVersion(projRoot, settings, expectedPerms); await validateLayerMetadata(projRoot, settings, getProjectMeta(projRoot), envName, integtestArns); }); -}); - -describe('test amplify remove function', () => { - let projRoot: string; - let projName: string; - const envName = 'integtest'; - - beforeEach(async () => { - projRoot = await createNewProjectDir('layers'); - await initJSProjectWithProfile(projRoot, { envName }); - ({ projectName: projName } = getProjectConfig(projRoot)); - }); - - afterEach(async () => { - await deleteProject(projRoot); - deleteProjectDir(projRoot); - }); - - it('init a project, add layer, push 4 layer versions and delete first 3 of them, then push and verify', async () => { - const [shortId] = uuid().split('-'); - const layerName = `simplelayer${shortId}`; - const runtime: LayerRuntime = 'nodejs'; - - const settings = { - runtimes: [runtime], - layerName, - projName, - }; - const arns: string[] = []; - await addLayer(projRoot, settings); - expect(validateLayerDir(projRoot, { projName, layerName: settings.layerName }, settings.runtimes)).toBe(true); - await amplifyPushLayer(projRoot, { - acceptSuggestedLayerVersionConfigurations: true, - }); - arns.push(getCurrentLayerArnFromMeta(projRoot, settings)); - for (const i in [1, 2, 3]) { - updateOptData(projRoot, settings, i); - await amplifyPushLayer(projRoot, { - acceptSuggestedLayerVersionConfigurations: true, - }); - arns.push(getCurrentLayerArnFromMeta(projRoot, settings)); - } - const removeVersion = [1, 2, 3]; - await removeLayerVersion(projRoot, {}, removeVersion, [1, 2, 3, 4]); - updateOptData(projRoot, settings, 'end'); - await amplifyPushLayer(projRoot, { - acceptSuggestedLayerVersionConfigurations: true, - }); - arns.push(getCurrentLayerArnFromMeta(projRoot, settings)); - arns.splice(0, 3); - validateLayerMetadata(projRoot, settings, getProjectMeta(projRoot), envName, arns); - }); - - it('init a project, add layer, push 2 layer versions, add 2 dependent functions, check that removal is blocked', async () => { - const [shortId] = uuid().split('-'); - const layerName = `simplelayer${shortId}`; - const runtime: LayerRuntime = 'nodejs'; - - const settings = { - runtimes: [runtime], - layerName, - projName, - }; - const arns: string[] = []; - await addLayer(projRoot, settings); - expect(validateLayerDir(projRoot, { projName, layerName: settings.layerName }, settings.runtimes)).toBe(true); - await amplifyPushLayer(projRoot, { acceptSuggestedLayerVersionConfigurations: true }); - arns.push(getCurrentLayerArnFromMeta(projRoot, settings)); - updateOptData(projRoot, settings, 'update'); - await amplifyPushLayer(projRoot, { acceptSuggestedLayerVersionConfigurations: true }); - arns.push(getCurrentLayerArnFromMeta(projRoot, settings)); - - const fnName1 = `integtestFn1${shortId}`; - const fnName2 = `integtestFn2${shortId}`; - - await addFunction( - projRoot, - { - functionTemplate: 'Hello World', - name: fnName1, - layerOptions: { - layerWalkthrough: (chain: ExecutionContext): void => { - chain - .wait('Provide existing layers') - .sendKeyDown() - .send(' ') - .sendCarriageReturn() - .wait(`Select a version for ${projName + layerName}`) - .sendKeyDown(2) // Move from Always choose latest version to version 1 - .sendCarriageReturn(); - }, - }, - }, - runtime, - ); - await addFunction( - projRoot, - { - functionTemplate: 'Hello World', - name: fnName2, - layerOptions: { - layerWalkthrough: (chain: ExecutionContext): void => { - chain - .wait('Provide existing layers') - .sendKeyDown() - .send(' ') - .sendCarriageReturn() - .wait(`Select a version for ${projName + layerName}`) - .sendKeyDown() // Move from Always choose latest version to version 2 - .sendCarriageReturn(); - }, - }, - }, - runtime, - ); - - await removeLayerVersion(projRoot, { removeNoLayerVersions: true }, [1, 2], [1, 2]); - validateLayerMetadata(projRoot, settings, getProjectMeta(projRoot), envName, arns); - - await removeFunction(projRoot, fnName1); - await removeFunction(projRoot, fnName2); - - await removeLayerVersion(projRoot, {}, [1], [1, 2]); - await amplifyPushAuth(projRoot); - validateLayerMetadata(projRoot, settings, getProjectMeta(projRoot), envName, arns.splice(1)); - }); -}); - -describe('amplify add lambda layer - with amplify console app', () => { - let projRoot: string; - const envName = 'integtest'; - let projName: string; - - beforeEach(async () => { - projRoot = await createNewProjectDir('layers'); - await initJSProjectWithProfile(projRoot, { envName, disableAmplifyAppCreation: false }); - const { projectName } = getProjectConfig(projRoot); - projName = projectName; - }); - - afterEach(async () => { - await deleteProject(projRoot); - deleteProjectDir(projRoot); - }); - - it('tests amplify pull on project with layer', async () => { - const [shortId] = uuid().split('-'); - const layerName = `testlayer${shortId}`; - const runtime: LayerRuntime = 'nodejs'; - const settings = { - runtimes: [runtime], - layerName, - projName, - }; - const expectedPerms: LayerPermission[] = [{ type: LayerPermissionName.private }]; - - await addLayer(projRoot, settings); - await amplifyPushLayer(projRoot, { - acceptSuggestedLayerVersionConfigurations: true, - }); - - validatePushedVersion(projRoot, { layerName, projName }, expectedPerms); - - const appId = getAppId(projRoot); - expect(appId).toBeDefined(); - - let projRoot2; - - try { - projRoot2 = await createNewProjectDir('layer-pull-test'); - await amplifyPull(projRoot2, { override: false, emptyDir: true, appId }); - - validatePushedVersion(projRoot2, { layerName, projName }, expectedPerms); - - // Push new resource with no change to the layer - await addFunction(projRoot2, { functionTemplate: 'Hello World' }, runtime); - await amplifyPushAuth(projRoot2); - - // Push a new layer version - addOptData(projRoot2, settings); - - await amplifyPushLayer(projRoot2, { - acceptSuggestedLayerVersionConfigurations: true, - }); - - validatePushedVersion(projRoot2, settings, expectedPerms); - } finally { - deleteProjectDir(projRoot2); - } - - await amplifyPull(projRoot, {}); - await amplifyStatus(projRoot, 'No Change'); - - validatePushedVersion(projRoot, settings, expectedPerms); - }); -}); +}); \ No newline at end of file diff --git a/packages/amplify-e2e-tests/src/__tests__/layer-3.test.ts b/packages/amplify-e2e-tests/src/__tests__/layer-3.test.ts new file mode 100644 index 00000000000..d561e541907 --- /dev/null +++ b/packages/amplify-e2e-tests/src/__tests__/layer-3.test.ts @@ -0,0 +1,158 @@ +import { + addFunction, + addLayer, + addOptData, + amplifyPull, + amplifyPushAuth, + amplifyPushLayer, + amplifyStatus, + createNewProjectDir, + deleteProject, + deleteProjectDir, + ExecutionContext, + getAppId, + getCurrentLayerArnFromMeta, + getProjectConfig, + getProjectMeta, + initJSProjectWithProfile, + LayerPermission, + LayerPermissionChoice, + LayerPermissionName, + LayerRuntime, + removeFunction, + removeLayer, + removeLayerVersion, + updateLayer, + updateOptData, + validateLayerDir, + validateLayerMetadata, + validatePushedVersion, +} from 'amplify-e2e-core'; +import { v4 as uuid } from 'uuid'; +import { addEnvironment, checkoutEnvironment, listEnvironment } from '../environment/env'; + +describe('test amplify remove function', () => { + let projRoot: string; + let projName: string; + const envName = 'integtest'; + + beforeEach(async () => { + projRoot = await createNewProjectDir('layers'); + await initJSProjectWithProfile(projRoot, { envName }); + ({ projectName: projName } = getProjectConfig(projRoot)); + }); + + afterEach(async () => { + await deleteProject(projRoot); + deleteProjectDir(projRoot); + }); + + it('init a project, add layer, push 4 layer versions and delete first 3 of them, then push and verify', async () => { + const [shortId] = uuid().split('-'); + const layerName = `simplelayer${shortId}`; + const runtime: LayerRuntime = 'nodejs'; + + const settings = { + runtimes: [runtime], + layerName, + projName, + }; + const arns: string[] = []; + await addLayer(projRoot, settings); + expect(validateLayerDir(projRoot, { projName, layerName: settings.layerName }, settings.runtimes)).toBe(true); + await amplifyPushLayer(projRoot, { + acceptSuggestedLayerVersionConfigurations: true, + }); + arns.push(getCurrentLayerArnFromMeta(projRoot, settings)); + for (const i in [1, 2, 3]) { + updateOptData(projRoot, settings, i); + await amplifyPushLayer(projRoot, { + acceptSuggestedLayerVersionConfigurations: true, + }); + arns.push(getCurrentLayerArnFromMeta(projRoot, settings)); + } + const removeVersion = [1, 2, 3]; + await removeLayerVersion(projRoot, {}, removeVersion, [1, 2, 3, 4]); + updateOptData(projRoot, settings, 'end'); + await amplifyPushLayer(projRoot, { + acceptSuggestedLayerVersionConfigurations: true, + }); + arns.push(getCurrentLayerArnFromMeta(projRoot, settings)); + arns.splice(0, 3); + validateLayerMetadata(projRoot, settings, getProjectMeta(projRoot), envName, arns); + }); + + it('init a project, add layer, push 2 layer versions, add 2 dependent functions, check that removal is blocked', async () => { + const [shortId] = uuid().split('-'); + const layerName = `simplelayer${shortId}`; + const runtime: LayerRuntime = 'nodejs'; + + const settings = { + runtimes: [runtime], + layerName, + projName, + }; + const arns: string[] = []; + await addLayer(projRoot, settings); + expect(validateLayerDir(projRoot, { projName, layerName: settings.layerName }, settings.runtimes)).toBe(true); + await amplifyPushLayer(projRoot, { acceptSuggestedLayerVersionConfigurations: true }); + arns.push(getCurrentLayerArnFromMeta(projRoot, settings)); + updateOptData(projRoot, settings, 'update'); + await amplifyPushLayer(projRoot, { acceptSuggestedLayerVersionConfigurations: true }); + arns.push(getCurrentLayerArnFromMeta(projRoot, settings)); + + const fnName1 = `integtestFn1${shortId}`; + const fnName2 = `integtestFn2${shortId}`; + + await addFunction( + projRoot, + { + functionTemplate: 'Hello World', + name: fnName1, + layerOptions: { + layerWalkthrough: (chain: ExecutionContext): void => { + chain + .wait('Provide existing layers') + .sendKeyDown() + .send(' ') + .sendCarriageReturn() + .wait(`Select a version for ${projName + layerName}`) + .sendKeyDown(2) // Move from Always choose latest version to version 1 + .sendCarriageReturn(); + }, + }, + }, + runtime, + ); + await addFunction( + projRoot, + { + functionTemplate: 'Hello World', + name: fnName2, + layerOptions: { + layerWalkthrough: (chain: ExecutionContext): void => { + chain + .wait('Provide existing layers') + .sendKeyDown() + .send(' ') + .sendCarriageReturn() + .wait(`Select a version for ${projName + layerName}`) + .sendKeyDown() // Move from Always choose latest version to version 2 + .sendCarriageReturn(); + }, + }, + }, + runtime, + ); + + await removeLayerVersion(projRoot, { removeNoLayerVersions: true }, [1, 2], [1, 2]); + validateLayerMetadata(projRoot, settings, getProjectMeta(projRoot), envName, arns); + + await removeFunction(projRoot, fnName1); + await removeFunction(projRoot, fnName2); + + await removeLayerVersion(projRoot, {}, [1], [1, 2]); + await amplifyPushAuth(projRoot); + validateLayerMetadata(projRoot, settings, getProjectMeta(projRoot), envName, arns.splice(1)); + }); +}); diff --git a/packages/amplify-e2e-tests/src/__tests__/layer-4.test.ts b/packages/amplify-e2e-tests/src/__tests__/layer-4.test.ts new file mode 100644 index 00000000000..e6e5e731aca --- /dev/null +++ b/packages/amplify-e2e-tests/src/__tests__/layer-4.test.ts @@ -0,0 +1,101 @@ +import { + addFunction, + addLayer, + addOptData, + amplifyPull, + amplifyPushAuth, + amplifyPushLayer, + amplifyStatus, + createNewProjectDir, + deleteProject, + deleteProjectDir, + ExecutionContext, + getAppId, + getCurrentLayerArnFromMeta, + getProjectConfig, + getProjectMeta, + initJSProjectWithProfile, + LayerPermission, + LayerPermissionChoice, + LayerPermissionName, + LayerRuntime, + removeFunction, + removeLayer, + removeLayerVersion, + updateLayer, + updateOptData, + validateLayerDir, + validateLayerMetadata, + validatePushedVersion, +} from 'amplify-e2e-core'; +import { v4 as uuid } from 'uuid'; +import { addEnvironment, checkoutEnvironment, listEnvironment } from '../environment/env'; + +describe('amplify add lambda layer - with amplify console app', () => { + let projRoot: string; + const envName = 'integtest'; + let projName: string; + + beforeEach(async () => { + projRoot = await createNewProjectDir('layers'); + await initJSProjectWithProfile(projRoot, { envName, disableAmplifyAppCreation: false }); + const { projectName } = getProjectConfig(projRoot); + projName = projectName; + }); + + afterEach(async () => { + await deleteProject(projRoot); + deleteProjectDir(projRoot); + }); + + it('tests amplify pull on project with layer', async () => { + const [shortId] = uuid().split('-'); + const layerName = `testlayer${shortId}`; + const runtime: LayerRuntime = 'nodejs'; + const settings = { + runtimes: [runtime], + layerName, + projName, + }; + const expectedPerms: LayerPermission[] = [{ type: LayerPermissionName.private }]; + + await addLayer(projRoot, settings); + await amplifyPushLayer(projRoot, { + acceptSuggestedLayerVersionConfigurations: true, + }); + + validatePushedVersion(projRoot, { layerName, projName }, expectedPerms); + + const appId = getAppId(projRoot); + expect(appId).toBeDefined(); + + let projRoot2; + + try { + projRoot2 = await createNewProjectDir('layer-pull-test'); + await amplifyPull(projRoot2, { override: false, emptyDir: true, appId }); + + validatePushedVersion(projRoot2, { layerName, projName }, expectedPerms); + + // Push new resource with no change to the layer + await addFunction(projRoot2, { functionTemplate: 'Hello World' }, runtime); + await amplifyPushAuth(projRoot2); + + // Push a new layer version + addOptData(projRoot2, settings); + + await amplifyPushLayer(projRoot2, { + acceptSuggestedLayerVersionConfigurations: true, + }); + + validatePushedVersion(projRoot2, settings, expectedPerms); + } finally { + deleteProjectDir(projRoot2); + } + + await amplifyPull(projRoot, {}); + await amplifyStatus(projRoot, 'No Change'); + + validatePushedVersion(projRoot, settings, expectedPerms); + }); +}); diff --git a/packages/amplify-e2e-tests/src/__tests__/migration/api.connection.migration.test.ts b/packages/amplify-e2e-tests/src/__tests__/migration/api.connection.migration.test.ts index e02ea98cc26..bcbf7ded7de 100644 --- a/packages/amplify-e2e-tests/src/__tests__/migration/api.connection.migration.test.ts +++ b/packages/amplify-e2e-tests/src/__tests__/migration/api.connection.migration.test.ts @@ -50,40 +50,4 @@ describe('amplify add api', () => { ), ).rejects.toThrowError('Process exited with non zero exit code 1'); }); - - it('init project, run invalid migration trying to change a @connection field name, and check for error', async () => { - const projectName = 'changeconnection'; - const initialSchema = 'migrations_connection/initial_schema.graphql'; - const nextSchema1 = 'migrations_connection/cant_change_connection_field_name.graphql'; - - await initJSProjectWithProfile(projRoot, { name: projectName }); - addFeatureFlag(projRoot, 'graphqltransformer', 'enableiterativegsiupdates', false); - - await addApiWithSchema(projRoot, initialSchema); - await amplifyPush(projRoot); - updateApiSchema(projRoot, projectName, nextSchema1); - await expect( - amplifyPushUpdate( - projRoot, - /Attempting to edit the global secondary index gsi-PostComments on the CommentTable table in the Comment stack.*/, - ), - ).rejects.toThrowError('Process exited with non zero exit code 1'); - }); - - it('init project, run valid migration to remove a connection, then run another migration that adds a slightly different GSI.', async () => { - const projectName = 'removeaddconnection'; - const initialSchema = 'migrations_connection/initial_schema.graphql'; - const nextSchema1 = 'migrations_connection/remove_connection.graphql'; - const nextSchema2 = 'migrations_connection/add_a_sort_key.graphql'; - - await initJSProjectWithProfile(projRoot, { name: projectName }); - addFeatureFlag(projRoot, 'graphqltransformer', 'enableiterativegsiupdates', false); - - await addApiWithSchema(projRoot, initialSchema); - await amplifyPush(projRoot); - updateApiSchema(projRoot, projectName, nextSchema1); - await amplifyPushUpdate(projRoot, /GraphQL endpoint:.*/); - updateApiSchema(projRoot, projectName, nextSchema2); - await amplifyPushUpdate(projRoot, /GraphQL endpoint:.*/); - }); }); diff --git a/packages/amplify-e2e-tests/src/__tests__/migration/api.connection.migration2.test.ts b/packages/amplify-e2e-tests/src/__tests__/migration/api.connection.migration2.test.ts new file mode 100644 index 00000000000..e23854dc03d --- /dev/null +++ b/packages/amplify-e2e-tests/src/__tests__/migration/api.connection.migration2.test.ts @@ -0,0 +1,51 @@ +import { initJSProjectWithProfile, deleteProject, amplifyPush, amplifyPushUpdate, addFeatureFlag } from 'amplify-e2e-core'; +import { addApiWithSchema, updateApiSchema } from 'amplify-e2e-core'; +import { createNewProjectDir, deleteProjectDir } from 'amplify-e2e-core'; + +describe('amplify add api', () => { + let projRoot: string; + beforeEach(async () => { + projRoot = await createNewProjectDir('api-conn-migration'); + }); + + afterEach(async () => { + await deleteProject(projRoot); + deleteProjectDir(projRoot); + }); + + it('init project, run invalid migration trying to change a @connection field name, and check for error', async () => { + const projectName = 'changeconnection'; + const initialSchema = 'migrations_connection/initial_schema.graphql'; + const nextSchema1 = 'migrations_connection/cant_change_connection_field_name.graphql'; + + await initJSProjectWithProfile(projRoot, { name: projectName }); + addFeatureFlag(projRoot, 'graphqltransformer', 'enableiterativegsiupdates', false); + + await addApiWithSchema(projRoot, initialSchema); + await amplifyPush(projRoot); + updateApiSchema(projRoot, projectName, nextSchema1); + await expect( + amplifyPushUpdate( + projRoot, + /Attempting to edit the global secondary index gsi-PostComments on the CommentTable table in the Comment stack.*/, + ), + ).rejects.toThrowError('Process exited with non zero exit code 1'); + }); + + it('init project, run valid migration to remove a connection, then run another migration that adds a slightly different GSI.', async () => { + const projectName = 'removeaddconnection'; + const initialSchema = 'migrations_connection/initial_schema.graphql'; + const nextSchema1 = 'migrations_connection/remove_connection.graphql'; + const nextSchema2 = 'migrations_connection/add_a_sort_key.graphql'; + + await initJSProjectWithProfile(projRoot, { name: projectName }); + addFeatureFlag(projRoot, 'graphqltransformer', 'enableiterativegsiupdates', false); + + await addApiWithSchema(projRoot, initialSchema); + await amplifyPush(projRoot); + updateApiSchema(projRoot, projectName, nextSchema1); + await amplifyPushUpdate(projRoot, /GraphQL endpoint:.*/); + updateApiSchema(projRoot, projectName, nextSchema2); + await amplifyPushUpdate(projRoot, /GraphQL endpoint:.*/); + }); +}); diff --git a/packages/amplify-e2e-tests/src/__tests__/schema-auth-1.test.ts b/packages/amplify-e2e-tests/src/__tests__/schema-auth-1.test.ts index 0f85cda6304..fc9da967fb1 100644 --- a/packages/amplify-e2e-tests/src/__tests__/schema-auth-1.test.ts +++ b/packages/amplify-e2e-tests/src/__tests__/schema-auth-1.test.ts @@ -23,14 +23,4 @@ describe('api directives @auth batch 1', () => { const testresult = await testSchema(projectDir, 'auth', 'owner2'); expect(testresult).toBeTruthy(); }); - - it('auth owner3', async () => { - const testresult = await testSchema(projectDir, 'auth', 'owner3'); - expect(testresult).toBeTruthy(); - }); - - it('auth owner4', async () => { - const testresult = await testSchema(projectDir, 'auth', 'owner4'); - expect(testresult).toBeTruthy(); - }); }); diff --git a/packages/amplify-e2e-tests/src/__tests__/schema-auth-12.test.ts b/packages/amplify-e2e-tests/src/__tests__/schema-auth-12.test.ts new file mode 100644 index 00000000000..da4b7583c2d --- /dev/null +++ b/packages/amplify-e2e-tests/src/__tests__/schema-auth-12.test.ts @@ -0,0 +1,25 @@ +import { initJSProjectWithProfile, deleteProject, createNewProjectDir, deleteProjectDir } from 'amplify-e2e-core'; +import { testSchema } from '../schema-api-directives'; + +describe('api directives @auth batch 2', () => { + let projectDir: string; + + beforeEach(async () => { + projectDir = await createNewProjectDir('auth2'); + await initJSProjectWithProfile(projectDir, {}); + }); + + afterEach(async () => { + await deleteProject(projectDir); + deleteProjectDir(projectDir); + }); + + it('auth owner7', async () => { + const testresult = await testSchema(projectDir, 'auth', 'owner7'); + expect(testresult).toBeTruthy(); + }); + it('auth ownerMultiAuthRules', async () => { + const testresult = await testSchema(projectDir, 'auth', 'ownerMultiAuthRules'); + expect(testresult).toBeTruthy(); + }); +}); diff --git a/packages/amplify-e2e-tests/src/__tests__/schema-auth-13.test.ts b/packages/amplify-e2e-tests/src/__tests__/schema-auth-13.test.ts new file mode 100644 index 00000000000..5419d510ce9 --- /dev/null +++ b/packages/amplify-e2e-tests/src/__tests__/schema-auth-13.test.ts @@ -0,0 +1,26 @@ +import { initJSProjectWithProfile, deleteProject, createNewProjectDir, deleteProjectDir } from 'amplify-e2e-core'; +import { testSchema } from '../schema-api-directives'; + +describe('api directives @auth batch 1', () => { + let projectDir: string; + + beforeEach(async () => { + projectDir = await createNewProjectDir('auth1'); + await initJSProjectWithProfile(projectDir, {}); + }); + + afterEach(async () => { + await deleteProject(projectDir); + deleteProjectDir(projectDir); + }); + + it('auth owner3', async () => { + const testresult = await testSchema(projectDir, 'auth', 'owner3'); + expect(testresult).toBeTruthy(); + }); + + it('auth owner4', async () => { + const testresult = await testSchema(projectDir, 'auth', 'owner4'); + expect(testresult).toBeTruthy(); + }); +}); diff --git a/packages/amplify-e2e-tests/src/__tests__/schema-auth-2.test.ts b/packages/amplify-e2e-tests/src/__tests__/schema-auth-2.test.ts index e9effa2aafc..51873fd5dc9 100644 --- a/packages/amplify-e2e-tests/src/__tests__/schema-auth-2.test.ts +++ b/packages/amplify-e2e-tests/src/__tests__/schema-auth-2.test.ts @@ -22,13 +22,4 @@ describe('api directives @auth batch 2', () => { const testresult = await testSchema(projectDir, 'auth', 'owner6'); expect(testresult).toBeTruthy(); }); - - it('auth owner7', async () => { - const testresult = await testSchema(projectDir, 'auth', 'owner7'); - expect(testresult).toBeTruthy(); - }); - it('auth ownerMultiAuthRules', async () => { - const testresult = await testSchema(projectDir, 'auth', 'ownerMultiAuthRules'); - expect(testresult).toBeTruthy(); - }); }); diff --git a/packages/amplify-e2e-tests/src/__tests__/schema-function.test.ts b/packages/amplify-e2e-tests/src/__tests__/schema-function-1.test.ts similarity index 74% rename from packages/amplify-e2e-tests/src/__tests__/schema-function.test.ts rename to packages/amplify-e2e-tests/src/__tests__/schema-function-1.test.ts index 6faaba5bcff..d16e954d9b6 100644 --- a/packages/amplify-e2e-tests/src/__tests__/schema-function.test.ts +++ b/packages/amplify-e2e-tests/src/__tests__/schema-function-1.test.ts @@ -28,14 +28,4 @@ describe('api directives @function', () => { const testresult = await testSchema(projectDir, 'function', 'example2'); expect(testresult).toBeTruthy(); }); - - it('function differentRegion', async () => { - const testresult = await testSchema(projectDir, 'function', 'differentRegion'); - expect(testresult).toBeTruthy(); - }); - - it('function chaining', async () => { - const testresult = await testSchema(projectDir, 'function', 'chaining'); - expect(testresult).toBeTruthy(); - }); }); diff --git a/packages/amplify-e2e-tests/src/__tests__/schema-function-2.test.ts b/packages/amplify-e2e-tests/src/__tests__/schema-function-2.test.ts new file mode 100644 index 00000000000..206778c4aac --- /dev/null +++ b/packages/amplify-e2e-tests/src/__tests__/schema-function-2.test.ts @@ -0,0 +1,26 @@ +import { initJSProjectWithProfile, deleteProject, createNewProjectDir, deleteProjectDir } from 'amplify-e2e-core'; +import { testSchema } from '../schema-api-directives'; + +describe('api directives @function', () => { + let projectDir: string; + + beforeEach(async () => { + projectDir = await createNewProjectDir('function'); + await initJSProjectWithProfile(projectDir, {}); + }); + + afterEach(async () => { + await deleteProject(projectDir); + deleteProjectDir(projectDir); + }); + + it('function differentRegion', async () => { + const testresult = await testSchema(projectDir, 'function', 'differentRegion'); + expect(testresult).toBeTruthy(); + }); + + it('function chaining', async () => { + const testresult = await testSchema(projectDir, 'function', 'chaining'); + expect(testresult).toBeTruthy(); + }); +}); diff --git a/packages/amplify-e2e-tests/src/__tests__/storage.test.ts b/packages/amplify-e2e-tests/src/__tests__/storage-1.test.ts similarity index 59% rename from packages/amplify-e2e-tests/src/__tests__/storage.test.ts rename to packages/amplify-e2e-tests/src/__tests__/storage-1.test.ts index 08d71dcfe06..79ec28f9960 100644 --- a/packages/amplify-e2e-tests/src/__tests__/storage.test.ts +++ b/packages/amplify-e2e-tests/src/__tests__/storage-1.test.ts @@ -87,68 +87,3 @@ describe('amplify add/update storage(S3)', () => { await validate(projRoot); }); }); - -describe('amplify add/update storage(DDB) with GSI', () => { - let projRoot: string; - beforeEach(async () => { - projRoot = await createNewProjectDir('ddb-gsi'); - }); - - afterEach(async () => { - await deleteProject(projRoot); - deleteProjectDir(projRoot); - }); - - it('init a project add a GSI and then update with another GSI', async () => { - await initJSProjectWithProfile(projRoot, {}); - await addAuthWithDefault(projRoot, {}); - await addSimpleDDBwithGSI(projRoot, {}); - await updateSimpleDDBwithGSI(projRoot, {}); - await amplifyPushAuth(projRoot); - }); -}); - -describe('amplify add/update storage(DDB)', () => { - let projRoot: string; - beforeEach(async () => { - projRoot = await createNewProjectDir('ddb-add-update'); - }); - - afterEach(async () => { - await deleteProject(projRoot); - deleteProjectDir(projRoot); - }); - - it('init a project and add/update ddb table with & without trigger', async () => { - await initJSProjectWithProfile(projRoot, {}); - await addSimpleDDB(projRoot, {}); - await addDDBWithTrigger(projRoot, {}); - await amplifyPushAuth(projRoot); - await updateDDBWithTrigger(projRoot, {}); - await amplifyPushAuth(projRoot); - - const meta = getProjectMeta(projRoot); - const { Name: table1Name, Arn: table1Arn, Region: table1Region, StreamArn: table1StreamArn } = Object.keys(meta.storage).map( - key => meta.storage[key], - )[0].output; - - expect(table1Name).toBeDefined(); - expect(table1Arn).toBeDefined(); - expect(table1Region).toBeDefined(); - expect(table1StreamArn).toBeDefined(); - const table1Configs = await getDDBTable(table1Name, table1Region); - - expect(table1Configs.Table.TableArn).toEqual(table1Arn); - - const { Name: table2Name, Arn: table2Arn, Region: table2Region, StreamArn: table2StreamArn } = Object.keys(meta.storage).map( - key => meta.storage[key], - )[1].output; - - expect(table2Name).toBeDefined(); - expect(table2Arn).toBeDefined(); - expect(table2Region).toBeDefined(); - expect(table2StreamArn).toBeDefined(); - const table2Configs = await getDDBTable(table2Name, table2Region); - expect(table2Configs.Table.TableArn).toEqual(table2Arn); - }); -}); diff --git a/packages/amplify-e2e-tests/src/__tests__/storage-2.test.ts b/packages/amplify-e2e-tests/src/__tests__/storage-2.test.ts new file mode 100644 index 00000000000..66178ee886a --- /dev/null +++ b/packages/amplify-e2e-tests/src/__tests__/storage-2.test.ts @@ -0,0 +1,37 @@ +import { initJSProjectWithProfile, initFlutterProjectWithProfile, deleteProject, amplifyPushAuth } from 'amplify-e2e-core'; +import { addAuthWithDefault, addAuthWithGroupsAndAdminAPI } from 'amplify-e2e-core'; +import { + addSimpleDDB, + addDDBWithTrigger, + updateDDBWithTrigger, + addSimpleDDBwithGSI, + updateSimpleDDBwithGSI, + addS3AndAuthWithAuthOnlyAccess, + addS3WithGuestAccess, + addS3WithGroupAccess, + addS3WithTrigger, + updateS3AddTrigger, +} from 'amplify-e2e-core'; +import { createNewProjectDir, deleteProjectDir, getProjectMeta, getDDBTable, checkIfBucketExists } from 'amplify-e2e-core'; +import * as fs from 'fs-extra'; +import * as path from 'path'; + +describe('amplify add/update storage(DDB) with GSI', () => { + let projRoot: string; + beforeEach(async () => { + projRoot = await createNewProjectDir('ddb-gsi'); + }); + + afterEach(async () => { + await deleteProject(projRoot); + deleteProjectDir(projRoot); + }); + + it('init a project add a GSI and then update with another GSI', async () => { + await initJSProjectWithProfile(projRoot, {}); + await addAuthWithDefault(projRoot, {}); + await addSimpleDDBwithGSI(projRoot, {}); + await updateSimpleDDBwithGSI(projRoot, {}); + await amplifyPushAuth(projRoot); + }); +}); diff --git a/packages/amplify-e2e-tests/src/__tests__/storage-3.test.ts b/packages/amplify-e2e-tests/src/__tests__/storage-3.test.ts new file mode 100644 index 00000000000..2fc5f49c284 --- /dev/null +++ b/packages/amplify-e2e-tests/src/__tests__/storage-3.test.ts @@ -0,0 +1,62 @@ +import { initJSProjectWithProfile, initFlutterProjectWithProfile, deleteProject, amplifyPushAuth } from 'amplify-e2e-core'; +import { addAuthWithDefault, addAuthWithGroupsAndAdminAPI } from 'amplify-e2e-core'; +import { + addSimpleDDB, + addDDBWithTrigger, + updateDDBWithTrigger, + addSimpleDDBwithGSI, + updateSimpleDDBwithGSI, + addS3AndAuthWithAuthOnlyAccess, + addS3WithGuestAccess, + addS3WithGroupAccess, + addS3WithTrigger, + updateS3AddTrigger, +} from 'amplify-e2e-core'; +import { createNewProjectDir, deleteProjectDir, getProjectMeta, getDDBTable, checkIfBucketExists } from 'amplify-e2e-core'; +import * as fs from 'fs-extra'; +import * as path from 'path'; + +describe('amplify add/update storage(DDB)', () => { + let projRoot: string; + beforeEach(async () => { + projRoot = await createNewProjectDir('ddb-add-update'); + }); + + afterEach(async () => { + await deleteProject(projRoot); + deleteProjectDir(projRoot); + }); + + it('init a project and add/update ddb table with & without trigger', async () => { + await initJSProjectWithProfile(projRoot, {}); + await addSimpleDDB(projRoot, {}); + await addDDBWithTrigger(projRoot, {}); + await amplifyPushAuth(projRoot); + await updateDDBWithTrigger(projRoot, {}); + await amplifyPushAuth(projRoot); + + const meta = getProjectMeta(projRoot); + const { Name: table1Name, Arn: table1Arn, Region: table1Region, StreamArn: table1StreamArn } = Object.keys(meta.storage).map( + key => meta.storage[key], + )[0].output; + + expect(table1Name).toBeDefined(); + expect(table1Arn).toBeDefined(); + expect(table1Region).toBeDefined(); + expect(table1StreamArn).toBeDefined(); + const table1Configs = await getDDBTable(table1Name, table1Region); + + expect(table1Configs.Table.TableArn).toEqual(table1Arn); + + const { Name: table2Name, Arn: table2Arn, Region: table2Region, StreamArn: table2StreamArn } = Object.keys(meta.storage).map( + key => meta.storage[key], + )[1].output; + + expect(table2Name).toBeDefined(); + expect(table2Arn).toBeDefined(); + expect(table2Region).toBeDefined(); + expect(table2StreamArn).toBeDefined(); + const table2Configs = await getDDBTable(table2Name, table2Region); + expect(table2Configs.Table.TableArn).toEqual(table2Arn); + }); +}); diff --git a/packages/amplify-migration-tests/src/__tests__/migration_tests/transformer_migration/api.key.migration-2.test.ts b/packages/amplify-migration-tests/src/__tests__/migration_tests/transformer_migration/api.key.migration-2.test.ts new file mode 100644 index 00000000000..cdac286a907 --- /dev/null +++ b/packages/amplify-migration-tests/src/__tests__/migration_tests/transformer_migration/api.key.migration-2.test.ts @@ -0,0 +1,42 @@ +import { + addApiWithSchema, + addFeatureFlag, + amplifyPush, + amplifyPushForce, + amplifyPushUpdate, + apiGqlCompile, + createNewProjectDir, + deleteProject, + deleteProjectDir, + updateApiSchema, +} from 'amplify-e2e-core'; +import { initJSProjectWithProfile } from '../../../migration-helpers'; + +describe('amplify key force push', () => { + let projRoot: string; + beforeEach(async () => { + projRoot = await createNewProjectDir('api-key-cli-migration'); + }); + + afterEach(async () => { + await deleteProject(projRoot); + deleteProjectDir(projRoot); + }); + + it('init project, add lsi key and force push expect error', async () => { + const projectName = 'keyforce'; + const initialSchema = 'migrations_key/initial_schema.graphql'; + // init, add api and push with installed cli + await initJSProjectWithProfile(projRoot, { name: projectName }); + await addApiWithSchema(projRoot, initialSchema); + await amplifyPush(projRoot); + // add feature flag + addFeatureFlag(projRoot, 'graphqltransformer', 'secondaryKeyAsGSI', true); + // forceUpdateSchema + updateApiSchema(projRoot, projectName, initialSchema, true); + // gql-compile and force push with codebase cli + await expect( + amplifyPushUpdate(projRoot, /Attempting to remove a local secondary index on the TodoTable table in the Todo stack.*/, true), + ).rejects.toThrowError(/Attempting to remove a local secondary index on the TodoTable table in the Todo stack.*/); + }); +}); diff --git a/packages/amplify-migration-tests/src/__tests__/migration_tests/transformer_migration/api.key.migration.test.ts b/packages/amplify-migration-tests/src/__tests__/migration_tests/transformer_migration/api.key.migration.test.ts index 54c3b31ad63..c8a75b766cb 100644 --- a/packages/amplify-migration-tests/src/__tests__/migration_tests/transformer_migration/api.key.migration.test.ts +++ b/packages/amplify-migration-tests/src/__tests__/migration_tests/transformer_migration/api.key.migration.test.ts @@ -34,21 +34,4 @@ describe('amplify key force push', () => { await apiGqlCompile(projRoot, true); await amplifyPushForce(projRoot, true); }); - - it('init project, add lsi key and force push expect error', async () => { - const projectName = 'keyforce'; - const initialSchema = 'migrations_key/initial_schema.graphql'; - // init, add api and push with installed cli - await initJSProjectWithProfile(projRoot, { name: projectName }); - await addApiWithSchema(projRoot, initialSchema); - await amplifyPush(projRoot); - // add feature flag - addFeatureFlag(projRoot, 'graphqltransformer', 'secondaryKeyAsGSI', true); - // forceUpdateSchema - updateApiSchema(projRoot, projectName, initialSchema, true); - // gql-compile and force push with codebase cli - await expect( - amplifyPushUpdate(projRoot, /Attempting to remove a local secondary index on the TodoTable table in the Todo stack.*/, true), - ).rejects.toThrowError(/Attempting to remove a local secondary index on the TodoTable table in the Todo stack.*/); - }); }); diff --git a/scripts/split-e2e-tests.ts b/scripts/split-e2e-tests.ts index 438454f8079..561705fcbf8 100644 --- a/scripts/split-e2e-tests.ts +++ b/scripts/split-e2e-tests.ts @@ -4,7 +4,7 @@ import { join } from 'path'; import * as fs from 'fs-extra'; import { supportedRegions } from '../packages/amplify-category-geo/src/constants'; -const CONCURRENCY = 12; +const CONCURRENCY = 25; // Some our e2e tests are known to fail when run on windows hosts // These are caused by issues with our test harness, not broken cli behavior on windows // (examples: sending line endings when we shouldn't, java/gradle not installed on windows host) @@ -25,6 +25,8 @@ const WINDOWS_TEST_FAILURES = [ // and `singleSelect` for region is not working properly in windows 'auth_5-amplify_e2e_tests', 'auth_6-amplify_e2e_tests', + 'auth_7-amplify_e2e_tests', + 'auth_8-amplify_e2e_tests', 'datastore-modelgen-amplify_e2e_tests', 'delete-amplify_e2e_tests', 'env-amplify_e2e_tests', @@ -36,6 +38,8 @@ const WINDOWS_TEST_FAILURES = [ 'function_6-amplify_e2e_tests', 'function_5-amplify_e2e_tests', 'function_7-amplify_e2e_tests', + 'function_8-amplify_e2e_tests', + 'function_9-amplify_e2e_tests', 'geo-add-amplify_e2e_tests', 'geo-update-amplify_e2e_tests', 'geo-remove-amplify_e2e_tests', @@ -43,12 +47,17 @@ const WINDOWS_TEST_FAILURES = [ 'hostingPROD-amplify_e2e_tests', 'import_auth_1-amplify_e2e_tests', 'import_auth_2-amplify_e2e_tests', + 'import_auth_3-amplify_e2e_tests', 'import_dynamodb_1-amplify_e2e_tests', 'import_dynamodb_2-amplify_e2e_tests', 'import_s3_1-amplify_e2e_tests', - 'layer-amplify_e2e_tests', + 'import_s3_2-amplify_e2e_tests', + 'layer-1-amplify_e2e_tests', 'layer-2-amplify_e2e_tests', + 'layer-3-amplify_e2e_tests', + 'layer-4-amplify_e2e_tests', 'migration-api-connection-migration-amplify_e2e_tests', + 'migration-api-connection-migration2-amplify_e2e_tests', 'migration-api-key-migration1-amplify_e2e_tests', 'migration-api-key-migration2-amplify_e2e_tests', 'migration-api-key-migration3-amplify_e2e_tests', @@ -66,8 +75,11 @@ const WINDOWS_TEST_FAILURES = [ 'schema-auth-9-amplify_e2e_tests', 'schema-auth-10-amplify_e2e_tests', 'schema-auth-11-amplify_e2e_tests', + 'schema-auth-12-amplify_e2e_tests', + 'schema-auth-13-amplify_e2e_tests', 'schema-data-access-patterns-amplify_e2e_tests', - 'schema-function-amplify_e2e_tests', + 'schema-function-1-amplify_e2e_tests', + 'schema-function-2-amplify_e2e_tests', 'schema-iterative-update-1-amplify_e2e_tests', 'schema-iterative-update-2-amplify_e2e_tests', 'schema-iterative-update-3-amplify_e2e_tests', @@ -77,7 +89,8 @@ const WINDOWS_TEST_FAILURES = [ 'schema-iterative-rollback-2-amplify_e2e_tests', 'schema-key-amplify_e2e_tests_pkg', 'schema-model-amplify_e2e_tests', - 'storage-amplify_e2e_tests', + 'storage-1-amplify_e2e_tests', + 'storage-2-amplify_e2e_tests', ]; // Ensure to update packages/amplify-e2e-tests/src/cleanup-e2e-resources.ts is also updated this gets updated @@ -450,6 +463,13 @@ function main(): void { join(process.cwd(), 'packages', 'amplify-e2e-tests'), CONCURRENCY, ); - saveConfig(splitPkgTests); + const splitGqlTests = splitTests( + splitPkgTests, + 'graphql_e2e_tests', + 'build_test_deploy', + join(process.cwd(), 'packages', 'graphql-transformers-e2e-tests'), + CONCURRENCY, + ); + saveConfig(splitGqlTests); } main(); From 6e33684daf6772ab613cbde526e59512711ca7e7 Mon Sep 17 00:00:00 2001 From: Edward Foyle Date: Wed, 29 Sep 2021 16:04:23 -0700 Subject: [PATCH 13/30] test: fix gql e2e split test logic, remove unnecessary inter-job requirements (#8309) --- .circleci/config.base.yml | 34 +-- .circleci/config.yml | 575 ++++++++++++++++++++++++-------------- 2 files changed, 374 insertions(+), 235 deletions(-) diff --git a/.circleci/config.base.yml b/.circleci/config.base.yml index 95c082649e0..75a20c90602 100644 --- a/.circleci/config.base.yml +++ b/.circleci/config.base.yml @@ -203,8 +203,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -257,16 +258,6 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports - done_with_node_e2e_tests: - <<: *linux-e2e-executor - steps: - - run: echo 'Done with Node CLI E2E Tests' - - done_with_pkg_e2e_tests: - <<: *linux-e2e-executor - steps: - - run: echo 'Done with pkg CLI E2E Tests' - amplify_e2e_tests_pkg: parameters: os: @@ -734,7 +725,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests - integration_test: context: - amplify-ecr-image-pull @@ -748,7 +738,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests - publish_to_local_registry: filters: branches: @@ -789,9 +778,6 @@ workflows: - /run-e2e\/.*/ requires: - publish_to_local_registry - - done_with_node_e2e_tests: - requires: - - amplify_e2e_tests - amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull @@ -806,9 +792,6 @@ workflows: - /run-e2e\/.*/ requires: - build_pkg_binaries - - done_with_pkg_e2e_tests: - requires: - - amplify_e2e_tests_pkg - amplify_migration_tests_latest: context: - amplify-ecr-image-pull @@ -823,7 +806,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - build_pkg_binaries - amplify_migration_tests_v4: context: - amplify-ecr-image-pull @@ -838,7 +820,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - build_pkg_binaries - amplify_migration_tests_v4_30_0: context: - amplify-ecr-image-pull @@ -853,7 +834,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - build_pkg_binaries - amplify_migration_tests_non_multi_env_layers: context: - amplify-ecr-image-pull @@ -868,7 +848,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - build_pkg_binaries - amplify_migration_tests_multi_env_layers: context: - amplify-ecr-image-pull @@ -883,7 +862,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - build_pkg_binaries - amplify_console_integration_tests: context: - amplify-ecr-image-pull @@ -920,11 +898,11 @@ workflows: - cleanup-resources - e2e-test-context requires: - - done_with_pkg_e2e_tests + - amplify_e2e_tests + - amplify_e2e_tests_pkg - amplify_migration_tests_latest - amplify_migration_tests_v4 - amplify_migration_tests_v4_30_0 - - done_with_node_e2e_tests - deploy: context: @@ -935,8 +913,8 @@ workflows: - mock_e2e_tests - graphql_e2e_tests - integration_test - - done_with_pkg_e2e_tests - - done_with_node_e2e_tests + - amplify_e2e_tests + - amplify_e2e_tests_pkg - amplify_sudo_install_test - amplify_console_integration_tests - amplify_migration_tests_latest diff --git a/.circleci/config.yml b/.circleci/config.yml index b412ca6e45a..abdab37f325 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -243,8 +243,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -324,26 +325,6 @@ jobs: path: packages/amplify-e2e-tests/ - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports - done_with_node_e2e_tests: - docker: - - image: public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest - working_directory: ~/repo - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - steps: - - run: echo 'Done with Node CLI E2E Tests' - done_with_pkg_e2e_tests: - docker: - - image: public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest - working_directory: ~/repo - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - steps: - - run: echo 'Done with pkg CLI E2E Tests' amplify_e2e_tests_pkg: parameters: os: @@ -9578,8 +9559,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9608,8 +9590,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9638,8 +9621,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9668,8 +9652,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9698,8 +9683,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9728,8 +9714,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9758,8 +9745,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9788,8 +9776,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9818,8 +9807,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9848,8 +9838,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9878,8 +9869,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9908,8 +9900,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9938,8 +9931,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9968,8 +9962,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9998,8 +9993,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10028,8 +10024,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10058,8 +10055,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10088,8 +10086,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10118,8 +10117,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10148,8 +10148,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10178,8 +10179,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10208,8 +10210,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10238,8 +10241,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10268,8 +10272,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10298,8 +10303,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10328,8 +10334,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10358,8 +10365,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10388,8 +10396,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10418,8 +10427,9 @@ jobs: name: Run GraphQL end-to-end tests command: | source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 + yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10497,7 +10507,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests - publish_to_local_registry: filters: branches: @@ -10522,8 +10531,121 @@ workflows: - master - /tagged-release\/.*/ - /run-e2e\/.*/ - - done_with_node_e2e_tests: + - amplify_migration_tests_latest: + context: + - amplify-ecr-image-pull + - e2e-auth-credentials + - clean_e2e_resources + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - build + - amplify_migration_tests_v4: + context: + - amplify-ecr-image-pull + - e2e-auth-credentials + - clean_e2e_resources + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - build + - amplify_migration_tests_v4_30_0: + context: + - amplify-ecr-image-pull + - e2e-auth-credentials + - clean_e2e_resources + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - build + - amplify_migration_tests_non_multi_env_layers: + context: + - amplify-ecr-image-pull + - e2e-auth-credentials + - clean_e2e_resources + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - build + - amplify_migration_tests_multi_env_layers: + context: + - amplify-ecr-image-pull + - e2e-auth-credentials + - clean_e2e_resources + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/.*/ + requires: + - build + - amplify_console_integration_tests: + context: + - amplify-ecr-image-pull + - e2e-auth-credentials + - clean_e2e_resources + - console-e2e-test + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - beta + requires: + - build + - publish_to_local_registry + - github_prerelease: + context: github-publish + requires: + - build_pkg_binaries + filters: + branches: + only: + - release + - github_prerelease_install_sanity_check: + requires: + - github_prerelease + filters: + branches: + only: + - release + - cleanup_resources_after_e2e_runs: + context: + - cleanup-resources + - e2e-test-context requires: + - amplify_migration_tests_latest + - amplify_migration_tests_v4 + - amplify_migration_tests_v4_30_0 - api_4-amplify_e2e_tests - function_5-amplify_e2e_tests - import_auth_3-amplify_e2e_tests @@ -10621,8 +10743,6 @@ workflows: - schema-iterative-rollback-1-amplify_e2e_tests - function_1-amplify_e2e_tests - schema-iterative-update-3-amplify_e2e_tests - - done_with_pkg_e2e_tests: - requires: - api_4-amplify_e2e_tests_pkg - function_5-amplify_e2e_tests_pkg - import_auth_3-amplify_e2e_tests_pkg @@ -10720,128 +10840,6 @@ workflows: - schema-iterative-rollback-1-amplify_e2e_tests_pkg - function_1-amplify_e2e_tests_pkg - schema-iterative-update-3-amplify_e2e_tests_pkg - - amplify_migration_tests_latest: - context: - - amplify-ecr-image-pull - - e2e-auth-credentials - - clean_e2e_resources - - e2e-test-context - filters: - branches: - only: - - master - - /tagged-release\/.*/ - - /run-e2e\/.*/ - requires: - - build - - build_pkg_binaries - - amplify_migration_tests_v4: - context: - - amplify-ecr-image-pull - - e2e-auth-credentials - - clean_e2e_resources - - e2e-test-context - filters: - branches: - only: - - master - - /tagged-release\/.*/ - - /run-e2e\/.*/ - requires: - - build - - build_pkg_binaries - - amplify_migration_tests_v4_30_0: - context: - - amplify-ecr-image-pull - - e2e-auth-credentials - - clean_e2e_resources - - e2e-test-context - filters: - branches: - only: - - master - - /tagged-release\/.*/ - - /run-e2e\/.*/ - requires: - - build - - build_pkg_binaries - - amplify_migration_tests_non_multi_env_layers: - context: - - amplify-ecr-image-pull - - e2e-auth-credentials - - clean_e2e_resources - - e2e-test-context - filters: - branches: - only: - - master - - /tagged-release\/.*/ - - /run-e2e\/.*/ - requires: - - build - - build_pkg_binaries - - amplify_migration_tests_multi_env_layers: - context: - - amplify-ecr-image-pull - - e2e-auth-credentials - - clean_e2e_resources - - e2e-test-context - filters: - branches: - only: - - master - - /tagged-release\/.*/ - - /run-e2e\/.*/ - requires: - - build - - build_pkg_binaries - - amplify_console_integration_tests: - context: - - amplify-ecr-image-pull - - e2e-auth-credentials - - clean_e2e_resources - - console-e2e-test - - e2e-test-context - post-steps: - - run: - name: Cleanup resources - command: | - pwd - cd packages/amplify-e2e-tests - yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} - working_directory: ~/repo - filters: - branches: - only: - - beta - requires: - - build - - publish_to_local_registry - - github_prerelease: - context: github-publish - requires: - - build_pkg_binaries - filters: - branches: - only: - - release - - github_prerelease_install_sanity_check: - requires: - - github_prerelease - filters: - branches: - only: - - release - - cleanup_resources_after_e2e_runs: - context: - - cleanup-resources - - e2e-test-context - requires: - - done_with_pkg_e2e_tests - - amplify_migration_tests_latest - - amplify_migration_tests_v4 - - amplify_migration_tests_v4_30_0 - - done_with_node_e2e_tests - deploy: context: - amplify-ecr-image-pull @@ -10850,8 +10848,6 @@ workflows: - test - mock_e2e_tests - integration_test - - done_with_pkg_e2e_tests - - done_with_node_e2e_tests - amplify_sudo_install_test - amplify_console_integration_tests - amplify_migration_tests_latest @@ -10860,6 +10856,200 @@ workflows: - amplify_migration_tests_non_multi_env_layers - amplify_migration_tests_multi_env_layers - github_prerelease_install_sanity_check + - api_4-amplify_e2e_tests + - function_5-amplify_e2e_tests + - import_auth_3-amplify_e2e_tests + - migration-api-connection-migration2-amplify_e2e_tests + - schema-function-2-amplify_e2e_tests + - datastore-modelgen-amplify_e2e_tests + - containers-api-amplify_e2e_tests + - geo-remove-amplify_e2e_tests + - schema-key-amplify_e2e_tests + - function_2-amplify_e2e_tests + - schema-auth-4-amplify_e2e_tests + - schema-iterative-rollback-2-amplify_e2e_tests + - schema-auth-1-amplify_e2e_tests + - schema-auth-2-amplify_e2e_tests + - auth_6-amplify_e2e_tests + - function_6-amplify_e2e_tests + - import_dynamodb_2-amplify_e2e_tests + - migration-node-function-amplify_e2e_tests + - schema-iterative-update-locking-amplify_e2e_tests + - amplify-configure-amplify_e2e_tests + - interactions-amplify_e2e_tests + - schema-predictions-amplify_e2e_tests + - predictions-amplify_e2e_tests + - auth_1-amplify_e2e_tests + - auth_3-amplify_e2e_tests + - api_3-amplify_e2e_tests + - env-amplify_e2e_tests + - function_4-amplify_e2e_tests + - api_1-amplify_e2e_tests + - auth_7-amplify_e2e_tests + - function_7-amplify_e2e_tests + - import_s3_2-amplify_e2e_tests + - pull-amplify_e2e_tests + - storage-1-amplify_e2e_tests + - init-amplify_e2e_tests + - amplify-app-amplify_e2e_tests + - hostingPROD-amplify_e2e_tests + - auth_5-amplify_e2e_tests + - migration-api-key-migration1-amplify_e2e_tests + - import_auth_1-amplify_e2e_tests + - auth_2-amplify_e2e_tests + - schema-model-amplify_e2e_tests + - schema-auth-5-amplify_e2e_tests + - auth_8-amplify_e2e_tests + - function_8-amplify_e2e_tests + - layer-1-amplify_e2e_tests + - s3-sse-amplify_e2e_tests + - storage-2-amplify_e2e_tests + - tags-amplify_e2e_tests + - hosting-amplify_e2e_tests + - function_3-amplify_e2e_tests + - auth_4-amplify_e2e_tests + - import_auth_2-amplify_e2e_tests + - schema-auth-9-amplify_e2e_tests + - migration-api-connection-migration-amplify_e2e_tests + - api_2-amplify_e2e_tests + - configure-project-amplify_e2e_tests + - function_9-amplify_e2e_tests + - layer-2-amplify_e2e_tests + - schema-auth-12-amplify_e2e_tests + - storage-3-amplify_e2e_tests + - notifications-amplify_e2e_tests + - analytics-amplify_e2e_tests + - schema-iterative-update-1-amplify_e2e_tests + - schema-auth-7-amplify_e2e_tests + - import_s3_1-amplify_e2e_tests + - schema-auth-11-amplify_e2e_tests + - schema-connection-amplify_e2e_tests + - api_5-amplify_e2e_tests + - container-hosting-amplify_e2e_tests + - hooks-amplify_e2e_tests + - layer-3-amplify_e2e_tests + - schema-auth-13-amplify_e2e_tests + - plugin-amplify_e2e_tests + - schema-versioned-amplify_e2e_tests + - feature-flags-amplify_e2e_tests + - geo-add-amplify_e2e_tests + - schema-auth-3-amplify_e2e_tests + - schema-auth-8-amplify_e2e_tests + - import_dynamodb_1-amplify_e2e_tests + - migration-api-key-migration2-amplify_e2e_tests + - schema-auth-6-amplify_e2e_tests + - schema-iterative-update-4-amplify_e2e_tests + - frontend_config_drift-amplify_e2e_tests + - iam-permissions-boundary-amplify_e2e_tests + - layer-4-amplify_e2e_tests + - schema-function-1-amplify_e2e_tests + - init-special-case-amplify_e2e_tests + - schema-data-access-patterns-amplify_e2e_tests + - schema-iterative-update-2-amplify_e2e_tests + - geo-update-amplify_e2e_tests + - schema-auth-10-amplify_e2e_tests + - delete-amplify_e2e_tests + - schema-searchable-amplify_e2e_tests + - schema-iterative-rollback-1-amplify_e2e_tests + - function_1-amplify_e2e_tests + - schema-iterative-update-3-amplify_e2e_tests + - api_4-amplify_e2e_tests_pkg + - function_5-amplify_e2e_tests_pkg + - import_auth_3-amplify_e2e_tests_pkg + - migration-api-connection-migration2-amplify_e2e_tests_pkg + - schema-function-2-amplify_e2e_tests_pkg + - datastore-modelgen-amplify_e2e_tests_pkg + - containers-api-amplify_e2e_tests_pkg + - geo-remove-amplify_e2e_tests_pkg + - schema-key-amplify_e2e_tests_pkg + - function_2-amplify_e2e_tests_pkg + - schema-auth-4-amplify_e2e_tests_pkg + - schema-iterative-rollback-2-amplify_e2e_tests_pkg + - schema-auth-1-amplify_e2e_tests_pkg + - schema-auth-2-amplify_e2e_tests_pkg + - auth_6-amplify_e2e_tests_pkg + - function_6-amplify_e2e_tests_pkg + - import_dynamodb_2-amplify_e2e_tests_pkg + - migration-node-function-amplify_e2e_tests_pkg + - schema-iterative-update-locking-amplify_e2e_tests_pkg + - amplify-configure-amplify_e2e_tests_pkg + - interactions-amplify_e2e_tests_pkg + - schema-predictions-amplify_e2e_tests_pkg + - predictions-amplify_e2e_tests_pkg + - auth_1-amplify_e2e_tests_pkg + - auth_3-amplify_e2e_tests_pkg + - api_3-amplify_e2e_tests_pkg + - env-amplify_e2e_tests_pkg + - function_4-amplify_e2e_tests_pkg + - api_1-amplify_e2e_tests_pkg + - auth_7-amplify_e2e_tests_pkg + - function_7-amplify_e2e_tests_pkg + - import_s3_2-amplify_e2e_tests_pkg + - pull-amplify_e2e_tests_pkg + - storage-1-amplify_e2e_tests_pkg + - init-amplify_e2e_tests_pkg + - amplify-app-amplify_e2e_tests_pkg + - hostingPROD-amplify_e2e_tests_pkg + - auth_5-amplify_e2e_tests_pkg + - migration-api-key-migration1-amplify_e2e_tests_pkg + - import_auth_1-amplify_e2e_tests_pkg + - auth_2-amplify_e2e_tests_pkg + - schema-model-amplify_e2e_tests_pkg + - schema-auth-5-amplify_e2e_tests_pkg + - auth_8-amplify_e2e_tests_pkg + - function_8-amplify_e2e_tests_pkg + - layer-1-amplify_e2e_tests_pkg + - s3-sse-amplify_e2e_tests_pkg + - storage-2-amplify_e2e_tests_pkg + - tags-amplify_e2e_tests_pkg + - hosting-amplify_e2e_tests_pkg + - function_3-amplify_e2e_tests_pkg + - auth_4-amplify_e2e_tests_pkg + - import_auth_2-amplify_e2e_tests_pkg + - schema-auth-9-amplify_e2e_tests_pkg + - migration-api-connection-migration-amplify_e2e_tests_pkg + - api_2-amplify_e2e_tests_pkg + - configure-project-amplify_e2e_tests_pkg + - function_9-amplify_e2e_tests_pkg + - layer-2-amplify_e2e_tests_pkg + - schema-auth-12-amplify_e2e_tests_pkg + - storage-3-amplify_e2e_tests_pkg + - notifications-amplify_e2e_tests_pkg + - analytics-amplify_e2e_tests_pkg + - schema-iterative-update-1-amplify_e2e_tests_pkg + - schema-auth-7-amplify_e2e_tests_pkg + - import_s3_1-amplify_e2e_tests_pkg + - schema-auth-11-amplify_e2e_tests_pkg + - schema-connection-amplify_e2e_tests_pkg + - api_5-amplify_e2e_tests_pkg + - container-hosting-amplify_e2e_tests_pkg + - hooks-amplify_e2e_tests_pkg + - layer-3-amplify_e2e_tests_pkg + - schema-auth-13-amplify_e2e_tests_pkg + - plugin-amplify_e2e_tests_pkg + - schema-versioned-amplify_e2e_tests_pkg + - feature-flags-amplify_e2e_tests_pkg + - geo-add-amplify_e2e_tests_pkg + - schema-auth-3-amplify_e2e_tests_pkg + - schema-auth-8-amplify_e2e_tests_pkg + - import_dynamodb_1-amplify_e2e_tests_pkg + - migration-api-key-migration2-amplify_e2e_tests_pkg + - schema-auth-6-amplify_e2e_tests_pkg + - schema-iterative-update-4-amplify_e2e_tests_pkg + - frontend_config_drift-amplify_e2e_tests_pkg + - iam-permissions-boundary-amplify_e2e_tests_pkg + - layer-4-amplify_e2e_tests_pkg + - schema-function-1-amplify_e2e_tests_pkg + - init-special-case-amplify_e2e_tests_pkg + - schema-data-access-patterns-amplify_e2e_tests_pkg + - schema-iterative-update-2-amplify_e2e_tests_pkg + - geo-update-amplify_e2e_tests_pkg + - schema-auth-10-amplify_e2e_tests_pkg + - delete-amplify_e2e_tests_pkg + - schema-searchable-amplify_e2e_tests_pkg + - schema-iterative-rollback-1-amplify_e2e_tests_pkg + - function_1-amplify_e2e_tests_pkg + - schema-iterative-update-3-amplify_e2e_tests_pkg - ConnectionsWithAuthTests-e2e-graphql_e2e_tests - KeyTransformerLocal-e2e-graphql_e2e_tests - MutationCondition-e2e-graphql_e2e_tests @@ -15206,7 +15396,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15223,7 +15412,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15240,7 +15428,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15257,7 +15444,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15274,7 +15460,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15291,7 +15476,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15308,7 +15492,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15325,7 +15508,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15342,7 +15524,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15359,7 +15540,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15376,7 +15556,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15393,7 +15572,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15410,7 +15588,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15427,7 +15604,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15444,7 +15620,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15461,7 +15636,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15478,7 +15652,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15495,7 +15668,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15512,7 +15684,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15529,7 +15700,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15546,7 +15716,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15563,7 +15732,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15580,7 +15748,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15597,7 +15764,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15614,7 +15780,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15631,7 +15796,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15648,7 +15812,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15665,7 +15828,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: @@ -15682,7 +15844,6 @@ workflows: - /run-e2e\/.*/ requires: - build - - mock_e2e_tests matrix: parameters: os: From 67503f61b6c6ee0864f7b9ced70872564d9f162c Mon Sep 17 00:00:00 2001 From: John Corser Date: Wed, 29 Sep 2021 22:09:40 -0400 Subject: [PATCH 14/30] ci: remove retry wrapper on windows tests to prevent hanging (#8312) --- .circleci/config.base.yml | 32 ++++++++++++++++++------- .circleci/config.yml | 50 ++++++++++++++++++++++++++++++++------- 2 files changed, 66 insertions(+), 16 deletions(-) diff --git a/.circleci/config.base.yml b/.circleci/config.base.yml index 75a20c90602..6b762b545e5 100644 --- a/.circleci/config.base.yml +++ b/.circleci/config.base.yml @@ -1025,14 +1025,30 @@ commands: type: executor default: linux-e2e-executor steps: - - run: - name: Run E2e Tests - command: | - source .circleci/local_publish_helpers.sh - source $BASH_ENV - amplify version - retry runE2eTest - no_output_timeout: 90m + - when: + condition: + equal: [*windows-e2e-executor, << parameters.os >>] + steps: + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + source $BASH_ENV + amplify version + runE2eTest + no_output_timeout: 90m + - when: + condition: + equal: [*linux-e2e-executor, << parameters.os >>] + steps: + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + source $BASH_ENV + amplify version + retry runE2eTest + no_output_timeout: 90m scan_e2e_test_artifacts: description: 'Scan And Cleanup E2E Test Artifacts' parameters: diff --git a/.circleci/config.yml b/.circleci/config.yml index abdab37f325..58d4811e70b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15970,14 +15970,48 @@ commands: type: executor default: linux-e2e-executor steps: - - run: - name: Run E2e Tests - command: | - source .circleci/local_publish_helpers.sh - source $BASH_ENV - amplify version - retry runE2eTest - no_output_timeout: 90m + - when: + condition: + equal: + - machine: + image: windows-server-2019-vs2019:stable + resource_class: windows.large + shell: bash.exe + working_directory: ~/repo + environment: + AMPLIFY_DIR: C:/home/circleci/repo/out + AMPLIFY_PATH: C:/home/circleci/repo/out/amplify.exe + - << parameters.os >> + steps: + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + source $BASH_ENV + amplify version + runE2eTest + no_output_timeout: 90m + - when: + condition: + equal: + - docker: + - image: >- + public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo + resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux + - << parameters.os >> + steps: + - run: + name: Run E2e Tests + command: | + source .circleci/local_publish_helpers.sh + source $BASH_ENV + amplify version + retry runE2eTest + no_output_timeout: 90m scan_e2e_test_artifacts: description: Scan And Cleanup E2E Test Artifacts parameters: From 5e0457c4ed4ea740326a065800bedc51cddf8d57 Mon Sep 17 00:00:00 2001 From: John Corser Date: Wed, 29 Sep 2021 23:35:35 -0400 Subject: [PATCH 15/30] ci: use powershell to run windows tests (#8314) --- .circleci/config.base.yml | 7 +++---- .circleci/config.yml | 11 ++++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.circleci/config.base.yml b/.circleci/config.base.yml index 6b762b545e5..1ec2106a7a6 100644 --- a/.circleci/config.base.yml +++ b/.circleci/config.base.yml @@ -1031,11 +1031,10 @@ commands: steps: - run: name: Run E2e Tests + shell: powershell.exe command: | - source .circleci/local_publish_helpers.sh - source $BASH_ENV - amplify version - runE2eTest + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $env:TEST_SUITE no_output_timeout: 90m - when: condition: diff --git a/.circleci/config.yml b/.circleci/config.yml index 58d4811e70b..aa4398bf4a2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15985,11 +15985,12 @@ commands: steps: - run: name: Run E2e Tests - command: | - source .circleci/local_publish_helpers.sh - source $BASH_ENV - amplify version - runE2eTest + shell: powershell.exe + command: > + cd packages/amplify-e2e-tests + + yarn run e2e --detectOpenHandles --maxWorkers=3 + $env:TEST_SUITE no_output_timeout: 90m - when: condition: From 23bb7b54db3b8eaa368fc51d95238f1e40346ebd Mon Sep 17 00:00:00 2001 From: John Corser Date: Thu, 30 Sep 2021 12:07:56 -0400 Subject: [PATCH 16/30] ci: skip rate limited windows tests (#8319) --- .circleci/config.yml | 16 ---------------- scripts/split-e2e-tests.ts | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index aa4398bf4a2..61db99a7a3b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13743,7 +13743,6 @@ workflows: parameters: os: - linux - - windows - geo-remove-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull @@ -13997,7 +13996,6 @@ workflows: parameters: os: - linux - - windows - schema-predictions-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull @@ -14016,7 +14014,6 @@ workflows: parameters: os: - linux - - windows - predictions-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull @@ -14251,7 +14248,6 @@ workflows: parameters: os: - linux - - windows - amplify-app-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull @@ -14468,7 +14464,6 @@ workflows: parameters: os: - linux - - windows - storage-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull @@ -14505,7 +14500,6 @@ workflows: parameters: os: - linux - - windows - hosting-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull @@ -14560,7 +14554,6 @@ workflows: parameters: os: - linux - - windows - import_auth_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull @@ -14724,7 +14717,6 @@ workflows: parameters: os: - linux - - windows - notifications-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull @@ -14743,7 +14735,6 @@ workflows: parameters: os: - linux - - windows - analytics-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull @@ -14762,7 +14753,6 @@ workflows: parameters: os: - linux - - windows - schema-iterative-update-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull @@ -14853,7 +14843,6 @@ workflows: parameters: os: - linux - - windows - api_5-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull @@ -14909,7 +14898,6 @@ workflows: parameters: os: - linux - - windows - layer-3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull @@ -14983,7 +14971,6 @@ workflows: parameters: os: - linux - - windows - feature-flags-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull @@ -15146,7 +15133,6 @@ workflows: parameters: os: - linux - - windows - iam-permissions-boundary-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull @@ -15165,7 +15151,6 @@ workflows: parameters: os: - linux - - windows - layer-4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull @@ -15329,7 +15314,6 @@ workflows: parameters: os: - linux - - windows - schema-iterative-rollback-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull diff --git a/scripts/split-e2e-tests.ts b/scripts/split-e2e-tests.ts index 561705fcbf8..e2eb6997204 100644 --- a/scripts/split-e2e-tests.ts +++ b/scripts/split-e2e-tests.ts @@ -12,6 +12,7 @@ const CONCURRENCY = 25; // For now, this list is being used to skip creation of circleci jobs for these tasks const WINDOWS_TEST_FAILURES = [ 'amplify-app-amplify_e2e_tests', + 'analytics-amplify_e2e_tests', 'api_1-amplify_e2e_tests', 'api_2-amplify_e2e_tests', 'api_3-amplify_e2e_tests', @@ -20,6 +21,7 @@ const WINDOWS_TEST_FAILURES = [ 'auth_1-amplify_e2e_tests', 'auth_2-amplify_e2e_tests', 'auth_3-amplify_e2e_tests', + 'auth_4-amplify_e2e_tests', // Auth tests are failing because // us-east-1 region is not allowed in parent e2e test account // and `singleSelect` for region is not working properly in windows @@ -27,10 +29,12 @@ const WINDOWS_TEST_FAILURES = [ 'auth_6-amplify_e2e_tests', 'auth_7-amplify_e2e_tests', 'auth_8-amplify_e2e_tests', + 'containers-api-amplify_e2e_tests', 'datastore-modelgen-amplify_e2e_tests', 'delete-amplify_e2e_tests', 'env-amplify_e2e_tests', 'feature-flags-amplify_e2e_tests', + 'frontend_config_drift-amplify_e2e_tests', 'function_1-amplify_e2e_tests', 'function_2-amplify_e2e_tests', 'function_3-amplify_e2e_tests', @@ -43,8 +47,10 @@ const WINDOWS_TEST_FAILURES = [ 'geo-add-amplify_e2e_tests', 'geo-update-amplify_e2e_tests', 'geo-remove-amplify_e2e_tests', + 'hooks-amplify_e2e_tests', 'hosting-amplify_e2e_tests', 'hostingPROD-amplify_e2e_tests', + 'iam-permissions-boundary-amplify_e2e_tests', 'import_auth_1-amplify_e2e_tests', 'import_auth_2-amplify_e2e_tests', 'import_auth_3-amplify_e2e_tests', @@ -52,6 +58,8 @@ const WINDOWS_TEST_FAILURES = [ 'import_dynamodb_2-amplify_e2e_tests', 'import_s3_1-amplify_e2e_tests', 'import_s3_2-amplify_e2e_tests', + 'init-amplify_e2e_tests', + 'interactions-amplify_e2e_tests', 'layer-1-amplify_e2e_tests', 'layer-2-amplify_e2e_tests', 'layer-3-amplify_e2e_tests', @@ -62,8 +70,10 @@ const WINDOWS_TEST_FAILURES = [ 'migration-api-key-migration2-amplify_e2e_tests', 'migration-api-key-migration3-amplify_e2e_tests', 'migration-node-function-amplify_e2e_tests', + 'notifications-amplify_e2e_tests', 'predictions-amplify_e2e_tests', 'pull-amplify_e2e_tests', + 's3-sse-amplify_e2e_tests', 'schema-auth-1-amplify_e2e_tests', 'schema-auth-2-amplify_e2e_tests', 'schema-auth-3-amplify_e2e_tests', @@ -77,6 +87,7 @@ const WINDOWS_TEST_FAILURES = [ 'schema-auth-11-amplify_e2e_tests', 'schema-auth-12-amplify_e2e_tests', 'schema-auth-13-amplify_e2e_tests', + 'schema-connection-amplify_e2e_tests', 'schema-data-access-patterns-amplify_e2e_tests', 'schema-function-1-amplify_e2e_tests', 'schema-function-2-amplify_e2e_tests', @@ -89,8 +100,13 @@ const WINDOWS_TEST_FAILURES = [ 'schema-iterative-rollback-2-amplify_e2e_tests', 'schema-key-amplify_e2e_tests_pkg', 'schema-model-amplify_e2e_tests', + 'schema-predictions-amplify_e2e_tests', + 'schema-searchable-amplify_e2e_tests', + 'schema-versioned-amplify_e2e_tests', 'storage-1-amplify_e2e_tests', 'storage-2-amplify_e2e_tests', + 'storage-3-amplify_e2e_tests', + 'tags-amplify_e2e_tests', ]; // Ensure to update packages/amplify-e2e-tests/src/cleanup-e2e-resources.ts is also updated this gets updated From 51e7242a68263efbcce2a131595be95b5e0e81bf Mon Sep 17 00:00:00 2001 From: aws-amplify-bot Date: Fri, 1 Oct 2021 18:07:59 +0000 Subject: [PATCH 17/30] chore(release): Publish [ci skip] - @aws-amplify/cli@6.1.1 - amplify-console-integration-tests@1.8.11 - amplify-e2e-core@1.27.1 - amplify-e2e-tests@2.51.1 - @aws-amplify/graphql-searchable-transformer@0.6.2 - amplify-migration-tests@3.1.11 - amplify-provider-awscloudformation@4.61.1 - amplify-util-mock@3.34.7 - graphql-auth-transformer@6.24.24 - graphql-elasticsearch-transformer@4.12.3 - graphql-transformers-e2e-tests@6.27.1 --- packages/amplify-cli/CHANGELOG.md | 8 ++++++++ packages/amplify-cli/package.json | 6 +++--- .../amplify-console-integration-tests/CHANGELOG.md | 8 ++++++++ .../amplify-console-integration-tests/package.json | 4 ++-- packages/amplify-e2e-core/CHANGELOG.md | 8 ++++++++ packages/amplify-e2e-core/package.json | 2 +- packages/amplify-e2e-tests/CHANGELOG.md | 8 ++++++++ packages/amplify-e2e-tests/package.json | 4 ++-- .../CHANGELOG.md | 8 ++++++++ .../package.json | 2 +- packages/amplify-migration-tests/CHANGELOG.md | 8 ++++++++ packages/amplify-migration-tests/package.json | 4 ++-- .../amplify-provider-awscloudformation/CHANGELOG.md | 11 +++++++++++ .../amplify-provider-awscloudformation/package.json | 8 ++++---- packages/amplify-util-mock/CHANGELOG.md | 8 ++++++++ packages/amplify-util-mock/package.json | 6 +++--- packages/graphql-auth-transformer/CHANGELOG.md | 8 ++++++++ packages/graphql-auth-transformer/package.json | 4 ++-- .../graphql-elasticsearch-transformer/CHANGELOG.md | 8 ++++++++ .../graphql-elasticsearch-transformer/package.json | 2 +- packages/graphql-transformers-e2e-tests/CHANGELOG.md | 8 ++++++++ packages/graphql-transformers-e2e-tests/package.json | 6 +++--- 22 files changed, 115 insertions(+), 24 deletions(-) diff --git a/packages/amplify-cli/CHANGELOG.md b/packages/amplify-cli/CHANGELOG.md index 3b8940e6daf..ebab318f16b 100644 --- a/packages/amplify-cli/CHANGELOG.md +++ b/packages/amplify-cli/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [6.1.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/cli@6.1.0...@aws-amplify/cli@6.1.1) (2021-10-01) + +**Note:** Version bump only for package @aws-amplify/cli + + + + + # [6.1.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/cli@6.0.1...@aws-amplify/cli@6.1.0) (2021-09-27) diff --git a/packages/amplify-cli/package.json b/packages/amplify-cli/package.json index f568498dd15..1e85bcba56c 100644 --- a/packages/amplify-cli/package.json +++ b/packages/amplify-cli/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/cli", - "version": "6.1.0", + "version": "6.1.1", "description": "Amplify CLI", "repository": { "type": "git", @@ -64,11 +64,11 @@ "amplify-nodejs-function-runtime-provider": "1.6.12", "amplify-nodejs-function-template-provider": "1.6.22", "amplify-prompts": "1.2.0", - "amplify-provider-awscloudformation": "4.61.0", + "amplify-provider-awscloudformation": "4.61.1", "amplify-python-function-runtime-provider": "1.9.12", "amplify-python-function-template-provider": "1.3.12", "amplify-util-import": "1.5.13", - "amplify-util-mock": "3.34.6", + "amplify-util-mock": "3.34.7", "aws-sdk": "^2.963.0", "chalk": "^4.1.1", "ci-info": "^2.0.0", diff --git a/packages/amplify-console-integration-tests/CHANGELOG.md b/packages/amplify-console-integration-tests/CHANGELOG.md index fdfc2acec6b..bfca1b67015 100644 --- a/packages/amplify-console-integration-tests/CHANGELOG.md +++ b/packages/amplify-console-integration-tests/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.8.11](https://github.com/aws-amplify/amplify-console-integration-tests/compare/amplify-console-integration-tests@1.8.10...amplify-console-integration-tests@1.8.11) (2021-10-01) + +**Note:** Version bump only for package amplify-console-integration-tests + + + + + ## [1.8.10](https://github.com/aws-amplify/amplify-console-integration-tests/compare/amplify-console-integration-tests@1.8.9...amplify-console-integration-tests@1.8.10) (2021-09-27) **Note:** Version bump only for package amplify-console-integration-tests diff --git a/packages/amplify-console-integration-tests/package.json b/packages/amplify-console-integration-tests/package.json index 5f54583e2bf..71c6db07074 100644 --- a/packages/amplify-console-integration-tests/package.json +++ b/packages/amplify-console-integration-tests/package.json @@ -1,6 +1,6 @@ { "name": "amplify-console-integration-tests", - "version": "1.8.10", + "version": "1.8.11", "description": "", "repository": { "type": "git", @@ -22,7 +22,7 @@ }, "dependencies": { "@types/ini": "^1.3.30", - "amplify-e2e-core": "1.27.0", + "amplify-e2e-core": "1.27.1", "aws-sdk": "^2.963.0", "dotenv": "^8.2.0", "esm": "^3.2.25", diff --git a/packages/amplify-e2e-core/CHANGELOG.md b/packages/amplify-e2e-core/CHANGELOG.md index 6daf600eb5d..9d03e7e1310 100644 --- a/packages/amplify-e2e-core/CHANGELOG.md +++ b/packages/amplify-e2e-core/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.27.1](https://github.com/aws-amplify/amplify-cli/compare/amplify-e2e-core@1.27.0...amplify-e2e-core@1.27.1) (2021-10-01) + +**Note:** Version bump only for package amplify-e2e-core + + + + + # [1.27.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-e2e-core@1.26.1...amplify-e2e-core@1.27.0) (2021-09-27) diff --git a/packages/amplify-e2e-core/package.json b/packages/amplify-e2e-core/package.json index 49df7af2d00..e25d1e51b15 100644 --- a/packages/amplify-e2e-core/package.json +++ b/packages/amplify-e2e-core/package.json @@ -1,6 +1,6 @@ { "name": "amplify-e2e-core", - "version": "1.27.0", + "version": "1.27.1", "description": "", "repository": { "type": "git", diff --git a/packages/amplify-e2e-tests/CHANGELOG.md b/packages/amplify-e2e-tests/CHANGELOG.md index 466bde439d1..e8e6c08f330 100644 --- a/packages/amplify-e2e-tests/CHANGELOG.md +++ b/packages/amplify-e2e-tests/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.51.1](https://github.com/aws-amplify/amplify-cli/compare/amplify-e2e-tests@2.51.0...amplify-e2e-tests@2.51.1) (2021-10-01) + +**Note:** Version bump only for package amplify-e2e-tests + + + + + # [2.51.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-e2e-tests@2.50.0...amplify-e2e-tests@2.51.0) (2021-09-27) diff --git a/packages/amplify-e2e-tests/package.json b/packages/amplify-e2e-tests/package.json index 376c3eef74a..7e196a10fdb 100644 --- a/packages/amplify-e2e-tests/package.json +++ b/packages/amplify-e2e-tests/package.json @@ -1,6 +1,6 @@ { "name": "amplify-e2e-tests", - "version": "2.51.0", + "version": "2.51.1", "description": "", "repository": { "type": "git", @@ -24,7 +24,7 @@ }, "dependencies": { "amplify-cli-core": "1.30.0", - "amplify-e2e-core": "1.27.0", + "amplify-e2e-core": "1.27.1", "aws-amplify": "^4.2.8", "aws-appsync": "^4.1.1", "aws-sdk": "^2.963.0", diff --git a/packages/amplify-graphql-searchable-transformer/CHANGELOG.md b/packages/amplify-graphql-searchable-transformer/CHANGELOG.md index 65564f118ae..58ea9d464b2 100644 --- a/packages/amplify-graphql-searchable-transformer/CHANGELOG.md +++ b/packages/amplify-graphql-searchable-transformer/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.6.2](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-searchable-transformer@0.6.1...@aws-amplify/graphql-searchable-transformer@0.6.2) (2021-10-01) + +**Note:** Version bump only for package @aws-amplify/graphql-searchable-transformer + + + + + ## [0.6.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-searchable-transformer@0.6.0...@aws-amplify/graphql-searchable-transformer@0.6.1) (2021-09-27) diff --git a/packages/amplify-graphql-searchable-transformer/package.json b/packages/amplify-graphql-searchable-transformer/package.json index b98d71177bb..c63ffc3113d 100644 --- a/packages/amplify-graphql-searchable-transformer/package.json +++ b/packages/amplify-graphql-searchable-transformer/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/graphql-searchable-transformer", - "version": "0.6.1", + "version": "0.6.2", "description": "Amplfy GraphQL @searchable transformer", "repository": { "type": "git", diff --git a/packages/amplify-migration-tests/CHANGELOG.md b/packages/amplify-migration-tests/CHANGELOG.md index a7b9a379ed1..2f981471703 100644 --- a/packages/amplify-migration-tests/CHANGELOG.md +++ b/packages/amplify-migration-tests/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.1.11](https://github.com/aws-amplify/amplify-cli/compare/amplify-migration-tests@3.1.10...amplify-migration-tests@3.1.11) (2021-10-01) + +**Note:** Version bump only for package amplify-migration-tests + + + + + ## [3.1.10](https://github.com/aws-amplify/amplify-cli/compare/amplify-migration-tests@3.1.9...amplify-migration-tests@3.1.10) (2021-09-27) **Note:** Version bump only for package amplify-migration-tests diff --git a/packages/amplify-migration-tests/package.json b/packages/amplify-migration-tests/package.json index 07e956072ca..d93713f77ae 100644 --- a/packages/amplify-migration-tests/package.json +++ b/packages/amplify-migration-tests/package.json @@ -1,6 +1,6 @@ { "name": "amplify-migration-tests", - "version": "3.1.10", + "version": "3.1.11", "description": "", "repository": { "type": "git", @@ -26,7 +26,7 @@ "setup-profile": "ts-node ./src/configure_tests.ts" }, "dependencies": { - "amplify-e2e-core": "1.27.0", + "amplify-e2e-core": "1.27.1", "aws-sdk": "^2.963.0", "dotenv": "^8.2.0", "esm": "^3.2.25", diff --git a/packages/amplify-provider-awscloudformation/CHANGELOG.md b/packages/amplify-provider-awscloudformation/CHANGELOG.md index c1fef436600..eea439db432 100644 --- a/packages/amplify-provider-awscloudformation/CHANGELOG.md +++ b/packages/amplify-provider-awscloudformation/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.61.1](https://github.com/aws-amplify/amplify-cli/compare/amplify-provider-awscloudformation@4.61.0...amplify-provider-awscloudformation@4.61.1) (2021-10-01) + + +### Bug Fixes + +* logic to display searchable instance warning ([#8297](https://github.com/aws-amplify/amplify-cli/issues/8297)) ([1fc7a9a](https://github.com/aws-amplify/amplify-cli/commit/1fc7a9ae0a585b1abf9f94ad982e5573ead22391)) + + + + + # [4.61.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-provider-awscloudformation@4.60.1...amplify-provider-awscloudformation@4.61.0) (2021-09-27) diff --git a/packages/amplify-provider-awscloudformation/package.json b/packages/amplify-provider-awscloudformation/package.json index 3b5976b0f68..a387590aa7f 100644 --- a/packages/amplify-provider-awscloudformation/package.json +++ b/packages/amplify-provider-awscloudformation/package.json @@ -1,6 +1,6 @@ { "name": "amplify-provider-awscloudformation", - "version": "4.61.0", + "version": "4.61.1", "description": "AWS CloudFormation Provider", "repository": { "type": "git", @@ -30,7 +30,7 @@ "@aws-amplify/graphql-model-transformer": "0.6.3", "@aws-amplify/graphql-predictions-transformer": "0.3.4", "@aws-amplify/graphql-relational-transformer": "0.3.0", - "@aws-amplify/graphql-searchable-transformer": "0.6.1", + "@aws-amplify/graphql-searchable-transformer": "0.6.2", "@aws-amplify/graphql-transformer-core": "0.9.1", "@aws-amplify/graphql-transformer-interfaces": "1.9.1", "@aws-cdk/assets": "~1.124.0", @@ -92,10 +92,10 @@ "fs-extra": "^8.1.0", "glob": "^7.1.6", "graphql": "^14.5.8", - "graphql-auth-transformer": "6.24.23", + "graphql-auth-transformer": "6.24.24", "graphql-connection-transformer": "4.21.23", "graphql-dynamodb-transformer": "6.22.23", - "graphql-elasticsearch-transformer": "4.12.2", + "graphql-elasticsearch-transformer": "4.12.3", "graphql-function-transformer": "2.5.22", "graphql-http-transformer": "4.18.10", "graphql-key-transformer": "2.23.23", diff --git a/packages/amplify-util-mock/CHANGELOG.md b/packages/amplify-util-mock/CHANGELOG.md index 3a8a43dd36b..cba465690ff 100644 --- a/packages/amplify-util-mock/CHANGELOG.md +++ b/packages/amplify-util-mock/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.34.7](https://github.com/aws-amplify/amplify-cli/compare/amplify-util-mock@3.34.6...amplify-util-mock@3.34.7) (2021-10-01) + +**Note:** Version bump only for package amplify-util-mock + + + + + ## [3.34.6](https://github.com/aws-amplify/amplify-cli/compare/amplify-util-mock@3.34.5...amplify-util-mock@3.34.6) (2021-09-27) **Note:** Version bump only for package amplify-util-mock diff --git a/packages/amplify-util-mock/package.json b/packages/amplify-util-mock/package.json index 889abd2ddb2..ce7b3edbf26 100644 --- a/packages/amplify-util-mock/package.json +++ b/packages/amplify-util-mock/package.json @@ -1,6 +1,6 @@ { "name": "amplify-util-mock", - "version": "3.34.6", + "version": "3.34.7", "description": "amplify cli plugin providing local testing", "repository": { "type": "git", @@ -30,7 +30,7 @@ "amplify-cli-core": "1.30.0", "amplify-codegen": "^2.23.1", "amplify-dynamodb-simulator": "1.19.13", - "amplify-provider-awscloudformation": "4.61.0", + "amplify-provider-awscloudformation": "4.61.1", "amplify-storage-simulator": "1.6.1", "chokidar": "^3.3.1", "detect-port": "^1.3.0", @@ -53,7 +53,7 @@ "aws-sdk": "^2.963.0", "aws-sdk-mock": "^5.1.0", "axios": "^0.21.4", - "graphql-auth-transformer": "6.24.23", + "graphql-auth-transformer": "6.24.24", "graphql-connection-transformer": "4.21.23", "graphql-dynamodb-transformer": "6.22.23", "graphql-function-transformer": "2.5.22", diff --git a/packages/graphql-auth-transformer/CHANGELOG.md b/packages/graphql-auth-transformer/CHANGELOG.md index c6cdd418a23..82b5529603d 100644 --- a/packages/graphql-auth-transformer/CHANGELOG.md +++ b/packages/graphql-auth-transformer/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [6.24.24](https://github.com/aws-amplify/amplify-cli/compare/graphql-auth-transformer@6.24.23...graphql-auth-transformer@6.24.24) (2021-10-01) + +**Note:** Version bump only for package graphql-auth-transformer + + + + + ## [6.24.23](https://github.com/aws-amplify/amplify-cli/compare/graphql-auth-transformer@6.24.22...graphql-auth-transformer@6.24.23) (2021-09-27) diff --git a/packages/graphql-auth-transformer/package.json b/packages/graphql-auth-transformer/package.json index e447c73ede1..567bbd2945f 100644 --- a/packages/graphql-auth-transformer/package.json +++ b/packages/graphql-auth-transformer/package.json @@ -1,6 +1,6 @@ { "name": "graphql-auth-transformer", - "version": "6.24.23", + "version": "6.24.24", "description": "Implements the @auth directive for the appsync model transform.", "repository": { "type": "git", @@ -33,7 +33,7 @@ "@types/node": "^12.12.6", "cloudform-types": "^4.2.0", "graphql-dynamodb-transformer": "6.22.23", - "graphql-elasticsearch-transformer": "4.12.2", + "graphql-elasticsearch-transformer": "4.12.3", "graphql-function-transformer": "2.5.22", "rimraf": "^3.0.0" }, diff --git a/packages/graphql-elasticsearch-transformer/CHANGELOG.md b/packages/graphql-elasticsearch-transformer/CHANGELOG.md index d6f518490d5..1690e9eddf6 100644 --- a/packages/graphql-elasticsearch-transformer/CHANGELOG.md +++ b/packages/graphql-elasticsearch-transformer/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.12.3](https://github.com/aws-amplify/amplify-cli/compare/graphql-elasticsearch-transformer@4.12.2...graphql-elasticsearch-transformer@4.12.3) (2021-10-01) + +**Note:** Version bump only for package graphql-elasticsearch-transformer + + + + + ## [4.12.2](https://github.com/aws-amplify/amplify-cli/compare/graphql-elasticsearch-transformer@4.12.1...graphql-elasticsearch-transformer@4.12.2) (2021-09-27) **Note:** Version bump only for package graphql-elasticsearch-transformer diff --git a/packages/graphql-elasticsearch-transformer/package.json b/packages/graphql-elasticsearch-transformer/package.json index 7744cd4fbeb..271b2674649 100644 --- a/packages/graphql-elasticsearch-transformer/package.json +++ b/packages/graphql-elasticsearch-transformer/package.json @@ -1,6 +1,6 @@ { "name": "graphql-elasticsearch-transformer", - "version": "4.12.2", + "version": "4.12.3", "description": "An AppSync model transform that creates an ElasticSearch index with the queries to match.", "repository": { "type": "git", diff --git a/packages/graphql-transformers-e2e-tests/CHANGELOG.md b/packages/graphql-transformers-e2e-tests/CHANGELOG.md index 2ad6b94bd98..a21c8c8bbe8 100644 --- a/packages/graphql-transformers-e2e-tests/CHANGELOG.md +++ b/packages/graphql-transformers-e2e-tests/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [6.27.1](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformers-e2e-tests@6.27.0...graphql-transformers-e2e-tests@6.27.1) (2021-10-01) + +**Note:** Version bump only for package graphql-transformers-e2e-tests + + + + + # [6.27.0](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformers-e2e-tests@6.26.3...graphql-transformers-e2e-tests@6.27.0) (2021-09-27) diff --git a/packages/graphql-transformers-e2e-tests/package.json b/packages/graphql-transformers-e2e-tests/package.json index 1af6fc06942..e7281c16748 100644 --- a/packages/graphql-transformers-e2e-tests/package.json +++ b/packages/graphql-transformers-e2e-tests/package.json @@ -1,6 +1,6 @@ { "name": "graphql-transformers-e2e-tests", - "version": "6.27.0", + "version": "6.27.1", "description": "End to end functional tests for appsync supported transformers.", "private": true, "repository": { @@ -41,10 +41,10 @@ "aws-sdk": "^2.963.0", "execa": "^5.1.1", "fs-extra": "^8.1.0", - "graphql-auth-transformer": "6.24.23", + "graphql-auth-transformer": "6.24.24", "graphql-connection-transformer": "4.21.23", "graphql-dynamodb-transformer": "6.22.23", - "graphql-elasticsearch-transformer": "4.12.2", + "graphql-elasticsearch-transformer": "4.12.3", "graphql-function-transformer": "2.5.22", "graphql-http-transformer": "4.18.10", "graphql-key-transformer": "2.23.23", From e410421f0a7befbb045046afc8c41a6ee17c73a8 Mon Sep 17 00:00:00 2001 From: Edward Foyle Date: Fri, 1 Oct 2021 12:44:13 -0700 Subject: [PATCH 18/30] chore: add cloud-e2e script (#8334) --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 01296737883..3023ff6b531 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "test": "lerna run test", "test-ci": "lerna run test --concurrency 1 -- --ci -i", "e2e": "lerna run e2e", + "cloud-e2e": "CURR_BRANCH=$(git branch | awk '/\\*/{printf \"%s\", $2}') && UPSTREAM_BRANCH=run-e2e/$USER/$CURR_BRANCH && git push $(git remote -v | grep aws-amplify/amplify-cli | head -n1 | awk '{print $1;}') $CURR_BRANCH:$UPSTREAM_BRANCH --no-verify --force-with-lease && echo \"\n\n 🏃 E2E test are running at:\nhttps://app.circleci.com/pipelines/github/aws-amplify/amplify-cli?branch=$UPSTREAM_BRANCH\"", "lint": "eslint . --ext .js,.jsx,.ts,.tsx --quiet", "lint-fix": "eslint . --ext .js,.jsx,.ts,.tsx --fix", "clean": "lerna run clean && lerna exec yarn rimraf tsconfig.tsbuildinfo && lerna clean --yes && yarn rimraf node_modules", From ca20fd3186a378c455884bf0561d0d4526cae9ce Mon Sep 17 00:00:00 2001 From: John Corser Date: Fri, 1 Oct 2021 15:44:36 -0400 Subject: [PATCH 19/30] ci: add automatic retry of failed tasks (#8338) --- .circleci/config.base.yml | 2 +- .circleci/config.yml | 60 +++++++++++++++--------------- .circleci/local_publish_helpers.sh | 3 +- 3 files changed, 32 insertions(+), 33 deletions(-) diff --git a/.circleci/config.base.yml b/.circleci/config.base.yml index 1ec2106a7a6..e60829de8ca 100644 --- a/.circleci/config.base.yml +++ b/.circleci/config.base.yml @@ -205,7 +205,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m diff --git a/.circleci/config.yml b/.circleci/config.yml index 61db99a7a3b..a1d621ae9ee 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -245,7 +245,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9561,7 +9561,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9592,7 +9592,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9623,7 +9623,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9654,7 +9654,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9685,7 +9685,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9716,7 +9716,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9747,7 +9747,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9778,7 +9778,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9809,7 +9809,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9840,7 +9840,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9871,7 +9871,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9902,7 +9902,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9933,7 +9933,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9964,7 +9964,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -9995,7 +9995,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10026,7 +10026,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10057,7 +10057,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10088,7 +10088,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10119,7 +10119,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10150,7 +10150,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10181,7 +10181,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10212,7 +10212,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10243,7 +10243,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10274,7 +10274,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10305,7 +10305,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10336,7 +10336,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10367,7 +10367,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10398,7 +10398,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m @@ -10429,7 +10429,7 @@ jobs: source .circleci/local_publish_helpers.sh setAwsAccountCredentials cd packages/graphql-transformers-e2e-tests/ - yarn e2e --maxWorkers=3 $TEST_SUITE + retry yarn e2e --maxWorkers=3 $TEST_SUITE environment: AMPLIFY_CLI_DISABLE_LOGGING: 'true' no_output_timeout: 90m diff --git a/.circleci/local_publish_helpers.sh b/.circleci/local_publish_helpers.sh index 382844f7cb1..37eac91b748 100644 --- a/.circleci/local_publish_helpers.sh +++ b/.circleci/local_publish_helpers.sh @@ -72,8 +72,7 @@ function useChildAccountCredentials { } retry() { - # TODO: Bump MAX_ATTEMPTS when there is more team buy-in to this strategy - MAX_ATTEMPTS=1 + MAX_ATTEMPTS=2 SLEEP_DURATION=5 n=0 until [ $n -ge $MAX_ATTEMPTS ] From b8709482428c63f55a3ece0b77903c1d9602f249 Mon Sep 17 00:00:00 2001 From: Edward Foyle Date: Fri, 1 Oct 2021 13:01:15 -0700 Subject: [PATCH 20/30] test: update snapshot file to match renamed test file (#8333) --- .../{function_2.test.ts.snap => function_9.test.ts.snap} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename packages/amplify-e2e-tests/src/__tests__/__snapshots__/{function_2.test.ts.snap => function_9.test.ts.snap} (100%) diff --git a/packages/amplify-e2e-tests/src/__tests__/__snapshots__/function_2.test.ts.snap b/packages/amplify-e2e-tests/src/__tests__/__snapshots__/function_9.test.ts.snap similarity index 100% rename from packages/amplify-e2e-tests/src/__tests__/__snapshots__/function_2.test.ts.snap rename to packages/amplify-e2e-tests/src/__tests__/__snapshots__/function_9.test.ts.snap From a14383a46ed4f8b0fd5bd36db9bc5828ce79a828 Mon Sep 17 00:00:00 2001 From: John Corser Date: Fri, 1 Oct 2021 22:21:17 -0400 Subject: [PATCH 21/30] build: run circleci validator on split-e2e-tests (#8313) --- scripts/split-e2e-tests.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/scripts/split-e2e-tests.ts b/scripts/split-e2e-tests.ts index e2eb6997204..8bb4f3dd1d7 100644 --- a/scripts/split-e2e-tests.ts +++ b/scripts/split-e2e-tests.ts @@ -3,6 +3,7 @@ import * as glob from 'glob'; import { join } from 'path'; import * as fs from 'fs-extra'; import { supportedRegions } from '../packages/amplify-category-geo/src/constants'; +import * as execa from 'execa'; const CONCURRENCY = 25; // Some our e2e tests are known to fail when run on windows hosts @@ -463,6 +464,24 @@ function saveConfig(config: CircleCIConfig): void { const output = ['# auto generated file. Edit config.base.yaml if you want to change', yaml.dump(config, { noRefs: true })]; fs.writeFileSync(configFile, output.join('\n')); } + +function verifyConfig() { + try { + execa.commandSync('which circleci'); + } catch { + console.error( + 'Please install circleci cli to validate your circle config. Installation information can be found at https://circleci.com/docs/2.0/local-cli/', + ); + process.exit(1); + } + try { + execa.commandSync('circleci config validate'); + } catch { + console.error(`"circleci config validate" command failed. Please check your .circleci/config.yml validity`); + process.exit(1); + } +} + function main(): void { const config = loadConfig(); const splitNodeTests = splitTests( @@ -487,5 +506,6 @@ function main(): void { CONCURRENCY, ); saveConfig(splitGqlTests); + verifyConfig(); } main(); From 42a32a90993844d2c3830c82fa448f5537365aea Mon Sep 17 00:00:00 2001 From: Edward Foyle Date: Fri, 1 Oct 2021 19:21:25 -0700 Subject: [PATCH 22/30] ci: fix retry function (#8343) --- .circleci/local_publish_helpers.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.circleci/local_publish_helpers.sh b/.circleci/local_publish_helpers.sh index 37eac91b748..ec8bb06bdec 100644 --- a/.circleci/local_publish_helpers.sh +++ b/.circleci/local_publish_helpers.sh @@ -71,7 +71,7 @@ function useChildAccountCredentials { fi } -retry() { +function retry { MAX_ATTEMPTS=2 SLEEP_DURATION=5 n=0 @@ -136,5 +136,7 @@ function runE2eTest { setAwsAccountCredentials cd $(pwd)/packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + EXIT_CODE=$? unsetNpmRegistryUrl + return $EXIT_CODE } From 9781223be69d70f26c6708552b18a52342bf13e5 Mon Sep 17 00:00:00 2001 From: John Corser Date: Fri, 1 Oct 2021 22:36:03 -0400 Subject: [PATCH 23/30] ci: track flaky tests in cloudwatch (#8339) --- .circleci/local_publish_helpers.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.circleci/local_publish_helpers.sh b/.circleci/local_publish_helpers.sh index ec8bb06bdec..03b4178991c 100644 --- a/.circleci/local_publish_helpers.sh +++ b/.circleci/local_publish_helpers.sh @@ -87,6 +87,9 @@ function retry { echo "failed: ${@}" >&2 exit 1 fi + + resetAwsAccountCredentials + aws cloudwatch put-metric-data --metric-name FlakyE2ETests --namespace amplify-cli-e2e-tests --unit Count --value $n --dimensions testFile=$TEST_SUITE echo "Attempt $n succeeded." } From 316888569cd28d7ad3a176cd36f513fbf08c8bfd Mon Sep 17 00:00:00 2001 From: Edward Foyle Date: Fri, 1 Oct 2021 19:36:17 -0700 Subject: [PATCH 24/30] ci: fix cleanup script context (#8344) --- .circleci/config.base.yml | 29 ++- .circleci/config.yml | 442 +++++++++++++++++++++----------------- 2 files changed, 260 insertions(+), 211 deletions(-) diff --git a/.circleci/config.base.yml b/.circleci/config.base.yml index e60829de8ca..cb9cb4c56ae 100644 --- a/.circleci/config.base.yml +++ b/.circleci/config.base.yml @@ -292,7 +292,6 @@ jobs: os: << parameters.os >> amplify_migration_tests_v4: <<: *defaults - steps: - attach_workspace: at: ./ @@ -765,7 +764,7 @@ workflows: - amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -781,7 +780,7 @@ workflows: - amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -796,7 +795,7 @@ workflows: context: - amplify-ecr-image-pull - e2e-auth-credentials - - clean_e2e_resources + - cleanup-resources - e2e-test-context filters: branches: @@ -806,11 +805,13 @@ workflows: - /run-e2e\/.*/ requires: - build + post-steps: + - run: *clean_e2e_resources - amplify_migration_tests_v4: context: - amplify-ecr-image-pull - e2e-auth-credentials - - clean_e2e_resources + - cleanup-resources - e2e-test-context filters: branches: @@ -820,11 +821,13 @@ workflows: - /run-e2e\/.*/ requires: - build + post-steps: + - run: *clean_e2e_resources - amplify_migration_tests_v4_30_0: context: - amplify-ecr-image-pull - e2e-auth-credentials - - clean_e2e_resources + - cleanup-resources - e2e-test-context filters: branches: @@ -834,11 +837,13 @@ workflows: - /run-e2e\/.*/ requires: - build + post-steps: + - run: *clean_e2e_resources - amplify_migration_tests_non_multi_env_layers: context: - amplify-ecr-image-pull - e2e-auth-credentials - - clean_e2e_resources + - cleanup-resources - e2e-test-context filters: branches: @@ -848,11 +853,13 @@ workflows: - /run-e2e\/.*/ requires: - build + post-steps: + - run: *clean_e2e_resources - amplify_migration_tests_multi_env_layers: context: - amplify-ecr-image-pull - e2e-auth-credentials - - clean_e2e_resources + - cleanup-resources - e2e-test-context filters: branches: @@ -862,11 +869,13 @@ workflows: - /run-e2e\/.*/ requires: - build + post-steps: + - run: *clean_e2e_resources - amplify_console_integration_tests: context: - amplify-ecr-image-pull - e2e-auth-credentials - - clean_e2e_resources + - cleanup-resources - console-e2e-test - e2e-test-context post-steps: @@ -1072,7 +1081,7 @@ commands: default: linux-e2e-executor steps: - run: - name: Scan E2E artifacts + name: Clean job resources command: | pwd cd packages/amplify-e2e-tests diff --git a/.circleci/config.yml b/.circleci/config.yml index a1d621ae9ee..6aa6a2d7e2b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10535,7 +10535,7 @@ workflows: context: - amplify-ecr-image-pull - e2e-auth-credentials - - clean_e2e_resources + - cleanup-resources - e2e-test-context filters: branches: @@ -10545,11 +10545,19 @@ workflows: - /run-e2e\/.*/ requires: - build + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo - amplify_migration_tests_v4: context: - amplify-ecr-image-pull - e2e-auth-credentials - - clean_e2e_resources + - cleanup-resources - e2e-test-context filters: branches: @@ -10559,11 +10567,19 @@ workflows: - /run-e2e\/.*/ requires: - build + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo - amplify_migration_tests_v4_30_0: context: - amplify-ecr-image-pull - e2e-auth-credentials - - clean_e2e_resources + - cleanup-resources - e2e-test-context filters: branches: @@ -10573,11 +10589,19 @@ workflows: - /run-e2e\/.*/ requires: - build + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo - amplify_migration_tests_non_multi_env_layers: context: - amplify-ecr-image-pull - e2e-auth-credentials - - clean_e2e_resources + - cleanup-resources - e2e-test-context filters: branches: @@ -10587,11 +10611,19 @@ workflows: - /run-e2e\/.*/ requires: - build + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo - amplify_migration_tests_multi_env_layers: context: - amplify-ecr-image-pull - e2e-auth-credentials - - clean_e2e_resources + - cleanup-resources - e2e-test-context filters: branches: @@ -10601,11 +10633,19 @@ workflows: - /run-e2e\/.*/ requires: - build + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo - amplify_console_integration_tests: context: - amplify-ecr-image-pull - e2e-auth-credentials - - clean_e2e_resources + - cleanup-resources - console-e2e-test - e2e-test-context post-steps: @@ -11098,7 +11138,7 @@ workflows: - api_4-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11124,7 +11164,7 @@ workflows: - function_5-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11150,7 +11190,7 @@ workflows: - import_auth_3-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11176,7 +11216,7 @@ workflows: - migration-api-connection-migration2-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11202,7 +11242,7 @@ workflows: - schema-function-2-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11228,7 +11268,7 @@ workflows: - datastore-modelgen-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11254,7 +11294,7 @@ workflows: - containers-api-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11280,7 +11320,7 @@ workflows: - geo-remove-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11306,7 +11346,7 @@ workflows: - schema-key-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11332,7 +11372,7 @@ workflows: - function_2-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11358,7 +11398,7 @@ workflows: - schema-auth-4-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11384,7 +11424,7 @@ workflows: - schema-iterative-rollback-2-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11410,7 +11450,7 @@ workflows: - schema-auth-1-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11436,7 +11476,7 @@ workflows: - schema-auth-2-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11462,7 +11502,7 @@ workflows: - auth_6-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11488,7 +11528,7 @@ workflows: - function_6-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11514,7 +11554,7 @@ workflows: - import_dynamodb_2-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11540,7 +11580,7 @@ workflows: - migration-node-function-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11566,7 +11606,7 @@ workflows: - schema-iterative-update-locking-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11592,7 +11632,7 @@ workflows: - amplify-configure-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11618,7 +11658,7 @@ workflows: - interactions-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11644,7 +11684,7 @@ workflows: - schema-predictions-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11670,7 +11710,7 @@ workflows: - predictions-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11696,7 +11736,7 @@ workflows: - auth_1-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11722,7 +11762,7 @@ workflows: - auth_3-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11748,7 +11788,7 @@ workflows: - api_3-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11774,7 +11814,7 @@ workflows: - env-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11800,7 +11840,7 @@ workflows: - function_4-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11826,7 +11866,7 @@ workflows: - api_1-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11852,7 +11892,7 @@ workflows: - auth_7-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11878,7 +11918,7 @@ workflows: - function_7-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11904,7 +11944,7 @@ workflows: - import_s3_2-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11930,7 +11970,7 @@ workflows: - pull-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11956,7 +11996,7 @@ workflows: - storage-1-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -11982,7 +12022,7 @@ workflows: - init-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12008,7 +12048,7 @@ workflows: - amplify-app-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12034,7 +12074,7 @@ workflows: - hostingPROD-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12060,7 +12100,7 @@ workflows: - auth_5-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12086,7 +12126,7 @@ workflows: - migration-api-key-migration1-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12112,7 +12152,7 @@ workflows: - import_auth_1-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12138,7 +12178,7 @@ workflows: - auth_2-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12164,7 +12204,7 @@ workflows: - schema-model-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12190,7 +12230,7 @@ workflows: - schema-auth-5-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12216,7 +12256,7 @@ workflows: - auth_8-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12242,7 +12282,7 @@ workflows: - function_8-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12268,7 +12308,7 @@ workflows: - layer-1-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12294,7 +12334,7 @@ workflows: - s3-sse-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12320,7 +12360,7 @@ workflows: - storage-2-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12346,7 +12386,7 @@ workflows: - tags-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12372,7 +12412,7 @@ workflows: - hosting-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12398,7 +12438,7 @@ workflows: - function_3-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12424,7 +12464,7 @@ workflows: - auth_4-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12450,7 +12490,7 @@ workflows: - import_auth_2-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12476,7 +12516,7 @@ workflows: - schema-auth-9-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12502,7 +12542,7 @@ workflows: - migration-api-connection-migration-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12528,7 +12568,7 @@ workflows: - api_2-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12554,7 +12594,7 @@ workflows: - configure-project-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12580,7 +12620,7 @@ workflows: - function_9-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12606,7 +12646,7 @@ workflows: - layer-2-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12632,7 +12672,7 @@ workflows: - schema-auth-12-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12658,7 +12698,7 @@ workflows: - storage-3-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12684,7 +12724,7 @@ workflows: - notifications-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12710,7 +12750,7 @@ workflows: - analytics-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12736,7 +12776,7 @@ workflows: - schema-iterative-update-1-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12762,7 +12802,7 @@ workflows: - schema-auth-7-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12788,7 +12828,7 @@ workflows: - import_s3_1-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12814,7 +12854,7 @@ workflows: - schema-auth-11-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12840,7 +12880,7 @@ workflows: - schema-connection-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12866,7 +12906,7 @@ workflows: - api_5-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12892,7 +12932,7 @@ workflows: - container-hosting-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12918,7 +12958,7 @@ workflows: - hooks-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12944,7 +12984,7 @@ workflows: - layer-3-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12970,7 +13010,7 @@ workflows: - schema-auth-13-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -12996,7 +13036,7 @@ workflows: - plugin-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -13022,7 +13062,7 @@ workflows: - schema-versioned-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -13048,7 +13088,7 @@ workflows: - feature-flags-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -13074,7 +13114,7 @@ workflows: - geo-add-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -13100,7 +13140,7 @@ workflows: - schema-auth-3-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -13126,7 +13166,7 @@ workflows: - schema-auth-8-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -13152,7 +13192,7 @@ workflows: - import_dynamodb_1-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -13178,7 +13218,7 @@ workflows: - migration-api-key-migration2-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -13204,7 +13244,7 @@ workflows: - schema-auth-6-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -13230,7 +13270,7 @@ workflows: - schema-iterative-update-4-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -13256,7 +13296,7 @@ workflows: - frontend_config_drift-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -13282,7 +13322,7 @@ workflows: - iam-permissions-boundary-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -13308,7 +13348,7 @@ workflows: - layer-4-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -13334,7 +13374,7 @@ workflows: - schema-function-1-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -13360,7 +13400,7 @@ workflows: - init-special-case-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -13386,7 +13426,7 @@ workflows: - schema-data-access-patterns-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -13412,7 +13452,7 @@ workflows: - schema-iterative-update-2-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -13438,7 +13478,7 @@ workflows: - geo-update-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -13464,7 +13504,7 @@ workflows: - schema-auth-10-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -13490,7 +13530,7 @@ workflows: - delete-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -13516,7 +13556,7 @@ workflows: - schema-searchable-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -13542,7 +13582,7 @@ workflows: - schema-iterative-rollback-1-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -13568,7 +13608,7 @@ workflows: - function_1-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -13594,7 +13634,7 @@ workflows: - schema-iterative-update-3-amplify_e2e_tests: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context post-steps: @@ -13620,7 +13660,7 @@ workflows: - api_4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -13638,7 +13678,7 @@ workflows: - function_5-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -13656,7 +13696,7 @@ workflows: - import_auth_3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -13674,7 +13714,7 @@ workflows: - migration-api-connection-migration2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -13692,7 +13732,7 @@ workflows: - schema-function-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -13710,7 +13750,7 @@ workflows: - datastore-modelgen-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -13728,7 +13768,7 @@ workflows: - containers-api-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -13746,7 +13786,7 @@ workflows: - geo-remove-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -13764,7 +13804,7 @@ workflows: - schema-key-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -13782,7 +13822,7 @@ workflows: - function_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -13800,7 +13840,7 @@ workflows: - schema-auth-4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -13818,7 +13858,7 @@ workflows: - schema-iterative-rollback-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -13836,7 +13876,7 @@ workflows: - schema-auth-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -13854,7 +13894,7 @@ workflows: - schema-auth-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -13872,7 +13912,7 @@ workflows: - auth_6-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -13890,7 +13930,7 @@ workflows: - function_6-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -13908,7 +13948,7 @@ workflows: - import_dynamodb_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -13926,7 +13966,7 @@ workflows: - migration-node-function-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -13944,7 +13984,7 @@ workflows: - schema-iterative-update-locking-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -13962,7 +14002,7 @@ workflows: - amplify-configure-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -13981,7 +14021,7 @@ workflows: - interactions-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -13999,7 +14039,7 @@ workflows: - schema-predictions-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14017,7 +14057,7 @@ workflows: - predictions-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14035,7 +14075,7 @@ workflows: - auth_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14053,7 +14093,7 @@ workflows: - auth_3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14071,7 +14111,7 @@ workflows: - api_3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14089,7 +14129,7 @@ workflows: - env-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14107,7 +14147,7 @@ workflows: - function_4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14125,7 +14165,7 @@ workflows: - api_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14143,7 +14183,7 @@ workflows: - auth_7-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14161,7 +14201,7 @@ workflows: - function_7-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14179,7 +14219,7 @@ workflows: - import_s3_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14197,7 +14237,7 @@ workflows: - pull-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14215,7 +14255,7 @@ workflows: - storage-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14233,7 +14273,7 @@ workflows: - init-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14251,7 +14291,7 @@ workflows: - amplify-app-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14269,7 +14309,7 @@ workflows: - hostingPROD-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14287,7 +14327,7 @@ workflows: - auth_5-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14305,7 +14345,7 @@ workflows: - migration-api-key-migration1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14323,7 +14363,7 @@ workflows: - import_auth_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14341,7 +14381,7 @@ workflows: - auth_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14359,7 +14399,7 @@ workflows: - schema-model-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14377,7 +14417,7 @@ workflows: - schema-auth-5-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14395,7 +14435,7 @@ workflows: - auth_8-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14413,7 +14453,7 @@ workflows: - function_8-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14431,7 +14471,7 @@ workflows: - layer-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14449,7 +14489,7 @@ workflows: - s3-sse-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14467,7 +14507,7 @@ workflows: - storage-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14485,7 +14525,7 @@ workflows: - tags-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14503,7 +14543,7 @@ workflows: - hosting-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14521,7 +14561,7 @@ workflows: - function_3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14539,7 +14579,7 @@ workflows: - auth_4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14557,7 +14597,7 @@ workflows: - import_auth_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14575,7 +14615,7 @@ workflows: - schema-auth-9-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14593,7 +14633,7 @@ workflows: - migration-api-connection-migration-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14611,7 +14651,7 @@ workflows: - api_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14629,7 +14669,7 @@ workflows: - configure-project-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14648,7 +14688,7 @@ workflows: - function_9-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14666,7 +14706,7 @@ workflows: - layer-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14684,7 +14724,7 @@ workflows: - schema-auth-12-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14702,7 +14742,7 @@ workflows: - storage-3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14720,7 +14760,7 @@ workflows: - notifications-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14738,7 +14778,7 @@ workflows: - analytics-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14756,7 +14796,7 @@ workflows: - schema-iterative-update-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14774,7 +14814,7 @@ workflows: - schema-auth-7-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14792,7 +14832,7 @@ workflows: - import_s3_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14810,7 +14850,7 @@ workflows: - schema-auth-11-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14828,7 +14868,7 @@ workflows: - schema-connection-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14846,7 +14886,7 @@ workflows: - api_5-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14864,7 +14904,7 @@ workflows: - container-hosting-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14883,7 +14923,7 @@ workflows: - hooks-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14901,7 +14941,7 @@ workflows: - layer-3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14919,7 +14959,7 @@ workflows: - schema-auth-13-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14937,7 +14977,7 @@ workflows: - plugin-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14956,7 +14996,7 @@ workflows: - schema-versioned-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14974,7 +15014,7 @@ workflows: - feature-flags-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -14992,7 +15032,7 @@ workflows: - geo-add-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -15010,7 +15050,7 @@ workflows: - schema-auth-3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -15028,7 +15068,7 @@ workflows: - schema-auth-8-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -15046,7 +15086,7 @@ workflows: - import_dynamodb_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -15064,7 +15104,7 @@ workflows: - migration-api-key-migration2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -15082,7 +15122,7 @@ workflows: - schema-auth-6-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -15100,7 +15140,7 @@ workflows: - schema-iterative-update-4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -15118,7 +15158,7 @@ workflows: - frontend_config_drift-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -15136,7 +15176,7 @@ workflows: - iam-permissions-boundary-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -15154,7 +15194,7 @@ workflows: - layer-4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -15172,7 +15212,7 @@ workflows: - schema-function-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -15190,7 +15230,7 @@ workflows: - init-special-case-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -15209,7 +15249,7 @@ workflows: - schema-data-access-patterns-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -15227,7 +15267,7 @@ workflows: - schema-iterative-update-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -15245,7 +15285,7 @@ workflows: - geo-update-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -15263,7 +15303,7 @@ workflows: - schema-auth-10-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -15281,7 +15321,7 @@ workflows: - delete-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -15299,7 +15339,7 @@ workflows: - schema-searchable-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -15317,7 +15357,7 @@ workflows: - schema-iterative-rollback-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -15335,7 +15375,7 @@ workflows: - function_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -15353,7 +15393,7 @@ workflows: - schema-iterative-update-3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - - clean_e2e_resources + - cleanup-resources - e2e-auth-credentials - e2e-test-context filters: @@ -16021,7 +16061,7 @@ commands: default: linux-e2e-executor steps: - run: - name: Scan E2E artifacts + name: Clean job resources command: | pwd cd packages/amplify-e2e-tests From e3dc97c51b32792afe80e6aa64e32560eaee5568 Mon Sep 17 00:00:00 2001 From: akshbhu <39866697+akshbhu@users.noreply.github.com> Date: Fri, 24 Sep 2021 18:22:58 -0700 Subject: [PATCH 25/30] feat: FF for override stacks (#8228) --- .eslintrc.js | 1 + .gitignore | 2 + .../amplify-base-cdk-types.ts | 32 +++++ .../category-base-schema-generator.ts | 123 ++++++++++++++++++ .../category-input-state.ts | 12 ++ .../category-override-base.ts | 24 ++++ .../src/category-interfaces/index.ts | 4 + packages/amplify-cli-core/src/cliConstants.ts | 34 +++++ .../src/feature-flags/featureFlags.ts | 16 +++ packages/amplify-cli-core/src/index.ts | 3 + .../src/overrides-manager/index.ts | 1 + .../override-skeleton-generator.ts | 81 ++++++++++++ .../src/state-manager/pathManager.ts | 43 ++++++ .../amplify-cli-overrides-helper/.npmignore | 5 + .../amplify-cli-overrides-helper/CHANGELOG.md | 0 .../amplify-cli-overrides-helper/README.md | 1 + .../amplify-cli-overrides-helper/package.json | 48 +++++++ .../amplify-cli-overrides-helper/src/index.ts | 13 ++ .../tsconfig.json | 8 ++ .../__tests__/commands/build-override.test.ts | 65 +++++++++ .../src/commands/build-override.ts | 59 +++++++++ packages/amplify-cli/src/execution-manager.ts | 28 +++- .../get-category-pluginInfo.ts | 8 ++ .../amplify-helpers/push-resources.ts | 7 +- .../amplify-plugin.json | 28 ++-- .../package.json | 1 + .../resources/overrides-resource/override.ts | 6 + .../resources/overrides-resource/package.json | 18 +++ .../overrides-resource/tsconfig.json | 12 ++ .../overrides-resource/tsconfig.resource.json | 13 ++ .../commands/awscloudformation/override.ts | 19 +++ .../src/index.ts | 3 + .../src/override-manager/index.ts | 1 + .../override-manager/transform-resource.ts | 31 +++++ .../src/utility-functions.js | 13 ++ .../tsconfig.json | 1 + yarn.lock | 2 +- 37 files changed, 746 insertions(+), 20 deletions(-) create mode 100644 packages/amplify-cli-core/src/category-interfaces/amplify-base-cdk-types.ts create mode 100644 packages/amplify-cli-core/src/category-interfaces/category-base-schema-generator.ts create mode 100644 packages/amplify-cli-core/src/category-interfaces/category-input-state.ts create mode 100644 packages/amplify-cli-core/src/category-interfaces/category-override-base.ts create mode 100644 packages/amplify-cli-core/src/category-interfaces/index.ts create mode 100644 packages/amplify-cli-core/src/overrides-manager/index.ts create mode 100644 packages/amplify-cli-core/src/overrides-manager/override-skeleton-generator.ts create mode 100644 packages/amplify-cli-overrides-helper/.npmignore create mode 100644 packages/amplify-cli-overrides-helper/CHANGELOG.md create mode 100644 packages/amplify-cli-overrides-helper/README.md create mode 100644 packages/amplify-cli-overrides-helper/package.json create mode 100644 packages/amplify-cli-overrides-helper/src/index.ts create mode 100644 packages/amplify-cli-overrides-helper/tsconfig.json create mode 100644 packages/amplify-cli/src/__tests__/commands/build-override.test.ts create mode 100644 packages/amplify-cli/src/commands/build-override.ts create mode 100644 packages/amplify-provider-awscloudformation/resources/overrides-resource/override.ts create mode 100644 packages/amplify-provider-awscloudformation/resources/overrides-resource/package.json create mode 100644 packages/amplify-provider-awscloudformation/resources/overrides-resource/tsconfig.json create mode 100644 packages/amplify-provider-awscloudformation/resources/overrides-resource/tsconfig.resource.json create mode 100644 packages/amplify-provider-awscloudformation/src/commands/awscloudformation/override.ts create mode 100644 packages/amplify-provider-awscloudformation/src/override-manager/index.ts create mode 100644 packages/amplify-provider-awscloudformation/src/override-manager/transform-resource.ts diff --git a/.eslintrc.js b/.eslintrc.js index 092c091ea4a..89a006999ab 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -323,6 +323,7 @@ module.exports = { '/packages/amplify-graphql-*transformer*/lib', '/packages/amplify-provider-awscloudformation/lib', '/packages/amplify-console-integration-tests/lib', + '/packages/amplify-cli-overrides-helper/lib', // Ignore CHANGELOG.md files '/packages/*/CHANGELOG.md', diff --git a/.gitignore b/.gitignore index b2b840c431f..6b24ec226e4 100644 --- a/.gitignore +++ b/.gitignore @@ -67,3 +67,5 @@ packages/**/reports/junit/* test.out.log *.tsbuildinfo packages/amplify-graphiql-explorer/.eslintcache +packages/amplify-cli-overrides-helper/lib + diff --git a/packages/amplify-cli-core/src/category-interfaces/amplify-base-cdk-types.ts b/packages/amplify-cli-core/src/category-interfaces/amplify-base-cdk-types.ts new file mode 100644 index 00000000000..8b85ac9ca2b --- /dev/null +++ b/packages/amplify-cli-core/src/category-interfaces/amplify-base-cdk-types.ts @@ -0,0 +1,32 @@ +//Define all common classes and interfaces required to generate cloudformation using CDK. +import * as cdk from '@aws-cdk/core'; + +//Base template +//Customer can use these params to mutate the Cloudformation for the resource +export interface AmplifyStackTemplate { + addCfnParameter(props: cdk.CfnParameterProps, logicalId: string): void; + addCfnOutput(props: cdk.CfnOutputProps, logicalId: string): void; + addCfnMapping(props: cdk.CfnMappingProps, logicalId: string): void; + addCfnCondition(props: cdk.CfnConditionProps, logicalId: string): void; + + getCfnParameter(logicalId: string): cdk.CfnParameter; + getCfnOutput(logicalId: string): cdk.CfnOutput; + getCfnMapping(logicalId: string): cdk.CfnMapping; + getCfnCondition(logicalId: string): cdk.CfnCondition; +} + +export interface Template { + AWSTemplateFormatVersion?: string; + Description?: string; + Metadata?: Record; + Parameters?: Record; + Mappings?: { + [key: string]: { + [key: string]: Record; + }; + }; + Conditions?: Record; + Transform?: any; + Resources?: Record; + Outputs?: Record; +} diff --git a/packages/amplify-cli-core/src/category-interfaces/category-base-schema-generator.ts b/packages/amplify-cli-core/src/category-interfaces/category-base-schema-generator.ts new file mode 100644 index 00000000000..1b1501860f8 --- /dev/null +++ b/packages/amplify-cli-core/src/category-interfaces/category-base-schema-generator.ts @@ -0,0 +1,123 @@ +/** + * Utility base classes for all categories : CLIInputSchemaGenerator + * Generates JSON-schema from Typescript structures.The generated schemas + * can be used for run-time validation of Walkthrough/Headless structures. + */ +import { getProgramFromFiles, buildGenerator, PartialArgs } from 'typescript-json-schema'; +import fs from 'fs-extra'; +import path from 'path'; +import Ajv from 'ajv'; +import { printer } from 'amplify-prompts'; + +// Interface types are expected to be exported as "typeName" in the file +export type TypeDef = { + typeName: string; + service: string; +}; + +export class CLIInputSchemaGenerator { + // Paths are relative to the package root + TYPES_SRC_ROOT = './src/provider-utils/awscloudformation/service-walkthrough-types/'; + SCHEMA_FILES_ROOT = './resources/schemas'; + OVERWRITE_SCHEMA_FLAG = '--overwrite'; + + private serviceTypeDefs: TypeDef[]; + + private getSchemaFileNameForType(typeName: string): string { + return `${typeName}.schema.json`; + } + + private getTypesSrcRootForSvc(svcName: string): string { + return `${this.TYPES_SRC_ROOT}/${svcName}-user-input-types.ts`; + } + + private getSvcFileAbsolutePath(svcName: string): string { + return path.resolve(this.getTypesSrcRootForSvc(svcName)); + } + + private printWarningSchemaFileExists() { + printer.info('The interface version must be bumped after any changes.'); + printer.info(`Use the ${this.OVERWRITE_SCHEMA_FLAG} flag to overwrite existing versions`); + printer.info('Skipping this schema'); + } + + private printSuccessSchemaFileWritten(typeName: string) { + printer.info(`Schema written for type ${typeName}.`); + } + + constructor(typeDefs: TypeDef[]) { + this.serviceTypeDefs = typeDefs; + } + + public generateJSONSchemas(): string[] { + const force = process.argv.includes(this.OVERWRITE_SCHEMA_FLAG); + const generatedFilePaths: string[] = []; + + // schema generation settings. see https://www.npmjs.com/package/typescript-json-schema#command-line + const settings: PartialArgs = { + required: true, + }; + + for (const typeDef of this.serviceTypeDefs) { + //get absolute file path to the user-input types for the given service + const svcAbsoluteFilePath = this.getSvcFileAbsolutePath(typeDef.service); + printer.info(svcAbsoluteFilePath); + //generate json-schema from the input-types + const typeSchema = buildGenerator(getProgramFromFiles([svcAbsoluteFilePath]), settings)?.getSchemaForSymbol(typeDef.typeName); + //save json-schema file for the input-types. (used to validate cli-inputs.json) + const outputSchemaFilePath = path.resolve( + path.join(this.SCHEMA_FILES_ROOT, typeDef.service, this.getSchemaFileNameForType(typeDef.typeName)), + ); + if (!force && fs.existsSync(outputSchemaFilePath)) { + this.printWarningSchemaFileExists(); + return generatedFilePaths; + } + fs.ensureFileSync(outputSchemaFilePath); + fs.writeFileSync(outputSchemaFilePath, JSON.stringify(typeSchema, undefined, 4)); + //print success status to the terminal + this.printSuccessSchemaFileWritten(typeDef.typeName); + generatedFilePaths.push(outputSchemaFilePath); + } + return generatedFilePaths; + } +} + +//Read Schema, Validate and return Typescript object. +export class CLIInputSchemaValidator { + _category: string; + _service: string; + _schemaFileName: string; + _ajv: Ajv.Ajv; + + constructor(service: string, category: string, schemaFileName: string) { + this._category = category; + this._service = service; + this._schemaFileName = schemaFileName; + this._ajv = new Ajv(); + } + + async getUserInputSchema() { + try { + return await import(generateSchemaPath(this._category, this._service, this._schemaFileName)); + } catch (ex) { + throw new Error(`Schema defination doesnt exist : ${generateSchemaPath(this._category, this._service, this._schemaFileName)}`); + } + } + + async validateInput(userInput: string): Promise { + const userInputSchema = await this.getUserInputSchema(); + if (userInputSchema.dependencySchemas) { + userInputSchema.dependencySchemas.reduce((acc: { addSchema: (arg0: any) => any }, it: any) => acc.addSchema(it), this._ajv); + } + const validate = this._ajv.compile(userInputSchema); + const input = JSON.parse(userInput); + if (!validate(input) as boolean) { + throw new Error(`Data did not validate against the supplied schema. Underlying errors were ${JSON.stringify(validate.errors)}`); + } + return true; + } +} + +const generateSchemaPath = (category: string, service: string, schemaFileName: string): string => { + return path.join(`@aws-amplify/amplify-category-${category}`, 'resources', 'schemas', `${service}`, `${schemaFileName}.schema.json`); +}; diff --git a/packages/amplify-cli-core/src/category-interfaces/category-input-state.ts b/packages/amplify-cli-core/src/category-interfaces/category-input-state.ts new file mode 100644 index 00000000000..34dcc9fb89c --- /dev/null +++ b/packages/amplify-cli-core/src/category-interfaces/category-input-state.ts @@ -0,0 +1,12 @@ +import { $TSAny } from '..'; + +export abstract class CategoryInputState { + _resourceName: string; + constructor(resourceName: string) { + this._resourceName = resourceName; + } + + abstract getCLIInputPayload(): $TSAny; + abstract saveCLIInputPayload(props: $TSAny): void; + abstract isCLIInputsValid(props: $TSAny): void; +} diff --git a/packages/amplify-cli-core/src/category-interfaces/category-override-base.ts b/packages/amplify-cli-core/src/category-interfaces/category-override-base.ts new file mode 100644 index 00000000000..58f40effbdf --- /dev/null +++ b/packages/amplify-cli-core/src/category-interfaces/category-override-base.ts @@ -0,0 +1,24 @@ +import { $TSContext } from '..'; +import { Template } from './amplify-base-cdk-types'; + +export abstract class AmplifyCategoryTransform { + _resourceName: string; + constructor(resourceName: string) { + this._resourceName = resourceName; + } + /** + * Entry point for CFN transformation process for a category + * @param context + */ + abstract transform(context: $TSContext): Promise