From 0112fd215d7c553fb244682a69c815afaab550eb Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 17 Jun 2025 18:07:53 -0700 Subject: [PATCH 1/2] Pull a docker image with Node 22 --- cases/common.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cases/common.sh b/cases/common.sh index 4c40271..23691ff 100755 --- a/cases/common.sh +++ b/cases/common.sh @@ -41,8 +41,7 @@ function run_sandboxed() { DOCKER_RUNTIME=runsc fi - # This image is mirrored and will not be rate limited. - NODE_IMAGE=mcr.microsoft.com/mirror/docker/library/node:20 + NODE_IMAGE=mcr.microsoft.com/devcontainers/javascript-node:22 INTERNET=ts-perf-sandbox-internet NO_INTERNET=ts-perf-sandbox-internal From e034d5d1002bf7ff144a723b005d64217e33ee43 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 17 Jun 2025 18:14:32 -0700 Subject: [PATCH 2/2] ignore engines --- cases/scenarios/angular-1/setup.sh | 2 +- cases/scenarios/vscode-1/setup.sh | 2 +- cases/scenarios/vscode/setup.sh | 2 +- cases/scenarios/webpack-1/setup.sh | 2 +- cases/scenarios/webpack/setup.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cases/scenarios/angular-1/setup.sh b/cases/scenarios/angular-1/setup.sh index 25d0844..690a39d 100755 --- a/cases/scenarios/angular-1/setup.sh +++ b/cases/scenarios/angular-1/setup.sh @@ -7,4 +7,4 @@ source ../../common.sh clone_scenario https://github.com/angular/angular.git cc57d4c4998b4e38f940afdf358af37185028072 -run_sandboxed sh -c 'yarn install --ignore-scripts' +run_sandboxed sh -c 'yarn install --ignore-scripts --ignore-engines' diff --git a/cases/scenarios/vscode-1/setup.sh b/cases/scenarios/vscode-1/setup.sh index 69dbf54..4cd96f3 100755 --- a/cases/scenarios/vscode-1/setup.sh +++ b/cases/scenarios/vscode-1/setup.sh @@ -7,4 +7,4 @@ source ../../common.sh clone_scenario https://github.com/microsoft/vscode.git f88bce8fe6a6d2ccd27cbd64bb26853cd8779afa -run_sandboxed sh -c 'yarn install --ignore-scripts' +run_sandboxed sh -c 'yarn install --ignore-scripts --ignore-engines' diff --git a/cases/scenarios/vscode/setup.sh b/cases/scenarios/vscode/setup.sh index dbce3db..127c4c1 100755 --- a/cases/scenarios/vscode/setup.sh +++ b/cases/scenarios/vscode/setup.sh @@ -7,4 +7,4 @@ source ../../common.sh clone_scenario https://github.com/microsoft/vscode.git -run_sandboxed sh -c 'yarn install --ignore-scripts' +run_sandboxed sh -c 'npm ci --ignore-scripts' diff --git a/cases/scenarios/webpack-1/setup.sh b/cases/scenarios/webpack-1/setup.sh index 8cfc851..c544fc5 100755 --- a/cases/scenarios/webpack-1/setup.sh +++ b/cases/scenarios/webpack-1/setup.sh @@ -9,7 +9,7 @@ clone_scenario https://github.com/webpack/webpack.git 228fc69f40c3e9ec6d99a5105f run_sandboxed sh -c ' set -ex - yarn install --ignore-scripts + yarn install --ignore-scripts --ignore-engines # https://github.com/webpack/webpack/blob/228fc69f40c3e9ec6d99a5105fdc85b5bca4ce43/.github/workflows/test.yml#L135 LINK_FOLDER=$PWD/node_modules/.yarn-link diff --git a/cases/scenarios/webpack/setup.sh b/cases/scenarios/webpack/setup.sh index 803973c..6e33326 100755 --- a/cases/scenarios/webpack/setup.sh +++ b/cases/scenarios/webpack/setup.sh @@ -9,7 +9,7 @@ clone_scenario https://github.com/webpack/webpack.git run_sandboxed sh -c ' set -ex - yarn install --ignore-scripts + yarn install --ignore-scripts --ignore-engines # https://github.com/webpack/webpack/blob/228fc69f40c3e9ec6d99a5105fdc85b5bca4ce43/.github/workflows/test.yml#L135 LINK_FOLDER=$PWD/node_modules/.yarn-link