flybrain/infra/bin
acamilo 75e231c707 fly-feed: status exits quietly on a closed stdout (no broken-pipe error on stderr)
When stdout is closed early (e.g. `fly-feed status | head -1`), the second and later
status_report writes fail with EPIPE; bash's builtins report "write error: Broken pipe"
to stderr even with `trap '' PIPE`, because the failed write is reported by the
runtime, not the signal handler. Route every status_report write through a `say`
helper that checks printf's exit status and exits 0 on the first EPIPE: the reader
is gone, nothing useful is left to do, and `set -e` must not trip on the failing
write.

The change is scoped to status_report: bus/direct's stderr log/record writes are
unaffected, the output text is unchanged, and the switching behaviour and exit
codes are untouched. A test in infra/tests/lint.sh runs `fly-feed status` with
the existing stubbed state into `| head -1` and asserts nothing is written to
stderr.
2026-10-02 13:04:20 +00:00
..
dev-stage-deploy.sh flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
fly-backup-stage flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
fly-cpu-confine infra: fly-cpu-confine also confines /.lxc, check ignores its own chain (PERF-02 review R1-R3) 2026-10-01 15:57:46 +00:00
fly-feed fly-feed: status exits quietly on a closed stdout (no broken-pipe error on stderr) 2026-10-02 13:04:20 +00:00
fly-loop-recover infra: a reset's replay is not progress; the ladder measures progress and catches against the reward names it has seen (row 70 review r3) 2026-09-30 23:58:13 +00:00
fly-loop-reset loop recovery: wait on the watchdog's ActiveState, and only a root flysim that is the running build 2026-09-28 21:37:40 +00:00
fly-recap flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
fly-reset-to-milestone rewards: a catch reward, adapter v6 with a v5 migration, and a rung restart 2026-09-22 17:30:00 +00:00
fly-retention flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
fly-runtime infra: fly-runtime session --bus; shadow of the bus topology 2026-10-01 23:57:34 +00:00
fly-runtime-probation infra: CUT-01 speed probation after fly-runtime session 2026-09-30 12:58:05 +00:00
fly-shadow-run BUS-01 review notes: shadow check refuses on the session runtime (N1), workers die with their parent via PR_SET_PDEATHSIG (N2), test for the Hello digest refusal (N3) 2026-10-02 03:04:49 +00:00
fly-watchdog gpu-02 notes: a GPU failure falls back to the CPU for the process lifetime 2026-10-02 10:15:03 +00:00
flycast-launch flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
flypush flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
flystage-launch flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
wait-for-health flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
wait-for-stage flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
wait-for-x flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00