Skip to content

fix(build): increase ESLint memory limit to 12288MB (#999) - #1012

Merged
kyasbal merged 1 commit into
GoogleCloudPlatform:mainfrom
kyasbal:push-stukxkkuxrxy
Sep 16, 2026
Merged

kyasbal merged 1 commit into
GoogleCloudPlatform:mainfrom
kyasbal:push-stukxkkuxrxy

Conversation

@kyasbal

@kyasbal kyasbal commented Sep 16, 2026

Copy link
Copy Markdown
Member

Fixes #999

Summary

  • Increase --max-old-space-size for npx ng lint in scripts/make/lint.mk from 8192 to 12288 MB via a configurable NODE_MAX_OLD_SPACE_SIZE ?= 12288 variable.
  • 12288 MB provides +4 GB of additional V8 Old Space headroom to prevent ESLint OOM errors while ensuring V8 garbage collection runs before process RSS exceeds physical RAM on GitHub Actions 16 GB ubuntu-latest runners (avoiding Linux kernel OOM killer exit code 137).
  • Change NODE_OPTIONS assignment in scripts/make/hooks.mk to use ?= so recursive $(MAKE) calls during make pre-commit do not repeatedly append duplicate flags.
@kyasbal kyasbal added type:bug Something isn't working as expected area:frontend Web frontend application and UI components area:devenv Development environment, Makefile, and build tooling labels Sep 16, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the configuration of NODE_OPTIONS in the Makefile scripts, introducing a configurable NODE_MAX_OLD_SPACE_SIZE variable for the frontend linter and changing the assignment operator in hooks.mk. The review feedback correctly identifies that using ?= in hooks.mk can completely omit the memory limit flag if NODE_OPTIONS is already defined in the environment, potentially causing OOM errors. Additionally, the feedback points out that overwriting NODE_OPTIONS in lint.mk discards other environment options, and suggests appending the flags in both cases to ensure robustness.

Comment thread scripts/make/hooks.mk Resolved
Comment thread scripts/make/lint.mk Resolved
@kyasbal
kyasbal added this pull request to the merge queue Sep 16, 2026
Merged via the queue into GoogleCloudPlatform:main with commit 2c3733d Sep 16, 2026
17 checks passed
@kyasbal
kyasbal deleted the push-stukxkkuxrxy branch September 16, 2026 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:devenv Development environment, Makefile, and build tooling area:frontend Web frontend application and UI components type:bug Something isn't working as expected

1 participant