Skip to content

Commit 5404dcf

Browse files
authored
chore(release): 1.84.0 (#4146)
2 parents fd4544d + fb3dae7 commit 5404dcf

File tree

50 files changed

+394
-470
lines changed

Some content is hidden

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

50 files changed

+394
-470
lines changed

.github/workflows/docker-images.yml

Lines changed: 11 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ jobs:
1818
id-token: write # Necessary for OIDC federation
1919
runs-on: ubuntu-latest
2020
strategy:
21+
fail-fast: false
2122
matrix:
22-
node: ['14', '16', '18']
23+
node: ['14', '16', '18', '20']
2324
env:
2425
# Node version whose images will be aliased without the -nodeXX segment
25-
DEFAULT_NODE_MAJOR_VERSION: 14
26+
DEFAULT_NODE_MAJOR_VERSION: 16
2627
steps:
2728
- name: Check out
2829
uses: actions/checkout@v3
@@ -33,25 +34,25 @@ jobs:
3334
run: |-
3435
if [ "${{ github.event_name }}" = "push" ]; then
3536
echo '⏯ Triggered by "push" event'
36-
echo "::set-output name=result::true"
37+
echo "result=true" >> $GITHUB_OUTPUT
3738
elif [ "${{ github.base_ref }}" = "release" ]; then
3839
echo '⏯ Triggered by "pull_request" event against "release"'
39-
echo "::set-output name=result::true"
40+
echo "result=true" >> $GITHUB_OUTPUT
4041
else
4142
# Fetch the base and head refs from origin so we can safely diff 'em
4243
git fetch --depth=1 --quiet origin ${{ github.base_ref }}
4344
# Otherwise, only run if the Dockerfile changed
4445
changed=$(git diff --name-only origin/${{ github.base_ref }}..HEAD)
4546
if grep Dockerfile <<< "${changed}" ; then
4647
echo '⏯ Dockerfile changed'
47-
echo "::set-output name=result::true"
48+
echo "result=true" >> $GITHUB_OUTPUT
4849
else
4950
if grep '.github/workflows/docker-images.yml' <<< "${changed}" ; then
5051
echo '⏯ docker-images workflow changed'
51-
echo "::set-output name=result::true"
52+
echo "result=true" >> $GITHUB_OUTPUT
5253
else
5354
echo '⏭ Dockerfile not changed'
54-
echo "::set-output name=result::false"
55+
echo "result=false" >> $GITHUB_OUTPUT
5556
fi
5657
fi
5758
fi
@@ -65,10 +66,10 @@ jobs:
6566
run: |-
6667
if [[ "${{ secrets.AWS_ROLE_TO_ASSUME }}" != "" ]]; then
6768
echo "🔑 Federation into AWS is possible (AWS_ROLE_TO_ASSUME is available)"
68-
echo "::set-output name=enabled::true"
69+
echo "enabled=true" >> $GITHUB_OUTPUT
6970
else
7071
echo "❌ Federation into AWS is disabled (no AWS_ROLE_TO_ASSUME secret found)"
71-
echo "::set-output name=enabled::false"
72+
echo "enabled=false" >> $GITHUB_OUTPUT
7273
fi
7374
7475
# Federate into the PR Validation AWS Account
@@ -114,17 +115,6 @@ jobs:
114115
[worker.oci]
115116
max-parallelism = 1
116117
117-
# We only restore GH cache if we are not going to publish the result (i.e: PR validation)
118-
- name: Set up layer cache
119-
if: steps.should-run.outputs.result == 'true' && github.event_name != 'push'
120-
uses: actions/cache@v3
121-
with:
122-
path: /tmp/.buildx-cache
123-
key: ${{ runner.os }}-buildx-${{ hashFiles('superchain/*') }}-${{ github.sha }}
124-
restore-keys: |-
125-
${{ runner.os }}-buildx-${{ hashFiles('superchain/*') }}-
126-
${{ runner.os }}-buildx-
127-
128118
# 1 pull per second from ECR Public
129119
- name: Jitter the start time to avoid ECR Public throttling
130120
id: sleep-start
@@ -136,7 +126,7 @@ jobs:
136126
id: build-time
137127
if: steps.should-run.outputs.result == 'true'
138128
run: |-
139-
echo "::set-output name=value::$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
129+
echo "value=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
140130
141131
- name: Build Image
142132
if: steps.should-run.outputs.result == 'true'
@@ -145,8 +135,6 @@ jobs:
145135
--builder ${{ steps.buildx.outputs.name }} \
146136
--platform linux/amd64,linux/arm64 \
147137
--target superchain \
148-
--cache-from type=local,src=/tmp/.buildx-cache \
149-
--cache-to type=local,dest=/tmp/.buildx-cache-out \
150138
--pull \
151139
--build-arg BUILD_TIMESTAMP="${{ steps.build-time.outputs.value }}" \
152140
--build-arg COMMIT_ID='${{ github.sha }}' \
@@ -161,8 +149,6 @@ jobs:
161149
--builder ${{ steps.buildx.outputs.name }} \
162150
--platform linux/amd64,linux/arm64 \
163151
--target superchain \
164-
--cache-from type=local,src=/tmp/.buildx-cache \
165-
--cache-to type=local,dest=/tmp/.buildx-cache \
166152
--build-arg BUILD_TIMESTAMP="${{ steps.build-time.outputs.value }}" \
167153
--build-arg COMMIT_ID='${{ github.sha }}' \
168154
--build-arg NODE_MAJOR_VERSION=${{ matrix.node }} \
@@ -194,8 +180,6 @@ jobs:
194180
--builder ${{ steps.buildx.outputs.name }} \
195181
--platform linux/amd64,linux/arm64 \
196182
--target superchain \
197-
--cache-from type=local,src=/tmp/.buildx-cache \
198-
--cache-to type=local,dest=/tmp/.buildx-cache \
199183
--push \
200184
--build-arg BUILD_TIMESTAMP="${{ steps.build-time.outputs.value }}" \
201185
--build-arg COMMIT_ID='${{ github.sha }}' \
@@ -211,8 +195,6 @@ jobs:
211195
--builder ${{ steps.buildx.outputs.name }} \
212196
--platform linux/amd64,linux/arm64 \
213197
--target superchain \
214-
--cache-from type=local,src=/tmp/.buildx-cache \
215-
--cache-to type=local,dest=/tmp/.buildx-cache \
216198
--push \
217199
--build-arg BUILD_TIMESTAMP="${{ steps.build-time.outputs.value }}" \
218200
--build-arg COMMIT_ID='${{ github.sha }}' \
@@ -233,8 +215,6 @@ jobs:
233215
--builder ${{ steps.buildx.outputs.name }} \
234216
--platform linux/amd64,linux/arm64 \
235217
--target superchain \
236-
--cache-from type=local,src=/tmp/.buildx-cache \
237-
--cache-to type=local,dest=/tmp/.buildx-cache \
238218
--push \
239219
--build-arg BUILD_TIMESTAMP="${{ steps.build-time.outputs.value }}" \
240220
--build-arg COMMIT_ID='${{ github.sha }}' \
@@ -250,8 +230,6 @@ jobs:
250230
--builder ${{ steps.buildx.outputs.name }} \
251231
--platform linux/amd64,linux/arm64 \
252232
--target superchain \
253-
--cache-from type=local,src=/tmp/.buildx-cache \
254-
--cache-to type=local,dest=/tmp/.buildx-cache \
255233
--push \
256234
--build-arg BUILD_TIMESTAMP="${{ steps.build-time.outputs.value }}" \
257235
--build-arg COMMIT_ID='${{ github.sha }}' \
@@ -261,10 +239,3 @@ jobs:
261239
-f superchain/Dockerfile \
262240
.
263241
fi
264-
265-
# Replace the cache so it does not grow forever (should always be last!)
266-
- name: Update layer cache
267-
if: always() && steps.should-run.outputs.result == 'true'
268-
run: |-
269-
rm -rf /tmp/.buildx-cache
270-
mv /tmp/.buildx-cache-out /tmp/.buildx-cache

.github/workflows/main.yml

Lines changed: 41 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ jobs:
4141
with:
4242
distribution: 'zulu'
4343
java-version: '8'
44-
- name: Set up Node 14
44+
- name: Set up Node 16
4545
uses: actions/setup-node@v3
4646
with:
4747
cache: yarn
48-
node-version: '14'
48+
node-version: '16'
4949
- name: Set up Python 3.7
5050
uses: actions/setup-python@v4
5151
with:
@@ -124,11 +124,11 @@ jobs:
124124
with:
125125
distribution: 'zulu'
126126
java-version: '8'
127-
- name: Set up Node 14
127+
- name: Set up Node 16
128128
uses: actions/setup-node@v3
129129
with:
130130
cache: yarn
131-
node-version: '14'
131+
node-version: '16'
132132
- name: Set up Python 3.7
133133
uses: actions/setup-python@v4
134134
with:
@@ -194,7 +194,7 @@ jobs:
194194
dotnet: ['6.0.x']
195195
go: ['1.18']
196196
java: ['8']
197-
node: ['14'] # EOL 2023-04-30
197+
node: ['16'] # EOL 2023-09-11
198198
os: [ubuntu-latest]
199199
python: ['3.7']
200200
# Add specific combinations to be tested against "node 14" (to restrict cardinality)
@@ -205,15 +205,15 @@ jobs:
205205
dotnet: '6.0.x'
206206
go: '1.18'
207207
java: '8'
208-
node: '14'
208+
node: '16'
209209
python: '3.7'
210210
# Test using macOS
211211
- title: 'macOS'
212212
os: macos-latest
213213
dotnet: '6.0.x'
214214
go: '1.18'
215215
java: '8'
216-
node: '14'
216+
node: '16'
217217
python: '3.7'
218218
# Test alternate Nodes
219219
- title: 'Node 16'
@@ -230,35 +230,35 @@ jobs:
230230
node: '18' # EOL 2025-04-30
231231
os: ubuntu-latest
232232
python: '3.7'
233-
- title: 'Node 19'
233+
- title: 'Node 20'
234234
java: '8'
235235
dotnet: '6.0.x'
236236
go: '1.18'
237-
node: '19' # EOL 2023-06-01
237+
node: '20' # EOL 2026-04-30
238238
os: ubuntu-latest
239239
python: '3.7'
240240
# Test alternate .NETs
241241
- title: '.NET 7.0'
242242
java: '8'
243243
dotnet: '7.0.x'
244244
go: '1.18'
245-
node: '14'
245+
node: '16'
246246
os: ubuntu-latest
247247
python: '3.7'
248248
# Test alternate Gos
249249
- title: 'Go 1.19'
250250
java: '8'
251251
dotnet: '6.0.x'
252252
go: '1.19'
253-
node: '14'
253+
node: '16'
254254
os: ubuntu-latest
255255
python: '3.7'
256256
# Test alternate Javas
257257
- title: 'Java 11'
258258
java: '11'
259259
dotnet: '6.0.x'
260260
go: '1.18'
261-
node: '14'
261+
node: '16'
262262
os: ubuntu-latest
263263
python: '3.7'
264264
# Test alternate Pythons
@@ -267,28 +267,28 @@ jobs:
267267
dotnet: '6.0.x'
268268
go: '1.18'
269269
java: '8'
270-
node: '14'
270+
node: '16'
271271
os: ubuntu-latest
272272
- title: 'Python 3.9'
273273
python: '3.9'
274274
dotnet: '6.0.x'
275275
go: '1.18'
276276
java: '8'
277-
node: '14'
277+
node: '16'
278278
os: ubuntu-latest
279279
- title: 'Python 3.10'
280280
python: '3.10'
281281
dotnet: '6.0.x'
282282
go: '1.18'
283283
java: '8'
284-
node: '14'
284+
node: '16'
285285
os: ubuntu-latest
286286
- title: 'Python 3.11'
287287
python: '3.11'
288288
dotnet: '6.0.x'
289289
go: '1.18'
290290
java: '8'
291-
node: '14'
291+
node: '16'
292292
os: ubuntu-latest
293293

294294
runs-on: ${{ matrix.os }}
@@ -365,6 +365,16 @@ jobs:
365365
&& echo "Untracked files: ${untracked:-<none>}" \
366366
&& test -z "${untracked}"
367367
shell: bash
368+
369+
test-ok:
370+
name: Unit Tests
371+
runs-on: ubuntu-latest
372+
needs: test
373+
steps:
374+
- name: OK
375+
# This is just a join target to simplify branch protection setup
376+
run: echo OK
377+
368378
benchmark:
369379
name: Run benchmark suite
370380
runs-on: ubuntu-latest
@@ -427,27 +437,27 @@ jobs:
427437
name: release-package
428438
path: ${{ runner.temp }}/release-package
429439
# Set up all of our standard runtimes
430-
- name: Set up .NET 6
440+
- name: Set up .NET 7
431441
uses: actions/setup-dotnet@v3
432442
with:
433-
dotnet-version: '6.0.x'
434-
- name: Set up Go 1.18
443+
dotnet-version: '7.0.x'
444+
- name: Set up Go 1.20
435445
uses: actions/setup-go@v4
436446
with:
437-
go-version: '1.18'
438-
- name: Set up Java 8
447+
go-version: '1.20'
448+
- name: Set up Java 20
439449
uses: actions/setup-java@v3
440450
with:
441-
distribution: 'zulu'
442-
java-version: '8'
443-
- name: Set up Node 14
451+
distribution: 'corretto'
452+
java-version: '20'
453+
- name: Set up Node 20
444454
uses: actions/setup-node@v3
445455
with:
446-
node-version: '14'
447-
- name: Set up Python 3.7
456+
node-version: '20'
457+
- name: Set up Python 3.11
448458
uses: actions/setup-python@v4
449459
with:
450-
python-version: '3.7'
460+
python-version: '3.11'
451461
- name: Install python3-venv
452462
run: sudo apt install -y python3-venv
453463
# Show time!
@@ -457,8 +467,11 @@ jobs:
457467
${{ runner.temp }}/release-package/js/*.tgz \
458468
${{ runner.temp }}/release-package/private/*.tgz
459469
- name: Run jsii-pacmak on aws-cdk-lib
470+
env:
471+
NODE_OPTIONS: --max-old-space-size=6144
472+
# We run with --no-parallel to avoid running out of memory...
460473
run: |-
461-
./node_modules/.bin/jsii-pacmak ./node_modules/aws-cdk-lib
474+
./node_modules/.bin/jsii-pacmak --no-parallel ./node_modules/aws-cdk-lib
462475
# Upload artifact (we'll tar it up to save time)
463476
- name: 'Upload Artifact: integtest_aws-cdk-lib'
464477
uses: actions/upload-artifact@v3

.github/workflows/yarn-upgrade.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ jobs:
3131
id: monorepo-packages
3232
# These need to be ignored from the `ncu` runs!
3333
run: |-
34-
echo -n "::set-output name=list::"
35-
node -p "$(lerna ls --all --json 2>/dev/null).map(item => item.name).join(',')"
34+
echo -n "list=" >> $GITHUB_OUTPUT
35+
node -p "$(lerna ls --all --json 2>/dev/null).map(item => item.name).join(',')" >> $GITHUB_OUTPUT
3636
3737
- name: Identify production dependencies
3838
id: production-dependencies
3939
# These should be limited to `--target=minor` in the `ncu` run
4040
# We assume repository-root has no production dependencies (it shouldn't have any!)
4141
# We always consider @types/node to be a production dependency (it must relate to our minimum supported engine)
4242
run: |-
43-
echo -n "::set-output name=list::"
44-
node -p <<-EOF
43+
echo -n "list=" >> $GITHUB_OUTPUT
44+
node -p <<-EOF >> $GITHUB_OUTPUT
4545
const path = require('path');
4646
4747
const prodDependencies = new Set(['@types/node']);

0 commit comments

Comments
 (0)