Skip to content

bump cardano-crypto-class && ghc - #80

Merged
perturbing merged 5 commits into
masterfrom
clr/bump-crypto-class
Dec 11, 2025
Merged

bump cardano-crypto-class && ghc#80
perturbing merged 5 commits into
masterfrom
clr/bump-crypto-class

Conversation

@CarlosLopezDeLara

@CarlosLopezDeLara CarlosLopezDeLara commented Dec 9, 2025

Copy link
Copy Markdown
Collaborator

This PR does the follwing:

  • bumps to cardano-crypto-class-2.2.3.2
  • updates CI to run with ghc: ["9.6.7", "9.8.4", "9.10.3", "9.12.2"]
  • Adds an exception handling for kes-agent-control and for kes-agent running on Windows)

This is with a kes-agent-control compiled with ghc 9.12.2 without the fix when kes-agent is down:

kes-agent-control -c control.socket  --retry-delay 2000 --retry-attempts 5 info

Connection to agent failed, will try again 5 more times
Connection to agent failed, will try again 4 more times
Connection to agent failed, will try again 3 more times
Connection to agent failed, will try again 2 more times
Connection to agent failed, will try again 1 more time
kes-agent-control: Uncaught exception ghc-internal:GHC.Internal.IO.Exception.IOException:

Network.Socket.connect: <socket: 13>: does not exist (Connection refused)

While handling Network.Socket.connect: <socket: 13>: does not exist (Connection refused)

While handling Network.Socket.connect: <socket: 13>: does not exist (Connection refused)

While handling Network.Socket.connect: <socket: 13>: does not exist (Connection refused)

While handling Network.Socket.connect: <socket: 13>: does not exist (Connection refused)

While handling Network.Socket.connect: <socket: 13>: does not exist (Connection refused)

HasCallStack backtrace:
  ioError, called at libraries/ghc-internal/src/GHC/Internal/Foreign/C/Error.hs:291:5 in ghc-internal:GHC.Internal.Foreign.C.Error

this happens because 9.12.2 now defaults to including a verbose HasCallStack backtrace

And this is with kes-agent compiled with ghc 9.12.2 where we modified ControlMain.hs to catch handle the exception:

kes-agent-control -c control.socket  --retry-delay 2000 --retry-attempts 5 info

Connection to agent failed, will try again 5 more times
Connection to agent failed, will try again 4 more times
Connection to agent failed, will try again 3 more times
Connection to agent failed, will try again 2 more times
Connection to agent failed, will try again 1 more time
kes-agent-control: Network.Socket.connect: <socket: 13>: does not exist (Connection refused)

@CarlosLopezDeLara
CarlosLopezDeLara force-pushed the clr/bump-crypto-class branch 2 times, most recently from aa79d40 to 4fadd64 Compare December 9, 2025 15:09
Update haskell.yml

Remove ghc 9.2.8 from CI
Add stable versions from https://endoflife.date/ghc
handle connection exception in kes-agent-control
@CarlosLopezDeLara
CarlosLopezDeLara force-pushed the clr/bump-crypto-class branch 3 times, most recently from 8c0ca57 to c9fbf38 Compare December 10, 2025 22:43
Modify assertion for Windows so that the test does not fail on Windows
@CarlosLopezDeLara CarlosLopezDeLara changed the title bump cardano-crypto-class bump cardano-crypto-class && ghc Dec 10, 2025
@perturbing
perturbing merged commit 2c225b8 into master Dec 11, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants