From c31614a582e746d4c51c6cb916d938556c4986fe Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Wed, 3 Apr 2024 11:45:41 +0100 Subject: [PATCH] Give test-libraries its own container namespace, give packages/server/scripts/test.sh some new params in the larger runners. --- .github/workflows/budibase_ci.yml | 2 +- packages/server/scripts/test.sh | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/budibase_ci.yml b/.github/workflows/budibase_ci.yml index 3d166dc262..b72d6793af 100644 --- a/.github/workflows/budibase_ci.yml +++ b/.github/workflows/budibase_ci.yml @@ -93,7 +93,7 @@ jobs: runs-on: ubuntu-latest env: REUSE_CONTAINERS: true - CONTAINER_NAMESPACE: test-server + CONTAINER_NAMESPACE: test-libraries steps: - name: Checkout repo uses: actions/checkout@v4 diff --git a/packages/server/scripts/test.sh b/packages/server/scripts/test.sh index 3ecf8bb794..3100d1911f 100644 --- a/packages/server/scripts/test.sh +++ b/packages/server/scripts/test.sh @@ -1,14 +1,13 @@ #!/bin/bash set -e +export NODE_OPTIONS="--no-node-snapshot $NODE_OPTIONS" + if [[ -n $CI ]] then - export NODE_OPTIONS="--max-old-space-size=4096 --no-node-snapshot $NODE_OPTIONS" - echo "jest --coverage --maxWorkers=2 --forceExit --workerIdleMemoryLimit=2000MB --bail $@" - jest --coverage --maxWorkers=2 --forceExit --workerIdleMemoryLimit=2000MB --bail $@ + echo "jest --coverage --maxWorkers=4 --forceExit --bail $@" + jest --coverage --maxWorkers=2 --forceExit --bail $@ else - # --maxWorkers performs better in development - export NODE_OPTIONS="--no-node-snapshot $NODE_OPTIONS" echo "jest --coverage --maxWorkers=2 --forceExit $@" jest --coverage --maxWorkers=2 --forceExit $@ fi \ No newline at end of file