fix(release): raise npm pack size budget

This commit is contained in:
Vincent Koc
2026-03-23 09:53:13 -07:00
parent 071de383ff
commit c55d4f63eb
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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.",
]);
});