Skip to content

check run SIGKILLs the generated image-build step at the 120s never-hang bound, so a cold distro-base build can never pass #123

Closed

Description

@aitrawog

Problem

charly check run SIGKILLs a bed's generated image-build step at the runner's 120s never-hang bound, so any bed whose image build takes longer than two minutes can never pass on a cold build cache — the step is killed even though the build is healthy.

Measured on opencharly/distro-cachyos check-crabbox-pod (a CachyOS-base bed), with the latest plugin-build/sdk adopted and the #937 GHCR fix active:

charly check run check-crabbox-pod: [image-build] START
charly: error: command "build": building arch.arch-builder: bridging arch.arch-builder
  into the podman store: buildkitdrive: load …arch-builder…oci.tar:
  podman load -i …oci.tar: signal: killed: Getting image source signatures
charly check run check-crabbox-pod: [image-build] FAIL after 2m2.279s

The build itself SUCCEEDED — with CHARLY_BUILD_REGISTRY_MIRROR set, the daemon rendered [registry."ghcr.io"] mirrors = ["127.0.0.1:5000"], the base resolved locally (no GHCR query), and the OCI export was written. What died was the bridge (podman load of the OCI tar), killed by the step's context deadline at ~122s.

Mechanism (RCA)

candy/plugin-check/bed_run.go builds the step as a plain step("image-build", …) over the CLI seam (bedCliCombined → ex.HostBuild). ProbeNeverHang bounds every probe attempt at the readiness floor (readinessPerAttemptFallback = 120s), and a generated step has no authored timeout: to override it — candy/plugin-check/references/authoring-gotchas.md §13 states the rule ("a step is SIGKILLed at its never-hang bound unless it declares timeout:") and the fix is an authored #Op timeout:, which the image-build step cannot carry because it is not authored.

Blast radius

Every distro-base bed (check-cachyos-*, check-debian-*, check-fedora-*, check-ubuntu-*, check-crabbox-* in distro-*/charly) on a cold cache: the arch/cachyos base + builder + bridge routinely exceed 120s. It is the same class as #937 (the GHCR 403): a disposable bed composing a shared distro base cannot gate on this host, now for a second, independent reason.

Root fix

Give the generated image-build (and vm-build) step its own bound — a build bound sized for an image build (e.g. 1h) rather than the probe floor — or let the bed's descriptor carry a timeout: that the generated build steps honour. The probe floor is right for probes; it is wrong for a build.

Evidence retained

  • distro-cachyos worktree .check/check-crabbox-pod/2026.293.1030/ (image-build.log, summary.yml, runner.stderr.log)
  • The mirror config after the fix: ~/.cache/charly/buildkitd/buildkitd.toml renders [registry."ghcr.io"] mirrors = ["127.0.0.1:5000"] + [registry."127.0.0.1:5000"] http = true
  • The adopted versions: plugin-build v0.2026293.926, sdk v0.2026293.417

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

Activity

  1. self-assigned this
    on Oct 20, 2026
  2. aitrawog commented on Oct 20, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED — the generated image-build step gets a build-sized idle window instead of the 120s probe never-hang bound.

    At the source: opencharly/plugin-check#124 (merged 4f130ba, tag v0.2026293.1223). The root image-build step hands its child CHARLY_READINESS_NO_PROGRESS=30m — the sole knob — instead of inheriting the 120s probe bound, in bed_run.go's stepEnv(..., buildStepEnv(), ...); TestBuildStepEnvSizesTheChildGuardWindow pins the seam. The member image-build-* and vm-build siblings are measured separately in #125.

    Proven on the bed that died: distro-cachyos's check-crabbox-pod cold build under the old plugin-check died at 2m2s (the bridge SIGKILL); under the released fix the same bed is green — PASS (steps=16) at default windows, dir 2026.293.1509, driver charly 2026.293.1230 — and the same 20s parent window that kills the old code (FAIL 41.3s) passes the new code (45.2s).

    Consumed: the umbrella's plugin-check pin advances d64ed77b → 9f187490 and charly to v2026.293.1537 in opencharly/opencharly#536.

    Agent: dsh-crabbox-079
    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

Metadata

Metadata

Assignees

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