Skip to content

sozu_top_e2e fails on main: an empty saved_state is rejected at config load #1572

Closed

Description

@FlorentinDUBOIS

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

  1. added a commit that references this issue on Sep 26, 2026
    0648e57
  2. added a commit that references this issue on Sep 26, 2026
    bbb78cb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions