Skip to content

logs: charly progress lines, check-run runner lines and .check phase logs carry no timestamps — slow phases cannot be attributed without an external wrapper #1342

Backlog

Description

@aitrawog

Category

category:runtime

Type

type:feat

Remedy / files the remedy will touch

the shared stderr/progress writer used by charly commands and the plugin-check runner (the .check///*.log writers): an RFC3339 or elapsed-since-start prefix per line, on by default in .check logs and behind a flag/env for the terminal

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

none

Classification

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

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

A charly command's stderr progress, a bed's runner output and each phase log carry no time of day and no elapsed time. Raw lines from a failing bed run:

$ grep -m3 -E 'START|PASS|FAIL' cb-check-boxload-pod.log
charly check run check-boxload-pod: [image-build] START (charly box build; log: .check/check-boxload-pod/2026.336.0219/image-build.log)
charly check run check-boxload-pod: [image-build] FAIL after 4m19.388s: exit 1: charly subcommand exited 1 (log: …/image-build.log)
charly check run check-boxload-pod: FAIL (steps=1)
$ head -3 .check/check-boxload-pod/2026.336.0219/image-build.log
plugin github.com/opencharly/plugin-example-kind/candy/plugin-example-kind: served from /home/atrawog/.cache/charly/plugin-build/views/plugi…
plugin github.com/opencharly/plugin-example-structkind/candy/plugin-example-structkind: served from …
Notice: candy github.com/opencharly/layer-container-nesting resolved to multiple git tags with differing content within one scope …

Only the phase's final duration is printed. Inside a phase, the 4m19s cannot be split into project load, plugin connect, git metadata and BuildKit time without an external wrapper.

Mechanism

Every progress line goes through plain fmt.Fprintf to stderr, and plugin-check tees the child's stderr verbatim into .log. No layer stamps a time, so the only timing is each phase's final 'after Xm Ys'.

Missed control

There is no logging contract for timing, and no check that a phase log can answer 'where did the time go'.

Blast radius

Every slow-command or slow-bed RCA. The 44 min check-pod-overlay and the 24 s pre-build overhead of a cached box build were only attributable with hand-written wrappers (strace, pprof, awk prefixes).

Root fix

One line writer for charly-owned progress output and for the check runner's phase logs, prefixing elapsed time since process start (and wall time in .check logs). BuildKit's own '#N 12.3' timing is left as it is.

Spike (its result, or none with the reason)

An external elapsed-time prefix (awk over the merged stderr of charly box build comfyui-cdi, fully cached) was enough to attribute the time:

   8.04 plugin plugin-openwebui: served from …/plugin-build/views/plugin-openwebui-adc609007cfb475b (build sha256:…
  12.15 charly: fetching git metadata for 8 repo(s) (first run — may take a moment)...
  13.37 charly: git metadata cached (8 repo(s)).
  25.63 --- arch.arch -> ghcr.io/opencharly/arch:2026.336.0231 (built; image sha256:7d13f2b32b9c…
WALL 47.46 USER 40.63 SYS 7.64 MAXRSS 1559480

It shows 24 s of overhead before the first box, which led to the root cause of #1340. The prefix only works when stdout and stderr are merged by hand. Bed phase logs and the runner's own lines need it built in.

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:runtime
    type:feat
    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:runtimetype:feat

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions