Skip to content

update --build fails after the build succeeds: the rebuild treats a post-build box-check SKIP (exit 3) as fatal #1327

Done

Description

@aitrawog

What is wrong

charly update <deploy> --build fails after the build succeeds, because the deploy plugin runs a
post-build charly check box <image> and that command exits 3 when the image resolves no plan steps:

--- Building overlay-base (base docker.io/library/fedora:43; builders none) ---
--- Building overlay-npm-builder (base docker.io/library/fedora:43; builders none) ---
SKIPPED — no plan steps resolved for this image: this phase asserted nothing, so it is recorded as a SKIP and not as a pass (opencharly/plugin-check#110)
command "check": no plan steps resolved for this image: this phase asserted nothing, so it is recorded as a SKIP and not as a pass (opencharly/plugin-check#110)
charly: error: command "update": deploy-dispatch rebuild: deploy plugin: InvokeProvider deploy:pod op=rebuild: rpc error: code = Unknown desc = charly check box overlay-base: charly subcommand exited 3

Measured with the build of the charly#1324 head (2026.332.1120) driving
charly check run check-pod-rebuild-build on its disposable target
(plugin-deploy-pod, arm rebuild-builds-a-declared-box).

Root cause

Two independent defects land on one line:

  1. The rebuild treats a SKIP as fatal. A box whose plan resolves nothing asserted nothing — that is
    the deliberate SKIPPED (opencharly/plugin-check#110) contract, and it is a non-result, not a
    failure. update --build still returns its exit status as an error, so a project whose boxes carry
    no plan steps cannot be rebuilt at all.
  2. The bed arm's assertion cannot match the real header. rebuild-builds-a-declared-box greps for
    the literal --- Building overlay-base ---, while the generator emits
    --- Building overlay-base (base …; builders none) ---. The pattern is a magic literal that never
    matched, so the arm reported "did not build" even on the run where the build demonstrably happened.

Blast radius

Every update --build on a box with no resolvable plan steps, and every bed that asserts a build line
with an exact-literal pattern. The first is a product defect (a rebuild that cannot succeed); the second
is a test defect that masked it.

Root fix

  • Product: a post-build check that SKIPS must not fail the rebuild — either tolerate exit 3 with the
    skip recorded in the output, or do not run the check at all when the image resolves no steps. The
    rebuild's own success criterion is the build.
  • Bed: assert on the header PREFIX (--- Building overlay-base (), not a fixed suffix, so the arm
    tracks the generator's real format. Keep the arm asserting the update's exit status too, so a genuine
    failure cannot hide behind a present build line.

Both need re-running charly check run check-pod-rebuild-build after the change; the arm is red today
for reason 2 even on a tree where the build works, and red for reason 1 on every tree.

Activity

  1. self-assigned this
    on Nov 28, 2026
  2. added
    category:runtime
    type:fix
    on Nov 28, 2026
  3. aitrawog commented on Nov 28, 2026

    @aitrawog
    ContributorAuthor

    Fixed and merged: opencharly/plugin-deploy-pod#112 — lifecycle.go now tolerates ONLY check box's skip status (3) after a build; every other non-zero exit stays fatal. The bed check-pod-rebuild-build is green on its disposable target (3 steps: 3 passed, 0 failed, 0 skipped) with the rebuild actually building (--- Building overlay-base (…) present in the log). Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

category:runtimetype:fix

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions