fix: stdbuf cannot exec shell functions — buffer inside decode_stream [#355] #1

Merged
reachableceo merged 1 commits from fix/stdbuf-function-pipeline into main 2026-09-03 02:54:59 +00:00
Owner

Deployment rehearsal on ultix-field (2026-09-02) caught the stage-1 listener showing ACTIVE while decode_stream never ran: stdbuf -oL decode_stream exec's binaries only, and decode_stream is a shell function. The offline suite stayed green because --selftest never wraps the function.

Fix: line-buffering moves INSIDE decode_stream (stdbuf -oL awk); the od stage keeps its own stdbuf. SC2016 directive added for the intentionally single-quoted awk program.

Verification: 9/9 decoder suite green, shellcheck clean, full pre-push audit passed. After merge: redeploy stage-1 to ultix-field (dev) then pfvsvrpi (prod), serial + health-gated; ticket trail on #355/#356.

Ticket: https://projects.knownelement.com/issues/355

Deployment rehearsal on ultix-field (2026-09-02) caught the stage-1 listener showing ACTIVE while decode_stream never ran: `stdbuf -oL decode_stream` exec's binaries only, and decode_stream is a shell function. The offline suite stayed green because --selftest never wraps the function. Fix: line-buffering moves INSIDE decode_stream (stdbuf -oL awk); the od stage keeps its own stdbuf. SC2016 directive added for the intentionally single-quoted awk program. Verification: 9/9 decoder suite green, shellcheck clean, full pre-push audit passed. After merge: redeploy stage-1 to ultix-field (dev) then pfvsvrpi (prod), serial + health-gated; ticket trail on #355/#356. Ticket: https://projects.knownelement.com/issues/355
reachableceo added 1 commit 2026-09-03 02:46:24 +00:00
Deployment rehearsal on ultix-field 2026-09-02 caught it live: the
listener showed active but decode_stream never ran (stdbuf exec's
binaries only). Line-buffering moved inside decode_stream; the od
stage keeps its own stdbuf.

Rehearsal note: https://projects.knownelement.com/issues/355
reachableceo merged commit bf9dbf058e into main 2026-09-03 02:54:59 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KNEL/KNELDoorman#1