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

Reduce bundle size analysis noise #4124

Closed
heliocliu opened this issue Oct 27, 2020 · 0 comments · Fixed by #4203
Closed

Reduce bundle size analysis noise #4124

heliocliu opened this issue Oct 27, 2020 · 0 comments · Fixed by #4203
Assignees
Labels
area: dev experience Improving the experience of devs building on top of fluid
Milestone

Comments

@heliocliu
Copy link
Contributor

People who participate in lots of PRs in our repo (or are automatically assigned to lots of PRs...) feel that the volume of emails from the bundle size comments is too large. Looking at the most recent PRs, roughly 2/3 which generate size comments do not show any size change. In these cases we can eschew posting a comment. To prevent potential confusion with outdated comments though (e.g. an error comment gets posted and the next commit succeeds with no size change, or a size change comment is posted and the next commit has no size change), we should only skip when we didn't already make a comment.

@heliocliu heliocliu added the area: dev experience Improving the experience of devs building on top of fluid label Oct 27, 2020
@heliocliu heliocliu added this to the November 2020 milestone Oct 27, 2020
@heliocliu heliocliu self-assigned this Oct 27, 2020
heliocliu added a commit that referenced this issue Oct 29, 2020
… noise (#4153)

First part of #4124

Return the raw data from the bundle comparison in addition to the formatted output, and add a helper to check if that raw data represents no size changes.

Next steps are to publish the new version of this package, and update build-tools to make this check before posting a size comment.
heliocliu added a commit that referenced this issue Oct 30, 2020
Part 2 of #4124

Consume the new version of bundle-size-tools in build-tools to only post a comment when a size change is detected. In cases where the size does not change, we do not post a comment and danger will delete any old comments. The implication for users is then that if there is no comment, the bundle size is not affected by the pr
heliocliu added a commit that referenced this issue Nov 2, 2020
This pulls in the changes to the bundle size analysis comments, and changes that don't affect the bundle size will no longer receive notifications.

Fixes #4124
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: dev experience Improving the experience of devs building on top of fluid
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant