Repository navigation
Conversation
…last window, and the page allocation is deterministic #1445 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
test/page-budget-34-scripts-1445
branch
from
November 1, 2026 02:51
0336011 to
d36f8ab
Compare
Merged
Contributor
Author
|
Landed in v0.0.154 as nik |
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.
Follow-up to #1453 (issue #1445): the two items its review left as residual.
A page of the issue's size, 34 scripts at the 512 KB page cap (12 of 10 KB, 21 of 40 KB, then a late bundle: 472 KB of heads, about 40 KB of room), with the loader literal in the last bundle's hint window, for PostHog, Stripe and Sentry. It fails on the code before fix(tech-detect): choose every bundle's hint windows before any remainder or tail takes page budget #1445 #1453 (
d8bc9c4a^) and passes on main.A determinism test: the same 34-script page built twice gives byte-identical inputs, and the page budget holds.
A seeded fuzz test (200 seeds: 5 to 36 scripts of 1 to 48 KB, random order, 0 to 2 loaders each at random offsets, three cap sets): the page, audit and bundle budgets hold on every page and a rebuild is byte-identical (about 4 s). With the page limit dropped from the room calculation it fails.
Tests only, no source change, so no CHANGELOG entry or docs. Local:
tech-extras-budget-1420.test.ts(28 pass).Skill: no change needed.
nik