Skip to content

Commit

Permalink
feat: add release script for LTS branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Doesnt Matter authored and phani-srikar committed Aug 26, 2024
1 parent fa416af commit 0a68a53
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 235 deletions.
198 changes: 11 additions & 187 deletions codebuild_specs/e2e_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ batch:
compute-type: BUILD_GENERAL1_MEDIUM
depend-on:
- build_linux
- identifier: verify_cdk_version
buildspec: codebuild_specs/verify_cdk_version.yml
env:
compute-type: BUILD_GENERAL1_MEDIUM
depend-on:
- build_linux
- identifier: verify_api_extract
buildspec: codebuild_specs/verify_api_extract.yml
env:
Expand Down Expand Up @@ -144,22 +138,23 @@ batch:
CLI_REGION: ap-east-1
depend-on:
- publish_to_local_registry
- identifier: resolvers_sync_query_datastore_api_6_api_lambda_auth
- identifier: api_canary_sa_east_1_resolvers_sync_query_datastore_api_6
buildspec: codebuild_specs/run_e2e_tests.yml
env:
compute-type: BUILD_GENERAL1_MEDIUM
variables:
TEST_SUITE: >-
src/__tests__/resolvers.test.ts|src/__tests__/graphql-v2/sync_query_datastore.test.ts|src/__tests__/api_6.test.ts|src/__tests__/graphql-v2/api_lambda_auth.test.ts
CLI_REGION: us-east-2
src/__tests__/api_canary.test.ts|src/__tests__/resolvers.test.ts|src/__tests__/graphql-v2/sync_query_datastore.test.ts|src/__tests__/api_6.test.ts
CLI_REGION: sa-east-1
depend-on:
- publish_to_local_registry
- identifier: api_9
- identifier: api_lambda_auth_api_9
buildspec: codebuild_specs/run_e2e_tests.yml
env:
compute-type: BUILD_GENERAL1_MEDIUM
variables:
TEST_SUITE: src/__tests__/api_9.test.ts
TEST_SUITE: >-
src/__tests__/graphql-v2/api_lambda_auth.test.ts|src/__tests__/api_9.test.ts
CLI_REGION: us-west-1
depend-on:
- publish_to_local_registry
Expand Down Expand Up @@ -779,177 +774,6 @@ batch:
CLI_REGION: us-east-1
depend-on:
- publish_to_local_registry
- identifier: api_canary_ap_east_1
buildspec: codebuild_specs/run_e2e_tests.yml
env:
compute-type: BUILD_GENERAL1_SMALL
variables:
TEST_SUITE: src/__tests__/api_canary.test.ts
CLI_REGION: ap-east-1
depend-on:
- publish_to_local_registry
- identifier: api_canary_ap_northeast_1
buildspec: codebuild_specs/run_e2e_tests.yml
env:
compute-type: BUILD_GENERAL1_SMALL
variables:
TEST_SUITE: src/__tests__/api_canary.test.ts
CLI_REGION: ap-northeast-1
depend-on:
- publish_to_local_registry
- identifier: api_canary_ap_northeast_2
buildspec: codebuild_specs/run_e2e_tests.yml
env:
compute-type: BUILD_GENERAL1_SMALL
variables:
TEST_SUITE: src/__tests__/api_canary.test.ts
CLI_REGION: ap-northeast-2
depend-on:
- publish_to_local_registry
- identifier: api_canary_ap_south_1
buildspec: codebuild_specs/run_e2e_tests.yml
env:
compute-type: BUILD_GENERAL1_SMALL
variables:
TEST_SUITE: src/__tests__/api_canary.test.ts
CLI_REGION: ap-south-1
depend-on:
- publish_to_local_registry
- identifier: api_canary_ap_southeast_1
buildspec: codebuild_specs/run_e2e_tests.yml
env:
compute-type: BUILD_GENERAL1_SMALL
variables:
TEST_SUITE: src/__tests__/api_canary.test.ts
CLI_REGION: ap-southeast-1
depend-on:
- publish_to_local_registry
- identifier: api_canary_ap_southeast_2
buildspec: codebuild_specs/run_e2e_tests.yml
env:
compute-type: BUILD_GENERAL1_SMALL
variables:
TEST_SUITE: src/__tests__/api_canary.test.ts
CLI_REGION: ap-southeast-2
depend-on:
- publish_to_local_registry
- identifier: api_canary_ca_central_1
buildspec: codebuild_specs/run_e2e_tests.yml
env:
compute-type: BUILD_GENERAL1_SMALL
variables:
TEST_SUITE: src/__tests__/api_canary.test.ts
CLI_REGION: ca-central-1
depend-on:
- publish_to_local_registry
- identifier: api_canary_eu_central_1
buildspec: codebuild_specs/run_e2e_tests.yml
env:
compute-type: BUILD_GENERAL1_SMALL
variables:
TEST_SUITE: src/__tests__/api_canary.test.ts
CLI_REGION: eu-central-1
depend-on:
- publish_to_local_registry
- identifier: api_canary_eu_north_1
buildspec: codebuild_specs/run_e2e_tests.yml
env:
compute-type: BUILD_GENERAL1_SMALL
variables:
TEST_SUITE: src/__tests__/api_canary.test.ts
CLI_REGION: eu-north-1
depend-on:
- publish_to_local_registry
- identifier: api_canary_eu_south_1
buildspec: codebuild_specs/run_e2e_tests.yml
env:
compute-type: BUILD_GENERAL1_SMALL
variables:
TEST_SUITE: src/__tests__/api_canary.test.ts
CLI_REGION: eu-south-1
depend-on:
- publish_to_local_registry
- identifier: api_canary_eu_west_1
buildspec: codebuild_specs/run_e2e_tests.yml
env:
compute-type: BUILD_GENERAL1_SMALL
variables:
TEST_SUITE: src/__tests__/api_canary.test.ts
CLI_REGION: eu-west-1
depend-on:
- publish_to_local_registry
- identifier: api_canary_eu_west_2
buildspec: codebuild_specs/run_e2e_tests.yml
env:
compute-type: BUILD_GENERAL1_SMALL
variables:
TEST_SUITE: src/__tests__/api_canary.test.ts
CLI_REGION: eu-west-2
depend-on:
- publish_to_local_registry
- identifier: api_canary_eu_west_3
buildspec: codebuild_specs/run_e2e_tests.yml
env:
compute-type: BUILD_GENERAL1_SMALL
variables:
TEST_SUITE: src/__tests__/api_canary.test.ts
CLI_REGION: eu-west-3
depend-on:
- publish_to_local_registry
- identifier: api_canary_me_south_1
buildspec: codebuild_specs/run_e2e_tests.yml
env:
compute-type: BUILD_GENERAL1_SMALL
variables:
TEST_SUITE: src/__tests__/api_canary.test.ts
CLI_REGION: me-south-1
depend-on:
- publish_to_local_registry
- identifier: api_canary_sa_east_1
buildspec: codebuild_specs/run_e2e_tests.yml
env:
compute-type: BUILD_GENERAL1_SMALL
variables:
TEST_SUITE: src/__tests__/api_canary.test.ts
CLI_REGION: sa-east-1
depend-on:
- publish_to_local_registry
- identifier: api_canary_us_east_1
buildspec: codebuild_specs/run_e2e_tests.yml
env:
compute-type: BUILD_GENERAL1_SMALL
variables:
TEST_SUITE: src/__tests__/api_canary.test.ts
CLI_REGION: us-east-1
depend-on:
- publish_to_local_registry
- identifier: api_canary_us_east_2
buildspec: codebuild_specs/run_e2e_tests.yml
env:
compute-type: BUILD_GENERAL1_SMALL
variables:
TEST_SUITE: src/__tests__/api_canary.test.ts
CLI_REGION: us-east-2
depend-on:
- publish_to_local_registry
- identifier: api_canary_us_west_1
buildspec: codebuild_specs/run_e2e_tests.yml
env:
compute-type: BUILD_GENERAL1_SMALL
variables:
TEST_SUITE: src/__tests__/api_canary.test.ts
CLI_REGION: us-west-1
depend-on:
- publish_to_local_registry
- identifier: api_canary_us_west_2
buildspec: codebuild_specs/run_e2e_tests.yml
env:
compute-type: BUILD_GENERAL1_SMALL
variables:
TEST_SUITE: src/__tests__/api_canary.test.ts
CLI_REGION: us-west-2
depend-on:
- publish_to_local_registry
- identifier: api_11
buildspec: codebuild_specs/run_e2e_tests.yml
env:
Expand Down Expand Up @@ -1028,7 +852,7 @@ batch:
compute-type: BUILD_GENERAL1_SMALL
variables:
TEST_SUITE: src/__tests__/schema-searchable.test.ts
CLI_REGION: us-east-1
CLI_REGION: ap-south-1
USE_PARENT_ACCOUNT: 1
depend-on:
- publish_to_local_registry
Expand All @@ -1047,7 +871,7 @@ batch:
compute-type: BUILD_GENERAL1_SMALL
variables:
TEST_SUITE: src/__tests__/graphql-v2/searchable-datastore.test.ts
CLI_REGION: sa-east-1
CLI_REGION: eu-west-1
USE_PARENT_ACCOUNT: 1
depend-on:
- publish_to_local_registry
Expand Down Expand Up @@ -1076,7 +900,7 @@ batch:
variables:
TEST_SUITE: >-
src/__tests__/graphql-v2/searchable-node-to-node-encryption/searchable-previous-deployment-had-node-to-node.test.ts
CLI_REGION: us-west-1
CLI_REGION: us-east-1
depend-on:
- publish_to_local_registry
- identifier: searchable_previous_deployment_no_node_to_node
Expand All @@ -1086,7 +910,7 @@ batch:
variables:
TEST_SUITE: >-
src/__tests__/graphql-v2/searchable-node-to-node-encryption/searchable-previous-deployment-no-node-to-node.test.ts
CLI_REGION: us-west-2
CLI_REGION: us-east-2
depend-on:
- publish_to_local_registry
- identifier: api_2
Expand All @@ -1104,7 +928,7 @@ batch:
compute-type: BUILD_GENERAL1_SMALL
variables:
TEST_SUITE: src/__tests__/transformer-migrations/searchable-migration.test.ts
CLI_REGION: ap-south-1
CLI_REGION: us-west-2
USE_PARENT_ACCOUNT: 1
depend-on:
- publish_to_local_registry
Expand Down
6 changes: 0 additions & 6 deletions codebuild_specs/e2e_workflow_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ batch:
compute-type: BUILD_GENERAL1_MEDIUM
depend-on:
- build_linux
- identifier: verify_cdk_version
buildspec: codebuild_specs/verify_cdk_version.yml
env:
compute-type: BUILD_GENERAL1_MEDIUM
depend-on:
- build_linux
- identifier: verify_api_extract
buildspec: codebuild_specs/verify_api_extract.yml
env:
Expand Down
4 changes: 0 additions & 4 deletions codebuild_specs/pr_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ batch:
buildspec: codebuild_specs/verify_yarn_lock.yml
depend-on:
- build_linux
- identifier: verify_cdk_version
buildspec: codebuild_specs/verify_cdk_version.yml
depend-on:
- build_linux
- identifier: verify_dependency_licenses_extract
buildspec: codebuild_specs/verify_dependency_licenses_extract.yml
env:
Expand Down
4 changes: 0 additions & 4 deletions codebuild_specs/release_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ batch:
buildspec: codebuild_specs/verify_yarn_lock.yml
depend-on:
- build_linux
- identifier: verify_cdk_version
buildspec: codebuild_specs/verify_cdk_version.yml
depend-on:
- build_linux
- identifier: verify_dependency_licenses_extract
buildspec: codebuild_specs/verify_dependency_licenses_extract.yml
env:
Expand Down
7 changes: 0 additions & 7 deletions codebuild_specs/verify_cdk_version.yml

This file was deleted.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"package": "lerna run package",
"postpublish:release": "git fetch . release:main && git push origin main",
"postpublish:api-plugin-stable": "git push origin api-plugin-stable",
"prettier-check": "yarn prettier --check .",
"prettier-write": "yarn prettier --write .",
"production-install": "yarn --frozen-lockfile --cache-folder ~/.cache/yarn",
Expand All @@ -38,6 +39,7 @@
"publish:beta": "lerna publish --exact --dist-tag=beta --preid=beta --conventional-commits --conventional-prerelease --message 'chore(release): Publish [ci skip]' --no-verify-access --yes",
"publish:main": "lerna publish --canary --force-publish --preid=alpha --exact --include-merged-tags --conventional-prerelease --no-verify-access --yes",
"publish:release": "lerna publish --conventional-commits --conventional-graduate --exact --yes --message 'chore(release): Publish [ci skip]' --no-verify-access",
"publish:api-plugin-stable": "lerna publish --dist-tag=api-plugin-stable --conventional-commits --conventional-graduate --exact --yes --message 'chore(release): Publish [ci skip]' --no-verify-access",
"publish:tag": "lerna publish --exact --dist-tag=$NPM_TAG --preid=$NPM_TAG --conventional-commits --conventional-prerelease --message \"chore(release): Publish tagged release $NPM_TAG [ci skip]\" --no-verify-access --yes",
"refresh-lockfile": "rimraf yarn.lock && yarn",
"rm-dev-link": "rimraf -f \"$(yarn global bin)/amplify-dev\"",
Expand Down
27 changes: 0 additions & 27 deletions scripts/split-e2e-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,21 +143,6 @@ const RUN_SOLO: (string | RegExp)[] = [
// SQL tests
/src\/__tests__\/rds-.*\.test\.ts/,
/src\/__tests__\/sql-.*\.test\.ts/,
// CDK tests
/src\/__tests__\/base-cdk.*\.test\.ts/,
'src/__tests__/admin-role.test.ts',
'src/__tests__/all-auth-modes.test.ts',
'src/__tests__/amplify-ddb-canary.test.ts',
'src/__tests__/amplify-table-1.test.ts',
'src/__tests__/amplify-table-2.test.ts',
'src/__tests__/amplify-table-3.test.ts',
'src/__tests__/amplify-table-4.test.ts',
'src/__tests__/api_canary.test.ts',
'src/__tests__/default-ddb-canary.test.ts',
/src\/__tests__\/group-auth\/.*\.test\.ts/,
/src\/__tests__\/owner-auth\/.*\.test\.ts/,
/src\/__tests__\/relationships\/.*\.test\.ts/,
/src\/__tests__\/restricted-field-auth\/.*\.test\.ts/,
];

const RUN_IN_ALL_REGIONS = [
Expand Down Expand Up @@ -398,18 +383,6 @@ const main = (): void => {
join(REPO_ROOT, 'packages', 'amplify-e2e-tests'),
useBetaLayer,
),
...splitTests(
{
identifier: 'run_cdk_tests',
buildspec: 'codebuild_specs/run_cdk_tests.yml',
env: {
'compute-type': 'BUILD_GENERAL1_MEDIUM',
},
'depend-on': ['publish_to_local_registry'],
},
join(REPO_ROOT, 'packages', 'amplify-graphql-api-construct-tests'),
useBetaLayer,
),
...splitTests(
{
identifier: 'gql_e2e_tests',
Expand Down

0 comments on commit 0a68a53

Please sign in to comment.