Repository navigation
Description
Problem or Motivation
The owner decision of 2026-11-26 is that each active Python project uses Python 3.15.2. homelab, infra and danielpetty.com already require it, and vibes moves with dan-petty/vibes#312. devops-cli runs on Python 3.14: .python-version is 3.14.10 and requires-python = ">=3.14".
The move cannot be made today. Two packages of the dev group have no wheel for CPython 3.15 on PyPI (read 2026-11-26):
| Package | Why devops-cli has it | State on PyPI |
|---|---|---|
cel-expr-python 0.1.4 (newest) |
tests/gate/k8s_checks/job_admission_policy.py evaluates the CEL of the Job admission policy |
wheels for cp310 to cp314, and no source package: it cannot install on 3.15 |
lupa 2.8 (newest) |
fakeredis[lua] runs EVAL in the Valkey tests |
wheels up to cp314; the source package needs a C compiler, and the devtools image has none |
All other packages install from wheels. fastuuid has no cp315 wheel either, but litellm asks for it only below Python 3.15.
Measured on 2026-11-26 at release 0.221.13, with CPython 3.15.2 and the locked versions of uv.lock without the two packages:
devops --versionstarts.pytest tests: 27581 passed, 7 failed, 3 skipped in 818 s. Each of the 7 failures is a Valkey test that needsEVAL(6 intests/valkeyandtests/commands/test_valkey.py, 1 intests/roadmap/stores/test_listing_shared.py).
So the code runs on 3.15.2, and only the two packages block the move.
Proposed Solution
Disposition: change the code, when the block is gone. Do not build a compiler into the image, and do not replace the two packages only for this move.
The block is gone when the newest cel-expr-python and lupa have a cp315 wheel for manylinux on x86_64 and aarch64. Then, in one pull request:
.python-versionto3.15.2, andrequires-python = ">=3.15.2,<3.16"(the form of homelab and infra), withuv lock.Dockerfile: the stages onpython:3.14-slim-trixiemove topython:3.15-slim-trixie, and the stages on the devtools image use/usr/bin/python3.15(feat(image): add Python 3.15 devtools#94 adds it) and thepython3.15site-packages paths.- The workflows and
.github/actions/setup-toolchaininstall Python 3.15. - The documents and defaults that name Python 3.14 or
python:3.14-slim(README, CONTRIBUTING, ARCHITECTURE, the command reference,.trivyignore.yaml). - Then homelab:
python-version: "3.14"of.github/workflows/k8s.yml, which installs the Python of the pinned devops-cli release.
Proof: devops ci --check passes on 3.15.2, and the Service image test passes.
Existing Tool Considered
uv, which selects the interpreter from .python-version and requires-python. Renovate proposes the releases of cel-expr-python and lupa. The shared preset of dan-petty/infra holds a new Python minor on the Dependency Dashboard until an approval; this issue is where that approval is decided.
Alternatives check of 2026-12-02: partly.
Tool: cel-python (https://pypi.org/project/cel-python), not stated, last activity 2026-01-31, maintained.
Reason: Searches found cel-python, a pure Python CEL evaluator that installs on Python 3.15 with no cp315 wheel. It removes the CEL block only. No tool removes the lupa Lua block, so the move still waits.
Covers:
- Evaluates CEL expressions in pure Python, no cp315 wheel
- Installs on CPython 3.15 with no compiler
- Apache-2.0, maintained by cloud-custodian
Lacks:
- No Lua VM, so the Valkey EVAL tests stay blocked
- Supplies no cp315 wheel for lupa
- Does not change .python-version, Dockerfile or workflows
- The proposed solution does not adopt it
Proposed design
Problem statement
Do not start the Python 3.15.2 move until cp315 wheels for cel-expr-python and lupa exist and dan-petty/devtools#94 adds /usr/bin/python3.15. devops-cli runs on Python 3.14.10, and the owner decision requires Python 3.15.2. The code already runs on 3.15.2 without the two packages. Only seven Valkey EVAL tests fail.
Acceptance criteria
Requirement: Interpreter and requirement
The project MUST declare Python 3.15.2 in .python-version and requires-python = ">=3.15.2,<3.16" in pyproject.toml, and uv.lock MUST be the output of uv lock.
Scenario: Interpreter and metadata agree
- WHEN
uv run python --versionanduv lock --checkrun in the checkout after the change - THEN The first command prints
Python 3.15.2and the second exits 0.
Requirement: Source Python defaults
The Python defaults that the source records MUST be 3.15: DEFAULT_PYTHON_VERSION in src/devops_cli/config/defaults.py and the ProjectMetadata defaults in src/devops_cli/config/metadata.py.
Scenario: Python defaults
- WHEN
uv run pytest tests/config/test_metadata.pyanduv run python -c "from devops_cli.config.defaults import DEFAULT_PYTHON_VERSION; assert DEFAULT_PYTHON_VERSION == '3.15'"run - THEN Both commands exit 0, and the loaded project metadata reports Python 3.15.
Requirement: Type checker Python settings
The [tool.mypy] python_version and the [tool.ty.environment] python-version in pyproject.toml MUST be 3.15.
Scenario: Type checker settings
- WHEN
uv run mypy src/devops_cli/config/defaults.pyanduv run ty check src/devops_cli/config/defaults.pyrun - THEN Both commands exit 0.
Requirement: Service image base
Each Dockerfile stage that builds on python:3.14-slim-trixie MUST build on python:3.15-slim-trixie.
Scenario: Service Image Tests
- WHEN the
Service Image Testsworkflow (service-image-test.yml) runs on the pull request - THEN It passes, and
python --versionin the built Service image printsPython 3.15.2.
Requirement: Runner image Python and uv seed
The runner stages MUST name /usr/bin/python3.15 in UV_PYTHON and the .venv/lib/python3.15/site-packages paths, and the uv-seed stage MUST write "python": "3.15" in /seed.json.
Scenario: Runner image smoke test
- WHEN the
Runner Imagejob ofci.ymlbuilds therunneranduv-seedtargets and runs their smoke tests, withsmoke.Dockerfilereading/seed.json - THEN Each smoke test exits 0 and
python -m devops_cli.roadmap.runner_toolsreports every tool.
Requirement: CI Python version
.github/actions/setup-toolchain and each workflow that pins the interpreter MUST install Python 3.15.
Scenario: CI interpreter
- WHEN a CI job that uses
.github/actions/setup-toolchainrunspython --version - THEN It prints
Python 3.15.2.
Requirement: Documents and defaults
The documents and the defaults that name Python 3.14 or python:3.14-slim MUST name Python 3.15.2 or python:3.15-slim.
Scenario: Docs check
- WHEN
uv run devops ci --check --only docsruns - THEN It exits 0 and the regenerated command reference names Python 3.15.
Requirement: Scan ignore paths
.trivyignore.yaml MUST name the .venv/lib/python3.15/site-packages path of each harbor template Dockerfile.
Scenario: Static Analysis scan report
- WHEN the
Static Analysisjob ofci.ymlrunsdevops scan report - THEN It reports no DS-0029 or DS-0002 finding for the harbor template Dockerfiles.
Requirement: Valkey EVAL tests
The Valkey tests that use EVAL MUST pass on Python 3.15.2.
Scenario: Valkey EVAL suite
- WHEN
uv run pytest tests/valkey tests/commands/test_valkey.py tests/roadmap/stores/test_listing_shared.pyruns on Python 3.15.2 - THEN It exits 0 with no failure.
Requirement: Full CI on Python 3.15.2
The project MUST pass uv run devops ci --check on Python 3.15.2.
Scenario: Full CI
- WHEN
uv run devops ci --checkruns on Python 3.15.2 - THEN It exits 0.
Requirement: Pending a person after the merge
The released runner image MUST start an implement Job for a dan-petty/homelab item that requires Python 3.15.2.
Scenario: Homelab implement Job
- WHEN a person triggers an implement Job for a homelab item after the runner image release
- THEN The Job passes
bootstrapand starts the model request.
Existing Tool Considered
The alternatives check in the issue body gives a partly verdict for cel-python (https://pypi.org/project/cel-python). The check lists what the tool covers and lacks. The proposal does not adopt it. It waits for cp315 wheels of cel-expr-python and lupa, which the tool does not provide.
Key questions
- Which Python version and requirement range does devops-cli use?: Python 3.15.2, with
requires-python = ">=3.15.2,<3.16". The owner decision of 2026-11-26 in the issue body sets this version for each active Python project.CONTRIBUTING.mdmakes a new Python minor a migration that the Dependency Dashboard lists until a person or an agent approves it. This item is that approval. (best practice) [sources: pyproject.toml, CONTRIBUTING.md]- Chosen: Python 3.15.2. The owner decision of 2026-11-26 sets this version, and the other active projects already require it.
- Rejected: Python 3.14.10. The current version in
.python-version; the owner decision replaces it. - Rejected: Python 3.16. No owner decision names it, and the two blocking packages have no cp316 wheel.
- How does the project handle
cel-expr-pythonandlupafor the move?: Keep both packages until the newestcel-expr-pythonandlupahave cp315 manylinux wheels for x86_64 and aarch64. Do not build a compiler into the image. Do not replace the packages only for this move. The alternatives check found thatcel-pythoncovers the CEL part, but it has no Lua VM, so it leaves the ValkeyEVALblock. (best practice) [sources: pyproject.toml, tests/gate/k8s_checks/job_admission_policy.py, tests/valkey/test_valkey_contract.py]- Chosen: Wait for cp315 wheels. The code runs on 3.15.2 without the two packages, and the alternatives check found no tool that supplies a Lua VM.
- Rejected: Build a compiler into the image. The devtools image has no compiler, and the build adds cost for a temporary block.
- Rejected: Replace cel-expr-python with cel-python now. It removes only the CEL block, and lupa still blocks the Valkey EVAL tests.
- Which Python path does the devtools image provide for the move?: The devtools image provides its Python as
/usr/bin/python3.<minor>. The Dockerfile names/usr/bin/python3.14inUV_PYTHON, andsmoke.Dockerfilenames the same path. The venv copies thepython3.14site-packages paths. So the move names/usr/bin/python3.15and.venv/lib/python3.15/site-packages. Theuv-seedrecord holds the Python minor, and_seed_fitscompares it, so the seed is rebuilt with 3.15. [sources: smoke.Dockerfile, src/devops_cli/roadmap/runner_tools.py] - Which proof shows the move is complete?:
uv run devops ci --checkpasses on Python 3.15.2. TheService Image Testsworkflow passes on the built image. (best practice) [sources: .github/workflows/service-image-test.yml, tests/invariants/test_service_image.py, .github/workflows/ci.yml]- Chosen: Full CI and the Service Image Tests. They cover the code, the workflows and the image build.
- Rejected: Unit tests only. They miss the image build and the workflow setup.
- Which other files record the project's Python minor?:
pyproject.tomlholds[tool.mypy] python_versionand[tool.ty.environment] python-version.src/devops_cli/config/defaults.pyholdsDEFAULT_PYTHON_VERSION, andsrc/devops_cli/config/metadata.pyholds theProjectMetadatadefaults.smoke.Dockerfileasserts.python == "3.14"..trivyignore.yamlholds the harbor paths..github/actions/setup-toolchain/action.ymlholds the setup-uv input. The workflowsrelease.ymlandrelease-merge.ymlpin the same minor. [sources: pyproject.toml, src/devops_cli/config/defaults.py, src/devops_cli/config/metadata.py, smoke.Dockerfile, .trivyignore.yaml, .github/actions/setup-toolchain/action.yml, .github/workflows/release.yml, .github/workflows/release-merge.yml] - Should the homelab workflow change ship with this issue?: No. Defer it to a separate homelab issue after the devops-cli release.
AGENTS.mdandCONTEXT.mdgive one issue and one pull request that delivers nothing else. Thek8s.ymlworkflow is a file of another repository. (best practice) [sources: AGENTS.md, CONTEXT.md]- Chosen: Defer it to a homelab issue. It waits for the devops-cli release and belongs to the homelab repository.
- Rejected: Ship it in this pull request. It changes another repository, and one item delivers one pull request that delivers nothing else.
Fit
Fits in one pull request.
Suspected block
The newest cel-expr-python and lupa have no cp315 manylinux wheel for x86_64 and aarch64, and dan-petty/devtools#94 has not added /usr/bin/python3.15.
Dependencies
None.
Activity
dan-petty commentedon Nov 26, 2026
python, and .github/labels.yml declares no scope/python label. Add the label to the file to give the scope to this item.Both concern the Python minor version in the project, but #6410 refactors how the version is read from metadata while this candidate changes the version to 3.15.2.devops-cli-service commentedon Nov 26, 2026
The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.
Searches (7)
Tools considered:
Searches run:
Sources:
dan-petty commentedon Nov 26, 2026
One more effect of the Python difference, seen on 2026-11-26: the implement Job of the roadmap Service cannot start work on an item of dan-petty/homelab.
devops-cli-implement-homelab-305-66f0aastopped atbootstrapin 75 s (dan-petty/homelab#305, classci_infra, action leftretry):uv sync --locked --group dev exited with status 2 … The requested interpreter resolved to Python 3.14.10, which is incompatible with the project's Python requirement: >=3.15.2, <3.16.Blockedwith no model request.Until the runner image has Python 3.15.2, an agent or a person builds the planned homelab items (done by hand for #269, #305 and #320).
devops-cli-service commentedon Nov 28, 2026
Owner question: See Suspected block and Watched files in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 28, 2026
Owner question: See Suspected block and Watched files in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 29, 2026
Owner question: See Suspected block in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence