Skip to content

Examples 07 to 12: the Docker bootstrap downloads the latest uv via the GitHub API; pin the version #137

Closed

Description

@tae898

Examples 07 to 12 start their --docker runs from images without uv (python:3.12-slim, the Postgres image for pgvector, a custom Milvus runner image). Each container first runs uv_bootstrap_commands(), a Python one-liner that asks the GitHub API for the latest uv release and downloads it with urllib:

  • the uv version inside the containers is unpinned (whatever was released last), unlike CI, which pins uv;
  • the GitHub API call is rate-limited for anonymous use, so a few runs in a row can fail before the benchmark starts;
  • the bootstrap needs a system python/python3 only to fetch uv (the Postgres image gets python3 from apt for this).

Proposal: use the official uv images as runner images (ghcr.io/astral-sh/uv:<pinned version>-python3.12-bookworm-slim), which ship uv, so the bootstrap goes away for every path whose base is python:3.12-slim; for the paths that need another base (pgvector runs Postgres in the same container), download a pinned uv release directly instead of asking for "latest". This changes the benchmark environment, so each container path needs a smoke run, and results before and after the change should not be compared without saying so.

Follow-up to #136 (which only removes uv venv and uv pip).

Scope decided (2026-10-29): pin the uv download in uv_bootstrap_commands() (a fixed release URL, the version CI pins) instead of asking the GitHub API for "latest". That removes the unpinned version and the anonymous rate limit without changing the runner images or the benchmark environment. Switching to the official uv images is not planned: these Docker paths are optional comparison runs, and the change would cost a re-smoke of every container path for little user benefit.

Activity

  1. changed the title [-]Examples 07 to 12: Docker runs download the latest uv at start; use a pinned uv (official uv runner image)[/-] [+]Examples 07 to 12: the Docker bootstrap downloads the latest uv via the GitHub API; pin the version[/+] on Oct 29, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions