Skip to content

Commit 0dcef31

Browse files
Mbd06bclaude
andcommitted
fix: drop to 1 Jest worker to prevent OOMKill
2 workers + coverage instrumentation exceeded 8Gi container limit. Single worker with 4GB heap keeps total memory under control. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0fcaaed commit 0dcef31

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Jenkinsfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,10 @@ spec:
179179
dir('sophia') {
180180
sh '''#!/bin/bash
181181
set -euo pipefail
182-
# 2560MB per process × 3 (parent + 2 workers) fits in 8Gi container
183-
export NODE_OPTIONS="--max-old-space-size=2560"
184-
pnpm exec jest --ci --coverage --maxWorkers=2
182+
# Single worker to stay within 8Gi container limit
183+
# Coverage instrumentation inflates memory significantly
184+
export NODE_OPTIONS="--max-old-space-size=4096"
185+
pnpm exec jest --ci --coverage --maxWorkers=1
185186
'''
186187
}
187188
}

0 commit comments

Comments
 (0)