Skip to content

Security review context collection fails without retry on GitHub API 503 #538

Open

Description

@astral-automations-bot

Run: https://github.com/astral-sh/uv/actions/runs/30939308142
Failed job: https://github.com/astral-sh/uv/actions/runs/30939308142/job/92093564105

The CI workflow's review / security review job failed on Ubuntu (ubuntu-latest), attempt 1, in Collect pull request context:

could not find pull request diff: HTTP 503: Server is currently unable to handle the request due to high load. Please retry after the number of seconds specified in the Retry-After header.

The checked-in workflow invokes gh pr diff once under an error-exiting shell, so one transient GitHub REST failure aborts the security review. A bounded retry that honors Retry-After would mitigate this infrastructure flake.

This appears unrelated to astral-sh#20883, which only updates actions/checkout from v7.0.0 to v7.0.1; checkout completed successfully in this job and the other affected jobs.

The run also independently reproduced the Artifactory-only 401 tracked by #490 and the Windows NanoServer PE-resource failure tracked by astral-sh#18663. #372 covers similar missing retry handling for a GitHub GraphQL 502 in another workflow. #378 affects the same security-review context command but concerns the deterministic 20,000-line diff limit rather than a transient 503.

Activity

  1. added
    internal:ci-flake
    on Aug 4, 2026
  2. astral-automations-bot commented on Aug 17, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv/actions/runs/32055320093

    Run https://github.com/astral-sh/uv/actions/runs/32055320093 adds a gh pr view GraphQL 503 in the security-review context step, whereas the original #538 sample failed at gh pr diff. It also had an independent dhi.io login 403 limited to the Python 3.12 DHI matrix job while all six sibling DHI jobs authenticated successfully.

  3. astral-automations-bot commented on Sep 2, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv/actions/runs/33646234925

    Run https://github.com/astral-sh/uv/actions/runs/33646234925 reproduces #538 in the same gh pr diff context step, but GitHub returned HTTP 500 with PullRequest.diff not_available and “heavy server load” rather than HTTP 503.

  4. astral-automations-bot commented on Sep 2, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv/actions/runs/33646175605

    Another sample occurred in https://github.com/astral-sh/uv/actions/runs/33646175605: the same gh pr diff call failed, but GitHub returned HTTP 500 with PullRequest.diff not_available due to heavy server load instead of the original HTTP 503.

  5. astral-automations-bot commented on Sep 2, 2026

    @astral-automations-bot
    Author
  6. astral-automations-bot commented on Sep 2, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv/actions/runs/33646153322

    Attempt 2 of https://github.com/astral-sh/uv/actions/runs/33646153322 again failed in the security-review gh pr diff step with HTTP 500 PullRequest.diff not_available due to heavy server load, rather than the original HTTP 503 response.

  7. astral-automations-bot commented on Sep 2, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv/actions/runs/33646234925

    Attempt 3 of https://github.com/astral-sh/uv/actions/runs/33646234925 again failed in gh pr diff with HTTP 500 PullRequest.diff not_available due to heavy server load, showing that two reruns did not outlast the outage.

  8. astral-automations-bot commented on Sep 2, 2026

    @astral-automations-bot
    Author
  9. astral-automations-bot commented on Oct 9, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv-dev/actions/runs/37951278065

    This occurrence affects code-quality review on Ubuntu 24.04 x86_64 (depot-ubuntu-24.04-16), CI attempt 1 for #2417. The separate agents/scripts/collect-pull-request-review-context.sh collector failed fetching conversation comments with a TCP connection i/o timeout, rather than an HTTP 5xx response. Its gh api calls also lack retries. Job: https://github.com/astral-sh/uv-dev/actions/runs/37951278065/job/113890698224

  10. astral-automations-bot commented on Oct 14, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv-dev/actions/runs/38586179463

    CI attempt 1 reproduced this in code-quality review on depot-ubuntu-24.04-16: https://github.com/astral-sh/uv-dev/actions/runs/38586179463/job/115929329106. Unlike the prior collector timeout, this occurrence returned "gh: HTTP 503", followed by "jq: parse error: Invalid numeric literal at line 1, column 10" and exit code 5. The failing API endpoint was not logged.

  11. astral-automations-bot commented on Oct 22, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv-dev/actions/runs/39868419789

    CI attempt 1 encountered a TCP i/o timeout fetching pull-request reviews for #2542, whereas the earlier code-quality collector timeout affected conversation comments. The failure occurred in Collect pull request context on depot-ubuntu-24.04-16 before review execution: https://github.com/astral-sh/uv-dev/actions/runs/39868419789/job/120136740938

  12. astral-automations-bot commented on Nov 14, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv/actions/runs/43543127949

    CI attempt 1 for astral-sh#23230 failed in security-review context collection on depot-ubuntu-24.04-16 at the initial gh pr view request with HTTP 502: 502 Bad Gateway (https://api.github.com/graphql), extending the tracked GraphQL 503 sample. The pinned shared collector still performs this request without retries. Job: https://github.com/astral-sh/uv/actions/runs/43543127949/job/132288191141

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