[GH-ISSUE #7785] Client build runs out of memory on the macOS runners #4296

Closed
opened 2026-10-21 06:14:25 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @ylli-selmani on GitHub (Oct 18, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7785

Originally assigned to: @ylli-selmani on GitHub.

What happens

Native install/build (macos-15) and (macos-15-intel) in Platform Artifact Checks fail with JavaScript heap out of memory during pnpm build, in the client build's type-check. Ubuntu, Windows and the containers pass on the same commits.

Seen on #7773 on every run since it merged staging at 25080a3e2 (runs 39089440573, 39090989470, 39092316527), including a rerun of only the failed jobs. Other branches on older staging still pass.

Why

The client build runs tsc -b before vite build, and a cold type-check of the client now uses about 2.1 GiB of heap (measured with --extendedDiagnostics: 2,142,346K on #7773's branch, 2,151,906K on a branch that passed). Node's default heap scales with the machine's memory: about 4 GiB on a 16 GiB machine, but about 2 GiB on the 7 GiB macOS runners. The crash log shows it stopping at 2041.9 MB.

packages/client/scripts/build.mjs only raises the heap for Android and low-memory builds, so the desktop build has been sitting just under the macOS runners' limit and now goes over it as the client grows. Any branch that merges current staging will start hitting this.

Expected

The desktop client build gets enough heap for its type-check where Node's default is lower, without lowering a larger default or overriding a heap the user sets.

Originally created by @ylli-selmani on GitHub (Oct 18, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7785 Originally assigned to: @ylli-selmani on GitHub. ## What happens `Native install/build (macos-15)` and `(macos-15-intel)` in Platform Artifact Checks fail with `JavaScript heap out of memory` during `pnpm build`, in the client build's type-check. Ubuntu, Windows and the containers pass on the same commits. Seen on #7773 on every run since it merged `staging` at 25080a3e2 (runs 39089440573, 39090989470, 39092316527), including a rerun of only the failed jobs. Other branches on older staging still pass. ## Why The client build runs `tsc -b` before `vite build`, and a cold type-check of the client now uses about 2.1 GiB of heap (measured with `--extendedDiagnostics`: 2,142,346K on #7773's branch, 2,151,906K on a branch that passed). Node's default heap scales with the machine's memory: about 4 GiB on a 16 GiB machine, but about 2 GiB on the 7 GiB macOS runners. The crash log shows it stopping at 2041.9 MB. `packages/client/scripts/build.mjs` only raises the heap for Android and low-memory builds, so the desktop build has been sitting just under the macOS runners' limit and now goes over it as the client grows. Any branch that merges current `staging` will start hitting this. ## Expected The desktop client build gets enough heap for its type-check where Node's default is lower, without lowering a larger default or overriding a heap the user sets.
bsakaguchi 2026-10-21 06:14:25 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4296
No description provided.