oxidecomputer / oxidecomputer/console
Track build output size and fail CI if it increases too much
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 228
- Forks
- 22
- Avg merge
- 19h 42m
- Merged PRs (30d)
- 32
Description
I've seen libraries do this, where they have a file saying a max allowed bundle size, and you have to increase it manually when the bundle gets bigger. This makes sure there are no accidental large bundle size increases like the one I caught in https://github.com/oxidecomputer/console/pull/2910#issuecomment-3403530384. Unlike some libraries, we expect our total size to be going up regularly as we add more pages and features. That could just mean we increment the max in bigger chunks rather than incrementing it the minimum possible to let the test pass. We could also treat the root chunk separately since it's the thing that users load immediately.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the build command and CI configuration that produce and validate the bundle size. Define a committed size limit, decide whether the root chunk is tracked separately, and verify that normal feature growth requires deliberate threshold updates while unintended increases fail CI.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- build-system, ci-cd, performance
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100