Skip to content

Commit

Permalink
fix: bump node dependencies and cleanup (#4020)
Browse files Browse the repository at this point in the history
- migrate to yarn4
- fix duplicate dependencies in lock file
- upgrade all possible upgrade
- octokit/rest and octokit/auth-app both break updates see #3966


Tested with deployment of multi runner example
  • Loading branch information
npalm authored Aug 1, 2024
1 parent 08be669 commit 221958b
Show file tree
Hide file tree
Showing 14 changed files with 12,254 additions and 8,354 deletions.
5 changes: 3 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ updates:
update-types: ["version-update:semver-major"]
- dependency-name: "@middy/core"
update-types: ["version-update:semver-major"]
- dependency-name: "@@octokit/*"
- dependency-name: "@octokit/*"
update-types: ["version-update:semver-major"]
- dependency-name: "@@octokit/rest"
- dependency-name: "@octokit/rest"
- dependency-name: "@octokit/auth-app"
- dependency-name: "eslint"
update-types: ["version-update:semver-major"]
commit-message:
Expand Down
11 changes: 10 additions & 1 deletion lambdas/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,13 @@ dist/
!/yarn.lock


.nx/cache
.nx/cache
.nx/workspace-data

.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
894 changes: 894 additions & 0 deletions lambdas/.yarn/releases/yarn-4.3.1.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions lambdas/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.3.1.cjs
42 changes: 21 additions & 21 deletions lambdas/functions/ami-housekeeper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,34 @@
"all": "yarn build && yarn format && yarn lint && yarn test"
},
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.2.1",
"@types/aws-lambda": "^8.10.137",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/aws-lambda": "^8.10.142",
"@types/jest": "^29.5.12",
"@types/node": "^20.8.9",
"@typescript-eslint/eslint-plugin": "^7.16.0",
"@typescript-eslint/parser": "^7.9.0",
"@types/node": "^22.0.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vercel/ncc": "^0.38.1",
"aws-sdk-client-mock": "^3.0.0",
"aws-sdk-client-mock-jest": "^3.0.0",
"eslint": "^8.56.0",
"eslint-plugin-prettier": "5.1.3",
"jest": "^29.5",
"jest-mock": "^29.5.0",
"jest-mock-extended": "^3.0.6",
"nock": "^13.4.0",
"prettier": "3.3.2",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"aws-sdk-client-mock": "^3.1.0",
"aws-sdk-client-mock-jest": "^3.1.0",
"eslint": "^8.57.0",
"eslint-plugin-prettier": "5.2.1",
"jest": "^29.7.0",
"jest-mock": "^29.7.0",
"jest-mock-extended": "^3.0.7",
"nock": "^13.5.4",
"prettier": "3.3.3",
"ts-jest": "^29.2.3",
"ts-node": "^10.9.2",
"ts-node-dev": "^2.0.0"
},
"dependencies": {
"@aws-sdk/client-ec2": "^3.620.1",
"@aws-sdk/client-ssm": "^3.620.1",
"@aws-sdk/types": "^3.433.0",
"@aws-sdk/client-ec2": "^3.621.0",
"@aws-sdk/client-ssm": "^3.621.0",
"@aws-sdk/types": "^3.609.0",
"@terraform-aws-github-runner/aws-powertools-util": "*",
"@terraform-aws-github-runner/aws-ssm-util": "*",
"cron-parser": "^4.8.1",
"typescript": "^5.4.5"
"cron-parser": "^4.9.0",
"typescript": "^5.5.4"
},
"nx": {
"includedScripts": [
Expand Down
45 changes: 23 additions & 22 deletions lambdas/functions/control-plane/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,40 +16,41 @@
"all": "yarn build && yarn format && yarn lint && yarn test"
},
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.2.1",
"@types/aws-lambda": "^8.10.137",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/aws-lambda": "^8.10.142",
"@types/jest": "^29.5.12",
"@types/node": "^20.8.9",
"@typescript-eslint/eslint-plugin": "^7.16.0",
"@typescript-eslint/parser": "^7.9.0",
"@types/node": "^22.0.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vercel/ncc": "^0.38.1",
"aws-sdk-client-mock": "^3.0.0",
"aws-sdk-client-mock-jest": "^3.0.0",
"eslint": "^8.56.0",
"eslint-plugin-prettier": "5.1.3",
"jest": "^29.5",
"jest-mock": "^29.5.0",
"jest-mock-extended": "^3.0.6",
"aws-sdk-client-mock": "^3.1.0",
"aws-sdk-client-mock-jest": "^3.1.0",
"eslint": "^8.57.0",
"eslint-plugin-prettier": "5.2.1",
"jest": "^29.7.0",
"jest-mock": "^29.7.0",
"jest-mock-extended": "^3.0.7",
"moment-timezone": "^0.5.45",
"nock": "^13.4.0",
"prettier": "3.3.2",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"nock": "^13.5.4",
"prettier": "3.3.3",
"ts-jest": "^29.2.3",
"ts-node": "^10.9.2",
"ts-node-dev": "^2.0.0"
},
"dependencies": {
"@aws-sdk/client-ec2": "^3.620.1",
"@aws-sdk/types": "^3.433.0",
"@aws-sdk/client-ec2": "^3.621.0",
"@aws-sdk/types": "^3.609.0",
"@middy/core": "^4.7.0",
"@octokit/auth-app": "6.0.3",
"@octokit/plugin-throttling": "8.1.3",
"@octokit/core": "5.2.0",
"@octokit/plugin-throttling": "8.2.0",
"@octokit/rest": "20.0.2",
"@octokit/types": "^13.5.0",
"@terraform-aws-github-runner/aws-powertools-util": "*",
"@terraform-aws-github-runner/aws-ssm-util": "*",
"axios": "^1.6.8",
"cron-parser": "^4.8.1",
"typescript": "^5.4.5"
"axios": "^1.7.2",
"cron-parser": "^4.9.0",
"typescript": "^5.5.4"
},
"nx": {
"includedScripts": [
Expand Down
4 changes: 2 additions & 2 deletions lambdas/functions/control-plane/src/gh-auth/gh-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ export async function createOctoClient(token: string, ghesApiUrl = ''): Promise<
return new CustomOctokit({
...ocktokitOptions,
throttle: {
onRateLimit: (retryAfter, options) => {
onRateLimit: (options: { method: string; url: string }) => {
logger.warn(
`GitHub rate limit: Request quota exhausted for request ${options.method} ${options.url}. Requested `,
);
},
onSecondaryRateLimit: (retryAfter, options) => {
onSecondaryRateLimit: (options: { method: string; url: string }) => {
logger.warn(`GitHub rate limit: SecondaryRateLimit detected for request ${options.method} ${options.url}`);
},
},
Expand Down
40 changes: 20 additions & 20 deletions lambdas/functions/gh-agent-syncer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,33 @@
"all": "yarn build && yarn format && yarn lint && yarn test"
},
"devDependencies": {
"@octokit/rest": "^20.0.1",
"@trivago/prettier-plugin-sort-imports": "^4.2.1",
"@types/aws-lambda": "^8.10.137",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/aws-lambda": "^8.10.142",
"@types/jest": "^29.5.12",
"@types/node": "^20.8.9",
"@types/request": "^2.48.11",
"@typescript-eslint/eslint-plugin": "^7.16.0",
"@typescript-eslint/parser": "^7.9.0",
"@types/node": "^22.0.0",
"@types/request": "^2.48.12",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vercel/ncc": "^0.38.1",
"aws-sdk-client-mock": "^3.0.0",
"aws-sdk-client-mock-jest": "^3.0.0",
"eslint": "^8.56.0",
"eslint-plugin-prettier": "5.1.3",
"jest": "^29.5",
"jest-mock": "^29.5.0",
"prettier": "3.3.2",
"ts-jest": "^29.1.0",
"aws-sdk-client-mock": "^3.1.0",
"aws-sdk-client-mock-jest": "^3.1.0",
"eslint": "^8.57.0",
"eslint-plugin-prettier": "5.2.1",
"jest": "^29.7.0",
"jest-mock": "^29.7.0",
"prettier": "3.3.3",
"ts-jest": "^29.2.3",
"ts-node-dev": "^2.0.0",
"typescript": "^5.4.5"
"typescript": "^5.5.4"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.620.1",
"@aws-sdk/lib-storage": "^3.620.1",
"@aws-sdk/types": "^3.433.0",
"@aws-sdk/client-s3": "^3.621.0",
"@aws-sdk/lib-storage": "^3.621.0",
"@aws-sdk/types": "^3.609.0",
"@middy/core": "^4.7.0",
"@octokit/rest": "20.0.2",
"@terraform-aws-github-runner/aws-powertools-util": "*",
"axios": "^1.6.8"
"axios": "^1.7.2"
},
"nx": {
"includedScripts": [
Expand Down
40 changes: 20 additions & 20 deletions lambdas/functions/termination-watcher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,32 @@
"all": "yarn build && yarn format && yarn lint && yarn test"
},
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.2.1",
"@types/aws-lambda": "^8.10.137",
"@types/jest": "^29.5.6",
"@types/node": "^20.8.9",
"@typescript-eslint/eslint-plugin": "^7.16.0",
"@typescript-eslint/parser": "^7.9.0",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/aws-lambda": "^8.10.142",
"@types/jest": "^29.5.12",
"@types/node": "^22.0.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vercel/ncc": "^0.38.1",
"aws-sdk-client-mock": "^3.0.0",
"aws-sdk-client-mock-jest": "^3.0.0",
"eslint": "^8.56.0",
"eslint-plugin-prettier": "5.1.3",
"jest": "^29.5",
"jest-mock": "^29.5.0",
"jest-mock-extended": "^3.0.6",
"nock": "^13.4.0",
"prettier": "3.3.2",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"aws-sdk-client-mock": "^3.1.0",
"aws-sdk-client-mock-jest": "^3.1.0",
"eslint": "^8.57.0",
"eslint-plugin-prettier": "5.2.1",
"jest": "^29.7.0",
"jest-mock": "^29.7.0",
"jest-mock-extended": "^3.0.7",
"nock": "^13.5.4",
"prettier": "3.3.3",
"ts-jest": "^29.2.3",
"ts-node": "^10.9.2",
"ts-node-dev": "^2.0.0"
},
"dependencies": {
"@aws-sdk/client-ec2": "^3.620.1",
"@aws-sdk/types": "^3.433.0",
"@aws-sdk/client-ec2": "^3.621.0",
"@aws-sdk/types": "^3.609.0",
"@middy/core": "^4.7.0",
"@terraform-aws-github-runner/aws-powertools-util": "*",
"typescript": "^5.4.5"
"typescript": "^5.5.4"
},
"nx": {
"includedScripts": [
Expand Down
33 changes: 16 additions & 17 deletions lambdas/functions/webhook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,32 @@
"all": "yarn build && yarn format && yarn lint && yarn test"
},
"devDependencies": {
"@octokit/webhooks-definitions": "^3.67.3",
"@trivago/prettier-plugin-sort-imports": "^4.2.1",
"@types/aws-lambda": "^8.10.137",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/aws-lambda": "^8.10.142",
"@types/express": "^4.17.21",
"@types/jest": "^29.5.12",
"@types/node": "^20.8.9",
"@typescript-eslint/eslint-plugin": "^7.16.0",
"@typescript-eslint/parser": "^7.9.0",
"@types/node": "^22.0.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vercel/ncc": "0.38.1",
"body-parser": "^1.20.2",
"eslint": "^8.56.0",
"eslint-plugin-prettier": "5.1.3",
"eslint": "^8.57.0",
"eslint-plugin-prettier": "5.2.1",
"express": "^4.19.2",
"jest": "^29.5",
"jest-mock": "^29.5.0",
"nock": "^13.4.0",
"prettier": "3.3.2",
"ts-jest": "^29.1.0",
"jest": "^29.7.0",
"jest-mock": "^29.7.0",
"nock": "^13.5.4",
"prettier": "3.3.3",
"ts-jest": "^29.2.3",
"ts-node-dev": "^2.0.0",
"typescript": "^5.4.5"
"typescript": "^5.5.4"
},
"dependencies": {
"@aws-sdk/client-sqs": "^3.620.1",
"@aws-sdk/client-sqs": "^3.621.0",
"@middy/core": "^4.7.0",
"@octokit/rest": "^20.0.1",
"@octokit/rest": "20.0.2",
"@octokit/types": "^13.5.0",
"@octokit/webhooks": "^12.1.2",
"@octokit/webhooks": "^12.2.0",
"@terraform-aws-github-runner/aws-powertools-util": "*",
"@terraform-aws-github-runner/aws-ssm-util": "*",
"aws-lambda": "^1.0.7"
Expand Down
31 changes: 15 additions & 16 deletions lambdas/libs/aws-powertools-util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,30 @@
"all": "yarn build && yarn format && yarn lint && yarn test"
},
"devDependencies": {
"@octokit/webhooks-definitions": "^3.67.3",
"@trivago/prettier-plugin-sort-imports": "^4.2.1",
"@types/aws-lambda": "^8.10.137",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/aws-lambda": "^8.10.142",
"@types/express": "^4.17.21",
"@types/jest": "^29.5.12",
"@types/node": "^20.8.9",
"@typescript-eslint/eslint-plugin": "^7.16.0",
"@typescript-eslint/parser": "^7.9.0",
"@types/node": "^22.0.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vercel/ncc": "0.38.1",
"body-parser": "^1.20.2",
"eslint": "^8.56.0",
"eslint-plugin-prettier": "5.1.3",
"eslint": "^8.57.0",
"eslint-plugin-prettier": "5.2.1",
"express": "^4.19.2",
"jest": "^29.5",
"jest-mock": "^29.5.0",
"nock": "^13.4.0",
"prettier": "3.3.2",
"ts-jest": "^29.1.0",
"jest": "^29.7.0",
"jest-mock": "^29.7.0",
"nock": "^13.5.4",
"prettier": "3.3.3",
"ts-jest": "^29.2.3",
"ts-node-dev": "^2.0.0",
"typescript": "^5.4.5"
"typescript": "^5.5.4"
},
"dependencies": {
"@aws-lambda-powertools/logger": "^1.17.0",
"@aws-lambda-powertools/logger": "^1.18.1",
"@aws-lambda-powertools/metrics": "^1.18.1",
"@aws-lambda-powertools/tracer": "^1.14.0",
"@aws-lambda-powertools/tracer": "^1.18.1",
"aws-lambda": "^1.0.7"
},
"nx": {
Expand Down
Loading

0 comments on commit 221958b

Please sign in to comment.