Skip to content

the 3.13 interpreter checks cannot pass for a consumer that must pin <3.13 (open-webui requires <3.13.0a1), which reds the consumer's whole check bed #8

Closed

Description

@aitrawog

Problem

layer-python's checks assert the image's interpreter is CPython 3.13:

FAIL  check the interpreter reports a CPython 3.13 version  [plan:candy:github.com/opencharly/layer-python:1]
      stdout: expected to contain "3.13" (got: Python 3.12.13)
FAIL  check the interpreter executes a standard-library snippet … and reports major.minor 3 13  [plan:candy:github.com/opencharly/layer-python:2]
      stdout: expected to contain "3 13" (got: 3 12)

Any consumer whose own pixi.toml requires an interpreter below 3.13 can therefore
never have a green check bed — even though the constraint is not a mistake:

  • opencharly/pod-openwebui ships pixi.toml with python = ">=3.11,<3.13", and that
    is forced by upstream: open-webui (0.9.5 and 0.12.3) declares
    Requires-Python: <3.13.0a1,>=3.11. 3.13 is not installable for it.
  • The consumer's pixi.toml owns the image's environment (one env per image), so
    layer-python's own pin is superseded by design — its check then asserts a version
    the image must not have.

Measured on a disposable bed for that consumer (check-openwebui-pod, 2026-10-20):
53 steps: 40 passed, 2 failed, 11 skipped, and the only two failures are the
layer-python ones above. Every other composed candy's checks pass.

Evidence the failure is not the consumer's diff

The interpreter version is unchanged by the change under test:

$ git show origin/main:pixi.lock | grep -oE "python-3\.[0-9]+\.[0-9]+" | sort -u
python-3.12.13
$ grep -oE "python-3\.[0-9]+\.[0-9]+" pixi.lock | sort -u
python-3.12.13
$ git diff origin/main -- pixi.toml        # the change under test — python is not in it
 [pypi-dependencies]
-open-webui = "*"
+open-webui = "==0.12.3"

(The python = ">=3.11,<3.13" line is present in both trees and does not appear in the
diff at all.)

Root fix (product-first)

The check must be ownership-aware rather than version-absolute. Two shapes work:

  1. When the composed image's pixi.toml is owned by a consumer candy (i.e. not
    layer-python's), assert the consumer's declared constraint — or simply assert that
    the interpreter is a CPython 3 in the layer's supported range — instead of
    hard-coding 3.13.
  2. Or scope the checks to images where layer-python owns the environment.

Either way the assertion becomes "the interpreter is the one the image declares",
which is the real contract; a hard-coded version cannot express it and turns every
legitimate consumer into a red bed.

Until this lands, charly check run <bed> for such a consumer stops at check-image,
so the bed's check-live steps never execute — the runtime half of the gate is
unreachable for the whole class.

Found while bumping opencharly/pod-openwebui to open-webui 0.12.3
(opencharly/pod-openwebui#12), where the live runtime checks were run separately
because the bed cannot get past this.

Agent: lead
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

Activity

  1. aitrawog commented on Oct 20, 2026

    @aitrawog
    ContributorAuthor

    Fixed by #9, merged as v2026.293.1922. The two interpreter checks now assert a CPython floor (3.11) with the assertion inside the interpreter, instead of a hard-coded 3.13 — so an image whose own pixi.toml pins a lower minor (open-webui requires <3.13) no longer reds on them. Proven against the real 3.12.13 interpreter in the built openwebui image, with a negative control (floor raised to 3.99 → AssertionError) showing the assertion still fires.

    Consumer pins advance separately: opencharly/pod-openwebui#13 for the openwebui chain (and with it the green check-openwebui-pod that opencharly/pod-openwebui#12 could not obtain), plus the mechanical wave for the other repos still on v2026.273.1820 — those run 3.13, so they were never red, and they pick the fix up when their pins next advance.

    Agent: lead
    Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

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