You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@yetus.apache.org by "Nick Dimiduk (Jira)" <ji...@apache.org> on 2026/03/01 12:18:00 UTC
[jira] [Resolved] (YETUS-1263) github_locate_pr_patch fails with misleading error when PR exceeds GitHub's 300-file diff limit
[ https://issues.apache.org/jira/browse/YETUS-1263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nick Dimiduk resolved YETUS-1263.
---------------------------------
Resolution: Fixed
Merged. Thanks for the review [~cnauroth]!
> github_locate_pr_patch fails with misleading error when PR exceeds GitHub's 300-file diff limit
> -----------------------------------------------------------------------------------------------
>
> Key: YETUS-1263
> URL: https://issues.apache.org/jira/browse/YETUS-1263
> Project: Yetus
> Issue Type: Improvement
> Components: Precommit
> Affects Versions: 0.15.0
> Reporter: Nick Dimiduk
> Assignee: Nick Dimiduk
> Priority: Major
> Fix For: 0.16.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> When a GitHub PR changes more than 300 files, the GitHub API returns HTTP 406 on the patch/diff endpoints:
> GET /repos/{owner}/{repo}/pulls/{number}
> Accept: application/vnd.github.v3.patch
> → 406: "Sorry, the diff exceeded the maximum number of files (300)"
> Yetus uses curl --fail to download the patch at github.sh:413, which converts the 406 to a non-zero exit. The error path logs "github_locate_patch: not a github pull request." and then "ERROR: Unsure how to
> process GH:####. Permissions missing?" — both misleading.
> The entire precommit run aborts before performing any checks.
> Observed on: apache/hbase PR #7722 (340 changed files)
> - https://github.com/apache/hbase/pull/7722
> - CI run: https://github.com/apache/hbase/actions/runs/22135481810/job/64017879281
--
This message was sent by Atlassian Jira
(v8.20.10#820010)