You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sozu top --snapshot still enables raw mode, so it fails without a terminal #1574
sozu top --snapshot N is documented in bin/src/cli.rs as a "test affordance, no terminal control", but it still installs raw mode. bin/src/ctl/top/render.rs calls RawModeGuard::install(cfg.mouse)? unconditionally before building the CrosstermBackend, which reaches enable_raw_mode().
Effect
Without a controlling terminal (CI, a pipe, ssh -T), the snapshot run fails with ResolvePath("sozu top render loop", … os error 6 ENXIO). As a result, bin/tests/sozu_top_e2e.rs passes only under a pty and cannot join CI (see #1572 / #1573).
Suggested fix
In snapshot mode, skip the raw-mode guard (and mouse capture, and alternate screen) and render the frames to stdout, as the flag's doc says. Then run sozu_top_e2e in CI without a pty.
Activity
fix(top): render --snapshot frames to stdout without terminal control
fix(top): render --snapshot frames to stdout without terminal control (…