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

diff size should consider deletions #136

Open
maliberty opened this issue Oct 29, 2024 · 2 comments
Open

diff size should consider deletions #136

maliberty opened this issue Oct 29, 2024 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@maliberty
Copy link

I created a PR that generated "Sorry, the diff exceeded the maximum number of lines (20000)" (here). The PR is the deletion of a module with little code addition. It seems like having less code shouldn't block clang-tidy from running. Does it make sense to count deleted lines against the maximum?

Thanks for the helpful tool!

@ZedThree
Copy link
Owner

Looks like the error is actually coming from Github when we ask for the diff of the PR -- that is, we don't care how big the PR is, but Github won't give us the diff if it's too large.

I'm not sure how we should deal with that. I agree that deleting 20k lines shouldn't stop clang-tidy from running! Maybe we can catch the exception, and then try requesting diffs only for non-deleted files?

@ZedThree ZedThree added enhancement New feature or request help wanted Extra attention is needed labels Oct 30, 2024
@maliberty
Copy link
Author

I'm no GH expert so I'll leave the best solution to you. That sounds reasonable. Its not a common operation and I'll just use admin merge on that PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants