Skip to content

chore(producer): raise the unpacked size budget to 5% above what main ships - #8584

Closed
miguel-heygen wants to merge 1 commit into
mainfrom
chore/producer-size-budget
Closed

miguel-heygen wants to merge 1 commit into
mainfrom
chore/producer-size-budget

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

What

Raises @hyperframes/producer's unpacked size budget from 3,491,355 to 3,702,639 bytes. The packed budget doesn't change.

Why

The size check allows 1% over a budget. Measured on Linux with pnpm pack, main's producer is 3,526,003 bytes unpacked: 265 bytes under that limit. Any change that adds more than that to the runtime the producer bundles fails Build. For example, #8568 adds a 319-byte frame read and goes red on it alone.

The budget was set when the package was about 5% smaller, and the producer has grown since through the runtime it bundles, not through source maps, tests or assets in the tarball. The new value is the script's own headroom, Math.ceil(measured * 1.05) (SIZE_BUDGET_HEADROOM in scripts/verify-packed-manifests.mjs), taken over main plus #8568's 319 bytes (3,526,322). The packed size, 977,466 bytes, stays under its unchanged 993,551 budget and above the 85% ratchet.

Related work

Unblocks #8568, which carries the same change. Once this lands, merging main into #8568 leaves that file untouched there.

How

One number in scripts/package-size-budgets.json.

No visible change

CI only.

Test plan

@miguel-heygen

Copy link
Copy Markdown
Collaborator Author

Closing: #8568 merged with this same budget raise, so main already has 3,702,639.

@miguel-heygen
miguel-heygen deleted the chore/producer-size-budget branch November 23, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant