Skip to content

Conversation

@epeters3
Copy link
Contributor

@epeters3 epeters3 commented Jan 6, 2026

Closes #590. This PR adds an error handler to the diff fetching methods, and will raise a CannotGetDiff exception if the too_large GitHub API error is detected. The exception is caught and causes a warning message to be included in the coverage comment, explaining why diff coverage can't be computed.

@epeters3 epeters3 changed the title Gracefully handle "diff too large" errors. Gracefully handle "diff too large" errors Jan 6, 2026
@github-actions
Copy link

github-actions bot commented Jan 6, 2026

End-to-end public repo

Admin commands cheatsheet:

  • /e2e (in approved PR review body): Trigger end-to-end tests on external contributions
  • /invite (in comment): Invite the author & admins to the end-to-end private repo

@epeters3 epeters3 force-pushed the fix/handle-diff-too-large branch from bacda95 to 5bf9036 Compare January 6, 2026 22:00
@epeters3 epeters3 force-pushed the fix/handle-diff-too-large branch from 743e501 to f723625 Compare January 6, 2026 22:10
@github-actions
Copy link

github-actions bot commented Jan 6, 2026

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  coverage_comment
  github.py
  main.py
  template.py
Project Total  

This report was generated by python-coverage-comment-action

@epeters3 epeters3 marked this pull request as ready for review January 6, 2026 22:13
Copy link
Member

@ewjoachim ewjoachim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work !

/e2e

@ewjoachim ewjoachim merged commit 7188638 into py-cov-action:main Jan 6, 2026
5 checks passed
@ewjoachim
Copy link
Member

Congratulations on a stellar first contrib to the repo 🎉

@epeters3
Copy link
Contributor Author

epeters3 commented Jan 6, 2026

Congratulations on a stellar first contrib to the repo 🎉

Thanks so much, and thanks for such a timely review!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Diff fails when 300+ files have changed

2 participants