From fb53fdc062c6668073b3257436a2440a0f2012d5 Mon Sep 17 00:00:00 2001 From: gagik Date: Fri, 25 Oct 2024 15:03:03 +0200 Subject: [PATCH 1/8] WIP: use renamed package --- testing/test-vscode.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/testing/test-vscode.sh b/testing/test-vscode.sh index 9e65e169f..bc14556a5 100755 --- a/testing/test-vscode.sh +++ b/testing/test-vscode.sh @@ -12,6 +12,7 @@ rm -rf "$test_root_dir" && mkdir -p "$test_root_dir" cd "$test_root_dir" git clone --depth=10 https://github.com/mongodb-js/vscode.git cd vscode +git checkout gagik/mongosh-package-update npm install --force rm -rf node_modules/@mongosh (cd node_modules && ln -s "$mongosh_root_dir/packages" @mongosh) From 8167217e27f747408e3c66fee6fd0465d934570a Mon Sep 17 00:00:00 2001 From: gagik Date: Fri, 25 Oct 2024 15:42:06 +0200 Subject: [PATCH 2/8] Add origin --- testing/test-vscode.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test-vscode.sh b/testing/test-vscode.sh index bc14556a5..263d58215 100755 --- a/testing/test-vscode.sh +++ b/testing/test-vscode.sh @@ -12,7 +12,7 @@ rm -rf "$test_root_dir" && mkdir -p "$test_root_dir" cd "$test_root_dir" git clone --depth=10 https://github.com/mongodb-js/vscode.git cd vscode -git checkout gagik/mongosh-package-update +git checkout origin/gagik/mongosh-package-update npm install --force rm -rf node_modules/@mongosh (cd node_modules && ln -s "$mongosh_root_dir/packages" @mongosh) From 244f5f45cfc2ee3a4d250df93fdf8f5e9a208da4 Mon Sep 17 00:00:00 2001 From: gagik Date: Fri, 25 Oct 2024 15:58:00 +0200 Subject: [PATCH 3/8] checkout right away --- testing/test-vscode.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/testing/test-vscode.sh b/testing/test-vscode.sh index 263d58215..8f47c3363 100755 --- a/testing/test-vscode.sh +++ b/testing/test-vscode.sh @@ -10,9 +10,8 @@ test_root_dir=/tmp/mongosh-vscode-test export SEGMENT_KEY=GtEn04CBjn39g6A0BxldDf81YGFONOz7 # fresh from /dev/urandom rm -rf "$test_root_dir" && mkdir -p "$test_root_dir" cd "$test_root_dir" -git clone --depth=10 https://github.com/mongodb-js/vscode.git +git clone -b origin/gagik/mongosh-package-update --depth=10 https://github.com/mongodb-js/vscode.git cd vscode -git checkout origin/gagik/mongosh-package-update npm install --force rm -rf node_modules/@mongosh (cd node_modules && ln -s "$mongosh_root_dir/packages" @mongosh) From 43ee6246f88eeb54b2f5ff2d6bcfe92c20b77039 Mon Sep 17 00:00:00 2001 From: gagik Date: Fri, 25 Oct 2024 15:58:18 +0200 Subject: [PATCH 4/8] no origin specified --- testing/test-vscode.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test-vscode.sh b/testing/test-vscode.sh index 8f47c3363..071ceedfc 100755 --- a/testing/test-vscode.sh +++ b/testing/test-vscode.sh @@ -10,7 +10,7 @@ test_root_dir=/tmp/mongosh-vscode-test export SEGMENT_KEY=GtEn04CBjn39g6A0BxldDf81YGFONOz7 # fresh from /dev/urandom rm -rf "$test_root_dir" && mkdir -p "$test_root_dir" cd "$test_root_dir" -git clone -b origin/gagik/mongosh-package-update --depth=10 https://github.com/mongodb-js/vscode.git +git clone -b gagik/mongosh-package-update --depth=10 https://github.com/mongodb-js/vscode.git cd vscode npm install --force rm -rf node_modules/@mongosh From dd94792ad4c0964a0996cead9d030143dd1b6d5c Mon Sep 17 00:00:00 2001 From: gagik Date: Thu, 31 Oct 2024 14:36:31 +0100 Subject: [PATCH 5/8] try higher space size --- testing/test-vscode.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/testing/test-vscode.sh b/testing/test-vscode.sh index 071ceedfc..62f8f6222 100755 --- a/testing/test-vscode.sh +++ b/testing/test-vscode.sh @@ -7,6 +7,7 @@ npm -v # we pick a target directory that is not affected by the mongosh node_modules directory mongosh_root_dir=$PWD test_root_dir=/tmp/mongosh-vscode-test +export NODE_OPTIONS=--max-old-space-size=2048 export SEGMENT_KEY=GtEn04CBjn39g6A0BxldDf81YGFONOz7 # fresh from /dev/urandom rm -rf "$test_root_dir" && mkdir -p "$test_root_dir" cd "$test_root_dir" From 6589a2bf38d6367cb1d6fb0ce9c64afcb8577609 Mon Sep 17 00:00:00 2001 From: gagik Date: Wed, 13 Nov 2024 11:37:30 +0100 Subject: [PATCH 6/8] another attempt --- testing/test-vscode.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/test-vscode.sh b/testing/test-vscode.sh index 62f8f6222..7d10c9d30 100755 --- a/testing/test-vscode.sh +++ b/testing/test-vscode.sh @@ -7,7 +7,7 @@ npm -v # we pick a target directory that is not affected by the mongosh node_modules directory mongosh_root_dir=$PWD test_root_dir=/tmp/mongosh-vscode-test -export NODE_OPTIONS=--max-old-space-size=2048 +export NODE_OPTIONS=--max-old-space-size=4096 export SEGMENT_KEY=GtEn04CBjn39g6A0BxldDf81YGFONOz7 # fresh from /dev/urandom rm -rf "$test_root_dir" && mkdir -p "$test_root_dir" cd "$test_root_dir" @@ -16,6 +16,6 @@ cd vscode npm install --force rm -rf node_modules/@mongosh (cd node_modules && ln -s "$mongosh_root_dir/packages" @mongosh) -npm test +NODE_OPTIONS=--max-old-space-size=4096 npm test cd /tmp rm -rf "$test_root_dir" From 95585cb0b461fa914e00386902640bfc1deebaf4 Mon Sep 17 00:00:00 2001 From: gagik Date: Tue, 19 Nov 2024 09:11:27 +0100 Subject: [PATCH 7/8] regular clone --- testing/test-vscode.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test-vscode.sh b/testing/test-vscode.sh index 7d10c9d30..3f2a16bca 100755 --- a/testing/test-vscode.sh +++ b/testing/test-vscode.sh @@ -11,7 +11,7 @@ export NODE_OPTIONS=--max-old-space-size=4096 export SEGMENT_KEY=GtEn04CBjn39g6A0BxldDf81YGFONOz7 # fresh from /dev/urandom rm -rf "$test_root_dir" && mkdir -p "$test_root_dir" cd "$test_root_dir" -git clone -b gagik/mongosh-package-update --depth=10 https://github.com/mongodb-js/vscode.git +git clone --depth=10 https://github.com/mongodb-js/vscode.git cd vscode npm install --force rm -rf node_modules/@mongosh From dd1a0dc7118748574c18d26e63eb1c7e1fb03e32 Mon Sep 17 00:00:00 2001 From: gagik Date: Fri, 22 Nov 2024 13:15:18 +0100 Subject: [PATCH 8/8] Add a comment and clean up the test --- testing/test-vscode.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test-vscode.sh b/testing/test-vscode.sh index 3f2a16bca..b5516e4dc 100755 --- a/testing/test-vscode.sh +++ b/testing/test-vscode.sh @@ -7,7 +7,6 @@ npm -v # we pick a target directory that is not affected by the mongosh node_modules directory mongosh_root_dir=$PWD test_root_dir=/tmp/mongosh-vscode-test -export NODE_OPTIONS=--max-old-space-size=4096 export SEGMENT_KEY=GtEn04CBjn39g6A0BxldDf81YGFONOz7 # fresh from /dev/urandom rm -rf "$test_root_dir" && mkdir -p "$test_root_dir" cd "$test_root_dir" @@ -16,6 +15,7 @@ cd vscode npm install --force rm -rf node_modules/@mongosh (cd node_modules && ln -s "$mongosh_root_dir/packages" @mongosh) +# This test can require a lot of memory so we bump the maximum size. NODE_OPTIONS=--max-old-space-size=4096 npm test cd /tmp rm -rf "$test_root_dir"