Skip to content

Commit 5f5765d

Browse files
authored
chore: "Revert chore(release): 2.75.0" (#25161)
Reverts #25159
1 parent 1eacc61 commit 5f5765d

File tree

372 files changed

+5115
-13744
lines changed

Some content is hidden

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

372 files changed

+5115
-13744
lines changed

.github/workflows/yarn-upgrade.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ jobs:
2121
uses: actions/setup-node@v3
2222
with:
2323
node-version: 14
24-
env:
25-
NODE_OPTIONS: "--max-old-space-size=8196 --experimental-worker ${NODE_OPTIONS:-}"
2624

2725
- name: Locate Yarn cache
2826
id: yarn-cache
@@ -41,9 +39,7 @@ jobs:
4139
run: |-
4240
npm -g install lerna npm-check-updates
4341
- name: Build Integ Runner
44-
run: |
45-
export NODE_OPTIONS="--max-old-space-size=8196 --experimental-worker ${NODE_OPTIONS:-}"
46-
npx lerna run build --scope @aws-cdk/integ-runner
42+
run: lerna run build --scope @aws-cdk/integ-runner --include-dependencies
4743
- name: List Mono-Repo Packages
4844
id: list-packages
4945
# These need to be ignored from the `ncu` runs!
@@ -67,7 +63,7 @@ jobs:
6763
(cd $(dirname $pj) && ncu --upgrade --reject='constructs,${{ steps.list-packages.outputs.list }}')
6864
done
6965
# Upgrade dependencies at an aws-eks integ test docker image
70-
cd packages/aws-cdk-lib/aws-eks/test/sdk-call-integ-test-docker-app/app/ && ncu --upgrade --reject=',${{ steps.list-packages.outputs.list }}'
66+
cd packages/@aws-cdk/aws-eks/test/sdk-call-integ-test-docker-app/app/ && ncu --upgrade --reject=',${{ steps.list-packages.outputs.list }}'
7167
7268
# This will ensure the current lockfile is up-to-date with the dependency specifications (necessary for "yarn upgrade" to run)
7369
- name: Run "yarn install"

CHANGELOG.v2.alpha.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5-
## [2.75.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.74.0-alpha.0...v2.75.0-alpha.0) (2023-04-17)
6-
75
## [2.74.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.73.0-alpha.0...v2.74.0-alpha.0) (2023-04-13)
86

97
## [2.73.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.72.1-alpha.0...v2.73.0-alpha.0) (2023-04-05)

CHANGELOG.v2.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5-
## [2.75.0](https://github.com/aws/aws-cdk/compare/v2.74.0...v2.75.0) (2023-04-17)
6-
7-
8-
### Features
9-
10-
* **aws-lambda:** Add AWS Lambda runtime python3.10 ([08fb3cd](https://github.com/aws/aws-cdk/commit/08fb3cdab13e2e2a68ceadb36702a108c429e674))
11-
125
## [2.74.0](https://github.com/aws/aws-cdk/compare/v2.73.0...v2.74.0) (2023-04-13)
136

147

CONTRIBUTING.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ Most contributions only require working on a single package, usually `aws-cdk-li
9999
time, you can execute the following to build it and it's dependencies.
100100

101101
```console
102-
$ npx lerna run build --scope=aws-cdk-lib
102+
$ cd packages/aws-cdk-lib
103+
$ ../../scripts/buildup
103104
```
104105

105-
Note: `lerna` uses a local cache by default. If your build fails, you can fix
106-
the issue and run the command again and it will not rerun any previously
107-
successful steps.
106+
Note: The `buildup` command is resumable. If your build fails, you can fix the issue and run `buildup --resume` to
107+
resume.
108108

109109
At this point, you can run build and test the `aws-cdk-lib` module by running
110110

@@ -121,19 +121,13 @@ However, if you wish to build the entire repository, the following command will
121121

122122
```console
123123
cd <root of the CDK repo>
124-
npx lerna run build
124+
scripts/foreach.sh yarn build
125125
```
126+
Note: The `foreach` command is resumable by default; you must supply `-r` or `--reset` to start a new session.
126127

127128
You are now ready to start contributing to the CDK. See the [Pull Requests](#pull-requests) section on how to make your
128129
changes and submit it as a pull request.
129130

130-
If you want to run a build without using the local cache, provide the
131-
`--skip-nx-cache` flag.
132-
133-
```console
134-
$ npx lerna run build --skip-nx-cache
135-
```
136-
137131
### Pack
138132

139133
As called out in the above sections, the AWS CDK uses jsii to produce polyglot targets. This means that each CDK module

build.sh

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ runtarget="build"
66
run_tests="true"
77
check_prereqs="true"
88
check_compat="true"
9-
ci="false"
10-
scope=""
119
while [[ "${1:-}" != "" ]]; do
1210
case $1 in
1311
-h|--help)
@@ -29,9 +27,6 @@ while [[ "${1:-}" != "" ]]; do
2927
--skip-compat)
3028
check_compat="false"
3129
;;
32-
--ci)
33-
ci=true
34-
;;
3530
*)
3631
echo "Unrecognized parameter: $1"
3732
exit 1
@@ -53,18 +48,6 @@ fi
5348

5449
echo "============================================================================================="
5550
echo "installing..."
56-
version=$(node -p "require('./package.json').version")
57-
# this is super weird. If you run 'npm install' twice
58-
# and it actually performs an install, then
59-
# node-bundle test will fail with "npm ERR! maxAge must be a number".
60-
# This won't happen in most instances because if nothing changes then npm install
61-
# won't perform an install.
62-
# In the pipeline however, npm install is run once when all the versions are '0.0.0' (via ./scripts/bump-candidate.sh)
63-
# and then `align-versions` is run which updates all the versions to
64-
# (for example) `2.74.0-rc.0` and then npm install is run again here.
65-
if [ "$version" != "0.0.0" ]; then
66-
rm -rf node_modules
67-
fi
6851
yarn install --frozen-lockfile --network-timeout 1000000
6952

7053
fail() {
@@ -89,22 +72,21 @@ node ./scripts/check-yarn-lock.js
8972
BUILD_INDICATOR=".BUILD_COMPLETED"
9073
rm -rf $BUILD_INDICATOR
9174

75+
# Speed up build by reusing calculated tree hashes
76+
# On dev machine, this speeds up the TypeScript part of the build by ~30%.
77+
export MERKLE_BUILD_CACHE=$(mktemp -d)
78+
trap "rm -rf $MERKLE_BUILD_CACHE" EXIT
79+
9280
if [ "$run_tests" == "true" ]; then
93-
runtarget="$runtarget,test"
81+
runtarget="$runtarget+test"
9482
fi
9583

9684
# Limit top-level concurrency to available CPUs - 1 to limit CPU load.
9785
concurrency=$(node -p 'Math.max(1, require("os").cpus().length - 1)')
9886

99-
flags=""
100-
if [ "$ci" == "true" ]; then
101-
flags="--stream --no-progress --skip-nx-cache"
102-
export FORCE_COLOR=false
103-
fi
104-
10587
echo "============================================================================================="
10688
echo "building..."
107-
time npx lerna run $bail --concurrency=$concurrency $runtarget $flags || fail
89+
time npx lerna run $bail --stream --concurrency=$concurrency $runtarget || fail
10890

10991
if [ "$check_compat" == "true" ]; then
11092
/bin/bash scripts/check-api-compatibility.sh

buildspec-pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ phases:
2424
- /bin/bash ./scripts/cache-load.sh
2525
build:
2626
commands:
27-
- /bin/bash ./build.sh --ci
27+
- /bin/bash ./build.sh
2828
# After compilation, run Rosetta (using the cache if available).
2929
# This will print errors, and fail the build if there are compilation errors in any packages marked as 'strict'.
3030
- /bin/bash ./scripts/run-rosetta.sh

buildspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ phases:
3030
- codebuild-breakpoint
3131
- 'if ${BUMP_CANDIDATE:-false}; then env NODE_OPTIONS="--max-old-space-size=8196 ${NODE_OPTIONS:-}" /bin/bash ./scripts/bump-candidate.sh; fi'
3232
- /bin/bash ./scripts/align-version.sh
33-
- /bin/bash ./build.sh --ci
33+
- /bin/bash ./build.sh
3434
post_build:
3535
commands:
3636
# Short-circuit: Don't run pack if the above build failed.

lerna.json

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,18 @@
11
{
2+
"lerna": "^4.0.0",
23
"npmClient": "yarn",
34
"useWorkspaces": true,
45
"packages": [
5-
"packages/aws-cdk-lib",
6-
"packages/cdk-cli-wrapper",
7-
"packages/cdk-assets",
8-
"packages/aws-cdk",
9-
"packages/cdk",
6+
"packages/*",
107
"packages/@aws-cdk/*",
11-
"packages/awslint",
128
"packages/@aws-cdk-containers/*",
139
"packages/@aws-cdk-testing/*",
1410
"packages/@aws-cdk/*/lambda-packages/*",
15-
"tools/@aws-cdk/cdk-build-tools",
16-
"tools/@aws-cdk/cdk-release",
17-
"tools/@aws-cdk/cfn2ts",
18-
"tools/@aws-cdk/eslint-plugin",
19-
"tools/@aws-cdk/node-bundle",
20-
"tools/@aws-cdk/pkglint",
21-
"tools/@aws-cdk/pkgtools",
22-
"tools/@aws-cdk/prlint",
23-
"tools/@aws-cdk/yarn-cling",
24-
"scripts/@aws-cdk/script-tests"
11+
"tools/*",
12+
"tools/@aws-cdk/*",
13+
"scripts/@aws-cdk/script-tests",
14+
"packages/individual-packages/*"
2515
],
2616
"rejectCycles": "true",
27-
"version": "0.0.0",
28-
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
17+
"version": "0.0.0"
2918
}

nx.json

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

package.json

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"pack": "./pack.sh",
1313
"compat": "./scripts/check-api-compatibility.sh",
1414
"bump": "./bump.sh",
15-
"build-all": "tsc -b"
15+
"build-all": "tsc -b",
16+
"postinstall": "patch-package --error-on-fail"
1617
},
1718
"devDependencies": {
1819
"@types/node": "18.11.19",
@@ -27,13 +28,10 @@
2728
"jsii-pacmak": "1.78.1",
2829
"jsii-reflect": "1.78.1",
2930
"jsii-rosetta": "~5.0.0",
30-
"lerna": "^6.6.1",
31+
"lerna": "^4.0.0",
3132
"patch-package": "^6.5.1",
3233
"semver": "^6.3.0",
3334
"standard-version": "^9.5.0",
34-
"@nrwl/cli": "^15.9.1",
35-
"@nrwl/workspace": "^15.9.1",
36-
"nx": "^15.9.1",
3735
"typescript": "~4.9.5"
3836
},
3937
"resolutions": {
@@ -68,26 +66,15 @@
6866
},
6967
"workspaces": {
7068
"packages": [
71-
"packages/aws-cdk-lib",
72-
"packages/cdk-cli-wrapper",
73-
"packages/aws-cdk",
74-
"packages/cdk",
75-
"packages/cdk-assets",
69+
"packages/*",
7670
"packages/@aws-cdk/*",
77-
"packages/awslint",
7871
"packages/@aws-cdk-containers/*",
7972
"packages/@aws-cdk-testing/*",
8073
"packages/@aws-cdk/*/lambda-packages/*",
81-
"tools/@aws-cdk/cdk-build-tools",
82-
"tools/@aws-cdk/cdk-release",
83-
"tools/@aws-cdk/cfn2ts",
84-
"tools/@aws-cdk/eslint-plugin",
85-
"tools/@aws-cdk/node-bundle",
86-
"tools/@aws-cdk/pkglint",
87-
"tools/@aws-cdk/pkgtools",
88-
"tools/@aws-cdk/prlint",
89-
"tools/@aws-cdk/yarn-cling",
90-
"scripts/@aws-cdk/script-tests"
74+
"tools/*",
75+
"tools/@aws-cdk/*",
76+
"scripts/@aws-cdk/script-tests",
77+
"packages/individual-packages/*"
9178
],
9279
"nohoist": [
9380
"**/jszip",

packages/@aws-cdk-testing/cli-integ/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33

44
---
55

6-
![cdk-constructs: Stable](https://img.shields.io/badge/cdk--constructs-stable-success.svg?style=for-the-badge)
6+
![cdk-constructs: Experimental](https://img.shields.io/badge/cdk--constructs-experimental-important.svg?style=for-the-badge)
7+
8+
> The APIs of higher level constructs in this module are experimental and under active development.
9+
> They are subject to non-backward compatible changes or removal in any future version. These are
10+
> not subject to the [Semantic Versioning](https://semver.org/) model and breaking changes will be
11+
> announced in the release notes. This means that while you may use them, you may need to update
12+
> your source code when upgrading to a newer version of this package.
713
814
---
915

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"axios": "^0.27.2",
4444
"fs-extra": "^9.1.0",
4545
"glob": "^7.2.3",
46-
"jest": "^29.5.0",
46+
"jest": "^27.5.1",
4747
"jest-junit": "^14.0.1",
4848
"make-runnable": "^1.4.1",
4949
"npm": "^8.19.4",
@@ -66,8 +66,8 @@
6666
"engines": {
6767
"node": ">= 14.15.0"
6868
},
69-
"stability": "stable",
70-
"maturity": "stable",
69+
"stability": "experimental",
70+
"maturity": "experimental",
7171
"publishConfig": {
7272
"tag": "latest"
7373
}

packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-standard-image.js.snapshot/Standard1.assets.json

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

0 commit comments

Comments
 (0)