Repository navigation
ci(size-limit): Compare stacked PRs against their base PR - #26758
Draft
sentry-junior[bot] wants to merge 1 commit into
Draft
sentry-junior[bot] wants to merge 1 commit into
sentry-junior[bot] wants to merge 1 commit into
Conversation
Contributor
size-limit report 📦Compared: ba39ed8 (PR test merge using develop at b5e739f) Against: b5e739f (develop) · base run #67593 ✅ Baseline matches: this diff contains only this PR's changes.
|
mydea
reviewed
Nov 23, 2026
Contributor
Optional E2E testsSome optional checks were not successful. They do not block the merge. 2 not successful, 63 successful. See the run.
Successful checks
|
mydea
reviewed
Nov 23, 2026
mydea
reviewed
Nov 23, 2026
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>
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
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]