You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] make lint-web fails with JavaScript heap out of memory due to 8192MB limit in scripts/make/lint.mk #999
area:devenvDevelopment environment, Makefile, and build toolingarea:frontendWeb frontend application and UI componentstype:bugSomething isn't working as expected
Running make lint-web or make pre-commit fails with JavaScript heap out of memory during ng lint.
Current behavior
In scripts/make/lint.mk:
lint-web: $(GENERATE_FRONTEND_DUMMY)## Run frontend lintercd web && NODE_OPTIONS="--max-old-space-size=8192" npx ng lint
cd web && npm run lint:style
With recent additions to the frontend (such as DAG viewer, task graph debug Smart/Layout components, view models, and type-checked ESLint rules), ESLint memory consumption exceeds 8,192 MB (8 GB), causing node to terminate with FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory.
Expected behavior
make lint-web and make pre-commit should complete linting successfully without running out of memory.
Reproductive steps
Run make lint-web on a clean workspace with latest frontend changes.
Observe ESLint OOM crash.
Suggested Fix
Increase --max-old-space-size in scripts/make/lint.mk from 8192 to 12288 (12 GB) or 16384 (16 GB):
lint-web: $(GENERATE_FRONTEND_DUMMY)## Run frontend lintercd web && NODE_OPTIONS="--max-old-space-size=16384" npx ng lint
cd web && npm run lint:style
area:devenvDevelopment environment, Makefile, and build toolingarea:frontendWeb frontend application and UI componentstype:bugSomething isn't working as expected
Activity
fix(build): increase ESLint memory limit to 12288MB (GoogleCloudPlatf…