-
Notifications
You must be signed in to change notification settings - Fork 1
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
Config option to show/hide a "bundle analysis is working message" when no bundle changes occur. #1485
Comments
@trent-codecov @rohan-at-sentry Can you prioritize this? |
I've been reviewing this issue, and while I agree with the idea that not everyone wants to see a PR comment when "nothing changes", I really think this should be a configuration level change. I'll lay out some justification for why I feel this way:
So I think this PR comment is conditionally helpful, and when something is conditionally helpful it's typically worth leveraging configuration to let users decide if they want it or not. I'm not even super picky about what the default is, but I do think this needs to be a configuration setting. Can we instead tackle this problem from a configuration approach? |
Agreed with Eli in this case, I think we can use the same yaml config that we have used for Coverage to only show when there's a change:
Additionally I think we can alter the language of the no change message that we're currently showing to specify why it's there - ex. "Your most recent bundler run showed no change in bundle size ✅ " |
^ I think that's a good approach to consider. Throwing my 🎩 into this ring, there's feedback on only showing PR comments when "a thing" has materially changed - materially being config based. Here's a link to that for coverage - #1350 There's an opportunity to take a first principles thinking approach into how we do comments overall I think (in the order of weeks) I'd like for us to solve this specific BA issue - since this is PR related, we can tackle that on the platform team.. We can
and revisit more fundamental approach to all this later with @Adal3n3 and @codecovdesign |
Summarizing above convo and setting out path forward
IF This is the behavior today, and is going to be the default moving forward. IF Add documentation as necessary under https://docs.codecov.com/docs/javascript-bundle-analysis |
Problem to solve
Description
According to @nicholas-codecov this message is working as intended, so it's not a bug. We will receive this message if they run their CI and run a build step. The problem is that developers will be annoyed by receiving this unnecessarily/non-actionable message "Bundle size has no change ✅" on their PR comment, especially for those who push 15 times PRs in a day.
Slack 🧵: https://sentry.slack.com/archives/C060Y7J8420/p1711645978145129
Example: getsentry/sentry#67874 (comment)
Possible solution
See comment at the bottom of this issue
The text was updated successfully, but these errors were encountered: