Skip to content

check-pod-rebuild-build: rebuild-builds-a-declared-box discards charly config output, so a one-off failure under load cannot be attributed #130

Backlog

Description

@aitrawog

Category

category:delivery

Type

type:fix

Remedy / files the remedy will touch

charly.yml check-pod-rebuild-build steps: write the charly config output to a .check log and cat it on failure, instead of >/dev/null

Cited design decision or org-rulebook rule (or none)

C1, C8

Classification

Non-blocking — genuinely separable; left unclaimed for a later session to pick up.

Evidence (verified: commands with output, file:line, measurements)

One run of check-pod-rebuild-build (plugin-deploy-pod feat/cdi-stock-spec @ 84a91f1, run 2026.335.2323) failed rebuild-builds-a-declared-box once while other heavy work ran on the host. In that run .check/rebuild-build.log was never written, so the step failed at its first command, whose output is discarded:

${CHARLY_BIN} config pod-overlay-builder >/dev/null 2>&1 || { echo "config failed"; exit 1; }

It did not reproduce under equal load on either tree, in /tmp/cs/loadrepro.sh: the bed ran while a charly box build comfyui-cdi --no-cache was still running (BuildKit building arch.arch onward):

[main] e0a0418  bed rc=2 :: [rebuild-refuses-a-boxless-deploy] exit=1 [rebuild-builds-a-declared-box] exit=0 [rebuild-cleaned-up] exit=0 ; load still running during bed: yes
[branch] 31cecd9 bed rc=2 :: [rebuild-refuses-a-boxless-deploy] exit=1 [rebuild-builds-a-declared-box] exit=0 [rebuild-cleaned-up] exit=0 ; load still running during bed: yes

It did not reproduce alone either (branch @ 84a91f1: rebuild-builds-a-declared-box exit=0). The one failure cannot be attributed because its only evidence went to /dev/null.

Mechanism

The step pipes charly config to /dev/null, so when it fails the bed records only 'config failed' with no error; a load- or race-induced failure leaves no trace to root-cause.

Missed control

Bed steps are expected to keep their command output (the cdi-userns bed tees to .check logs); this step's first command does not.

Blast radius

Any intermittent config failure in this bed is unattributable; one occurred once on 2026-12-02 and did not reproduce under equal load on main or the branch.

Root fix

Capture the config output to .check/rebuild-build-config.log and print it on failure (same pattern as check-pod-cdi-userns).

Spike (its result, or none with the reason)

equal-load reproduction on main and branch (both green on the step); alone (green)

Agent: vol-cdi · Claude Code session 8daa865c-d43e-447b-90b3-7d16ccc921d7
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)

Activity

  1. added
    category:delivery
    type:fix
    on Dec 2, 2026
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

    category:deliverytype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions