-
Notifications
You must be signed in to change notification settings - Fork 56
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
[SDK-3943] Add some regression testing for bundle size and included files #1507
[SDK-3943] Add some regression testing for bundle size and included files #1507
Conversation
478298d
to
d176d34
Compare
29f876f
to
bd48dc8
Compare
d176d34
to
b8b57ee
Compare
bd48dc8
to
954d6e7
Compare
b8b57ee
to
1ed2065
Compare
954d6e7
to
b04f03f
Compare
1ed2065
to
9e0f343
Compare
9e0f343
to
b5d8fe5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! I'm a big fan of the test to ensure we don't accidentally re-include modules in the minimal client. The latter test I think having a static threshold is a bit arbitrary and maybe we could consider something like snapshot testing in future but it's better than nothing so happy to approve anyway
b5d8fe5
to
beb1038
Compare
b04f03f
to
3b0a73e
Compare
beb1038
to
f8c9f3b
Compare
3b0a73e
to
fd7712d
Compare
f8c9f3b
to
61b87ed
Compare
fd7712d
to
10bac3c
Compare
Want to use `await` in an upcoming commit.
To give us further confidence that something unexpected won’t sneak in. This just automates a rather crude process that I’ve been performing manually from time to time — tweak the moduleReport script to spit out source file + source map, then run source-map-explorer on the output and look at which files are making a significant contribution to the bundle size. Part of #1497.
Another protection against regressions in bundle size. Resolves #1497.
61b87ed
to
3f12e9c
Compare
Note: This PR is based on top of #1505; please review that one first.
This enhances the
modulereport
script, which gets run in CI, to do the following:BaseRealtime
bundle size (against a hardcoded allow list)The idea being to have some safeguards against accidental regressions in bundle size.
Resolves #1497.