From c55d4f63ebcf2e2fa0077c56668bdc5e149153e9 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Mon, 23 Mar 2026 09:53:13 -0700 Subject: [PATCH] fix(release): raise npm pack size budget --- scripts/release-check.ts | 2 +- test/release-check.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/release-check.ts b/scripts/release-check.ts index 6a2f7324743..0218f2338af 100755 --- a/scripts/release-check.ts +++ b/scripts/release-check.ts @@ -33,7 +33,7 @@ const forbiddenPrefixes = ["dist-runtime/", "dist/OpenClaw.app/"]; // 2026.3.12 ballooned to ~213.6 MiB unpacked and correlated with low-memory // startup/doctor OOM reports. Keep enough headroom for the current pack with // restored bundled upgrade surfaces while still catching regressions quickly. -const npmPackUnpackedSizeBudgetBytes = 176 * 1024 * 1024; +const npmPackUnpackedSizeBudgetBytes = 190 * 1024 * 1024; const appcastPath = resolve("appcast.xml"); const laneBuildMin = 1_000_000_000; const laneFloorAdoptionDateKey = 20260227; diff --git a/test/release-check.test.ts b/test/release-check.test.ts index 6d9d4ecd61e..070d00831c8 100644 --- a/test/release-check.test.ts +++ b/test/release-check.test.ts @@ -172,7 +172,7 @@ describe("collectPackUnpackedSizeErrors", () => { expect( collectPackUnpackedSizeErrors([makePackResult("openclaw-2026.3.12.tgz", 224_002_564)]), ).toEqual([ - "openclaw-2026.3.12.tgz unpackedSize 224002564 bytes (213.6 MiB) exceeds budget 184549376 bytes (176.0 MiB). Investigate duplicate channel shims, copied extension trees, or other accidental pack bloat before release.", + "openclaw-2026.3.12.tgz unpackedSize 224002564 bytes (213.6 MiB) exceeds budget 199229440 bytes (190.0 MiB). Investigate duplicate channel shims, copied extension trees, or other accidental pack bloat before release.", ]); });