Repository navigation
chore(producer): raise the unpacked size budget to 5% above what main ships - #8584
Closed
miguel-heygen wants to merge 1 commit into
Closed
miguel-heygen wants to merge 1 commit into
miguel-heygen wants to merge 1 commit into
Conversation
Collaborator
Author
|
Closing: #8568 merged with this same budget raise, so main already has 3,702,639. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_HEADROOMinscripts/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
Unit tests added/updated
Manual testing performed
Documentation updated (if applicable)
Comments follow CONTRIBUTING.md "Comments"
pnpm packofpackages/produceron Linux afterbun run build: main 871333e is 977,376 packed and 3,526,003 unpacked; with fix(studio): a sealed gesture recording keeps the layer's offset and the film's scale #8568 it's 977,466 packed and 3,526,322 unpacked.