Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sizebot] Add link to diff view #24790

Merged
merged 1 commit into from Jun 25, 2022
Merged

Conversation

acdlite
Copy link
Collaborator

@acdlite acdlite commented Jun 25, 2022

Updates the sizebot output so that the file names link to a diff view of the corresponding build artifact.

Example diff view: https://react-builds.vercel.app/commits/955cad9bcc6d755b2a672f8038fe9754e0fe5108/files/oss-stable-semver/react-dom/cjs/react-dom.production.min.js?compare=c3d7a7e3d72937443ef75b7e29335c98ad0f1424

The diff view itself is rendered by a Next.js app that I built as a side project and is hosted at https://react-builds.vercel.app. If we find this useful enough I could move the app to a React-owned repo but since this isn't a critical feature it might be OK to leave it separate for now, so we don't need to commit to supporting it indefinitely.

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Jun 25, 2022
@sizebot
Copy link

sizebot commented Jun 25, 2022

Comparing: 955cad9...a5ad682

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 131.57 kB 131.57 kB = 42.27 kB 42.27 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 136.84 kB 136.84 kB = 43.87 kB 43.87 kB
facebook-www/ReactDOM-prod.classic.js = 440.72 kB 440.72 kB = 80.62 kB 80.62 kB
facebook-www/ReactDOM-prod.modern.js = 426.03 kB 426.03 kB = 78.43 kB 78.43 kB
facebook-www/ReactDOMForked-prod.classic.js = 441.50 kB 441.50 kB = 80.86 kB 80.86 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against a5ad682

Updates the sizebot output so that the file names link to a diff view of
the corresponding build artifact.

Example diff view: https://react-builds.vercel.app/commits/955cad9bcc6d755b2a672f8038fe9754e0fe5108/files/oss-stable-semver/react-dom/cjs/react-dom.production.min.js?compare=c3d7a7e3d72937443ef75b7e29335c98ad0f1424

The diff view itself is rendered by a Next.js app that I built as a side
project and is hosted at https://react-builds.vercel.app. If we find
this useful enough I could move the app to a React-owned repo but since
this isn't a critical feature it might be OK to leave it separate for
now, so we don't need to commit to supporting it indefinitely.
Copy link
Member

@rickhanlonii rickhanlonii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yesss

@acdlite
Copy link
Collaborator Author

acdlite commented Jun 25, 2022

Needs better error handling for when the build artifacts aren't found, like if CI hasn't finished building. Currently it returns a 500 with no error message. But seems good enough to merge.

@acdlite acdlite merged commit 652e6c5 into facebook:main Jun 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants