Quellcode durchsuchen

ci: raise Node heap ceiling for type-aware ESLint lint step

Type-aware ESLint loads every package tsconfig through the project
service and peaks at ~3.4GB RSS. The default V8 old-space ceiling
(~2GB) OOMs it (FATAL ERROR: Ineffective mark-compacts near heap
limit, exit 134) on both node 24 and 26. Set NODE_OPTIONS with an
8GB ceiling for the Lint step, comfortably above the peak.
Tianyi Cui vor 3 Monaten
Ursprung
Commit
0619ce62b6
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  1. 5 0
      .github/workflows/ci.yml

+ 5 - 0
.github/workflows/ci.yml

@@ -39,8 +39,13 @@ jobs:
       - name: Typecheck (src + tests + examples)
         run: pnpm run typecheck
 
+      # Type-aware ESLint loads every package tsconfig through the project
+      # service and peaks at ~3.4GB; the default V8 old-space ceiling (~2GB)
+      # OOMs it (exit 134). Raise the ceiling well above the peak.
       - name: Lint
         run: pnpm run lint
+        env:
+          NODE_OPTIONS: --max-old-space-size=8192
 
       # Doc-sync gates (doc-sync-enforcement RFC). doc-typecheck compiles the
       # fenced ts blocks against the root project-reference graph. The cordis