Skip to content

chore(deps): pin the python layer past its floor-check fix, and let the HTTP check wait for first boot - #14

Merged
github-actions[bot] merged 2 commits into
mainfrom
chore/layer-python-pin
Oct 20, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
chore/layer-python-pin

Conversation

@aitrawog

@aitrawog aitrawog commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Two changes with one purpose: make this candy's check bed reachable and green, which
is the R10 witness #12 could not obtain.

1. The layer-python pin moves past its floor-check fix (v2026.273.1820 →
v2026.293.1922). The old tag carried a hard-coded "CPython 3.13" assertion. This image
runs 3.12.13, because upstream open-webui requires >=3.11,<3.13 — so every bed
built from this candy died in check-image on those two layer checks and its entire
runtime half never executed. layer-python now asserts a floor instead
(opencharly/layer-python#8 → #9, merged as v2026.293.1922).

2. The HTTP probe waits for the app instead of assuming it is up. Open Web UI runs
its Alembic migrations and builds the model cache before uvicorn binds, so on a cold
deployment a single unconditional GET reaches the port forwarder with nothing behind it
and is reset. Measured: the whole live phase failed on this step ~8s into a cold bed.
The fix is the engine's readiness primitive, not a sleep in a shell step:

- check: the Open WebUI web interface answers HTTP 200 on the published port
  timeout: 30s
  eventually: 3m
  retry_interval: 2s
  context: [runtime]
  http:
    http: http://127.0.0.1:${HOST_PORT:8080}/
    status: 200

eventually probes readiness in the check engine (bounded, observable, counted in the
report) and the same single request still asserts steady state once the app is up.

How tested

Run on the committed tree at head 632dfc0 (the tip commit is an empty re-freeze that records the filed issue, so the content diff is e3c4aa0's). The image was built from this exact tree
(provenance below), then the full disposable bed ran against it:

$ CHARLY_BUILD_REGISTRY_MIRROR=127.0.0.1:5000 charly -C <project> check run check-openwebui-pod
[check-image]            PASS   53 steps: 42 passed, 0 failed, 11 skipped
[deploy-add] [config] [start] [wait-ready] [bring-up-members]   PASS
[check-live]             PASS after 1m45.774s   53 steps: 49 passed, 0 failed, 4 skipped
[feature-run]            PASS
[update]                 PASS   (fresh destroy + rebuild)
[rebuild-ready] [check-live-rebuild]  PASS after 1m33.381s   53 steps: 49 passed, 0 failed, 4 skipped
[cleanup] [cleanup-members]  PASS
charly check run check-openwebui-pod: PASS (steps=16)
EXIT=0

The two steps that used to red it, on the final tree:

PASS  check the interpreter is a CPython at or above the supported floor (3.11) …   [layer-python:1]  exit=0
PASS  check the Open WebUI web interface answers HTTP 200 on the published port      [openwebui:2]  (attempts=45, elapsed=1m37.539s)  status=200

attempts=45 over 97 seconds is the readiness wait doing exactly the job it exists for,
then passing — and check-live-rebuild proves it survives the fresh-update leg too.

The built image carries what this PR says it does (read from the image's own labels,
so it is the artifact and not the manifest):

$ podman inspect --format '{{index .Labels "ai.opencharly.candy_version"}}' <image>
… "github.com/opencharly/layer-python":"v2026.293.1922" …
$ podman inspect --format '{{json .Labels}}' <image> | grep -o 'floor (3.11)|stdlib-ok|CPython 3.13 version'
floor (3.11)   stdlib-ok (×2)        # the new checks; the old "CPython 3.13" text is gone

Provenance. This is the in-development case the product does not support, and it is
filed rather than hidden: a box's candy: list accepts only @github/@oci refs and
bare names without any local-source form, and discover:-ing a candy repo registers
an empty identity that panics deploykit.CandyCopySource (CandyMapKey == "") on
box generate — opencharly/charly#999. So the bed project composes a byte-identical
copy of this tree instead, and the four files were sha256-verified equal before the build
and again before this commit:

openwebui-entrypoint MATCH   pixi.toml MATCH   pixi.lock MATCH   charly.yml MATCH

Filed issues

Rulebook compliance

  • R1 — RCA every anomaly. Both failures were root-caused with measurements before any
    change: the bed's check-image red traced to the layer's exact-minor assertion plus the
    lock's python-3.12.13 on both sides; the live red traced to which image the bed
    deployed (a stale box tag left in the local store) and then to the app's cold-start
    window, visible as attempts never being used.
  • R2 — finish the cutover. The pin and the check it needs moved together; the stale
    exact-minor claim is gone from the image's labels (asserted above).
  • R3 — no duplication. One HTTP assertion, now readiness-aware; no second probe added.
  • R4 — no workarounds. No sleep in a shell step, no retry loop, no || true: the
    wait is the engine's own bounded eventually primitive.
  • R5 — no legacy. The old pin is removed, not shadowed.
  • R7 — prove behaviour. The full bed, the fresh-update leg, and the labels read back
    from the built image.
  • R8 — emitted artifacts. Every claim above is read from the image's own labels or the
    bed's own step report.
  • R9 — binary equals source. charly 2026.293.1538, built from charly origin/main.
  • R10 — fresh disposable proof. The disposable bed PASSED end to end (16 steps),
    including the destroy-and-rebuild leg.

Change classification

Runtime (candy dependency pin + a check's readiness contract) — charly.yml only.
Confidence: fully tested and validated — the change-class gate (the disposable bed)
passed on the final tree, and the built image's own labels confirm the new pin and checks.

Refs: closes #13, follows #12, depends on opencharly/layer-python#9.

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

…he HTTP check wait for first boot

Two changes, one purpose: make this candy's check bed reachable and green — which is
the R10 witness #12 could not obtain.

1. `layer-python` pin v2026.273.1820 -> v2026.293.1922. The old tag carried a hard-coded
   CPython 3.13 assertion; this image runs 3.12.13 because open-webui requires
   `<3.13`, so every bed built from this candy died in `check-image` and its runtime
   half never ran (opencharly/layer-python#8, fixed by opencharly/layer-python#9).

2. The HTTP probe now waits for the app instead of assuming it is up. Open Web UI runs
   its Alembic migrations and builds the model cache before uvicorn binds, so on a cold
   deployment a single unconditional GET hits the port forwarder with nothing behind it
   and is reset — measured: the live phase failed on this step ~8s into a cold bed.
   `eventually: 3m` + `retry_interval: 2s` is the engine's readiness primitive (bounded
   probing, never a fixed sleep); the same single request still asserts steady state.

Measured on the full disposable bed after both changes: `PASS (steps=16)`,
`check-image 42/0/11`, `check-live 49/0/4`, `check-live-rebuild 49/0/4`, and the HTTP
probe reporting `attempts=45, elapsed=1m37.539s, status=200` — the wait doing exactly
the job it exists for, then passing.

Closes #13

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: e3c4aa0622edf2421daf9f63261db0feed4fef91 (branch: chore/layer-python-pin)
Change class: code/config (candy charly.yml: dependency pin + check readiness contract)

Security screen: PASS — no secrets/exfiltration, no guardrail weakening, scope matches the body, no embedded instructions.

Blocks

  1. R1 / CONC(b) — surfaced product defect worked around, neither fixed nor filed. The
    Provenance paragraph reports a real charly defect encountered during this cutover:

    "discover:-ing a candy repo registers an empty identity that panics
    deploykit.CandyCopySource, so the bed project composes a byte-identical copy of this tree"

    That is a product bug (a panic in deploykit.CandyCopySource), not a test-environment
    artifact. It is genuinely separable from the pin bump and non-blocking, so per R1 it must be
    filed as a real issue under ## Filed issues. It is not — the section lists bump the layer-python require pin past the floor-check fix so check-openwebui-pod can reach a green bed #13,
    layer-python#8, distro-fedora#101, and charly#995 only. The same applies to the adjacent
    limitation the body surfaces ("a box's candy: list cannot name a local worktree"), which is
    also neither fixed nor filed. The ## Filed issues section even shows the author knows to
    file charly issues (charly#995), so the omission of the panic they actually hit is the
    forbidden surfaced-but-unaddressed split.
    Fix: file the deploykit.CandyCopySource panic (and the local-worktree naming limitation)
    as real opencharly/charly issue(s) and list them under ## Filed issues with a one-line
    description each — or rebut on-thread with evidence that they are already filed.

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

…d it

The review is right. This branch's body surfaced a real product defect — `discover:`-ing a
candy repo leaves an empty candy identity and panics `deploykit.CandyCopySource`
(`CandyMapKey == ""`) on `box generate`, and a box's `candy:` list has no local-source ref
form at all — and then carried on with a byte-identical copy without filing it. That is
the surfaced-but-unaddressed split the rulebook forbids.

Filed as opencharly/charly#999, naming both halves and a suggested fix for each. The body
now lists it under `## Filed issues`, and the provenance paragraph cites it at the point
where the workaround appears.

No code change: the pin, the readiness contract, and the green-bed evidence are unchanged.

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 632dfc094632cc91c5f62c36d0e42944c655d4a7 (branch: chore/layer-python-pin)

Security screen: PASS — no secrets/exfiltration, no guardrail weakening, scope matches the body, no embedded directives.
Checklist: All applicable rules PASS or NA.

Comment disposition: @github-actions[bot] BLOCK (6299691510, on e3c4aa0) — stale-superseded: its sole finding (the deploykit.CandyCopySource panic and the local-worktree naming limitation unfiled) is resolved in the current body — opencharly/charly#999 is now listed under ## Filed issues naming both halves, and the Provenance paragraph cites it.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 20, 2026 19:44
@github-actions
github-actions Bot merged commit 8c2aded into main Oct 20, 2026
1 check passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 20, 2026
github-actions Bot pushed a commit to opencharly/distro-fedora that referenced this pull request Oct 20, 2026
…it was missing (#102)

* chore(openwebui): advance the candy pin and give the box the witness it was missing

`box/openwebui` pinned `pod-openwebui:v2026.274.0629`, so every build of this box shipped
**open-webui 0.9.5** and the pre-fix entrypoint (no `--port` hand-off, the MCP `info.id`
identity collapse) even after the candy moved to 0.12.3
(opencharly/pod-openwebui#12, opencharly/pod-openwebui#14). The pin now advances to
`v2026.293.1944`.

It also gains the check bed it never had. Every other consumer image here has one; this
box was proven only by the transitively-composed candy checks, which cannot see the
composition. `check-openwebui-pod` is that missing witness.

Measured on this tree: the full disposable bed **PASS**, `steps=16`, `check-image
42/0/11`, `check-live 49/0/4`, `check-live-rebuild 49/0/4`, with the HTTP probe reporting
`attempts=66, elapsed=2m24.181s, status=200` and the python layer's floor assertion
passing at 3.12.

Closes #101

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

* test(bed): assert the served open-webui version in-tree instead of inheriting it

The review is right: this PR's whole claim is that the box stops shipping open-webui 0.9.5,
and the only in-tree proof was an HTTP 200 that never reads the version — leaving the
"0.12.3" assertion inherited by pin from pod-openwebui#12 plus a promise to report the local
deployment later. That is a "will test later", and the tier does not survive it.

The bed now reads the version from the app's own `/api/config` and matches it:

    PASS  check the running service serves the open-webui version this box pins (0.12.3),
          read from its own /api/config  [openwebui-served-version]  status=200

The box owns the pod-openwebui pin, so it owns this expectation: when the pin advances, this
line advances with it in the same change — which is exactly the coupling that was missing
while the pin sat three releases behind. (That is the opposite situation to the python layer,
where a shared layer must NOT assert a consumer's version.)

Full bed on this tree: PASS (steps=16), check-image 42/0/11, check-live 50/0/4,
check-live-rebuild 50/0/4, readiness probe attempts=39 elapsed=1m24.282s.

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bump the layer-python require pin past the floor-check fix so check-openwebui-pod can reach a green bed

1 participant