From 30fe896ece4b24412c64a90689222379b150d4c9 Mon Sep 17 00:00:00 2001 From: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com> Date: Sat, 6 Jun 2026 22:35:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(spec):=20raise=20DTS=20build=20heap=204096?= =?UTF-8?q?=E2=86=9212288=20(fix=20flaky=20ERR=5FWORKER=5FOUT=5FOF=5FMEMOR?= =?UTF-8?q?Y)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- packages/spec/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/spec/package.json b/packages/spec/package.json index 4d72f2a444..f91d69a5e4 100644 --- a/packages/spec/package.json +++ b/packages/spec/package.json @@ -178,7 +178,7 @@ "src/**/*.zod.ts" ], "scripts": { - "build": "pnpm gen:schema && pnpm gen:openapi && tsup && if [ -z \"$OS_SKIP_DTS\" ]; then NODE_OPTIONS=\"--max-old-space-size=4096\" BUILD_DTS=true tsup; fi", + "build": "pnpm gen:schema && pnpm gen:openapi && tsup && if [ -z \"$OS_SKIP_DTS\" ]; then NODE_OPTIONS=\"--max-old-space-size=12288\" BUILD_DTS=true tsup; fi", "dev": "tsc --watch", "clean": "rm -rf dist", "gen:schema": "OS_EAGER_SCHEMAS=1 tsx scripts/build-schemas.ts",