From 8e1fef0d065d19e412136c74cf6e6a53379cd41a Mon Sep 17 00:00:00 2001 From: MickLesk <47820557+MickLesk@users.noreply.github.com> Date: Wed, 18 Nov 2026 00:22:45 +0100 Subject: [PATCH] Paperclip: type-check the server with one checker so the build fits in 8 GB Since v2026.1106.0 the server's tsc 7 run peaks at ~8.5 GB with its default 4 checkers and gets killed in an 8 GB container (exit 137, #18819). With one checker it peaks at ~5.7 GB; the full build passes at 8 GB. --- ct/paperclip.sh | 1 + install/paperclip-install.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ct/paperclip.sh b/ct/paperclip.sh index ff3e4ad60..e141ce5f2 100644 --- a/ct/paperclip.sh +++ b/ct/paperclip.sh @@ -54,6 +54,7 @@ function update_script() { msg_warn "The lockfile of this release is out of date, resolving dependencies without it" $STD pnpm install --no-frozen-lockfile } + sed -i 's/"compilerOptions": {/&\n "checkers": 1,/' server/tsconfig.json $STD pnpm build unset NODE_OPTIONS msg_ok "Rebuilt Paperclip" diff --git a/install/paperclip-install.sh b/install/paperclip-install.sh index 351fa46c0..c36db8b62 100644 --- a/install/paperclip-install.sh +++ b/install/paperclip-install.sh @@ -36,6 +36,8 @@ $STD pnpm install --frozen-lockfile || { msg_warn "The lockfile of this release is out of date, resolving dependencies without it" $STD pnpm install --no-frozen-lockfile } +# tsc 7 type-checks the server with 4 checkers by default and needs ~8.5 GB that way, ~5.7 GB with one +sed -i 's/"compilerOptions": {/&\n "checkers": 1,/' server/tsconfig.json $STD pnpm build unset NODE_OPTIONS msg_ok "Built Paperclip"