Skip to content

fix(docker): a runner Job cannot build a Python 3.15 checkout #7924

Done

Description

@dan-petty

Problem Description

A runner Job cannot build a checkout whose requires-python excludes Python 3.14. Stages runner-deps and runner of the Dockerfile set UV_PYTHON=/usr/bin/python3.14 for each container and each uv call. UV_PYTHON wins over requires-python, so uv stops.

The owner decision of 2026-11-26 is that each active Python project uses Python 3.15.2. dan-petty/homelab, dan-petty/infra and dan-petty/vibes require >=3.15.2,<3.16.

The runner image already holds the interpreter. The devtools image that the Dockerfile pins (1.6.1) has /usr/bin/python3.15 (3.15.2) next to /usr/bin/python3.14 (3.14.10).

Reproduction Steps

  1. Take a project with requires-python = ">=3.15.2,<3.16" and no .python-version.
  2. In the devtools image, set UV_PYTHON=/usr/bin/python3.14 and UV_PYTHON_DOWNLOADS=never.
  3. Run uv sync in the project. It exits 2.
  4. Remove UV_PYTHON and run uv sync again. It builds the environment with Python 3.15.2.

Expected vs Actual Behavior

Expected: uv picks an interpreter of the image that satisfies the checkout, and the bootstrap, the hooks, the checks and the shell of the agent use it.

Actual: each of them gets Python 3.14 and stops. The implement item becomes Blocked with class ci_infra.

Evidence, read on 2026-11-30: the implement stop comments of 12 items show this error. They are homelab 263, 275, 276, 280, 289, 298 and 522, infra 166, 169, 174 and 175, and vibes 300. vibes has no uv.lock, so it stops at hooks and not at bootstrap. The other attempts of that week were not read.

Environment Diagnostics

devops-cli 0.264.1, runner image built from ghcr.io/dan-petty/devtools:1.6.1, uv 0.13.10.

Logs, Traces, or Terminal Output

uv sync --locked --group dev exited with status 2.
Using CPython 3.14.10 interpreter at: /usr/bin/python3.14
error: The requested interpreter resolved to Python 3.14.10, which is incompatible with the project's Python requirement: `>=3.15.2, <3.16` (from `project.requires-python`)

Proposed Solution

Set no UV_PYTHON in the runner image, and let uv pick the interpreter of each checkout from its .python-version and requires-python. Keep UV_PYTHON_DOWNLOADS=never. Pin the image venv with --python in the build step. Add a smoke check that bootstraps a project that requires Python 3.15.

Effect to accept: UV_PYTHON also hid a .python-version that names a patch release that the image does not hold. Only devops-cli has such a file, and the image holds its release. The Runner Image check runs the bootstrap on the checkout, so it fails on a change that breaks this.

Not in scope: #7291 moves devops-cli itself to 3.15. Add no interpreter download, pin or installer.

Activity

  1. added
    type/bug
    source/agent
    status/new
    effort/low
    value/high
    scope/docker
    on Nov 30, 2026
  2. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor
    • Priority: Twelve runner Jobs are blocked with class ci_infra because uv cannot resolve an interpreter, which is a CI failure.
  3. added
    priority/p0-critical
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 30, 2026
  4. removed
    status/in-progress
    owner/agent
    on Nov 30, 2026
  5. devops-cli-service commented on Nov 30, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-30 22:54 UTC

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

    effort/lowpriority/p0-criticalscope/dockersource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions