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

Add bundlesize checks to CI #1069

Merged
merged 1 commit into from
Apr 16, 2020
Merged

Add bundlesize checks to CI #1069

merged 1 commit into from
Apr 16, 2020

Conversation

jameshadfield
Copy link
Member

This adds a bundlesize check to the CI with very liberal tolerances for most of the chunks. It should identify egregious bundle size expansion and provide an easier path for manual comparison of master vs PRs.

Currently bundlesize doesn't work with GitHub actions out-of-the-box, but this is planned for their roadmap (and they've just got $10k from Google so I'm confident it will happen). Redux-saga seems to have this working via https://github.com/redux-saga/redux-saga/pull/1952/files.

We can revisit the settings here after the chunk hashing #1037.

Closes #1039

@jameshadfield jameshadfield temporarily deployed to auspice-bundle-size-ci-zmahdje April 16, 2020 07:39 Inactive
This adds a bundlesize check to the CI with very liberal tolerances for most of the chunks. It should identify egregious bundle size expansion and provide an easier path for manual comparison of master vs PRs.

Currently bundlesize doesn't work with GitHub actions out-of-the-box, but this is planned for their roadmap (and they've just got $10k from Google so I'm confident it will happen). Redux-saga seems to have this working via https://github.com/redux-saga/redux-saga/pull/1952/files.

We can revisit the settings here after the chunk hashing #1037.
@jameshadfield jameshadfield temporarily deployed to auspice-bundle-size-ci-zmahdje April 16, 2020 07:42 Inactive
@jameshadfield jameshadfield marked this pull request as ready for review April 16, 2020 08:38
@bcoe
Copy link
Contributor

bcoe commented Apr 16, 2020

@jameshadfield it looks like the bundlesize check worked as a GitHub action. I'm curious, what currently doesn't work on actions ?

@jameshadfield
Copy link
Member Author

Only a minor addition, in that some repos have the ability for the action to report size changes as a little graphic in the checks on each PR (e.g. 👇 , but that's a different tool). bundlesize has this but not for GitHub actions & it's a hassle to set up. This is minor & not worth investing time in at the moment. Thanks for reviewing!

image

@jameshadfield jameshadfield merged commit 2e78b0e into master Apr 16, 2020
@jameshadfield jameshadfield deleted the bundle-size-ci branch April 16, 2020 20:16
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.

Add automated bundle size checks to PRs
2 participants