Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
243 commits
Select commit Hold shift + click to select a range
9440d8b
chore(release): Publish rc [ci skip]
Apr 4, 2023
03bdec8
fix: build exe context for mock push
marcvberg Mar 7, 2023
ceb5be1
mock fixes for shutdown handling and lack of overrides
marcvberg Mar 8, 2023
9e4682c
wip: adding mock E2E tests
marcvberg Mar 9, 2023
264336b
wip: added correct setup/teardown for mock e2e
marcvberg Mar 10, 2023
8cc128f
add E2E test for mock
marcvberg Mar 13, 2023
cddc267
fix: add util mock to dependencies for e2e tests
marcvberg Mar 23, 2023
05dbd00
Linting fixes and API extraction
marcvberg Mar 31, 2023
f623efd
remove E2E dependency on util-mock
marcvberg Apr 5, 2023
9b4293a
Update API extraction
marcvberg Apr 5, 2023
fe52776
linting fixes
marcvberg Apr 6, 2023
cea69a8
fix dev dependency ordering
marcvberg Apr 6, 2023
7eaeeaa
chore: complete cli core migration (#12408)
aws-eddy Apr 7, 2023
7e1fab1
build(deps): bump vm2 from 3.9.11 to 3.9.15 (#12410)
dependabot[bot] Apr 7, 2023
329a606
revert: #12351 (#12412)
sdstolworthy Apr 7, 2023
2a63df0
fix(api): API hotfix for ownerfield as pk (#12422)
AaronZyLee Apr 10, 2023
4c4357d
build(deps): bump vm2 from 3.9.11 to 3.9.15 (#12410)
dependabot[bot] Apr 7, 2023
fe4347a
fix: api hotfix for ownerfield as pk (#12422)
AaronZyLee Apr 10, 2023
9c7442b
chore(release): Publish latest [ci skip]
Apr 11, 2023
afb8158
chore: merge release commit from main to dev
jhockett Apr 11, 2023
ada6c7a
Merge pull request #12429 from aws-amplify/dev-main-merge-9c7442b702
jhockett Apr 11, 2023
cb3b0fc
fix: support flutter project for idp with social providers (#12381)
pavellazar Apr 11, 2023
e02e23c
Merge pull request #12199 from aws-amplify/mock-exe-info-fix
marcvberg Apr 11, 2023
60d2bb2
chore: prepend headless scopes (#12415)
aws-eddy Apr 11, 2023
ac7a873
Revert "Mock exe info fix" (#12437)
jhockett Apr 11, 2023
505e70d
chore: don't retry locally (#12438)
Apr 11, 2023
88b2508
Revert "chore: prepend headless scopes (#12415)" (#12439)
aws-eddy Apr 11, 2023
0d4d44c
feat: generate S3 and DynamoDB triggers for node18 runtime (#12436)
Apr 11, 2023
17283c5
chore: bump aws-sdk v2 to latest (#12423)
jhockett Apr 12, 2023
d578c81
chore: upgrade runtime of update idp roles lambda to node 18 (#12443)
Apr 12, 2023
c218dd4
fix: update pinpoint regions (#12379)
pavellazar Apr 12, 2023
fdb6f28
chore: run pinpoint lambda on node18 (#12451)
Apr 12, 2023
24fd743
chore: update yarn (#12455)
pavellazar Apr 12, 2023
6ed8603
chore: run predictions lambdas node18 (#12456)
Apr 13, 2023
dacff4a
fix(api): bump api with ownerfield hotfix of 5.1.1
AaronZyLee Apr 13, 2023
2158ab7
chore: bump create-react-app scripts (#12334)
Mar 29, 2023
1f645ca
chore: bump internal packages to avoid conflicts (#12466)
jhockett Apr 13, 2023
43bde18
chore(release): Publish latest [ci skip]
Apr 14, 2023
d18e1a6
feat: mock and mock function adds capabilities for function and resou…
ykethan Apr 14, 2023
a0bebf2
fix: apply overrides when forcePush is set with init (#12464)
akshbhu Apr 14, 2023
7d9d200
test: fix e2e test (#12467)
pavellazar Apr 14, 2023
17e0acc
Revert "Merge pull request #12429 from aws-amplify/dev-main-merge-9c7…
jhockett Apr 14, 2023
200790b
chore: merge release commit from main to dev
jhockett Apr 14, 2023
9326f22
chore: update yarn.lock to use npm registry
jhockett Apr 14, 2023
376b4aa
chore: update yarn.lock to use npmjs registry
jhockett Apr 14, 2023
3ee14c7
fix: codegen version in snapshot
jhockett Apr 15, 2023
b289cbc
Merge pull request #12469 from jhockett/dev-main-merge-43bde18680
jhockett Apr 15, 2023
5fedbaf
feat: run auth triggers on node18 (#12479)
Apr 17, 2023
14b92c3
chore: add resolution message to missing cloudformation error (#12378)
pavellazar Apr 17, 2023
9833f43
build(deps): bump vm2 from 3.9.15 to 3.9.16 (#12457)
dependabot[bot] Apr 17, 2023
085b244
chore: add linter to tagged e2e process (#12480)
danielleadams Apr 17, 2023
398688d
feat: run interactions lambda on nodejs18 (#12482)
Apr 17, 2023
6d39f22
chore: run geo lambda callouts on node18 (#12483)
Apr 17, 2023
4fe9032
test: fix e2e test (#12485)
pavellazar Apr 17, 2023
de71ded
chore: run admin app on node18 (#12489)
Apr 17, 2023
7930fc6
fix: generate model introspection regardless of studio and datastore …
Mar 17, 2023
1e7aee8
fix: modelgen failure on windows (#12263)
Mar 20, 2023
23168f0
fix(api): add null placeholder for nested stack during api rebuild (#…
AaronZyLee Mar 20, 2023
067c8ab
chore: re-enable tests on windows (#12272)
Mar 20, 2023
f6ad98c
chore: use small executor at wait step (#12275)
Mar 21, 2023
7fab3a2
chore: increase parallelization in e2e tests (#12276)
Mar 21, 2023
2c10f7e
fix: source temp aws creds and ec2 instance credentials using genera…
akshbhu Mar 21, 2023
fa3fc78
chore: use nodejs 14.x compatible with CDK (#12280)
Mar 21, 2023
f29c140
fix: skip backend sync on force push (#12262)
pavellazar Mar 22, 2023
3e1a3a7
chore: use pkg-fetch fork (#12259)
goldbez Mar 23, 2023
9a4dc3d
fix: all floating promises (#12293)
Amplifiyer Mar 23, 2023
b072037
chore: migrate from deprecated CDK api (#12297)
Mar 23, 2023
6387162
chore: convert generic errors that are user errors to AmplifyErrors (…
Amplifiyer Mar 23, 2023
bfd4ff8
chore: use npm registry (#12300)
Mar 23, 2023
32dab01
fix: set registry in build steps (#12303)
Mar 24, 2023
e93fe09
fix: throws a warning for detector (#12307)
akshbhu Mar 24, 2023
f3c9a16
chore: don't show deprecation warnings in binary (#12309)
Mar 24, 2023
73dc361
fix: enable help for category statuses (#12216)
goldbez Mar 24, 2023
3ce8be6
fix: handle bucket exists check for s3 buckets in opt in regions (#12…
pavellazar Mar 24, 2023
0ff6b6d
test: add e2e tests for push, init, pull, env with help flag (#12310)
goldbez Mar 24, 2023
eb2da13
test: fix help tests on windows with regex (#12314)
goldbez Mar 27, 2023
51857e8
chore: update pkg to 5.8.1 (#12322)
Mar 28, 2023
08533c5
chore: upgrade yarn (#12323)
Mar 28, 2023
0b6e562
fix: fail `init --forcePush` fast if environment parameters or secret…
edwardfoyle Mar 28, 2023
cd1fa37
chore: revise net6 baseline (#12327)
Mar 28, 2023
2cd6b3e
fix: sso login (#12325)
pavellazar Mar 28, 2023
4efc842
chore: undo custom resource exclusions on windows (#12329)
Mar 29, 2023
e57f872
fix:removing auth from local state if imported userpool is deleted (#…
akshbhu Mar 29, 2023
5d0f1c3
chore: reclassify file permissions errors as AmplifyError (#12336)
Amplifiyer Mar 30, 2023
b7496a3
chore(api): update api dependencies post 5.2.0 release (#12345)
sundersc Mar 30, 2023
9692ba0
change compile to implementation (#12313)
RobertLemmens Mar 31, 2023
0fb0256
chore: exclude auth test run on windows (#12355)
akshbhu Mar 31, 2023
e5b2842
fix: multi select race conditions (#12356)
Mar 31, 2023
57885e4
fix: null check for custom IAM policies Action array (#12346)
sdstolworthy Mar 31, 2023
4c08c1d
chore: bump codegen deps (#12358)
aws-eddy Mar 31, 2023
a3f39ec
fix: reset readline terminal property on close (#12347)
pavellazar Mar 31, 2023
f3ce1ad
fix: codegen version in snapshots (#12362)
Mar 31, 2023
13ad42e
fix: yarn failures (#12368)
Apr 3, 2023
7e6e5af
chore: run e2e tests on windows on node18 (#12370)
Apr 3, 2023
11f3796
chore: import from clodform-types instead of cloudform (#12371)
Apr 3, 2023
756b6c3
fix: env param fail-fast checks don't fatal on missing appId or envNa…
edwardfoyle Apr 3, 2023
163a812
chore(release): Publish rc [ci skip]
Apr 4, 2023
62ada85
build(deps): bump vm2 from 3.9.11 to 3.9.15 (#12410)
dependabot[bot] Apr 7, 2023
353cf3a
fix: api hotfix for ownerfield as pk (#12422)
AaronZyLee Apr 10, 2023
434a4d7
chore: update vm2 to ^3.9.16 (#12458)
jhockett Apr 13, 2023
1350b2e
build(deps): bump vm2 from 3.9.15 to 3.9.16 (#12457)
dependabot[bot] Apr 17, 2023
b5f34d5
feat(amplify-util-uibuilder): formFeatureFlags metadata (#12369)
joebuono Apr 4, 2023
90fe1e4
feat(amplify-util-uibuilder): support StorageField (#12386)
hein-j Apr 6, 2023
7e2490f
fix: fixes merge conflicts
akshbhu Apr 17, 2023
f7af76d
feat: minor version bump
akshbhu Apr 17, 2023
bfeb9c4
fix: fixes unit test and pin gql transformer v1 version
akshbhu Apr 18, 2023
a87fc75
fix: modelgen regression
akshbhu Apr 18, 2023
374a34c
fix: updated snapshot
akshbhu Apr 18, 2023
9c56c9e
fix(amplify-util-uibuilder): fix icon regression (#12498)
bombguy Apr 19, 2023
3d3407d
ci: add windows test support (#12499)
awsluja Apr 19, 2023
8e44b0d
chore: reclassify common sdk errors (#12486)
goldbez Apr 19, 2023
5262361
chore: fixes jest process failed to start error (#12504)
pavellazar Apr 20, 2023
2fc630a
build(deps): bump vm2 from 3.9.16 to 3.9.17 (#12508)
dependabot[bot] Apr 20, 2023
569ff22
Merge branch 'dev' into cb
awsluja Apr 20, 2023
cb8d3f8
fix: double hooks invocation (fixes #9996)
jhockett Apr 21, 2023
2044fc0
chore: move smoketest script into the e2e suite (#12414)
sdstolworthy Apr 21, 2023
b009319
chore(release): Publish latest [ci skip]
Apr 24, 2023
96d0ce1
test: ensure single execution of push hooks
jhockett Apr 24, 2023
a4142e8
fix: codeql findings
jhockett Apr 24, 2023
dbf1550
style: run prettier
jhockett Apr 24, 2023
c4c36d6
Dev main merge b00931952e (#12522)
aws-eddy Apr 25, 2023
b6b81ff
fix: graceful fallback if us-east-1 AppState unavailable (#12435)
edwardfoyle Apr 25, 2023
3240402
chore: fix failing e2e tests (#12526)
aws-eddy Apr 25, 2023
458f641
fix(amplify-console-hosting): handle undefined errors (#12505)
jhockett Apr 26, 2023
093324f
chore: update api category and codegen dependencies (#12527)
alharris-at Apr 26, 2023
8a599ba
fix(mock)-handle stack trace & produce meaningful error, resolution m…
manaswi223 Apr 27, 2023
dc43eb8
address comments
manaswi223 Apr 28, 2023
b013e9c
make getAppSyncAPI public
manaswi223 Apr 28, 2023
606284d
address comments
manaswi223 Apr 28, 2023
9cad369
remove unwanted ?
manaswi223 Apr 28, 2023
9067018
fix: remove use of object ACLs #10283
nosnilmot Jul 29, 2022
ab308a2
chore: remove the ability to add hosting with S3 and Cloudfront
aws-eddy Apr 26, 2023
cfe7a6f
removing dev option
aws-eddy Apr 26, 2023
039d7d0
chore: remove console.log
aws-eddy Apr 26, 2023
7ecb1e8
chore: add a new error for not supporting publish command
aws-eddy Apr 27, 2023
6243c75
chore: allow users to publish on first launch
aws-eddy Apr 27, 2023
fb1eb6a
chore: fix failing unit test
aws-eddy Apr 27, 2023
dcd921a
chore: add a comment to document change
aws-eddy Apr 27, 2023
30602a7
try to remove update install step
aws-eddy Apr 27, 2023
f242249
chore: address feedback
aws-eddy Apr 27, 2023
2902526
chore: address codeql comments
aws-eddy Apr 27, 2023
58a7462
chore: fix failing e2e tests
aws-eddy Apr 27, 2023
84cfd45
chore: removing unused import
aws-eddy Apr 27, 2023
3f6233e
chore: change let to const
aws-eddy Apr 27, 2023
7e368dc
chore: remove extra steps that no longer exist
aws-eddy Apr 27, 2023
b5cf3bf
chore: add prod hosting to an e2e test
aws-eddy Apr 27, 2023
57f2a88
Update packages/amplify-category-hosting/index.js
aws-eddy Apr 27, 2023
0154097
chore: removing some defaults that are repetitive
aws-eddy Apr 28, 2023
fb4bab1
build(deps): bump yaml from 2.2.1 to 2.2.2 (#12521)
dependabot[bot] Apr 28, 2023
0132ccc
fix lint errors
manaswi223 Apr 28, 2023
4387f34
use AmplifyError as exception
manaswi223 Apr 28, 2023
050c29f
chore: convert gql tansformer v1 core syntax errors errors to amplify…
akshbhu Apr 28, 2023
98f99b6
chore: modify failing e2e test
aws-eddy Apr 28, 2023
5fb2259
chore: remove test altogether
aws-eddy Apr 28, 2023
0aa016f
chore(release): Publish latest [ci skip]
Apr 29, 2023
ac206e8
chore: merge release commit from main to dev
aws-eddy Apr 29, 2023
1ec4ad5
chore: remove old version of cli-core
aws-eddy Apr 29, 2023
23abeab
chore: add uid
aws-eddy Apr 29, 2023
4bcb846
Merge pull request #12547 from aws-amplify/dev-main-merge-0aa016fc42
aws-eddy May 1, 2023
0f20518
Merge pull request #12537 from aws-amplify/fix/stack-trace-mockAPI
aws-eddy May 1, 2023
91826bb
Merge pull request #12512 from jhockett/double-hooks
aws-eddy May 1, 2023
6885e01
fix: add min delay to exp backoff (#12488)
jhockett May 1, 2023
ad063e1
fix: remove smoketest from normal e2e flow (#12555)
sdstolworthy May 1, 2023
8eaf6c3
fix: don't throw for missing backend in prepush function handler (#12…
Amplifiyer May 1, 2023
3586334
test: fix bad import in pull-2 e2e test (#12559)
jhockett May 1, 2023
663737a
fix: generate OAuth keys from cognito for amplify pull workflow (#12518)
akshbhu May 1, 2023
4616a18
test: add hooks-c e2e to windows exclusion list (#12562)
jhockett May 1, 2023
864c197
Run smoketests with e2e (#12558)
sdstolworthy May 1, 2023
b9556c6
test: add codebuild integration tests (#12545)
goldbez May 2, 2023
687dcc2
feat(amplify-util-uibuilder): update codegen-ui to 2.13.1 (#12565)
May 2, 2023
0d6bca4
fix: exclude smoketests on windows; remove extraneous dependency (#12…
sdstolworthy May 2, 2023
ca3b404
chore: enable deprecation warnings in non-prod CLI (#12585)
May 4, 2023
5601396
chore(codegen): update codegen dep to 4.0.0
sundersc May 5, 2023
c273032
update yarn.lock file
sundersc May 5, 2023
8892370
use codegen caret version
sundersc May 5, 2023
613c675
Merge dev into CB (#12595)
sdstolworthy May 5, 2023
48ab919
fix lint errors
sundersc May 8, 2023
b3a3195
Merge pull request #12588 from sundersc/codegen-update
aws-eddy May 8, 2023
aae3dbc
ci: e2e test splitting (#12525)
awsluja May 8, 2023
80a0bd6
chore: update TSContext type (#12543)
jhockett May 9, 2023
8389d5e
chore: bump codegen version to 3.4.4 (#12605)
AaronZyLee May 10, 2023
4dd9ca5
cb: enable basic e2e test coverage (#12601)
kuhlmanp May 10, 2023
aeb26ae
ci: fix migration tests (#12619)
awsluja May 11, 2023
83156de
chore(release): Publish latest [ci skip]
May 11, 2023
7a9d5c6
Merge branch 'dev' into dev-main-merge-83156defc
awsluja May 11, 2023
40d159d
Merge pull request #12620 from aws-amplify/dev-main-merge-83156defc
awsluja May 11, 2023
0ae8689
fix: do not throw when localEnvInfo is missing on pull (fixes 12492) …
jhockett May 12, 2023
260723c
fix: deploy category resources when calling amplify push <categoryNam…
akshbhu May 12, 2023
0ee53e6
fix: don't buffer when extracting binary (#12621)
May 12, 2023
a9f21e5
feat: update console auth command url to v2 dashboard (#12612)
ykethan May 15, 2023
5573a3d
chore: remove copy override workaround (#12490)
jhockett May 15, 2023
947b23f
chore: store binaries as build artifacts (#12625)
May 15, 2023
fd51b65
build(deps): bump vm2 from 3.9.17 to 3.9.18 (#12628)
dependabot[bot] May 16, 2023
bb10103
ci: Setup e2e scripts (#12629)
awsluja May 16, 2023
a758c6b
chore: remove the ability to delete cloudfront distribution (#12607)
aws-eddy May 17, 2023
7d9c295
Merge branch 'dev' into cb
awsluja May 18, 2023
1195671
Merge pull request #12645 from aws-amplify/merge-dev-cb-may17
awsluja May 18, 2023
a019f2b
ci: Add local cloud e2e script (#12643)
awsluja May 18, 2023
3529a9d
ci: cleanup missed file (#12651)
awsluja May 19, 2023
9d67758
ci: fix e2e (#12652)
awsluja May 19, 2023
f78fb68
fix: remove parameters when resource is deleted or unlinked (#12544)
jhockett May 19, 2023
84d1812
chore: add test reporting and aggregate reporting (#12641)
goldbez May 19, 2023
a25ec17
feat: add status acm subcommand (#12190)
ykethan May 23, 2023
62e64f3
chore: increase memory size for tests, run amplify-provider-awscloudf…
goldbez May 24, 2023
e93c218
chore: enable test reporting for full e2e run in cb (#12675)
goldbez May 25, 2023
0dce156
chore: reduce size of generated e2e buildspec (#12686)
goldbez May 25, 2023
b01aa4b
chore(release): Merge main into dev (#12689)
sdstolworthy May 25, 2023
e8f1494
ci: add e2e coverage clover reports and cast artifacts (#12692)
kuhlmanp May 26, 2023
a0c4214
chore: update data packages (#12693)
alharris-at May 26, 2023
64984de
ci: Add codeowners for CI/CD files & folders (#12695)
awsluja May 26, 2023
eda51ff
chore: replace local impls for showApiAuthAcm and authNotifications w…
alharris-at May 26, 2023
5f291cf
test: fix migration tests (#12699)
edwardfoyle May 30, 2023
e83b8e6
fix: use and operatpr instead of semicolon to run unit tests (#12712)
goldbez May 31, 2023
e45fcc1
fix: skip automatic form generation when datastore is not enabled
awinberg-aws May 31, 2023
9621788
chore: yarn modern (3.5.0) migration feature branch (#12579)
pavellazar Jun 1, 2023
65d11e9
chore: provide better mitigation steps for hosting error (#12715)
aws-eddy Jun 1, 2023
95ac090
Merge branch 'dev' into fix-studio-form-generation
awinberg-aws Jun 1, 2023
966da92
chore: resolve build errors with latest updates from dev branch
awinberg-aws Jun 1, 2023
0819db4
fix: throw message when adding lambda function with same name (#12623)
ykethan Jun 2, 2023
811e8fc
feat: display error message instead of object (#12636)
ykethan Jun 2, 2023
cb9b61e
Merge pull request #12713 from aws-amplify/fix-studio-form-generation
awinberg-aws Jun 2, 2023
f8ae198
chore: enable report aggregation for migration and windows tests (#12…
goldbez Jun 2, 2023
68dcea2
ci: rename e2e branch to avoid triggering circleci job (#12721)
awsluja Jun 2, 2023
5fe5cb2
chore: remove lint section from contributing.md (#12737)
Jun 5, 2023
99026e1
fix: lint warnings (#12738)
Jun 5, 2023
545dcc4
fix: local test reporting wait ids variable in buildspec (#12741)
goldbez Jun 5, 2023
f2c18e4
Merge branch 'dev' into dev-cb-merge-jun-3
awsluja Jun 5, 2023
c1aeac9
chore: fix windows buildspec (#12743)
goldbez Jun 5, 2023
ea7e328
ci: fix lint error
awsluja Jun 5, 2023
58fc479
Merge remote-tracking branch 'upstream/cb' into dev-cb-merge-jun-3
awsluja Jun 5, 2023
ee219f2
ci: format
awsluja Jun 5, 2023
084984e
ci: fix publish
awsluja Jun 5, 2023
76087a3
ci: add integration test to generated workflow
awsluja Jun 5, 2023
0de4529
fix: functions e2e tests on windows (#12745)
Jun 6, 2023
e177b13
fix: console integration tests (#12748)
Jun 6, 2023
adc5b22
fix: remove logs from update idp lambda (#12749)
Jun 6, 2023
aee086c
chore: bump vm2 to 3.9.19 (#12742)
jhockett Jun 6, 2023
fcfebe1
Merge pull request #12744 from awsluja/dev-cb-merge-jun-3
awsluja Jun 6, 2023
756db0f
ci: separate codebuild & cci differences (#12751)
awsluja Jun 6, 2023
2b6a8fd
chore: bump api category to 5.4.1 (#12740)
AaronZyLee Jun 6, 2023
90f2faa
Merge branch 'dev' into dev-cb-merge-e2e-fixes
awsluja Jun 6, 2023
660923b
Merge pull request #12753 from awsluja/dev-cb-merge-e2e-fixes
awsluja Jun 6, 2023
b99b9b3
ci: update windows build for yarn2 (#12759)
awsluja Jun 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
156 changes: 75 additions & 81 deletions .circleci/config.base.yml

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ jobs:
- restore_cache:
key: >-
amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
- run: yarn run production-build
- run: yarn --immutable
- run: yarn production-build
- save_cache:
key: >-
amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
Expand Down Expand Up @@ -167,7 +168,7 @@ jobs:
source .circleci/local_publish_helpers.sh
amplify -v
cd packages/amplify-console-integration-tests
retry yarn run console-integration --no-cache --maxWorkers=4
retry yarn console-integration --no-cache --maxWorkers=4
name: Run Amplify Console integration tests
no_output_timeout: 90m
- run:
Expand Down
47 changes: 38 additions & 9 deletions .circleci/local_publish_helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function generatePkgCli {

# install package depedencies
cp ../yarn.lock ./
yarn --production
yarn workspaces focus --production

# Optimize package size
find . \
Expand Down Expand Up @@ -143,17 +143,17 @@ function verifyPkgCli {
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/"
yarn config set npmRegistryServer "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/"
sudo yarn config set npmRegistryServer "https://registry.npmjs.org/"
}

function changeNpmGlobalPath {
mkdir -p ~/.npm-global
mkdir -p ~/.npm-global/{bin,lib}
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH
}
Expand All @@ -167,13 +167,13 @@ function changeSudoNpmGlobalPath {
function setNpmRegistryUrlToLocal {
# Set registry to local registry
npm set registry "$custom_registry_url"
yarn config set registry "$custom_registry_url"
yarn config set npmRegistryServer "$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"
sudo yarn config set npmRegistryServer "$custom_registry_url"
}

function useChildAccountCredentials {
Expand Down Expand Up @@ -267,16 +267,45 @@ function setAwsAccountCredentials {
useChildAccountCredentials
fi
}

function runE2eTest {
FAILED_TEST_REGEX_FILE="./amplify-e2e-reports/amplify-e2e-failed-test.txt"

if [ -f $FAILED_TEST_REGEX_FILE ]; then
# read the content of failed tests
failedTests=$(<$FAILED_TEST_REGEX_FILE)
yarn run e2e --forceExit --no-cache --maxWorkers=4 $TEST_SUITE -t "$failedTests"
yarn e2e --forceExit --no-cache --maxWorkers=4 $TEST_SUITE -t "$failedTests"
else
yarn e2e --forceExit --no-cache --maxWorkers=4 $TEST_SUITE
fi
}

function runE2eTestCb {
_setupCoverage
FAILED_TEST_REGEX_FILE="./amplify-e2e-reports/amplify-e2e-failed-test.txt"

if [ -f $FAILED_TEST_REGEX_FILE ]; then
# read the content of failed tests
failedTests=$(<$FAILED_TEST_REGEX_FILE)
NODE_V8_COVERAGE=$E2E_TEST_COVERAGE_DIR yarn e2e --forceExit --no-cache --maxWorkers=4 $TEST_SUITE -t "$failedTests"
else
yarn run e2e --forceExit --no-cache --maxWorkers=4 $TEST_SUITE
NODE_V8_COVERAGE=$E2E_TEST_COVERAGE_DIR yarn e2e --forceExit --no-cache --maxWorkers=4 $TEST_SUITE
fi
}

function _setupCoverage {
_teardownCoverage
echo "Setup Coverage ($E2E_TEST_COVERAGE_DIR)"
if [ ! -d $E2E_TEST_COVERAGE_DIR ]
then
mkdir -p $E2E_TEST_COVERAGE_DIR
fi
}

function _teardownCoverage {
if [ -d $E2E_TEST_COVERAGE_DIR ]
then
echo "Teardown Coverage ($E2E_TEST_COVERAGE_DIR)"
rm -r $E2E_TEST_COVERAGE_DIR
fi
}

Expand Down
38 changes: 25 additions & 13 deletions .circleci/publish-codebuild.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
#!/bin/bash -e
export BRANCH_NAME="$(git symbolic-ref HEAD --short 2>/dev/null)"
if [ "$BRANCH_NAME" = "" ] ; then
BRANCH_NAME="$(git rev-parse HEAD | xargs git name-rev | cut -d' ' -f2 | sed 's/remotes\/origin\///g')";
fi
git checkout $BRANCH_NAME
echo "fetching tags"
git fetch --tags https://github.com/aws-amplify/amplify-cli

# lerna has a bug (https://github.com/lerna/lerna/issues/1066) where failed publishes do not set the exit code properly
# this causes the script to keep running even after failed publishes
# this function forces failed publishes to exit on failure
function lernaPublishExitOnFailure {
# exit on failure
set -e
if [[ "$LOCAL_PUBLISH_TO_LATEST" == "true" ]]; then
# registy URL update changes .yarnrc.yml file
git update-index --assume-unchanged .yarnrc.yml
fi

# run lerna publish with the args that were passed to this function
# duplicate stdout to a temp file
# grep the temp file for the lerna err token and return exit 1 if found (-v option inverts grep exit code)
Expand Down Expand Up @@ -34,13 +46,13 @@ else
git config --global user.name $GITHUB_USER
fi

if [[ "$CIRCLE_BRANCH" =~ ^tagged-release ]]; then
if [[ "$CIRCLE_BRANCH" =~ ^tagged-release-without-e2e-tests\/.* ]]; then
if [[ "$BRANCH_NAME" =~ ^tagged-release ]]; then
if [[ "$BRANCH_NAME" =~ ^tagged-release-without-e2e-tests\/.* ]]; then
# Remove tagged-release-without-e2e-tests/
export NPM_TAG="${CIRCLE_BRANCH/tagged-release-without-e2e-tests\//}"
elif [[ "$CIRCLE_BRANCH" =~ ^tagged-release\/.* ]]; then
export NPM_TAG="${BRANCH_NAME/tagged-release-without-e2e-tests\//}"
elif [[ "$BRANCH_NAME" =~ ^tagged-release\/.* ]]; then
# Remove tagged-release/
export NPM_TAG="${CIRCLE_BRANCH/tagged-release\//}"
export NPM_TAG="${BRANCH_NAME/tagged-release\//}"
fi
if [ -z "$NPM_TAG" ]; then
echo "Tag name is missing. Name your branch with either tagged-release/<tag-name> or tagged-release-without-e2e-tests/<tag-name>"
Expand All @@ -56,7 +68,7 @@ if [[ "$CIRCLE_BRANCH" =~ ^tagged-release ]]; then
fi

# @latest release
elif [[ "$CIRCLE_BRANCH" == "release" ]]; then
elif [[ "$BRANCH_NAME" == "release" ]]; then
# create release commit and release tags
npx lerna version --exact --conventional-commits --conventional-graduate --yes --no-push --include-merged-tags --message "chore(release): Publish latest [ci skip]"

Expand All @@ -70,7 +82,7 @@ elif [[ "$CIRCLE_BRANCH" == "release" ]]; then
fi

# push release commit
git push origin "$CIRCLE_BRANCH"
git push origin "$BRANCH_NAME"

# push release tags
git tag --points-at HEAD | xargs git push origin
Expand All @@ -88,33 +100,33 @@ elif [[ "$CIRCLE_BRANCH" == "release" ]]; then
git push origin hotfix

# release candidate or local publish for testing / building binary
elif [[ "$CIRCLE_BRANCH" =~ ^run-e2e-with-rc\/.* ]] || [[ "$CIRCLE_BRANCH" =~ ^release_rc\/.* ]] || [[ "$LOCAL_PUBLISH_TO_LATEST" == "true" ]]; then
elif [[ "$BRANCH_NAME" =~ ^run-e2e-with-rc\/.* ]] || [[ "$BRANCH_NAME" =~ ^release_rc\/.* ]] || [[ "$LOCAL_PUBLISH_TO_LATEST" == "true" ]]; then

# force @aws-amplify/cli-internal to be versioned in case this pipeline run does not have any commits that modify the CLI packages
if [[ "$LOCAL_PUBLISH_TO_LATEST" == "true" ]]; then
force_publish_local_args="--force-publish '@aws-amplify/cli-internal'"
fi
# create release commit and release tags
git checkout "${CODEBUILD_WEBHOOK_TRIGGER#branch/*}" && npx lerna version --preid=rc.$CODEBUILD_RESOLVED_SOURCE_VERSION --exact --conventional-prerelease --conventional-commits --yes --no-push --include-merged-tags --message "chore(release): Publish rc [ci skip]" $(echo $force_publish_local_args) --no-commit-hooks
npx lerna version --preid=rc.$(git rev-parse --short HEAD) --exact --conventional-prerelease --conventional-commits --yes --no-push --include-merged-tags --message "chore(release): Publish rc [ci skip]" $(echo $force_publish_local_args) --no-commit-hooks


# if publishing locally to verdaccio
if [[ "$LOCAL_PUBLISH_TO_LATEST" == "true" ]]; then
# publish to verdaccio with no dist tag (default to latest)
lernaPublishExitOnFailure from-package --git-head $CODEBUILD_RESOLVED_SOURCE_VERSION --yes --no-push
lernaPublishExitOnFailure from-git --yes --no-push
echo "Published packages to verdaccio"
echo "Exiting without pushing release commit or release tags"
exit 0
fi

# publish versions that were just computed
lernaPublishExitOnFailure from-package --git-head $CODEBUILD_RESOLVED_SOURCE_VERSION --yes --no-push --dist-tag rc
lernaPublishExitOnFailure from-git --yes --no-push --dist-tag rc

# push release commit
git push origin "${CODEBUILD_WEBHOOK_TRIGGER#branch/*}"
git push origin "$BRANCH_NAME"

# push release tags
git tag --points-at HEAD | xargs git push origin
else
echo "branch name" "${CODEBUILD_WEBHOOK_TRIGGER#branch/*}" "did not match any branch publish rules. Skipping publish"
echo "branch name" "$BRANCH_NAME" "did not match any branch publish rules. Skipping publish"
fi
6 changes: 6 additions & 0 deletions .circleci/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ function lernaPublishExitOnFailure {
# run lerna publish with the args that were passed to this function
# duplicate stdout to a temp file
# grep the temp file for the lerna err token and return exit 1 if found (-v option inverts grep exit code)

if [[ "$LOCAL_PUBLISH_TO_LATEST" == "true" ]]; then
# registy URL update changes .yarnrc.yml file
git update-index --assume-unchanged .yarnrc.yml
fi

npx lerna publish "$@" | tee /tmp/publish-results && grep -qvz "lerna ERR!" < /tmp/publish-results
}

Expand Down
6 changes: 3 additions & 3 deletions .circleci/scan_artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ export const hasMatchingContentInFolder = (patterns: string[], folder: string, e
return true;
} catch (e) {
// When there is no match exit code is set to 1
if (e.exitCode === 1) {
if ((e as { exitCode: number })?.exitCode === 1) {
return false;
}
if (e.message.includes('No such file or directory')) {
if ((e as { message: string })?.message?.includes('No such file or directory')) {
console.log('No artifacts found at:', folder);
return false;
}
Expand All @@ -30,7 +30,7 @@ export const hasMatchingContentInFolder = (patterns: string[], folder: string, e

const main = () => {
const envVarNameWithCredentialValues = (process.env.ENV_VAR_WITH_SECRETS || '').split(',').map((v) => v.trim());
const values = envVarNameWithCredentialValues.map((v) => process.env[v]).filter(Boolean);
const values = envVarNameWithCredentialValues.map((v) => process.env[v]).filter((item): item is string => !!item);
if (values.length) {
for (let folder of ARTIFACT_STORAGE_PATH_ALLOW_LIST) {
if (folder.startsWith('~/')) {
Expand Down
8 changes: 4 additions & 4 deletions .circleci/validate_cdk_version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { exec } from 'child_process';

// @aws-cdk/core indicates CDK v1.
exec('yarn why @aws-cdk/core', (err, stdout, stderr) => {
const cdkV1AbsenceIndicator = "We couldn't find a match";
if (stdout.toString().includes(cdkV1AbsenceIndicator) || stderr.toString().includes(cdkV1AbsenceIndicator)) {
console.log('Success! CDK V1 not found');
} else {
const cdkV1PresenceIndicator = '@aws-cdk/core';
if (stdout.toString().includes(cdkV1PresenceIndicator) || stderr.toString().includes(cdkV1PresenceIndicator)) {
console.log('Failure! Found CDK V1 references');
console.log(stdout.toString());
process.exit(1);
} else {
console.log('Success! CDK V1 not found');
}
});
4 changes: 2 additions & 2 deletions .eslint-dictionary.json
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@
"jsconfig",
"jsdoc",
"json2xml",
"junit",
"jwks",
"keyless",
"keyphrase",
Expand Down Expand Up @@ -431,6 +432,7 @@
"wildcard",
"winston",
"workspace",
"workspaces",
"writeable",
"xamznone",
"xcconfig",
Expand All @@ -439,8 +441,6 @@
"xray",
"yaml",
"yarnrc",
"ulid",
"urlencoded",
"yesno",
"yyyymmddhhmmss",
"zoneinfo"
Expand Down
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module.exports = {
},
},
rules: {
'@typescript-eslint/switch-exhaustiveness-check': 'error',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-misused-promises': 'error',
Expand Down
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.yarn/releases/** binary
/.yarn/plugins/** binary
/scripts/.yarn/releases/** binary
9 changes: 9 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# Amplify CLI Team owns the full repo by default.

* @aws-amplify/amplify-cli

# Add Data team folks focused on GQL transform/codegen to ownership for packages which will be migrated, in addition to the existing cli team.

/packages/amplify-graphiql-explorer @aws-amplify/amplify-cli @aws-amplify/amplify-data-buildtime
/packages/amplify-velocity-template @aws-amplify/amplify-cli @aws-amplify/amplify-data-buildtime

# Add folks focused on reviewing changes to CI/CD scripts/buildspecs

/.circleci/ @aws-amplify/amplify-cli-admins
/scripts/ @aws-amplify/amplify-cli-admins
/shared-scripts.sh @aws-amplify/amplify-cli-admins
/codebuild_specs/ @aws-amplify/amplify-cli-admins
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
.yarn/*
.bin/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
**/.DS_Store
.circleci/generated_config.yml
scripts/cci-job.data.json
scripts/cci-test.data.json
scripts/.yarn/*
artifacts/cci-workflow-results.json
artifacts/cci-workflow-results.html
build
Expand Down
8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,11 @@
},
"prettier.requireConfig": true,
"prettier.configPath": "./.prettierrc",
"prettier.prettierPath": "../node_modules/prettier"
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
},
"typescript.enablePromptUseWorkspaceTsdk": true,
"prettier.prettierPath": "../node_modules/prettier",
"jest.jestCommandLine": "./node_modules/.bin/jest"
}
9 changes: 9 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-typescript.cjs

Large diffs are not rendered by default.

Loading