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

bundle-size: Allow using past approval for minor changes #899

Open
jridgewell opened this issue Jun 12, 2020 · 4 comments
Open

bundle-size: Allow using past approval for minor changes #899

jridgewell opened this issue Jun 12, 2020 · 4 comments

Comments

@jridgewell
Copy link
Contributor

Eg, ampproject/amphtml#28806 (review)

Will approved the CL, but I needed to make a minor change to satisfy the type checker. It's a little annoying to have to request a re-review for such small changes.

@danielrozenberg
Copy link
Member

This would require a much bigger change to the bot than I can handle, relative to the payoff (i.e., I think of it as a P3 that would require a P1 level of work...)

To make this happen, the bot will have to be changed so that when a commit adds more than the allowed bundle-size and was approved earlier, then it has to check whether it was already approved by someone (which it doesn't do), check whether the new change is significant compared to the previously approved commit (which means it'll have to store not only each individual file's bundle size per commit, but also which commit received the approval), and determine whether it requires re-approval

It's a little annoying to have to request a re-review for such small changes.

Is the annoyance big enough to merit a couple weeks of work on this? :)

@danielrozenberg
Copy link
Member

@jridgewell fixit week is a perfect time to answer that question ^

@jridgewell
Copy link
Contributor Author

Couple of weeks? Probably not worth it. But if it could be done in a fixit, that would be awesome.

@danielrozenberg
Copy link
Member

I'll push work on this for the end of this week and see if I can figure out a middle ground or at least make some initial progress on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants