holochain-rust
holochain-rust copied to clipboard
Sim2h recording & playback of connections and messages
PR summary
Initial hookup for recording key Sim2h events in log files, and then parsing those logs and playing them back using sim2h_client rather than real conductors.
See crates/walkman_cli/README.md for usage info
Recording:
- [x] connect
- [x] disconnect
- [x] send wire message
Playback:
- [x] create sim2h client for connect
- [x] send message
- [x] disconnect client
testing/benchmarking notes
followups
( any new tickets/concerns that were discovered or created during this work but aren't in scope for review here )
changelog
- [ ] if this is a code change that effects some consumer (e.g. zome developers) of holochain core, then it has been added to our between-release changelog with the format
- summary of change [PR#1234](https://github.com/holochain/holochain-rust/pull/1234)
documentation
- [ ] this code has been documented according to our docs checklist
This is panicking on crates/sim2h_client/src/lib.rs:125:19
now. It's getting an error about the connection being closed. Must be something to do with how I pulled in the new connection manager
looks like status_check test is failing. From Standup we can just remove this test.
I think this is still failing to connect because it's getting back a closed connection from sim2h and then panicking on crates/sim2h_client/src/lib.rs:125
. I will try to fix this today.
I'm not sure what the next move is with this. Basically the socket is busy from walkman's side then it timesout after 10 seconds. We could raise the timeout but I'm not sure why it's saying it's busy
Actually it should probably just try connecting to a new socket if it times out