-
Notifications
You must be signed in to change notification settings - Fork 732
Interrupt cardano nodes when cardano-testnet
gets interrupted
#6240
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
base: master
Are you sure you want to change the base?
Conversation
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.
Breaks on windows. See how it's implemented in cardano-node:
e1bed50
to
ab3b54e
Compare
@@ -1,4 +1,5 @@ | |||
{-# LANGUAGE BangPatterns #-} | |||
{-# LANGUAGE CPP #-} |
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.
You solution is correct IMO. One small thing: depending on CPP
breaks code formatters (both stylish and fourmolu give up). So from developer experience it is a bit annoying. So can I ask you to create a separate haskell module which uses CPP
extension and conditionally installs the handler?
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.
Done in latest commit
1639b00
to
6e2b121
Compare
3d40313
to
80f42b0
Compare
80f42b0
to
6dad4e2
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.
Great work, thanks!
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
Description
This PR fixes a bug where the nodes spun up by
cardano-testnet
were not interrupted when said testnet was interrupted (the normal way) by receiving SIGINT.Checklist
hlint
. See.github/workflows/check-hlint.yml
to get thehlint
versionstylish-haskell
. See.github/workflows/stylish-haskell.yml
to get thestylish-haskell
versionghc-9.6
andghc-9.12
Note on CI
If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons.
You will need to get someone with write privileges. Please contact IOG node developers to do this
for you.