Skip to content

Commit f8ba112

Browse files
authored
chore(release): 1.58.0 (#3525)
2 parents f614666 + fb6ff81 commit f8ba112

File tree

90 files changed

+1921
-816
lines changed

Some content is hidden

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

90 files changed

+1921
-816
lines changed

.all-contributorsrc

+18
Original file line numberDiff line numberDiff line change
@@ -1366,6 +1366,24 @@
13661366
"contributions": [
13671367
"doc"
13681368
]
1369+
},
1370+
{
1371+
"login": "nathannaveen",
1372+
"name": "nathannaveen",
1373+
"avatar_url": "https://avatars.githubusercontent.com/u/42319948?v=4",
1374+
"profile": "https://github.com/nathannaveen",
1375+
"contributions": [
1376+
"maintenance"
1377+
]
1378+
},
1379+
{
1380+
"login": "jusdino",
1381+
"name": "Justin Frahm",
1382+
"avatar_url": "https://avatars.githubusercontent.com/u/11840575?v=4",
1383+
"profile": "https://github.com/jusdino",
1384+
"contributions": [
1385+
"bug"
1386+
]
13691387
}
13701388
],
13711389
"repoType": "github",

.devcontainer.json

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
{
2-
"name": "Dev Container Definition - AWS JSII",
2+
"name": "Dev Container - aws/jsii",
33
"build": {
44
"dockerfile": "superchain/Dockerfile",
55
"context": ".",
66
"target": "superchain",
77
"args": {
8-
"BUILDPLATFORM": "linux/amd64",
9-
"TARGETPLATFORM": "linux/amd64",
108
"BUILD_TIMESTAMP": "unknown",
9+
"COMMIT_ID": "HEAD",
1110
"REGISTRY": "docker.io/library",
12-
"COMMIT_ID": "head"
13-
}
11+
},
1412
},
15-
"containerUser": "root",
16-
"remoteUser": "root",
13+
"containerUser": "superchain",
14+
"remoteUser": "superchain",
1715
"postCreateCommand": "yarn install && yarn build",
1816
"extensions": [
19-
20-
]
17+
18+
],
2119
}

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@
1515
# Github Linguist configuration (https://github.com/github/linguist)
1616
yarn.lock linguist-generated
1717
*.snap linguist-generated
18+
packages/@jsii/benchmarks/fixtures/** linguist-vendored
1819
docs/** linguist-documentation

.github/semantic.yml

-16
This file was deleted.

.github/workflows/docker-images.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
runs-on: ubuntu-latest
1919
strategy:
2020
matrix:
21-
node: ['12', '14', '16']
21+
node: ['12', '14', '16', '18']
2222
env:
2323
# Node version whose images will be aliased without the -nodeXX segment
24-
DEFAULT_NODE_MAJOR_VERSION: 12
24+
DEFAULT_NODE_MAJOR_VERSION: 14
2525
steps:
2626
- name: Check out
2727
uses: actions/checkout@v3

.github/workflows/gh-pages.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
git config user.email "[email protected]"
7474
- name: Prepare Commit
7575
run: |-
76-
rsync --delete --exclude=.git --recursive ${{ runner.temp }}/site/ ./
76+
rsync --delete --exclude=.git --exclude=dev --recursive ${{ runner.temp }}/site/ ./
7777
touch .nojekyll
7878
git add .
7979
git diff --cached --exit-code >/dev/null || (

.github/workflows/main.yml

+73-18
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ jobs:
4545
with:
4646
cache: yarn
4747
node-version: '12'
48-
- name: Set up Python 3.6
48+
- name: Set up Python 3.7
4949
uses: actions/setup-python@v3
5050
with:
51-
python-version: '3.6'
51+
python-version: '3.7'
5252
- name: Install python3-venv
5353
run: sudo apt install -y python3-venv
5454
- name: Locate Caches
@@ -69,9 +69,9 @@ jobs:
6969
!~/.m2/repository/software/amazon/jsii/
7070
~/.nuget/packages
7171
!~/.nuget/packages/amazon.jsii.*
72-
key: ${{ runner.os }}-node@12-python@3.6-${{ hashFiles('**/yarn.lock', '**/Directory.Build.targets') }}
72+
key: ${{ runner.os }}-node@12-python@3.7-${{ hashFiles('**/yarn.lock', '**/Directory.Build.targets') }}
7373
restore-keys: |-
74-
${{ runner.os }}-node@12-python@3.6-
74+
${{ runner.os }}-node@12-python@3.7-
7575
${{ runner.os }}-node@12-
7676
${{ runner.os }}-
7777
# Prepare dependencies and build
@@ -139,10 +139,10 @@ jobs:
139139
with:
140140
cache: yarn
141141
node-version: '12'
142-
- name: Set up Python 3.6
142+
- name: Set up Python 3.7
143143
uses: actions/setup-python@v3
144144
with:
145-
python-version: '3.6'
145+
python-version: '3.7'
146146
- name: Install python3-venv
147147
run: sudo apt install -y python3-venv
148148
- name: Locate Caches
@@ -163,9 +163,9 @@ jobs:
163163
!~/.m2/repository/software/amazon/jsii/
164164
~/.nuget/packages
165165
!~/.nuget/packages/amazon.jsii.*
166-
key: ${{ runner.os }}-node@12-python@3.6-${{ hashFiles('**/yarn.lock', '**/Directory.Build.targets') }}
166+
key: ${{ runner.os }}-node@12-python@3.7-${{ hashFiles('**/yarn.lock', '**/Directory.Build.targets') }}
167167
restore-keys: |-
168-
${{ runner.os }}-node@12-python@3.6-
168+
${{ runner.os }}-node@12-python@3.7-
169169
${{ runner.os }}-node@12-
170170
${{ runner.os }}-
171171
# Prepare dependencies and build
@@ -204,6 +204,8 @@ jobs:
204204
path: ${{ github.workspace }}/dist/
205205

206206
test:
207+
permissions:
208+
contents: none
207209
name: Test (${{ matrix.os }} / dotnet ${{ matrix.dotnet }} / java ${{ matrix.java }} / node ${{ matrix.node }} / python ${{ matrix.python }})
208210
needs: build
209211
strategy:
@@ -213,9 +215,14 @@ jobs:
213215
dotnet: ['3.1.x']
214216
go: ['1.16']
215217
java: ['8']
216-
node: ['12', '14', '16', '17']
218+
node:
219+
- '12' # EOL 2022-04-30
220+
- '14' # EOL 2023-04-30
221+
- '16' # EOL 2024-04-30
222+
- '17' # EOL 2022-06-01
223+
- '18' # EOL 2025-04-30
217224
os: [ubuntu-latest]
218-
python: ['3.6']
225+
python: ['3.7']
219226
# Add specific combinations to be tested against "node 12" (to restrict cardinality)
220227
include:
221228
# Test using Windows
@@ -224,48 +231,48 @@ jobs:
224231
go: '1.16'
225232
java: '8'
226233
node: '12'
227-
python: '3.6'
234+
python: '3.7'
228235
# Test using macOS
229236
- os: macos-latest
230237
dotnet: '3.1.x'
231238
go: '1.16'
232239
java: '8'
233240
node: '12'
234-
python: '3.6'
241+
python: '3.7'
235242
# Test alternate .NETs
236243
- java: '8'
237244
dotnet: '5.0.x'
238245
go: '1.16'
239246
node: '12'
240247
os: ubuntu-latest
241-
python: '3.6'
248+
python: '3.7'
242249
- java: '8'
243250
dotnet: '6.0.x'
244251
go: '1.16'
245252
node: '12'
246253
os: ubuntu-latest
247-
python: '3.6'
254+
python: '3.7'
248255
# Test alternate Javas
249256
- java: '11'
250257
dotnet: '3.1.x'
251258
go: '1.16'
252259
node: '12'
253260
os: ubuntu-latest
254-
python: '3.6'
261+
python: '3.7'
255262
# Test alternate Pythons
256-
- python: '3.7'
263+
- python: '3.8'
257264
dotnet: '3.1.x'
258265
go: '1.16'
259266
java: '8'
260267
node: '12'
261268
os: ubuntu-latest
262-
- python: '3.8'
269+
- python: '3.9'
263270
dotnet: '3.1.x'
264271
go: '1.16'
265272
java: '8'
266273
node: '12'
267274
os: ubuntu-latest
268-
- python: '3.9'
275+
- python: '3.10'
269276
dotnet: '3.1.x'
270277
go: '1.16'
271278
java: '8'
@@ -358,3 +365,51 @@ jobs:
358365
&& echo "Untracked files: ${untracked:-<none>}" \
359366
&& test -z "${untracked}"
360367
shell: bash
368+
benchmark:
369+
name: Run benchmark suite
370+
runs-on: ubuntu-latest
371+
permissions:
372+
contents: write
373+
needs: build
374+
steps:
375+
# Check out the code
376+
- name: Download Artifact
377+
uses: actions/download-artifact@v3
378+
with:
379+
name: built-tree
380+
- name: Extract Artifact
381+
run: |-
382+
echo "::group::Untar Archive"
383+
tar zxvf built-tree.tgz
384+
echo "::endgroup"
385+
386+
rm built-tree.tgz
387+
- name: Set up Node
388+
uses: actions/setup-node@v3
389+
with:
390+
cache: yarn
391+
node-version: '14'
392+
- name: Install Dependencies
393+
run: yarn install --frozen-lockfile
394+
- name: Run Benchmark
395+
working-directory: packages/@jsii/benchmarks
396+
run: yarn bench --output ${{ runner.temp }}/bench-output.json
397+
- name: Compare Benchmark Results
398+
if: github.event_name == 'pull_request'
399+
uses: benchmark-action/github-action-benchmark@v1
400+
with:
401+
name: jsii Benchmark Regression
402+
tool: 'customSmallerIsBetter'
403+
output-file-path: ${{ runner.temp }}/bench-output.json
404+
comment-always: true
405+
github-token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
406+
fail-on-alert: true
407+
- name: Upload Benchmark Results
408+
if: github.event_name == 'push'
409+
uses: benchmark-action/github-action-benchmark@v1
410+
with:
411+
name: jsii Benchmark
412+
tool: 'customSmallerIsBetter'
413+
output-file-path: ${{ runner.temp }}/bench-output.json
414+
github-token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
415+
auto-push: true
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: pull-request-lint
2+
on:
3+
pull_request_target:
4+
types:
5+
- labeled
6+
- opened
7+
- synchronize
8+
- reopened
9+
- ready_for_review
10+
- edited
11+
jobs:
12+
validate:
13+
name: Validate PR Title
14+
runs-on: ubuntu-latest
15+
permissions:
16+
pull-requests: write
17+
steps:
18+
- uses: amannn/action-semantic-pull-request@v4
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
with:
22+
types: |-
23+
feat
24+
fix
25+
chore
26+
docs
27+
style
28+
refactor
29+
perf
30+
test
31+
build
32+
ci
33+
revert
34+
requireScope: false

0 commit comments

Comments
 (0)