CI run for PR #10 (fork PRs don't trigger the Rust matrix)
Closed
UA
3mo ago+2006+2006+0123456789012345678901234567890123456789-57-57-01234567890123456789
Internal twin of #10 (iceteaSA's stderr-tail feature) to run the full CI matrix — fork PRs only get Socket/cubic here, so the Rust legs never ran. Closes after the verdict; the merge happens on #10 itself.
Need help on this PR? Tag @codesmith with what you need. Autofix is disabled.
Summary by cubic
Adds a bounded per-module stderr tail retained in subc-core and exposes it via a new control op and ck verb, so crash causes remain readable even if the daemon log rotated. Previously stderr only went to the daemon’s inherited fd; now each module’s stderr is piped into a ring buffer and still forwarded verbatim to the daemon log.
- New control op: supervisor.stderr_tail. Request takes
module_idand optionalmax_lines/max_bytes; response returnscapturestate (captured/incomplete/not_captured),entries(lines withtruncatedflag and in-bandprocess_startmarkers), anddropped_lines. - Supervisor behavior: pipe child stderr, run a pump that retains a bounded tail (per-line truncation; ring survives restarts), drains the old pump on restart before inserting a boundary, and records reasons for incomplete/uncaptured tails; stdout remains inherited.
- CLI:
ck module stderr <id> [-n <count>]prints the retained tail (with dropped count header, truncation markers, and not-captured/incomplete messages).--jsonreturns raw wire. - Review focus: core logic in
subc-core/src/stderr_tail.rs; spawn/monitor changes insubc-core/src/supervise.rs; RPC handler insubc-core/src/control.rs; wire types and goldens insubc-control. No migrations required;server.describenow advertises supervisor.stderr_tail.