Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Sim2h recording & playback of connections and messages #2030

Open
wants to merge 43 commits into
base: develop
Choose a base branch
from

Conversation

maackle
Copy link
Member

@maackle maackle commented Dec 31, 2019

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:

  • connect
  • disconnect
  • send wire message

Playback:

  • create sim2h client for connect
  • send message
  • 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 maackle changed the base branch from develop to sim2h-status-additions January 2, 2020 21:28
@maackle maackle changed the base branch from sim2h-status-additions to develop January 24, 2020 05:33
@freesig freesig marked this pull request as ready for review January 30, 2020 23:46
@freesig
Copy link
Contributor

freesig commented Jan 31, 2020

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

@zippy
Copy link
Member

zippy commented Jan 31, 2020

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

MDD: TODO maybe bring this back one day
@freesig
Copy link
Contributor

freesig commented Feb 2, 2020

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.

Copy link
Contributor

@freesig freesig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not merge this until I check the differences between the sim2h_client module and the sim2h_client.rs in develop

@@ -78,102 +74,3 @@ pub fn sim2h_client(url_string: String, message_string: String) -> Result<(), St
thread_local! {
pub static CRYPTO: Box<dyn CryptoSystem> = Box::new(SodiumCryptoSystem::new());
}
struct Job {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why this section is moved or if that's what we want @maackle ?

}
}
Err(e) if e.would_block() => None,
Err(e) => panic!(e),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the line that is panicking.
I think this whole file needs to be matched to sim2h_client.rs in develop

@freesig
Copy link
Contributor

freesig commented Feb 5, 2020

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
Copy link
Contributor

freesig commented Feb 5, 2020

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

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

Successfully merging this pull request may close these issues.

None yet

3 participants