-
Notifications
You must be signed in to change notification settings - Fork 720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New cardano-cli ping command. #4664
Conversation
2904fb9
to
005ea55
Compare
f539ab2
to
c314014
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the handshake related code should not live here. There should also be an issue tracking this with the relevant acceptance criteria etc..
78e16ab
to
440a908
Compare
440a908
to
d070813
Compare
d070813
to
eb9a1d0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still missing a fleshed out ticket e.g #4277
= PingClientCmdErrorOfInvalidHostIp | ||
| PingClientCmdErrorOfExceptions ![(AddrInfo, SomeException)] | ||
|
||
runPingCmd :: PingCmd -> ExceptT PingClientCmdError IO () |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add some comments to this code to make it clearer as to what is happening?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments added
8b02055
to
e33e9f6
Compare
27b509f
to
e20c040
Compare
cfc0727
to
da11bd5
Compare
cardano-cli/cardano-cli.cabal
Outdated
, ouroboros-network-api | ||
, ouroboros-network-protocols |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should add bounds here, alternatively you could add a bound on cardano-api
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a problem that inflicts lots of packages. I'm intending to add them in a separate PR and fix it up for all packages.
7a2eca2
to
023e024
Compare
4dd25c8
to
4a7f471
Compare
7543161
to
77622af
Compare
77622af
to
f270530
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@@ -16,7 +16,7 @@ index-state: 2023-03-06T05:24:58Z | |||
|
|||
index-state: | |||
, hackage.haskell.org 2023-03-06T05:24:58Z |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In future lets do index state bumps in separate PRs so if it happens to break CI/Nix infrastructure we can deal with it separately.
-- Ping client thread handles | ||
caids <- forM addresses $ liftIO . async . pingClient (Tracer $ doLog msgQueue) (Tracer doErrLog) options versions | ||
res <- L.zip addresses <$> mapM (liftIO . waitCatch) caids | ||
liftIO $ doLog msgQueue CNP.LogEnd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LogEnd
is signalling to stop logging right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. It logs JSON so the LogEnd
is required to close it off with ] }
.
Depends on IntersectMBO/ouroboros-network#4223