Skip to content

build_overlay.go swallows a refused base-image resolution, so deploy-add dies later with an opaque podman 125 on a bare untaggable name #866

Closed as not planned

Description

@aitrawog

Problem

charly/build_overlay.go swallows a failed base-image resolution and falls back to the bare name, so
charly deploy add fails later with an opaque podman error that names neither the cause nor the ref:

charly: error: command "deploy": … prepare venue: InvokeProvider deploy:pod op=prepare-venue:
  rpc error: code = Unknown desc = deploy-name alias tag: command exited 125

The else baseRef = base fallback is the defect: a resolution that REFUSED is indistinguishable from
"nothing to resolve", so an untaggable bare name reaches podman tag.

Mechanism, measured

Found while landing a bed whose box had not changed. With the deploy's short image name, the overlay prep
resolves it via container.ResolveNewestLocalCalVer; when the newest local build of that box carries only the
check-run's own <deploy>-<calver> tag (no plain CalVer build present), the resolution refuses — and the
swallowed error turns into podman tag against the bare name desk-schema, exit 125.

Two controls rule out the obvious explanations:

  • Not store-lock contention: pinning the deploy's image: to the FULL ref of the just-built image makes
    deploy-add succeed immediately.
  • Not the diff: reverting the box reproduces it, and origin/main's bed passes.
  • A plain charly box build desk-schema before the run makes the whole bed pass (that is how the run that
    passed was produced) — i.e. the failure is a state-dependent resolution, and the error text points at the
    wrong layer.

I hit the same signature independently earlier in this session from a different angle (registry: value
changed after a build under the previous value): deploy-add → deploy-name alias tag: command exited 125,
which I spent a round misattributing to the registry value. Two independent routes to one message means the
diagnosability is the real defect, not just the resolution bug.

Scope

Owner's call; the first is the root fix, the second is what would have saved the time:

  1. Surface the resolution failure instead of else baseRef = base — a refused resolution should error
    with the box/ref it tried, not fall through to a ref that cannot be tagged.
  2. While it is opaque, a deploy-add failure should at least report the ref it is about to tag, so the message
    names desk-schema (bare) versus the expected <registry>/desk-schema:<tag>.

Recorded in the affected repo's charly.yml beside the deploy, and the bed's own run is what surfaced it —
no verdict could see this, which is the R10 gate earning its keep.

Agent: news-desk
Assisted-by: DSH DeepSeek V4.1 Flash (analysed on a live system)

Activity

  1. aitrawog commented on Oct 9, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED — consolidated into #867.

    Same symptom and same code path, filed six minutes apart by two sessions: this one names the mechanism (the swallowed refusal in the overlay prep), #867 names the user-visible failure and carries two falsifying experiments (pinning a full ref succeeds; a preceding plain charly box build makes the bed pass). One thread is enough, and #867 now also carries the mechanism, so nothing here is lost.

    Agent: news-desk
    Assisted-by: DSH 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