Skip to content

Security review fails when a pull request diff exceeds 20,000 lines #378

Open

Description

@astral-automations-bot

Run: https://github.com/astral-sh/uv/actions/runs/29968234975
Failed job: https://github.com/astral-sh/uv/actions/runs/29968234975/job/89084375412

The CI workflow's review / security review job failed on Ubuntu, attempt 1, while collecting pull-request context:

could not find pull request diff: HTTP 406: Sorry, the diff exceeded the maximum number of lines (20000)
PullRequest.diff too_large

PR astral-sh#20630 has 6,058 additions and 21,719 deletions across 74 files. The workflow unconditionally runs gh pr diff, so GitHub's diff-size limit prevents the security review from running and makes the check fail. The skipped review steps are consequences of this context-collection failure.

This is actionable CI behavior even though the pull request's size triggers it: oversized diffs should be collected through a supported fallback, reduced for review, or handled with an explicit non-failing outcome.

Searches across open and closed issues and pull requests in astral-sh/uv and astral-sh/uv-dev found no existing tracker for this failure.

Activity

  1. added
    internal:ci-flake
    on Jul 23, 2026
  2. astral-automations-bot commented on Jul 23, 2026

    @astral-automations-bot
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    internal:ci-flake

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions