Skip to content

fix(spec): raise DTS build heap 4096→12288 (fix flaky DTS OOM) - #1619

Merged
xuyushun441-sys merged 1 commit into
mainfrom
fix/spec-dts-heap
Jun 6, 2026
Merged

fix(spec): raise DTS build heap 4096→12288 (fix flaky DTS OOM)#1619
xuyushun441-sys merged 1 commit into
mainfrom
fix/spec-dts-heap

Conversation

@xuyushun441-sys

Copy link
Copy Markdown
Contributor

spec build 的 DTS 单独步骤硬编码 NODE_OPTIONS=--max-old-space-size=4096,覆盖了 Docker/CI 外层的 12288——所以类型声明构建被限在 4GB,schema/类型面变大后偶发 ERR_WORKER_OUT_OF_MEMORY,导致 objectos 镜像构建失败(本会话 #143 部署即因此挂)。调到 12288 与外层一致;--max-old-space-size 是上限非预留,小机器也安全。

…OF_MEMORY)
The spec build's separate DTS pass hard-codes NODE_OPTIONS=--max-old-space-size=4096,
which OVERRIDES the Docker/CI outer 12288 — so the type-declaration build runs in a
4GB ceiling and intermittently OOMs (ERR_WORKER_OUT_OF_MEMORY), failing the objectos
image build. The schema/type surface has grown past 4GB for the DTS pass. Match the
outer build budget (12288); --max-old-space-size is a ceiling, not a reservation, so
it is safe on smaller machines too.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercelBot commented Jun 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
specReadyReadyPreview, CommentJun 6, 2026 2:38pm

Request Review

@github-actionsgithub-actionsBot added dependencies Pull requests that update a dependency file size/xs labels Jun 6, 2026
@xuyushun441-sys
xuyushun441-sys merged commit d2ffa9a into mainJun 6, 2026
13 checks passed
@xuyushun441-sys
xuyushun441-sys deleted the fix/spec-dts-heap branch June 6, 2026 14:41
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependenciesPull requests that update a dependency filesize/xs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@xuyushun441-sys@os-zhuang