-
Notifications
You must be signed in to change notification settings - Fork 198
Open
Labels
C-testCategory: test infrastructure or coverageCategory: test infrastructure or coverage
Description
Parent issue: #475
Overview
Add Stateright.rs model checking tests to validate openraft's correctness. Stateright is a Rust-native distributed systems testing framework that can be embedded directly into the test suite.
Goals
- Model check core Raft properties
- Verify safety properties (no split-brain, log consistency)
- Verify liveness properties (leader election, log replication)
- Complement Jepsen with faster, deterministic testing
Advantages over Jepsen
- Written in Rust, integrates directly with openraft
- Faster iteration during development
- Deterministic execution for reproducible bugs
- No external infrastructure required
Implementation Steps
- Add
staterightas dev-dependency - Create model of openraft cluster
- Define safety properties to check
- Define liveness properties to check
- Add to CI pipeline
References
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-testCategory: test infrastructure or coverageCategory: test infrastructure or coverage