Skip to content

ci: add binary size check for pull requests#2240

Open
prestist wants to merge 1 commit into
coreos:mainfrom
prestist:binary-size-ci
Open

ci: add binary size check for pull requests#2240
prestist wants to merge 1 commit into
coreos:mainfrom
prestist:binary-size-ci

Conversation

@prestist

@prestist prestist commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add a GitHub Actions workflow that reports binary size changes on every PR
  • Posts a comparison table (base vs PR size with delta) as a PR comment
  • Fails the check if binary growth exceeds 5% (configurable via SIZE_THRESHOLD_PCT)

This helps catch dependency bloat early, like the cloud.google.com/go/storage upgrade that grew the binary from 38 MB to 65 MB (see #2045).

@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

Build both the PR and base branch binaries, compare sizes, and
fail if growth exceeds 5%. Results are posted as a PR comment
via a separate workflow_run trigger so it works for fork PRs.

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant