From cdf2b954fb840c669d4535ed784b02569e8573c8 Mon Sep 17 00:00:00 2001 From: Alena Khineika Date: Fri, 9 Aug 2024 18:22:42 +0200 Subject: [PATCH 1/2] chore: use Node.js 20 in CI VSCODE-586 --- .github/workflows/draft-release.yaml | 2 +- .github/workflows/publish-release.yaml | 2 +- .github/workflows/test-and-build.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/draft-release.yaml b/.github/workflows/draft-release.yaml index d7e3ea565..1d4f8b5c8 100644 --- a/.github/workflows/draft-release.yaml +++ b/.github/workflows/draft-release.yaml @@ -32,7 +32,7 @@ jobs: - name: Setup Node.js Environment uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 20.16.0 - name: Determine Next Version shell: bash diff --git a/.github/workflows/publish-release.yaml b/.github/workflows/publish-release.yaml index 051b5f6e2..787c02f3c 100644 --- a/.github/workflows/publish-release.yaml +++ b/.github/workflows/publish-release.yaml @@ -12,7 +12,7 @@ jobs: - name: Setup Node.js Environment uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 20.16.0 - name: Install npm run: npm install -g npm@8.19.4 diff --git a/.github/workflows/test-and-build.yaml b/.github/workflows/test-and-build.yaml index e7fd88c8c..a0e1b8c9f 100644 --- a/.github/workflows/test-and-build.yaml +++ b/.github/workflows/test-and-build.yaml @@ -30,7 +30,7 @@ jobs: - name: Setup Node.js Environment uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 20.16.0 - name: Run tests and build uses: ./.github/workflows/actions/test-and-build From 81e469b9986aab9b170e5eedfd3e5531bfa1645a Mon Sep 17 00:00:00 2001 From: Alena Khineika Date: Fri, 9 Aug 2024 19:06:44 +0200 Subject: [PATCH 2/2] fix: try to resolve a regression of out of memory crashes of webpack --- .github/workflows/actions/test-and-build/action.yaml | 2 +- webpack.config.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/actions/test-and-build/action.yaml b/.github/workflows/actions/test-and-build/action.yaml index f69e43675..2b9438281 100644 --- a/.github/workflows/actions/test-and-build/action.yaml +++ b/.github/workflows/actions/test-and-build/action.yaml @@ -76,7 +76,7 @@ runs: - name: Build .vsix env: - NODE_OPTIONS: "--require ./scripts/no-npm-list-fail.js" + NODE_OPTIONS: "--require ./scripts/no-npm-list-fail.js --max_old_space_size=4096" # NOTE: --githubBranch is "The GitHub branch used to infer relative links in README.md." run: | npx vsce package --githubBranch main diff --git a/webpack.config.js b/webpack.config.js index be508b8d0..95a218cba 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -202,6 +202,12 @@ module.exports = (env, argv) => { process: 'process/browser', }), ], + watchOptions: { + // For some systems, watching many files can result in a lot of CPU or memory usage + // https://webpack.js.org/configuration/watch/#watchoptionsignored + // don't use this pattern, if you have a monorepo with linked packages. + ignored: /node_modules/, + }, }); return [