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

xuyushun441-sys merged 1 commit into
mainfrom
fix/spec-dts-heap

Conversation

@xuyushun441-sys

Copy link
Copy Markdown
Collaborator

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

vercel Bot commented Jun 6, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
spec Ready Ready Preview, Comment Jun 6, 2026 2:38pm

Request Review

@github-actions github-actions Bot added dependencies Pull requests that update a dependency file size/xs labels Jun 6, 2026
@xuyushun441-sys
xuyushun441-sys merged commit d2ffa9a into main Jun 6, 2026
13 checks passed
@xuyushun441-sys
xuyushun441-sys deleted the fix/spec-dts-heap branch June 6, 2026 14:41

This branch was successfully deployed

1 active deployment
Preview — 30fe896e Deployed Jun 6, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file size/xs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants