Repository navigation
Raise production webpack heap limit to 8 GiB - #23224
Merged
Merged
Conversation
The production compile now peaks just above the 4 GiB V8 heap limit, causing intermittent out-of-memory failures in CI (#23223) and locally (#23217). Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the production build heap-limit increase.
No open issues 🎉
What changed in this PR
Increases memory headroom for GitHub Desktop’s production webpack build to address the heap exhaustion reported in #23223 and #23217.
Changes:
- Raises the
compile:prodV8 heap ceiling from 4 GiB to 8 GiB. - Retains existing type-checking and source-map generation, with no application runtime changes.
| File | Description |
|---|---|
package.json |
Increases compile:prod’s --max_old_space_size from 4096 to 8192. |
Review effort: Balanced
babakks
approved these changes
Nov 26, 2026
sergiou87
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No tracking issue; relates to the CI failures in #23223 and the local workaround described in #23217.
Description
npm run compile:prodcapped the V8 heap at 4096 MB. The production build (five webpack configs in one process, each type-checking withts-loaderand emitting source maps) now peaks just above that, so it fails withFATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory.--max_old_space_size=8192.ts-loadertranspileOnlywould cut memory substantially. It would also remove the only type-check ofapp/srcin CI, so it is left out of this minimal fix.Validation (macOS arm64, Node 24.19.0, commit 3d25f25):
/usr/bin/time -l npm run compile:prodbefore the change (4096): failed, heap out of memory, max RSS ≈ 4.51 GB./usr/bin/time -l npm run compile:prodafter the change (8192): passed, all 5 configs compiled, max RSS ≈ 4.40–4.65 GB across two runs.npx prettier --check package.json: passed.Screenshots
N/A, build tooling only.
Release notes
Notes: no-notes
Team-authored review
Evidence: See the validation results in the Description. No visual artifact: this is a one-line build-script change with no UI or runtime effect.
Review path: Lightweight review. The change only affects the build-time Node heap limit and does not touch security, data-loss, release-signing, or update paths. Draft until the author confirms their assessment.