Repository navigation
chore(web): raise the launch bundle budget to match main - #2066
Conversation
Main's eager launch bundle is 322026 B brotli, 42 B past the budget's 1024 B tolerance, so Web (build) fails on main and every pull request. Most of the growth since the budget was last set comes from #2023: the per-tab profile choice and "Who's watching?" check run during sign-in on every launch, so they can't be loaded lazily. Moving its settings-only helpers into their own module made the bundle 199 B larger, so this records the current size instead. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe ChangesPerformance Budget
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~2 minutes Change: Other Suggested reviewers: Merge Risk: ⚪ Minimal · up to This updates the eager Brotli budget without changing shipped code. No material user impact or merge-blocking risk is evident. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Note Grok commenting on Quick's behalf. Ranking: |
Problem
Related issue: N/A
Validation tasks: none
ci / Web (build)fails on main and on every pull request.budget:checkmeasures main's eager launch bundle at 322026 B brotli, 1066 B over the 320960 B budget and 42 B past the 1024 B tolerance. This PR sets the budget to the current size so CI passes again.Approach
web/perf-budget.jsonchanges from 320960 to 322026, the valuepnpm run budget:updatewrites from a production build of main atbd842519e. CI reports the same figure on main.Where the growth came from, measured locally at each commit:
bd842519e#2023 adds 655 B. Its per-tab profile scope in
utils/storage.tsand the "Who's watching?" check run during sign-in on every launch, so they can't move behind a lazy import. Its settings-only helpers (getProfileLaunchMode,setProfileLaunchMode,adoptTabProfileSelection) do ship eagerly. Moving the first two into a module that only the settings screen imports made the bundle 199 B larger, because the extra chunk costs more than the moved code. So this PR records the size instead of moving code.Validation
pnpm run build, thenpnpm run budget:check: "within perf-budget.json".prettier --check perf-budget.jsonpasses.Evidence
No user-visible change.
Evidence: https://evidence.siloserver.org/r/silo-server/pr-2066/
Risks
None identified. The budget gets about 1 KB of headroom back for later growth; the next change that adds launch code past the tolerance still has to say why.
Checklist
AI Disclosure
Note
Raise eager Brotli launch bundle budget from 320960 to 322026 bytes
Updates the eager Brotli byte budget in perf-budget.json so the launch bundle matches the current size on main. This keeps budget validation green.
Macroscope summarized 403cdd0.