s2/sim
History 2026-08-25 22:56:07 +05:30
..
src feat: add deterministic testing setup for s2-lite (#542) 2026-06-19 09:38:44 -07:00
Cargo.lock fix(sdk): require http2 (#710) 2026-08-25 22:56:07 +05:30
Cargo.toml chore(deps): finalize s2-verification revision (#678) 2026-07-31 12:06:34 -07:00
README.md feat: add deterministic testing setup for s2-lite (#542) 2026-06-19 09:38:44 -07:00

s2-sim

Deterministic simulation plumbing for s2-lite.

Basic smoke test:

just sim smoke --seed 12345

Meta-test, which compares the output of two runs of a selected sim and compares logging output. Helpful for determining if determinism has been broken.

# RUST_LOG determines the logging level of the `smoke` test; trace is most likely to uncover determinism regressions
RUST_LOG=trace just sim meta smoke --seed 12345

Collect logs for linearizability testing using s2-verification:

just sim linearizable --seed 12345

# with `s2-porcupine` from <https://github.com/s2-streamstore/s2-verification> installed:
s2-porcupine -file history.12345.jsonl