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_e2e fails on main: an empty saved_state is rejected at config load #1572
bin/tests/sozu_top_e2e.rs::sozu_top_tick_once_against_real_master fails on main. The test is #[ignore] and gated behind the tui feature, so CI never runs it.
Repro
cargo test -p sozu --features tui --test sozu_top_e2e -- --include-ignored
This exits 101: the master's config load fails with SaveStatePath("failed to create state file '\"\"'") before the test reaches the command channel. The same failure reproduces on f7491559, an ancestor of the current main.
Likely cause
The test's config sets saved_state = "" (bin/tests/sozu_top_e2e.rs:126). Config then goes through saved_state_path() (command/src/config.rs, ~l.4343), which tries to create a state file at the empty path and rejects the config.
This is inferred from the error text, not confirmed by stepping through the code.
Suggested fix
Either drop the empty saved_state from the test config, or have saved_state_path() treat "" as None. Then consider running the tui e2e in CI so this cannot rot again.
Activity
fix(top): leave saved_state unset in the sozu top e2e config
fix(top): leave saved_state unset in the sozu top e2e config (sozu-pr…