Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deterministic simulation for sui tests (MystenLabs#4429)
* Changes for starting simulator swarm * Don't start jsonrpsee or prometheus servers in simulator * Make start_console work when Send is required * simulator determinism tests * Add sui-macros crate for #[sui_test] and #[sim_test] * Add cargo-simtest subcommand for running simulator tests * Convert some fullnode tests to sui_test * Add madsim deps (NOTE: fix, uses local paths) * Disable event processing on fullnode in simulator, for determinism * network_config_snapshot_matches cannot run in a simulator build * Don't crash by trying to kill nodes if the runtime has shut down * Fix hash container non-determinism * Stop nodes when swarm is dropped * Remove unneeded log init * Make lock_service calls block in the simulator for determinism * Create deterministic local addresses for nodes not built by swarm (e.g. fullnodes) * madsim -> msim * Replace local paths with git pointers * Fix ordinary #[test]s in simulator * Add github workflow * Update deps * Move sim-specific container stuff to separate module * Fix lints * Update mysten-sim dep * Make the installed cargo-simtest script invoke the one in version control * skip tests that don't run well in simulator * Fix license check * Add workspace hack deps * Simplify config builder * Disable unneeded simulator tests * Update Cargo.lock * PR comments Co-authored-by: Mark Logan <mark@marklgn.com>
- Loading branch information