[CI] Fix bundle-size check truncation and the budget mismatch
Overview & Background
The CI bundle-size gate (frontend/scripts/check-bundle-size.sh, invoked at ci.yml:80-82) has two bugs: (1) for f in $(find ... | head -100) silently caps the measurement at 100 JS files, so a build with more chunks under-counts and the gate can pass while the true bundle is over budget; the unquoted $(find ...) also breaks on filenames with spaces. (2) The comment claims "default 300 KB gzipped" while BUDGET_BYTES defaults to 614400 (600 KB) — nobody knows what the gate actually enforces.
Technical Specification & Architecture
- Drop the
head -100cap (iteratefind ... -print0 | while IFS= read -r -d ''). - Reconcile the comment with
BUDGET_BYTES(or make the default match the doc).
Target Files
frontend/scripts/check-bundle-size.sh.github/workflows/ci.yml
Acceptance Criteria
- [ ] All JS chunks are measured.
- [ ] Filenames with spaces are handled.
- [ ] Documented budget equals enforced budget.
- [ ] An over-budget build fails the gate.
@damilareojetunde has applied to work on this issue as part of the Stellar Wave Program's 11th wave.
I can work on this
ℹ️ Repo Maintainers: To accept this application, review their application or assign @damilareojetunde to this issue.
Congratulations, @damilareojetunde! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.
🧑💻 @damilareojetunde: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
This issue has been completed by @damilareojetunde as part of the Stellar Wave Program's 11th Wave 🥳
😎 @damilareojetunde: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.