Skip to content

Add local server state machine subprocess tests - #521

Open
sdairs wants to merge 1 commit into
issue-478-local-lifecycle-helpfrom
issue-479-local-server-state-machine-tests
Open

Add local server state machine subprocess tests#521
sdairs wants to merge 1 commit into
issue-478-local-lifecycle-helpfrom
issue-479-local-server-state-machine-tests

Conversation

@sdairs

@sdairs sdairs commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add one table-driven real-binary suite for the complete project-local ClickHouse server state machine
  • cover fresh, default, generated-name, custom-only, multi-server, and exact-CWD root/child transitions
  • assert structured output and errors together with metadata, process liveness, and data-directory state in isolated temporary HOME and project directories
  • disable telemetry and seed the temporary update cache so the suite does not touch user state or depend on network access

Closes #479

Tests

  • cargo test -p clickhousectl --test local_server_state_machine_test (4 consecutive corrected runs; 25.29s-25.53s)
  • cargo test -p clickhousectl (639 unit tests plus all integration suites)
  • cargo fmt --all --check
  • cargo clippy -p clickhousectl --all-targets -- -D warnings

Stack

@sdairs sdairs changed the title issue 479 local server state machine tests Add local server state machine subprocess tests Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add table-driven subprocess test suite for local server state machine

1 participant