-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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
CI: detect perf/size regressions (build size bot, lighthouse...) #3521
Comments
Is it Ok to use the code source of the action created by Next.js ? |
@hamzahamidi thanks for your contributions. The issues with MLH tags are for MLH interns joining us for 2 months. If you are looking to help on something, maybe we can get in touch on Discord so that we find an issue for you? |
Hello @slorber may I take this up? |
yes thanks, let me know if you need me to do something about it |
Hi, Can you please tell me if this is okay or something else is expected? Example comment by the build-size-bot:
|
Hi @jcs98 Tracking the size of our NodeJS code is probably not the most important thing to track. What matters most are:
The system should be able to prevent major perf regressions such as:
Also, it's worth looking at the existing tools. Maybe some tools can already provide us useful information. I'm pretty sure there are Webpack stats plugins that we could use. Can you do some research of existing things you can use? |
Thank you @slorber Can you please confirm if "tracking static output size" is calculating the size of the folder I also looked at some existing tools:
Would any of these work here? |
Yes, we'll likely want to track if the site of a Docusaurus site grows, mostly in website/build. We need to define the relevant metrics for our usecase, and figure out how to measure them and track them over time to avoid regressions. Some metrics I can think of:
We may even try to partner with external saas that offers free plans for open-source (like calibreapp.com?) to get high-quality tracking. |
Don't hesitate to try multiple services at the same time, we can try many of them, and after a while only keep the ones that we find the most useful. Just try to get a not too verbose output, because measuring the size of all the /build folder is probably not very relevant for our usecase. You can also try SaaS services as well, and see if they offer open-source free licenses. |
Thank you for the direction! |
Integrate Build Size Bot
Integrate build size bot (or alternatives) to run on PRs to detect bundle size and performance regressions whenever changes are made to the repository.
Example of Next.js PR
The text was updated successfully, but these errors were encountered: