[ci] Compare size against merge base - #37355
Open
eps1lon wants to merge 1 commit into
Open
Conversation
|
Comparing: bd6ea41...fa7e59f Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) Generated by sizebot against fa7e59f |
eps1lon
force-pushed
the
sebbie/sizebot-merge-base
branch
from
August 24, 2026 12:31
3889b54 to
3a9a427
Compare
eps1lon
added a commit
that referenced
this pull request
Aug 24, 2026
…e merge-base This pull request contains a comment-only change on top of 675a29c, the parent of the size-changing commit dc631ef, because an empty diff is skipped by the workflow's path filters. It exists to demonstrate the problem that #37355 fixes: sizebot compares the head build against the build of `pull_request.base.sha`, the current tip of main, rather than against the merge-base. The sizebot comment on this pull request should therefore contain the entire size footprint of dc631ef even though this branch contains none of its changes. After #37355 lands, the sizebot comment on this pull request should instead be empty. Co-Authored-By: Claude Code (kimi-k3[1m]) <noreply@anthropic.com>
Sizebot compared the pull request head build against the build of `pull_request.base.sha`, which is the tip of the base branch at event time, not the commit the pull request diverged from. The field's semantics are undocumented in GitHub's API schema; the observed behavior and the compare API's `merge_base_commit` confirm the difference. Once main moved ahead, every pull request based on an older commit reported the size changes of unrelated main commits as if they were its own, which is why a branch predating a large size-changing commit produced a report too large to display. The sizebot job now resolves the merge-base through the compare API and downloads the base build for that commit instead. When no base build can be downloaded for the merge-base, for example because its artifacts aged out of the retention window or its run failed, the sizebot job now records a `base-build-not-found` result instead of failing immediately. `render-comment.js` on the default branch renders that as a warning comment naming the base commit and writes the `sizebot-problem.txt` marker, so the comment workflow fails its check after posting the warning, the same pattern already used for build configuration drift. The sizebot job itself stays green because a failed run would make the renderer discard the results and mask the warning with a generic "did not complete" message. Co-Authored-By: Claude Code (kimi-k3[1m]) <noreply@anthropic.com>
eps1lon
force-pushed
the
sebbie/sizebot-merge-base
branch
from
August 24, 2026 13:14
3a9a427 to
fa7e59f
Compare
eps1lon
marked this pull request as ready for review
August 24, 2026 19:17
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.
Sizebot compared the pull request head build against the build of
pull_request.base.sha, which is the tip of the base branch at event time, not the commit the pull request diverged from. The field's semantics are undocumented in GitHub's API schema (the OpenAPI description types it as a bare string); the observed behavior and the compare API'smerge_base_commitconfirm the difference.The difference between
pull_request.base.shaand the merge base is confirmed with an example in #37356The sizebot job now resolves the merge-base through the compare API and downloads the base build for that commit instead, so the report only ever contains the pull request's own changes. The job gains
contents: readfor the compare call.When no base build can be downloaded for the merge-base, for example because its artifacts aged out of the retention window or its run failed, the sizebot job records a
base-build-not-foundresult instead of failing immediately.render-comment.json the default branch renders that as a warning comment naming the base commit and writes thesizebot-problem.txtmarker, so the comment workflow fails its check after posting the warning, the same pattern already used for build configuration drift. The sizebot job itself intentionally stays green: a failed run would make the renderer discard the results and mask the warning with a generic "did not complete" message.