Skip to content

Commit 11ed8dd

Browse files
authored
Merge branch 'main' into fix/stepfunction-allversion-permission
2 parents f196ce7 + 9684d50 commit 11ed8dd

File tree

527 files changed

+112648
-1990
lines changed

Some content is hidden

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

527 files changed

+112648
-1990
lines changed

.github/workflows/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ Owner: CDK support team
9292
patch file for downloading.
9393
Owner: Core CDK team
9494

95+
### Yarn Upgrader for deps needing manual work
96+
97+
[yarn-upgrade-need-manual-work.yml](yarn-upgrade-need-manual-work.yml): Upgrades specific dependencies that require manual intervention and creates a PR for review.
98+
For example, some dependency upgrades require manual updates to the integ test snapshots.
99+
Owner: Core CDK team
100+
95101
### AWS Service Spec Update
96102

97103
[spec-update.yml](spec-update.yml): Updates AWS Service Spec and related packages to their latest versions

.github/workflows/pr-linter-exemption-labeler.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ jobs:
1010
pr_commented:
1111
name: PR Comment
1212
if: ${{ (github.event.issue.pull_request) && (github.event.issue.state == 'open') }}
13+
permissions:
14+
pull-requests: write
1315
runs-on: ubuntu-latest
1416
steps:
1517
- uses: cdklabs/pr-linter-exemption-labeler@main
1618
with:
17-
github-token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
19+
github-token: ${{ secrets.PROJEN_GITHUB_TOKEN }}

.github/workflows/request-cli-integ-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
persist-credentials: false
2020
- name: Find changed cli files
2121
id: changed-cli-files
22-
uses: step-security/changed-files@3dbe17c78367e7d60f00d78ae6781a35be47b4a1
22+
uses: step-security/changed-files@95b56dadb92a30ca9036f16423fd3c088a71ee94
2323
with:
2424
base_sha: ${{ github.event.pull_request.base.sha }}
2525
files_yaml: |
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
name: Yarn Upgrade Dependencies Requiring Intervention
2+
# This workflow upgrade npm dependencies that will require manual work. For example, `@aws-cdk/asset-awscli-v1` upgrade always require manually updating snapshots.
3+
# When adding deps in this workflow, we must also exclude them in the Yarn Upgrade workflow. This is so that the PR from that workflow can be kept clean (i.e. does not need manual update).
4+
# See this line on how to exclude deps: https://github.com/aws/aws-cdk/blob/ce7b30775f354c7de774f73c5f8dedd9ce7530d3/.github/workflows/yarn-upgrade.yml#L61
5+
# If this proves to be too cumbersome, we can refactor both workflow to reference the deps list from a single place.
6+
7+
on:
8+
schedule:
9+
# Every wednesday at 13:37 UTC
10+
- cron: 37 13 * * 3
11+
workflow_dispatch: {}
12+
13+
# For multiple dependencies, do `DEPS_TO_UPGRADE:"p1 p2 p3"`
14+
env:
15+
DEPS_TO_UPGRADE: "@aws-cdk/asset-awscli-v1"
16+
17+
jobs:
18+
upgrade:
19+
name: Yarn Upgrade
20+
permissions:
21+
contents: read
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Check Out
25+
uses: actions/checkout@v4
26+
27+
- name: Set up Node
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: "*"
31+
env:
32+
NODE_OPTIONS: "--max-old-space-size=8196 --experimental-worker ${NODE_OPTIONS:-}"
33+
34+
- name: Locate Yarn cache
35+
id: yarn-cache
36+
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
37+
38+
- name: Restore Yarn cache
39+
uses: actions/cache@v4
40+
with:
41+
path: ${{ steps.yarn-cache.outputs.dir }}
42+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
43+
restore-keys: |-
44+
${{ runner.os }}-yarn-
45+
- name: Yarn Install
46+
run: yarn install --frozen-lockfile
47+
- name: Install Tools
48+
run: |-
49+
npm -g install lerna npm-check-updates
50+
- name: Run "ncu -u"
51+
run: |-
52+
# Convert space-separated string to comma-separated string for the filter
53+
FILTER=$(echo "$DEPS_TO_UPGRADE" | tr ' ' ',')
54+
lerna exec --parallel ncu -- --upgrade --filter="$FILTER" --target=minor
55+
56+
- name: Run "yarn upgrade"
57+
run: |
58+
echo "Upgrading dependencies: $DEPS_TO_UPGRADE"
59+
yarn upgrade $DEPS_TO_UPGRADE --exact
60+
61+
# Next, create and upload the changes as a patch file. This will later be downloaded to create a pull request
62+
# Creating a pull request requires write permissions and it's best to keep write privileges isolated.
63+
- name: Create Patch
64+
run: |-
65+
git add .
66+
git diff --binary --patch --staged > ${{ runner.temp }}/upgrade.patch
67+
68+
- name: Upload Patch
69+
uses: actions/upload-artifact@v4
70+
with:
71+
name: upgrade.patch
72+
path: ${{ runner.temp }}/upgrade.patch
73+
74+
pr:
75+
name: Create Pull Request
76+
needs: upgrade
77+
permissions:
78+
contents: write
79+
pull-requests: write
80+
runs-on: ubuntu-latest
81+
steps:
82+
- name: Check Out
83+
uses: actions/checkout@v4
84+
85+
- name: Download patch
86+
uses: actions/download-artifact@v4
87+
with:
88+
name: upgrade.patch
89+
path: ${{ runner.temp }}
90+
91+
- name: Apply patch
92+
run: '[ -s ${{ runner.temp }}/upgrade.patch ] && git apply --binary ${{ runner.temp
93+
}}/upgrade.patch || echo "Empty patch. Skipping."'
94+
95+
- name: Make Pull Request
96+
uses: peter-evans/create-pull-request@v7
97+
with:
98+
# Git commit details
99+
branch: automation/yarn-upgrade-dependencies-requiring-intervention
100+
author: aws-cdk-automation <[email protected]>
101+
commit-message: |-
102+
chore: npm-check-updates && yarn upgrade
103+
Ran npm-check-updates and yarn upgrade to keep the `yarn.lock` file up-to-date.
104+
# Pull Request details
105+
title: 'chore: yarn upgrade dependencies requiring intervention'
106+
body: |-
107+
Ran npm-check-updates and yarn upgrade for the following dependencies:
108+
```
109+
${{ env.DEPS_TO_UPGRADE }}
110+
```
111+
Checkout this branch and run integration tests locally to update snapshots.
112+
```
113+
(cd packages/@aws-cdk-testing/framework-integ && yarn integ --update-on-failed)
114+
```
115+
See https://www.npmjs.com/package/@aws-cdk/integ-runner for more integ runner options.
116+
labels: contribution/core,dependencies
117+
team-reviewers: aws-cdk-team
118+
# Github prevents further Github actions to be run if the default Github token is used.
119+
# Instead use a privileged token here, so further GH actions can be triggered on this PR.
120+
token: ${{ secrets.PROJEN_GITHUB_TOKEN }}

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@
2020
"@types/prettier": "2.6.0",
2121
"@yarnpkg/lockfile": "^1.1.0",
2222
"aws-sdk-js-codemod": "^0.28.2",
23-
"cdk-generate-synthetic-examples": "^0.2.24",
23+
"cdk-generate-synthetic-examples": "^0.2.26",
2424
"conventional-changelog-cli": "^2.2.2",
2525
"fs-extra": "^9.1.0",
2626
"graceful-fs": "^4.2.11",
2727
"jest-junit": "^13.2.0",
28-
"jsii-diff": "1.110.0",
29-
"jsii-pacmak": "1.110.0",
30-
"jsii-reflect": "1.110.0",
31-
"lerna": "^8.2.1",
28+
"jsii-diff": "1.112.0",
29+
"jsii-pacmak": "1.112.0",
30+
"jsii-reflect": "1.112.0",
31+
"lerna": "^8.2.2",
3232
"nx": "^20",
3333
"semver": "^7.7.1",
3434
"standard-version": "^9.5.0",
35-
"ts-jest": "^29.3.0",
35+
"ts-jest": "^29.3.2",
3636
"ts-node": "^10.9.2",
3737
"typescript": "~5.5.4"
3838
},

packages/@aws-cdk-testing/framework-integ/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
"license": "Apache-2.0",
3131
"devDependencies": {
3232
"@aws-cdk/cdk-build-tools": "0.0.0",
33-
"@aws-cdk/integ-runner": "^2.186.5",
33+
"@aws-cdk/integ-runner": "^2.186.6",
3434
"@aws-cdk/pkglint": "0.0.0",
3535
"@aws-sdk/client-acm": "3.632.0",
3636
"@aws-sdk/client-rds": "3.632.0",
3737
"@aws-sdk/client-s3": "3.632.0",
3838
"@aws-sdk/client-cognito-identity-provider": "3.632.0",
39-
"axios": "1.8.4",
39+
"axios": "1.9.0",
4040
"delay": "5.0.0"
4141
},
4242
"dependencies": {
@@ -47,7 +47,7 @@
4747
"@aws-cdk/lambda-layer-kubectl-v31": "^2.0.3",
4848
"@aws-cdk/lambda-layer-kubectl-v32": "^2.1.0",
4949
"aws-cdk-lib": "0.0.0",
50-
"cdk8s": "2.69.57",
50+
"cdk8s": "2.69.67",
5151
"cdk8s-plus-27": "2.9.5",
5252
"constructs": "^10.0.0"
5353
},

packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch-actions/test/integ.lambda-alarm-multiple-stepscalingpolicy.js.snapshot/cdk.out

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch-actions/test/integ.lambda-alarm-multiple-stepscalingpolicy.js.snapshot/integ.json

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch-actions/test/integ.lambda-alarm-multiple-stepscalingpolicy.js.snapshot/lambda-alarm-multiple-stepscalingpolicy.assets.json

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)