Skip to content

Deadsnakes integration setup times out when Ubuntu mirror stalls #815

Closed
astral-sh/uv
#22896

Description

@astral-automations-bot

Run: https://github.com/astral-sh/uv/actions/runs/32273624584
Job: https://github.com/astral-sh/uv/actions/runs/32273624584/job/96137742530

The CI workflow failed on a push to main, attempt 1, in test-integration / deadsnakes python3.9 on ubuntu on Ubuntu 24.04. The Install python3.9 step spent the job's full 15-minute timeout in APT setup and was canceled:

Ign:2 http://azure.archive.ubuntu.com/ubuntu noble InRelease
...
Hit:2 https://archive.ubuntu.com/ubuntu noble InRelease
...
##[error]The operation was canceled.

The deadsnakes PPA metadata had already downloaded successfully. From 16:11:16 UTC until cancellation at 16:25:49 UTC, APT produced no further progress. Source inspection shows that the retry loop only retries add-apt-repository after it exits; it sets no APT connection or data timeout, so a stalled mirror can consume the entire timeout-minutes: 15 allowance before the explicit apt-get update or any uv test runs.

The triggering commit from astral-sh#21219 changed only .github/workflows/fix-bug.yml, so this setup failure is unrelated. Similar Ubuntu-mirror failures are tracked for other jobs by #542 and #737. The mitigations in astral-sh#21198, astral-sh#21206, and #799 apply bounded APT waits only to those other paths, leaving the deadsnakes setup unmitigated.

The same run independently reproduced #390 when the GitLab registry test reached its fixed 30-second timeout and #363 when TestPyPI returned 503 during trusted-publishing token exchange.

Activity

  1. added
    internal:ci-flake
    on Aug 19, 2026
  2. 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/33626567766

    This sample differs from #815's mirror stall: deadsnakes metadata succeeded, then the explicit apt-get update failed immediately because the runner-provided Microsoft Azure CLI repository returned HTTP 403.

  3. astral-automations-bot commented on Oct 16, 2026

    @astral-automations-bot
    Author

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

    CI attempt 1 on Ubuntu 24.04 x86_64 failed in the same Deadsnakes setup step: https://github.com/astral-sh/uv/actions/runs/38966177491/job/117194838426. Unlike the original mirror stall, Launchpad returned HTTP 503 downloading python3.9-minimal 3.9.25-1+noble1, causing apt-get install to exit 100 after metadata fetching recovered. The workflow retry loop covers only add-apt-repository; uv tests never started.

  4. astral-automations-bot commented on Oct 21, 2026

    @astral-automations-bot
    Author

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

    Attempt 1 failed before uv ran on Ubuntu 24.04 x86_64: https://github.com/astral-sh/uv-dev/actions/runs/39623153292/job/119304444275. This occurrence returned HTTP 503 for Deadsnakes noble/InRelease metadata, rather than stalling or failing a package download. APT continued with missing-index warnings, then reported "Unable to locate package python3.9" and exited 100. The explicit update and installation remain outside the repository-registration retry loop.

  5. astral-automations-bot commented on Oct 21, 2026

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

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

    @astral-automations-bot
    Author

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

    Attempt 1 also independently reproduced #534 on Rocky Linux 9: BaseOS metadata took 8m58s for 40 MB, leaving Python package downloads unfinished when the ten-minute job limit expired. This was a separate timeout, not cancellation caused by the Deadsnakes HTTP 503 failure. Job: https://github.com/astral-sh/uv-dev/actions/runs/39655096609/job/119416609196

  8. astral-automations-bot commented on Oct 21, 2026

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

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

    @astral-automations-bot
    Author
  11. astral-automations-bot commented on Oct 21, 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