ci: 修复 4G 内存 runner 重型套件 OOM(exit 137)— 重型套件仅 20.x 单版本跑(矩阵并行 4 份各 ~1.2GB RSS 超限)+ 常规套件 maxWorkers 2→1
This commit is contained in:
@@ -39,11 +39,16 @@ jobs:
|
||||
# 此前重型测试(10 万行 kv/opfs、生产矩阵)与常规套件在慢 runner 上并行
|
||||
# 争抢 CPU 与 4GB 堆 → 单测超时(120~180s)与 OOM 类假失败。
|
||||
- name: Run tests (regular suites)
|
||||
run: npx jest --forceExit --maxWorkers=2 --no-cache --testPathIgnorePatterns='/node_modules/|/tests/e2e/|/tests/helpers/|aria-prod-load|kvstore-stress|aria-matrix-audit|aria-idx-flush-race'
|
||||
run: npx jest --forceExit --maxWorkers=1 --no-cache --testPathIgnorePatterns='/node_modules/|/tests/e2e/|/tests/helpers/|aria-prod-load|kvstore-stress|aria-matrix-audit|aria-idx-flush-race'
|
||||
env:
|
||||
NODE_OPTIONS: --max-old-space-size=4096
|
||||
|
||||
# v0.7.3-ci: 重型套件只在单一 Node 版本(20.x LTS)跑一次 ——
|
||||
# 压力测试验证存储正确性/性能护栏,不依赖 Node 版本差异;
|
||||
# 4 个矩阵 job 并行时重型套件各占 ~1.2GB RSS(实测),
|
||||
# 4G 内存 runner 上 4 份并行必被 OOM killer 杀掉(exit 137)。
|
||||
- name: Run tests (heavy suites, serial)
|
||||
if: matrix.node-version == '20.x'
|
||||
run: npx jest --forceExit --runInBand --no-cache tests/engine/aria-prod-load.test.ts tests/engine/kvstore-stress.test.ts tests/engine/aria-matrix-audit.test.ts tests/engine/aria-idx-flush-race.test.ts
|
||||
env:
|
||||
NODE_OPTIONS: --max-old-space-size=4096
|
||||
|
||||
Reference in New Issue
Block a user