Skip to content

Commit 8b3ccfb

Browse files
authored
Merge branch 'main' into docker-build-network
2 parents a1ff727 + 569f0c3 commit 8b3ccfb

File tree

4,013 files changed

+3062813
-2643994
lines changed

Some content is hidden

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

4,013 files changed

+3062813
-2643994
lines changed

.github/workflows/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,6 @@ Owner: CDK Support team
139139

140140
[project-prioritization-added-on.yml](project-prioritization-added-on.yml): GitHub action that runs every day to update AddedOn field in the prioritization project board.
141141
Owner: CDK Support team
142+
143+
### Issue sync
144+
[issue-sync.yml](issue-sync.yml): Github action that syncs issue metadat with the project board. More details can be found on the [project-sync](../../tools/@aws-cdk/project-sync) package.

.github/workflows/check-lfs.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Check all requires files are in LFS
2+
on:
3+
pull_request: {}
4+
5+
jobs:
6+
check-lfs:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Check out repository
10+
uses: actions/checkout@v4
11+
with:
12+
# We don't actually care about LFS file contents, just their integrity.
13+
lfs: false
14+
- name: Check LFS pointers
15+
run: git lfs fsck --pointers
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: Codebuild PR Build
2+
3+
on:
4+
workflow_dispatch: {}
5+
merge_group: {}
6+
push:
7+
branches:
8+
- main
9+
- v2-release
10+
pull_request: {}
11+
12+
# For every PR, cancel any previous builds in progress
13+
# ... but for all other builds we keep them running
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.pull_request.number || github.run_id }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
build:
20+
runs-on: codebuild-aws-cdk-github-actions-runner-${{ github.run_id }}-${{ github.run_attempt }}
21+
22+
env:
23+
PR_BUILD: true
24+
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v4
28+
29+
- name: Setup Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: "18"
33+
cache: "yarn"
34+
35+
- name: Set up Docker
36+
uses: docker/setup-buildx-action@v3
37+
38+
- name: Load Docker images
39+
id: docker-cache
40+
uses: actions/cache/restore@v4
41+
with:
42+
path: |
43+
~/.docker-images.tar
44+
key: docker-cache-${{ runner.os }}
45+
46+
- name: Restore Docker images
47+
if: ${{ steps.docker-cache.outputs.cache-hit }}
48+
run: docker image load --input ~/.docker-images.tar
49+
50+
- name: Cache build artifacts
51+
uses: actions/cache@v4
52+
with:
53+
path: |
54+
~/.s3buildcache
55+
key: s3buildcache-${{ runner.os }}
56+
57+
- name: Configure system settings
58+
run: |
59+
(command -v sysctl || sudo apt-get update && sudo apt-get install -y procps) && \
60+
sudo sysctl -w vm.max_map_count=2251954
61+
62+
- name: Build
63+
run: /bin/bash ./build.sh --ci
64+
65+
- name: Run Rosetta
66+
run: /bin/bash ./scripts/run-rosetta.sh
67+
68+
- name: Check for uncommitted changes
69+
run: git diff-index --exit-code --ignore-space-at-eol --stat HEAD
70+
71+
- name: Export Docker images
72+
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
73+
run: docker image save --output ~/.docker-images.tar $(docker image list --format '{{ if ne .Repository "<none>" }}{{ .Repository }}{{ if ne .Tag "<none>" }}:{{ .Tag }}{{ end }}{{ else }}{{ .ID }}{{ end }}')
74+
75+
- name: Cache Docker images
76+
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
77+
uses: actions/cache/save@v4
78+
with:
79+
path: |
80+
~/.docker-images.tar
81+
key: docker-cache-${{ runner.os }}

.github/workflows/codecov-upload.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,21 @@ jobs:
2020
github.event.workflow_run.conclusion == 'success'
2121
2222
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
2325
- name: Download Artifacts
2426
uses: actions/download-artifact@v4
2527
with:
2628
name: coverage-artifacts
27-
path: ./coverage
29+
path: ./packages/aws-cdk-lib/core/coverage
2830
github-token: ${{ secrets.GITHUB_TOKEN }}
2931
repository: ${{ github.repository }}
3032
run-id: ${{ github.event.workflow_run.id }}
3133

3234
- name: Upload to Codecov
3335
uses: codecov/codecov-action@v5
3436
with:
35-
files: ./coverage/packages/aws-cdk-lib/coverage/cobertura-coverage.xml
37+
files: ./packages/aws-cdk-lib/core/coverage/cobertura-coverage.xml
3638
fail_ci_if_error: true
3739
flags: suite.unit
3840
use_oidc: true

.github/workflows/enum-auto-updater.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
# If a PR exists, close it
8787
if [[ -n "$prExists" ]]; then
8888
echo "Found existing PR #$prExists for module ${moduleName#aws-}, closing it..."
89-
gh pr close "$prExists" --confirm
89+
gh pr close "$prExists" -c "Closing in favor of a new PR with updated enum values"
9090
else
9191
echo "No existing PR found for ${moduleName#aws-}"
9292
fi

.github/workflows/github-merit-badger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ jobs:
1717
badges: '[beginning-contributor,repeat-contributor,valued-contributor,admired-contributor,star-contributor,distinguished-contributor]'
1818
thresholds: '[0,3,6,13,25,50]'
1919
badge-type: 'achievement'
20-
ignore-usernames: '[rix0rrr,iliapolo,otaviomacedo,kaizencc,TheRealAmazonKendra,mrgrain,pahud,kellertk,ashishdhingra,khushail,moelasmar,paulhcsun,GavinZZ,xazhao,gracelu0,shikha372,godwingrs22,bergjaak,IanKonlog,Leo10Gama,samson-keung,scorbiere,jiayiwang7,saiyush,5d,iankhou,QuantumNeuralCoder,SimonCMoore,Y-JayKim,ykethan,astiwana,maharajhaider,aws-cdk-automation,dependabot[bot],mergify[bot],aemada-aws,ozelalisen,abogical,alinko-aws,vishaalmehrishi,alvazjor,kumsmrit,kumvprat,leonmk-aws,matboros,gasolima]'
20+
ignore-usernames: '[rix0rrr,iliapolo,otaviomacedo,kaizencc,TheRealAmazonKendra,mrgrain,pahud,kellertk,ashishdhingra,khushail,moelasmar,paulhcsun,GavinZZ,xazhao,gracelu0,shikha372,godwingrs22,bergjaak,IanKonlog,Leo10Gama,samson-keung,scorbiere,jiayiwang7,saiyush,5d,iankhou,QuantumNeuralCoder,SimonCMoore,Y-JayKim,ykethan,astiwana,maharajhaider,aws-cdk-automation,dependabot[bot],mergify[bot],aemada-aws,ozelalisen,abogical,alinko-aws,vishaalmehrishi,alvazjor,kumsmrit,kumvprat,leonmk-aws,matboros,gasolima,abidhasan-aws]'

.github/workflows/issue-label-assign.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,5 +284,10 @@ env:
284284
{"area":"@aws-cdk/integ-runner","keywords":["integ-runner"],"labels":["@aws-cdk/integ-runner"]},
285285
{"area":"@aws-cdk/app-staging-synthesizer-alpha", "keywords":["app-staging-synthesizer", "app-staging-synthesizer-alpha"],"labels":["@aws-cdk/app-staging-synthesizer-alpha"]},
286286
{"area":"@aws-cdk/aws-location-alpha", "keywords":["aws-location", "aws-location-alpha"],"labels":["@aws-cdk/aws-location-alpha"]},
287-
{"area":"@aws-cdk/cli-lib-alpha", "keywords":["cli-lib", "cli-lib-alpha"],"labels":["@aws-cdk/cli-lib-alpha"]}
287+
{"area":"@aws-cdk/cli-lib-alpha", "keywords":["cli-lib", "cli-lib-alpha"],"labels":["@aws-cdk/cli-lib-alpha"]},
288+
{"area":"@aws-cdk/aws-applicationsignals-alpha", "keywords":["aws-applicationsignals", "aws-applicationsignals-alpha"],"labels":["@aws-cdk/aws-applicationsignals-alpha"]},
289+
{"area":"@aws-cdk/aws-s3tables-alpha", "keywords":["aws-s3tables", "aws-s3tables-alpha"],"labels":["@aws-cdk/aws-s3tables-alpha"]},
290+
{"area":"@aws-cdk/aws-pipes-enrichments-alpha", "keywords":["aws-pipes-enrichments", "aws-pipes-enrichments-alpha"],"labels":["@aws-cdk/aws-pipes-enrichments-alpha"]},
291+
{"area":"@aws-cdk/aws-pipes-sources-alpha", "keywords":["aws-pipes-sources", "aws-pipes-sources-alpha"],"labels":["@aws-cdk/aws-pipes-sources-alpha"]},
292+
{"area":"@aws-cdk/aws-pipes-targets-alpha", "keywords":["aws-pipes-targets", "aws-pipes-targets-alpha"],"labels":["@aws-cdk/aws-pipes-targets-alpha"]}
288293
]

.github/workflows/issue-sync.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Issue Sync
2+
3+
on: [issues, issue_comment]
4+
5+
jobs:
6+
sync-issue:
7+
name: Sync Issue with Project Board
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version: '20'
17+
cache: 'yarn'
18+
cache-dependency-path: 'yarn.lock'
19+
20+
# Cache node_modules
21+
- name: Cache node_modules
22+
uses: actions/cache@v3
23+
id: cache-modules
24+
with:
25+
path: |
26+
tools/@aws-cdk/project-sync/node_modules
27+
node_modules
28+
key: ${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }}
29+
restore-keys: |
30+
${{ runner.os }}-modules-
31+
32+
- name: Install dependencies
33+
if: steps.cache-modules.outputs.cache-hit != 'true'
34+
run: |
35+
cd tools/@aws-cdk/project-sync
36+
yarn install --frozen-lockfile
37+
38+
# Cache build output
39+
- name: Cache build output
40+
uses: actions/cache@v3
41+
id: cache-build
42+
with:
43+
path: |
44+
tools/@aws-cdk/project-sync/lib/*.js
45+
tools/@aws-cdk/project-sync/bin/*.js
46+
key: ${{ runner.os }}-build-${{ hashFiles('tools/@aws-cdk/project-sync/lib', 'tools/@aws-cdk/project-sync/bin') }}
47+
restore-keys: |
48+
${{ runner.os }}-build-
49+
50+
- name: Build project-sync
51+
if: steps.cache-build.outputs.cache-hit != 'true'
52+
run: |
53+
cd tools/@aws-cdk/project-sync
54+
yarn build
55+
56+
- name: Run issue-sync
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.PROJECT_SYNC_GITHUB_TOKEN }}
59+
ISSUE_NUMBER: ${{ github.event.issue.number }}
60+
REPOSITORY: ${{ github.repository }}
61+
PROJECT_NUMBER: ${{ vars.PROJECT_NUMBER || 302 }}
62+
run: |
63+
cd tools/@aws-cdk/project-sync
64+
node bin/issue-sync.js

.github/workflows/pr-build.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: PR Build
2+
3+
on:
4+
workflow_dispatch: {}
5+
merge_group: {}
6+
push:
7+
branches:
8+
- main
9+
- v2-release
10+
pull_request:
11+
branches:
12+
- main
13+
- v2-release
14+
15+
# For every PR, cancel any previous builds in progress
16+
# ... but for all other builds we keep them running
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.pull_request.number || github.run_id }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
build:
23+
if: github.repository != 'aws/aws-cdk'
24+
runs-on: aws-cdk_ubuntu-latest_32-core
25+
26+
env:
27+
PR_BUILD: true
28+
29+
steps:
30+
- name: Checkout code
31+
uses: actions/checkout@v4
32+
33+
- name: Setup Node.js
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version: "18"
37+
cache: "yarn"
38+
39+
- name: Set up Docker
40+
uses: docker/setup-buildx-action@v3
41+
42+
- name: Load Docker images
43+
id: docker-cache
44+
uses: actions/cache/restore@v4
45+
with:
46+
path: |
47+
~/.docker-images.tar
48+
key: docker-cache-${{ runner.os }}
49+
50+
- name: Restore Docker images
51+
if: ${{ steps.docker-cache.outputs.cache-hit }}
52+
run: docker image load --input ~/.docker-images.tar
53+
54+
- name: Cache build artifacts
55+
uses: actions/cache@v4
56+
with:
57+
path: |
58+
~/.s3buildcache
59+
key: s3buildcache-${{ runner.os }}
60+
61+
- name: Configure system settings
62+
run: |
63+
(command -v sysctl || sudo apt-get update && sudo apt-get install -y procps) && \
64+
sudo sysctl -w vm.max_map_count=2251954
65+
66+
- name: Build
67+
run: /bin/bash ./build.sh --ci
68+
69+
- name: Run Rosetta
70+
run: /bin/bash ./scripts/run-rosetta.sh
71+
72+
- name: Check for uncommitted changes
73+
run: git diff-index --exit-code --ignore-space-at-eol --stat HEAD
74+
75+
- name: Export Docker images
76+
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
77+
run: docker image save --output ~/.docker-images.tar $(docker image list --format '{{ if ne .Repository "<none>" }}{{ .Repository }}{{ if ne .Tag "<none>" }}:{{ .Tag }}{{ end }}{{ else }}{{ .ID }}{{ end }}')
78+
79+
- name: Cache Docker images
80+
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
81+
uses: actions/cache/save@v4
82+
with:
83+
path: |
84+
~/.docker-images.tar
85+
key: docker-cache-${{ runner.os }}

.github/workflows/pr-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
steps:
3737
- name: 'Download workflow_run artifact'
3838
if: github.event_name == 'workflow_run'
39-
uses: dawidd6/action-download-artifact@v10
39+
uses: dawidd6/action-download-artifact@v11
4040
with:
4141
run_id: ${{ github.event.workflow_run.id }}
4242
name: pr_info

0 commit comments

Comments
 (0)