Repository navigation
ref(size-limit): Simplify the size-limit action - #26778
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
Split run() into small helpers, replace the stateless formatter class with functions, and list workflow runs by workflow file instead of looking up the workflow id. No behavior change. Co-Authored-By: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
Contributor
size-limit report 📦Compared: 49dfd57 (PR test merge using develop at b5e739f) Against: b5e739f (develop) · base run #67593 ✅ Baseline matches: this diff contains only this PR's changes.
|
Contributor
Optional E2E testsSome optional checks were not successful. They do not block the merge. 3 not successful, 62 successful. See the run.
Successful checks
|
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
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 statelessSizeLimitFormatterclass is now plain functions inutils/results.mjs, and the artifact lookup inutils/artifacts.mjslists 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.
via @mydea.
--
View Session [Sentry]