Skip to content

Commit a6fcbcf

Browse files
committed
Merge branch 'main' into e2e/vigy/clear-env-issue
2 parents 2b312c4 + 7f2f68b commit a6fcbcf

File tree

207 files changed

+8316
-2847
lines changed

Some content is hidden

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

207 files changed

+8316
-2847
lines changed

.changeset/early-starfishes-impress.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/eleven-numbers-hide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@aws-amplify/backend-deployer': patch
3+
---
4+
5+
Handle errors when checking CDK bootstrap.

.changeset/modern-toys-jump.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.eslint_dictionary.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"birthdate",
2020
"bundler",
2121
"callee",
22+
"cartesian",
2223
"cdk",
2324
"changelog",
2425
"changeset",
@@ -39,6 +40,7 @@
3940
"datasync",
4041
"debounce",
4142
"declarator",
43+
"decrypt",
4244
"deployer",
4345
"deprecations",
4446
"deprecator",
@@ -79,6 +81,7 @@
7981
"idps",
8082
"implementors",
8183
"inheritdoc",
84+
"instanceof",
8285
"interop",
8386
"invokable",
8487
"invoker",
@@ -145,6 +148,7 @@
145148
"sigint",
146149
"signout",
147150
"signup",
151+
"SKey",
148152
"sms",
149153
"stderr",
150154
"stdin",
@@ -158,6 +162,7 @@
158162
"synthing",
159163
"testname",
160164
"testnamebucket",
165+
"testuser",
161166
"timestamps",
162167
"tmpdir",
163168
"todos",
@@ -170,6 +175,7 @@
170175
"tslint",
171176
"typename",
172177
"typeof",
178+
"ubuntu",
173179
"unauth",
174180
"unix",
175181
"unlink",
@@ -188,6 +194,7 @@
188194
"wildcards",
189195
"workspace",
190196
"writev",
197+
"xlarge",
191198
"yaml",
192199
"yargs",
193200
"zoneinfo"

.eslintrc.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ module.exports = {
160160
},
161161
],
162162
'jsdoc/require-param': 'off',
163+
'jsdoc/require-yields': 'off',
163164
'jsdoc/require-returns': 'off',
164165
'spellcheck/spell-checker': [
165166
'warn',

.github/actions/setup_node/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,10 @@ runs:
1212
with:
1313
node-version: ${{ inputs.node-version }}
1414
cache: 'npm'
15+
- name: Hydrate npx cache
16+
# This step hydrates npx cache with packages that we use in builds and tests upfront.
17+
# Otherwise, concurrent attempt to use these tools with cache miss results in race conditions between
18+
# two installations. That may result in corrupted npx cache.
19+
shell: bash
20+
run: |
21+
npx which npx

.github/workflows/health_checks.yml

Lines changed: 47 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -206,25 +206,34 @@ jobs:
206206
run: npm run test:dir packages/integration-tests/lib/test-e2e/amplify_outputs_backwards_compatibility.test.js
207207
env:
208208
BASELINE_DIR: ${{ steps.setup_baseline_version.outputs.baseline_dir }}
209+
e2e_generate_deployment_tests_matrix:
210+
if: needs.do_include_e2e.outputs.run_e2e == 'true'
211+
runs-on: ubuntu-latest
212+
outputs:
213+
matrix: ${{ steps.generateMatrix.outputs.matrix }}
214+
timeout-minutes: 5
215+
needs:
216+
- do_include_e2e
217+
- build
218+
steps:
219+
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # version 4.1.4
220+
- uses: ./.github/actions/restore_build_cache
221+
- run: echo "$(npx tsx scripts/generate_sparse_test_matrix.ts 'packages/integration-tests/lib/test-e2e/deployment/*.deployment.test.js')"
222+
- id: generateMatrix
223+
run: echo "matrix=$(npx tsx scripts/generate_sparse_test_matrix.ts 'packages/integration-tests/lib/test-e2e/deployment/*.deployment.test.js')" >> "$GITHUB_OUTPUT"
209224
e2e_deployment:
210225
if: needs.do_include_e2e.outputs.run_e2e == 'true'
211226
strategy:
212227
# will finish running other test matrices even if one fails
213228
fail-fast: false
214-
matrix:
215-
os: [ubuntu-latest, macos-14-xlarge, windows-latest]
216-
node-version: [18, 20]
217-
# skip multiple node version test on other os
218-
exclude:
219-
- os: macos-14-xlarge
220-
node-version: 20
221-
- os: windows-latest
222-
node-version: 20
229+
matrix: ${{ fromJson(needs.e2e_generate_deployment_tests_matrix.outputs.matrix) }}
223230
runs-on: ${{ matrix.os }}
231+
name: e2e_deployment ${{ matrix.displayNames }} ${{ matrix.node-version }} ${{ matrix.os }}
224232
timeout-minutes: ${{ matrix.os == 'windows-latest' && 35 || 25 }}
225233
needs:
226234
- do_include_e2e
227235
- build
236+
- e2e_generate_deployment_tests_matrix
228237
permissions:
229238
# these permissions are required for the configure-aws-credentials action to get a JWT from GitHub
230239
id-token: write
@@ -238,26 +247,35 @@ jobs:
238247
node_version: ${{ matrix.node-version }}
239248
link_cli: true
240249
run: |
241-
npm run test:dir packages/integration-tests/lib/test-e2e/deployment.test.js
250+
npm run test:dir ${{ matrix.testPaths }}
251+
e2e_generate_sandbox_tests_matrix:
252+
if: needs.do_include_e2e.outputs.run_e2e == 'true'
253+
runs-on: ubuntu-latest
254+
outputs:
255+
matrix: ${{ steps.generateMatrix.outputs.matrix }}
256+
timeout-minutes: 5
257+
needs:
258+
- do_include_e2e
259+
- build
260+
steps:
261+
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # version 4.1.4
262+
- uses: ./.github/actions/restore_build_cache
263+
- run: echo "$(npx tsx scripts/generate_sparse_test_matrix.ts 'packages/integration-tests/lib/test-e2e/sandbox/*.sandbox.test.js')"
264+
- id: generateMatrix
265+
run: echo "matrix=$(npx tsx scripts/generate_sparse_test_matrix.ts 'packages/integration-tests/lib/test-e2e/sandbox/*.sandbox.test.js')" >> "$GITHUB_OUTPUT"
242266
e2e_sandbox:
243267
if: needs.do_include_e2e.outputs.run_e2e == 'true'
244268
strategy:
245269
# will finish running other test matrices even if one fails
246270
fail-fast: false
247-
matrix:
248-
os: [ubuntu-latest, macos-14-xlarge, windows-latest]
249-
node-version: [18, 20]
250-
# skip multiple node version test on other os
251-
exclude:
252-
- os: macos-14-xlarge
253-
node-version: 20
254-
- os: windows-latest
255-
node-version: 20
271+
matrix: ${{ fromJson(needs.e2e_generate_sandbox_tests_matrix.outputs.matrix) }}
256272
runs-on: ${{ matrix.os }}
273+
name: e2e_sandbox ${{ matrix.displayNames }} ${{ matrix.node-version }} ${{ matrix.os }}
257274
timeout-minutes: ${{ matrix.os == 'windows-latest' && 35 || 25 }}
258275
needs:
259276
- do_include_e2e
260277
- build
278+
- e2e_generate_sandbox_tests_matrix
261279
permissions:
262280
# these permissions are required for the configure-aws-credentials action to get a JWT from GitHub
263281
id-token: write
@@ -270,7 +288,7 @@ jobs:
270288
e2e_test_accounts: ${{ vars.E2E_TEST_ACCOUNTS }}
271289
node_version: ${{ matrix.node-version }}
272290
link_cli: true
273-
run: npm run test:dir packages/integration-tests/lib/test-e2e/sandbox.test.js
291+
run: npm run test:dir ${{ matrix.testPaths }}
274292
e2e_backend_output:
275293
if: needs.do_include_e2e.outputs.run_e2e == 'true'
276294
runs-on: ubuntu-latest
@@ -411,7 +429,9 @@ jobs:
411429
- uses: ./.github/actions/setup_node
412430
- uses: ./.github/actions/restore_install_cache
413431
- run: git fetch origin
414-
- run: npm run diff:check ${{ github.event.pull_request.base.sha }}
432+
- run: npm run diff:check "$BASE_SHA"
433+
env:
434+
BASE_SHA: ${{ github.event.pull_request.base.sha }}
415435
check_pr_changesets:
416436
if: github.event_name == 'pull_request' && github.event.pull_request.user.login != 'github-actions[bot]'
417437
runs-on: ubuntu-latest
@@ -425,9 +445,13 @@ jobs:
425445
- uses: ./.github/actions/setup_node
426446
- uses: ./.github/actions/restore_install_cache
427447
- name: Validate that PR has changeset
428-
run: npx changeset status --since origin/${{ github.event.pull_request.base.ref }}
448+
run: npx changeset status --since origin/"$BASE_REF"
449+
env:
450+
BASE_REF: ${{ github.event.pull_request.base.ref }}
429451
- name: Validate changeset is not missing packages
430-
run: npx tsx scripts/check_changeset_completeness.ts ${{ github.event.pull_request.base.sha }}
452+
run: npx tsx scripts/check_changeset_completeness.ts "$BASE_SHA"
453+
env:
454+
BASE_SHA: ${{ github.event.pull_request.base.sha }}
431455
- name: Validate that changeset has necessary dependency updates
432456
run: |
433457
npx changeset version

0 commit comments

Comments
 (0)