From f1a61620bccf1ddeb4c95bdb26d4f5855943d012 Mon Sep 17 00:00:00 2001 From: Tom Boucher Date: Mon, 18 May 2026 14:14:52 -0400 Subject: [PATCH] fix(ci): bump coverage heap budget + Windows npm timeout in runNpm helper (#3704) Set NODE_OPTIONS=--max-old-space-size=6144 on the Unit coverage step so the c8 report phase has 6 GB instead of Node's default ~4 GB heap; the Linux Node 24 runner has 7 GB available so this leaves 1 GB headroom. Raise the runNpm default timeout from 55 000 ms to 180 000 ms so cold-cache Windows npm install -g runs (which take 60-90 s on NTFS + Defender) complete before the child process is killed. Refs #3703 Co-authored-by: Claude Opus 4.7 --- .github/workflows/test.yml | 2 ++ tests/helpers.cjs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8ca022d88..8c21d0f45 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -219,6 +219,8 @@ jobs: run: npm run build:sdk - name: Unit coverage shell: bash + env: + NODE_OPTIONS: --max-old-space-size=6144 run: npm run test:coverage:unit - name: Upload coverage artifact if: always() diff --git a/tests/helpers.cjs b/tests/helpers.cjs index e07e8c662..fa93a9dc7 100644 --- a/tests/helpers.cjs +++ b/tests/helpers.cjs @@ -250,7 +250,7 @@ function runNpm(args, options = {}) { const defaults = { encoding: 'utf-8', shell: isWindows, - timeout: 55000, + timeout: 180000, }; return execFileSync(npmCmd, args, { ...defaults, ...options }).trim(); }