Skip to content

fix(build): a build whose buildctl child is SIGKILLed reports only 'signal: killed' #1262

Todo

Description

@aitrawog

Category

category:runtime

Type

type:fix

Remedy / files the remedy will touch

charly box build / plugin-build runBuildctl: name the killed child's signal and the unit/scope that killed it, so a cancellation is attributable, plus the retry observation

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

R1

Symptom

A charly box build run ended with:

charly: error: command "build": building podcdi.pod-cdi: buildctl build --progress plain --frontend dockerfile.v0 … --output type=oci,dest=…/pod-cdi_2026.328.0855.oci.tar: signal: killed: #1 [internal] load build definition from Containerfile

signal: killed is the CHILD's wait status. Nothing in the output names the signal, the parent that
killed it, or the unit/scope involved, so the failure is unattributable from the artifact — the same
diagnosability class as #1255 (whose fix, opencharly/plugin-build#68, is what made
this error visible at all).

Measurements

  • df -h /home → 718 G free; du -sh ~/.cache/charly/buildkitd/export → 14 G; no disk pressure.
  • free -g → 78 G available; dmesg | grep -i 'killed process' → no OOM kill.
  • The daemon log shows the client-side cancellation at the same minute:
    level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Canceled desc = context canceled".
  • No charly check/box build process was running concurrently from this session.

So the build was killed from the client side, and WHICH process or unit sent the SIGKILL is not
recoverable from any artifact this repo keeps.

What this issue owns

  1. Report the kill precisely: the child's signal, and (where the platform allows) the unit/scope name,
    so signal: killed becomes an attributable failure instead of an environmental shrug.
  2. Record whether a single retry reproduces it, and if it is a scope-reaper/clean interaction
    (charly clean --scopes reaps hung build scopes), name that path and make it safe against live
    builds.

Filed issues

None separate: this is the finding.

Agent: image-lane-vram · Claude Code session 739c9baf-e4cc-465c-9028-0a77b9ea7617
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

Activity

  1. added
    category:runtime
    type:fix
    on Nov 24, 2026
  2. aitrawog commented on Nov 24, 2026

    @aitrawog
    ContributorAuthor

    CLAIM

    CLAIM — owned by session image-lane-vram (Claude Code session 739c9baf-e4cc-465c-9028-0a77b9ea7617); assigning myself. This is a blocker for the live ComfyUI redeploy this session is running, so it is mine to fix. Method: reproduce with the measurements recorded in the body, name the code path, fix it there with a test that fails on today's behaviour, then prove the acceptance line the issue states. Next update: 2026-11-24T12:00Z, or sooner on any event.

    Agent: image-lane-vram · Claude Code session 739c9baf-e4cc-465c-9028-0a77b9ea7617
    Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

  3. self-assigned this
    on Nov 24, 2026
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