Repository navigation
Studio: re-measure the startup bundle budget, which main is red on by itself - #11013
Conversation
…n by itself The startup budget's raw half ran out and main fails "Frontend build + bundle sanity" on its own, with nothing on a branch to blame. At 5fbbd61 main measures 5,377.2 KB raw against a 5,371.1 KB ceiling, 6.1 KB past it. The note beside the last raise asked for both halves to be re-measured together rather than each dragging main red on its own, so both move to the same 4.1% headroom the previous raise chose: 5,730,000 raw leaves 218.5 KB spare and 1,715,000 transfer leaves 66.9 KB. Nothing became eager that should be lazy. The eager chunk set is still 84 chunks with the same members and the same top five; the raw total grew inside chunks that were already eager, which is drift rather than a new static import. Both numbers come from one machine, one build per side, so they are comparable to each other rather than to a runner's.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
main took a +10,000 byte raise in the meantime, which leaves 7.1 KB of room. Keep the re-measured ceilings and fold that fact into the note.
|
@codex security review |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
… next one, and re-measure the startup budget (unslothai#11676) prompt-storage-dialog and refresh-context-usage were loaded with import() at five sites while the startup set already imports both statically, so nothing was deferred. Rolldown reported both as INEFFECTIVE_DYNAMIC_IMPORT and a build warning is all it ever was. Importing them statically drops 2.2 KB raw from the eager set, and the build now throws on that log instead of printing it. That is not enough on its own: main measures 5,601.9 KB raw against the 5,595.7 KB ceiling. The eager set gained one 303-byte chunk since the last raise and otherwise grew inside chunks already eager, mostly unslothai#11607 and unslothai#11648, so the budget is re-measured with the margin unslothai#11013 chose.
… itself (unslothai#11013) `main` fails **Frontend build + bundle sanity** with nothing on a branch to blame, and has been bought back twice in one day: unslothai#10974 added 10,000 bytes and did not survive a single merge, and the next raise added 10,000 more. Each leaves a few kilobytes, which is one locale string, and the next PR to cross it pays for drift it did not cause. Both halves move together to the headroom the earlier raise chose, which is what the note beside it asked for: - `rawBytes` to 5,730,000 - `transferBytes` to 1,715,000 Verified on a real runner rather than only locally. The staging run of this branch reports: ``` eager startup JS: 5394.1 KB raw, 1612.3 KB transfer, 84 chunks within budget (62.5 KB transfer, 201.6 KB raw to spare) ``` Nothing became eager. The eager set is still 84 chunks with the same top five (chat, index, chunk-BO2N2NFS, providers-api, katex); the raw total grew inside chunks that were already eager, the locale messages most of all. That is drift, so there is nothing here to lazy-load. The per-raise ledger in the comment above the constants, which had grown a paragraph per raise, is reduced to the current measurement and the invariant.
… next one, and re-measure the startup budget (unslothai#11676) prompt-storage-dialog and refresh-context-usage were loaded with import() at five sites while the startup set already imports both statically, so nothing was deferred. Rolldown reported both as INEFFECTIVE_DYNAMIC_IMPORT and a build warning is all it ever was. Importing them statically drops 2.2 KB raw from the eager set, and the build now throws on that log instead of printing it. That is not enough on its own: main measures 5,601.9 KB raw against the 5,595.7 KB ceiling. The eager set gained one 303-byte chunk since the last raise and otherwise grew inside chunks already eager, mostly unslothai#11607 and unslothai#11648, so the budget is re-measured with the margin unslothai#11013 chose.
mainfails Frontend build + bundle sanity with nothing on a branch to blame. The startup budget's raw half ran out, and the +10,000 byte raise it took in the meantime did not survive one merge.The measurement
One machine, one build per side, so the numbers are comparable to each other rather than to a runner's.
mainatf7ab2098fmaintodayRunning the checker over that build with
main's own ceilings:So
mainis red right now, by a tenth of a kilobyte. #10974 raisedrawBytesfrom 5,500,000 to 5,510,000 against its own 5,502,720 measurement, which is 7.1 KB of room, about one locale string, and it was gone before the next merge.0d9952f8edid the same thing five days earlier. Every completedFrontend CIrun onmaintoday has failed.What moves
The note beside the last raise asked for both halves to come up for one re-measure together, instead of each dragging
mainred on its own. So both move to the headroom that raise chose:rawBytesto 5,730,000, leaving 214.7 KB spare (3.8 percent)transferBytesto 1,715,000, leaving 65.8 KB spare (3.9 percent)Nothing became eager
The check exists to catch a new static import dragging something into the first screen, and that is not what happened here. The eager set is still 84 chunks with the same top five (
chat,index,chunk-BO2N2NFS,providers-api,katex); the raw total grew inside chunks that were already eager, the locale messages most of all. That is drift, so there is nothing here to lazy-load.After the change
npm run bundle:checkreportswithin budget (65.8 KB transfer, 214.7 KB raw to spare).