Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build deterministic tests based on turmoil #639

Open
drmingdrmer opened this issue Jan 4, 2023 · 2 comments
Open

Build deterministic tests based on turmoil #639

drmingdrmer opened this issue Jan 4, 2023 · 2 comments
Labels

Comments

@drmingdrmer
Copy link
Member

https://tokio.rs/blog/2023-01-03-announcing-turmoil

Today, we are happy to announce the initial release of [turmoil](https://crates.io/crates/turmoil), a framework for developing and testing distributed systems.

Testing distributed systems is hard. Non-determinism is everywhere (network, time, threads, etc.), making reproducible results difficult to achieve. Development cycles are lengthy due to deployments. All these factors slow down development and make it difficult to ensure system correctness.

turmoil strives to solve these problems by simulating hosts, time and the network. This allows for an entire distributed system to run within a single process on a single thread, achieving deterministic execution. We also provide fine grain control over the network, with support for dropping, holding and delaying messages between hosts.

@github-actions
Copy link

github-actions bot commented Jan 4, 2023

👋 Thanks for opening this issue!

Get help or engage by:

  • /help : to print help messages.
  • /assignme : to assign this issue to you.

@drmingdrmer
Copy link
Member Author

madraft is an another example building deterministic test upon madsim:
https://github.com/madsim-rs/madraft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant