holochain-rust icon indicating copy to clipboard operation
holochain-rust copied to clipboard

Sim2h recording & playback of connections and messages

Open maackle opened this issue 5 years ago • 5 comments

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

maackle avatar Dec 31 '19 08:12 maackle

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

freesig avatar Jan 31 '20 03:01 freesig

looks like status_check test is failing. From Standup we can just remove this test.

zippy avatar Jan 31 '20 18:01 zippy

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.

freesig avatar Feb 02 '20 22:02 freesig

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

freesig avatar Feb 05 '20 01:02 freesig

Actually it should probably just try connecting to a new socket if it times out

freesig avatar Feb 05 '20 01:02 freesig