Skip to content

fix(docker): let uv pick the Python of each checkout - #7930

Merged
dan-petty merged 1 commit into
mainfrom
fix/7924-runner-picks-checkout-python
Nov 30, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/7924-runner-picks-checkout-python

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The runner image set UV_PYTHON to Python 3.14. The variable wins over requires-python, so a runner Job could not build a checkout that requires Python 3.15, as homelab, infra and vibes do.

The runner image now sets no UV_PYTHON. uv picks an interpreter of the devtools image, which already holds Python 3.15.2, from the .python-version and the requires-python of each checkout. The rebase, the bootstrap, the hooks, the checks and the shell of the agent use the same rule. The image venv stays on 3.14. Stage runner-smoke bootstraps a project that requires Python 3.15.

A .python-version that names a release that the image does not hold now stops the sync. In devops-cli, such a change fails the Runner Image check.

Closes #7924

Change: openspec/changes/archive/2026-11-30-7924-runner-picks-checkout-python/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/docker Docker and Podman commands and cleanup labels Nov 30, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Verification (2026-11-30, Podman, devtools 1.6.1, uv 0.13.10)

Premise. The pinned devtools image holds /usr/bin/python3.15 (3.15.2) and /usr/bin/python3.14 (3.14.10). The implement stop comments of 12 items (homelab 7, infra 4, vibes 1) show the interpreter error.

New check, red then green. Stage runner-smoke on the runner image built from main stops with The requested interpreter resolved to Python 3.14.10, which is incompatible. On the runner image of this branch it prints Using CPython 3.15.2 and exits 0.

Real project files, runner image with a read-only root, uid 1000 and no capability. bootstrap_checkout, then uv run --frozen pre-commit install-hooks:

Repository Image of main Image of this branch
homelab both stop both pass, Python 3.15.2
infra both stop both pass, Python 3.15.2
vibes hooks stop Python 3.15.2, then hooks stop: no uv.lock (#7926)

devops-cli. The runner command of the action image-smoke on this checkout exits 0 with Python 3.14.10 from .python-version. Stages uv-seed and uv-seed-smoke pass.

Local checks. devops ci rows lint, format, typecheck, docs, hadolint and openspec pass. 185 tests of test_roadmap_implement_step.py and test_roadmap_runner_tools.py pass.

Not verified. No runner Job ran in the cluster. The hooks of homelab and infra were installed, not run.

After the release

The 12 items above have used both ci_infra clears by digest (job record, digest_clears_per_class: 2), so a new runner image does not clear them. Each needs a comment implement: retry from a person after the release rolls out. vibes also needs #7926.

@dan-petty

Copy link
Copy Markdown
Owner Author

Check results at bc625cd91

31 checks pass, 3 are skipped, 1 is neutral and 1 fails. Runner Image passes: its new runner-smoke step prints Using CPython 3.15.2, and the uv seed checks pass.

Fail-to-Pass Check fails, and a person decides. The fix is in the Dockerfile, and docs/TESTING.md says a fix of a manifest gets no such check. The workflow starts on any .py file under src/, and this branch changes two docstrings there (runner_tools.py, implement_shell.py). No code behavior changes, so no test can fail on the base. I added no test and no code to turn the check green. The workflow file says that it is not a required check of main, but devops pr check-readiness lists it as a blocker.

Choice Cost
Remove the two docstring edits from the branch The check does not apply. The sentence in implement_shell.py that says the runner image sets UV_PYTHON stays, and it is false.
Title type refactor, which starts no such check The title calls a behavior fix a refactor.
Merge with the red check A person merges past a blocker of check-readiness.

The proof of the fix is the runner-smoke step: it fails on the runner image of main and passes here.

@dan-petty
dan-petty marked this pull request as ready for review November 30, 2026 21:28
@dan-petty
dan-petty merged commit 54b9aab into main Nov 30, 2026
35 of 36 checks passed
@dan-petty
dan-petty deleted the fix/7924-runner-picks-checkout-python branch November 30, 2026 21:28
dan-petty-release Bot added a commit that referenced this pull request Nov 30, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.265.1](v0.265.0...v0.265.1)
(2026-11-30)


### Bug Fixes

* **docker:** let uv pick the Python of each checkout
([#7930](#7930))
([54b9aab](54b9aab))


### Code Refactoring

* **ci:** render the title workflow from the template
([#7948](#7948))
([ae847d2](ae847d2))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/docker Docker and Podman commands and cleanup type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant