ci: Check bundle size increases per PR - #24737
nicohrubec wants to merge 16 commits into
Conversation
Co-Authored-By: GPT-6 <codex@openai.com>
Co-Authored-By: GPT-6 <codex@openai.com>
93485e5 to
cf9b39e
Compare
Co-Authored-By: GPT-6 <codex@openai.com>
Co-Authored-By: GPT-6 <codex@openai.com>
Co-Authored-By: GPT-6 <codex@openai.com>
Co-Authored-By: GPT-6 <codex@openai.com>
Co-Authored-By: GPT-6 <codex@openai.com>
Co-Authored-By: GPT-6 <codex@openai.com>
Co-Authored-By: GPT-6 <codex@openai.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8900460. Configure here.
Co-Authored-By: GPT-6 <codex@openai.com>
Co-Authored-By: GPT-6 <codex@openai.com>
Co-Authored-By: GPT-6 <codex@openai.com>
size-limit report 📦
|
|
👋 @Lms24, @chargome, @andreiborza — Please review this PR when you get a chance! |
There was a problem hiding this comment.
Thanks for making this change! I was thinking a bit about if we should explicitly always compare against the base commit where we branched off. But this has a few drawbacks as well:
- the absolute numbers don't reflect the current state on
develop, especially when a PR gets older, until the PR is rebased to latestdevelop - we can't guarantee that we have a base commit size artifact, especially not if we work with stacks. So we need a fallback logic to build that base commit and run size check and upload those results. A lot of work.
So I think we can leave it at comparing against the latest base branch, but this can skew if there are other changes pushed to develop around the same time of opening the PR or pushing new commits onto the PR branch. We should be able to detect this and also include it in the comment.
Something like
## size-limit report 📦
Compared: 8f3c2a1 (your PR merged into develop @ 41be9d0)
Against: 41be9d0 (develop) · base run #18234
✅ Baseline matches: this diff contains only this PR's changes.
| Path | Size | % Change | Change |
| ... | ... | ... | ... |
## size-limit report 📦
Compared: 8f3c2a1 (your PR merged into develop @ 41be9d0)
Against: 9d07e55 (develop) · base run #18229
⚠️ Baseline mismatch: 2 develop commits are not in the baseline
(compare 9d07e55...41be9d0), so their size changes are counted here.
re-run once develop's build for 41be9d0 finishes.
| Path | Size | % Change | Change |
| ... | ... | ... | ... |
For stacks, I think comparing all the PRs in the stack against the baseline is fine. no need to have a per-stack-PR diff.
WDYT?

Accept Bundlesize Increase. If present, it passes without measuring again.Also removing the old absolute size limits and the weekly size limit update workflow, since these are no longer needed now.
Fixes #21813