Repository navigation
ci(size-limit): Compare stacked PRs against their base PR - #26758
Open
sentry-junior[bot] wants to merge 5 commits into
Open
sentry-junior[bot] wants to merge 5 commits into
sentry-junior[bot] wants to merge 5 commits into
Conversation
Contributor
size-limit report 📦Compared: ffc98f2 (PR test merge using develop at 40c31d2) Against: 40c31d2 (develop) · base run #68004 ✅ Baseline matches: this diff contains only this PR's changes.
|
mydea
reviewed
Nov 23, 2026
Contributor
Optional E2E testsAll optional checks were successful. 77 successful. See the run. Successful checks
|
mydea
reviewed
Nov 23, 2026
mydea
reviewed
Nov 23, 2026
sentry-junior
Bot
force-pushed
the
feat/size-check-stacked-baseline
branch
from
November 23, 2026 14:50
40e7968 to
be0c6db
Compare
sentry-junior
Bot
changed the base branch from
develop
to
ref/size-limit-action-cleanup
November 23, 2026 14:50
sentry-junior
Bot
force-pushed
the
feat/size-check-stacked-baseline
branch
from
November 24, 2026 11:10
be0c6db to
679adea
Compare
mydea
added a commit
that referenced
this pull request
Nov 25, 2026
## What This rewrites the size-limit action to be easier to follow, without changing behavior. `run()` now reads as a sequence of small named steps, the stateless `SizeLimitFormatter` class is now plain functions in `utils/results.mjs`, and the artifact lookup in `utils/artifacts.mjs` lists workflow runs by workflow file instead of first looking up the workflow ID. ## Why This is the cleanup half of #26758, split out so it can be reviewed without the stacked-PR change on top. The size report, comments, failures, and uploaded artifacts are unchanged. <!-- junior-request-attribution:start --> via @mydea. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC0C22CSDV6X%3A1795429503.948419 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC0C22CSDV6X%3A1795429503.948419) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0C22CSDV6X%3A1795429503.948419/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
mydea
force-pushed
the
feat/size-check-stacked-baseline
branch
from
November 25, 2026 07:37
679adea to
cace258
Compare
mydea
marked this pull request as ready for review
November 25, 2026 07:37
javascript-sdk-gitflow
Bot
requested review from
RulaKhaled,
logaretm and
timfish
November 25, 2026 07:38
sentry-junior
Bot
force-pushed
the
feat/size-check-stacked-baseline
branch
from
November 25, 2026 17:17
313893d to
65d4118
Compare
PRs now upload their size-limit results too. A PR stacked on another open PR compares against that PR's results instead of the base branch, which would also count the base PR's changes. Co-Authored-By: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
Re-runs keep their original test merge, so the base PR's head may no longer be the commit this PR was tested on. Match a base PR that contains that commit and compare against its results for that commit.
… the oldest A plain-branch stack targets the base PR's branch, so match on the base PR's head branch too. When several open PRs contain the tested commit, pick the oldest, since base PRs are usually opened first.
sentry-junior
Bot
force-pushed
the
feat/size-check-stacked-baseline
branch
from
November 25, 2026 17:26
65d4118 to
1c70e3b
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort 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 a401f4c. Configure here.
logaretm
approved these changes
Nov 26, 2026
timfish
approved these changes
Nov 27, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What
The size check on a stacked PR now compares against the size-limit results of the PR it is stacked on, not against develop. Before this, the base PR's own size changes showed up in every PR above it, as in #26645.
Stacked on #26778, which simplifies the action without changing behavior.
Why
With GitHub stacks,
base_refisdevelop, but the PR is tested on top of its base PR's test merge commit. Only develop pushes uploaded results, so the lookup fell back to the develop commit the stack started from, and the comparison included every change in the base PR. So the base PR is found from the test merge's parents, not from the branch name. That covers both GitHub stacks and PRs that use another PR's branch as their base.Once this lands, PRs in a stack that's already open fail their size check until the base PR's CI runs again and uploads its results.
via @mydea.
--
View Session [Sentry]