-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Incorrect PR Size label #1892
Comments
Another example where the bot seems to be fighting itself: PR kubernetes/kubernetes#28599 |
@eparis any idea why this might happen? A github api glitch? I would guess so, because it is adding |
The sizer is supposed to ignore all changes in But it is obviously broken... Somehow the amount of changes in |
Seems definitely like a github API bug... I'm looking specifically at kubernetes/kubernetes#28599. If I look at the api I'll see that is says:
But if I look at it via git:
So the github api says there are only 18k insertions but there are really 65k insetions! When we then remove the additions/deletions from ignores paths (in this case that includes at least vendor and more importantly changes to
No idea why the github api just lies about the # of Additions and Deletions. |
e-mail sent to github support |
@eparis Thanks for figuring it out. I wonder it is a recent change on their end that caused this. |
|
Maybe we should calculate the size summing the file.Additions instead of using the pr.Additions and then subtracting out the file.Additions we wish to ignore? |
Automatic merge from submit-queue Fix size check fixes #1892 The github api lies about the size of diffs if they are large. If we then subtract out the size of generated files that it is not lieing about we end up with negative numbers. So huge PRs can get XS size. Instead of believing the API and deleting those things we don't care about just sum the things we do care about and use that.
Automatic merge from submit-queue Fix size check fixes kubernetes-retired#1892 The github api lies about the size of diffs if they are large. If we then subtract out the size of generated files that it is not lieing about we end up with negative numbers. So huge PRs can get XS size. Instead of believing the API and deleting those things we don't care about just sum the things we do care about and use that.
In PR kubernetes/kubernetes#33944 the bot correctly applied the
size/XXL
label to the PR that touches 72 files and adds 6936 lines.It later removed that label and replaced it with
size/XS
<-- Buggy behaviorThe text was updated successfully, but these errors were encountered: