From ec6fae6b4e06cca3cd55fe07b745fdc074db09d7 Mon Sep 17 00:00:00 2001 From: Simon Kim Date: Fri, 20 Mar 2026 14:17:58 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20bump=20NODE=5FOPTIONS=20heap=20limit=2061?= =?UTF-8?q?44=E2=86=928192=20to=20fix=20OOM=20crashes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bump --max-old-space-size from 6144 to 8192 in all CI test jobs: - Linux: OPENCLAW_TEST_MAX_OLD_SPACE_SIZE_MB (x2) - Windows: NODE_OPTIONS env Fixes JavaScript heap out of memory crashes during test runs on PR #34942. --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f87c816488..4fc1ebe05b7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -242,7 +242,7 @@ jobs: # `pnpm test` runs `scripts/test-parallel.mjs`, which spawns multiple Node processes. # Default heap limits have been too low on Linux CI (V8 OOM near 4GB). echo "OPENCLAW_TEST_WORKERS=2" >> "$GITHUB_ENV" - echo "OPENCLAW_TEST_MAX_OLD_SPACE_SIZE_MB=6144" >> "$GITHUB_ENV" + echo "OPENCLAW_TEST_MAX_OLD_SPACE_SIZE_MB=8192" >> "$GITHUB_ENV" if [ -n "$SHARD_COUNT" ] && [ -n "$SHARD_INDEX" ]; then echo "OPENCLAW_TEST_SHARDS=$SHARD_COUNT" >> "$GITHUB_ENV" echo "OPENCLAW_TEST_SHARD_INDEX=$SHARD_INDEX" >> "$GITHUB_ENV" @@ -487,7 +487,7 @@ jobs: run: | # Keep the compatibility lane aligned with the default Node test lane. echo "OPENCLAW_TEST_WORKERS=2" >> "$GITHUB_ENV" - echo "OPENCLAW_TEST_MAX_OLD_SPACE_SIZE_MB=6144" >> "$GITHUB_ENV" + echo "OPENCLAW_TEST_MAX_OLD_SPACE_SIZE_MB=8192" >> "$GITHUB_ENV" - name: Build under Node 22 run: pnpm build @@ -608,7 +608,7 @@ jobs: runs-on: blacksmith-32vcpu-windows-2025 timeout-minutes: 45 env: - NODE_OPTIONS: --max-old-space-size=6144 + NODE_OPTIONS: --max-old-space-size=8192 # Keep total concurrency predictable on the 32 vCPU runner. # Windows shard 2 has shown intermittent instability at 2 workers. OPENCLAW_TEST_WORKERS: 1