Skip to content

Commit f5a46d3

Browse files
Merge #4714
4714: Update index state and hedgehog-extras. r=newhoggy a=newhoggy Co-authored-by: John Ky <[email protected]>
2 parents 7e3097f + fa132fc commit f5a46d3

File tree

7 files changed

+4489
-1049
lines changed

7 files changed

+4489
-1049
lines changed

cabal.project

+17-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ repository cardano-haskell-packages
1212

1313
-- See CONTRIBUTING for information about these, including some Nix commands
1414
-- you need to run if you change them
15-
index-state: 2022-11-11T00:00:00Z
16-
index-state: cardano-haskell-packages 2022-11-12T20:00:00Z
15+
index-state: 2022-12-13T02:43:53Z
16+
index-state: cardano-haskell-packages 2022-12-14T00:40:15Z
1717

1818
packages:
1919
cardano-api
@@ -87,7 +87,21 @@ constraints:
8787
-- TODO: these should be set in cabal files, but avoiding setting them in lower dependencies for initial CHaP release
8888

8989
-- Needed until ouroboros-network gets proper bounds
90-
, cardano-binary == 1.5.0
90+
, byron-spec-chain == 0.1.1.1
91+
, byron-spec-ledger == 0.1.1.1
92+
, cardano-binary == 1.5.0
93+
, cardano-ledger-alonzo == 0.1.1.1
94+
, cardano-ledger-babbage == 0.1.1.1
95+
, cardano-ledger-byron == 0.1.1.1
96+
, cardano-ledger-byron-test == 1.4.1
97+
, cardano-ledger-conway == 0.1.1.1
98+
, cardano-ledger-core == 0.1.1.1
99+
, cardano-ledger-pretty == 0.1.1.1
100+
, cardano-ledger-shelley == 0.1.1.1
101+
, cardano-ledger-shelley-ma == 0.1.1.1
102+
, cardano-ledger-shelley-test == 0.1.1.1
103+
, cardano-protocol-tpraos == 0.1.1.1
104+
, hedgehog-extras >= 0.3
91105

92106
-- We'll need this once ouroboros has been pushed into CHaP
93107
-- extra-packages:
@@ -135,4 +149,3 @@ source-repository-package
135149
ouroboros-network-framework
136150
ouroboros-network-testing
137151
ouroboros-consensus-cardano-tools
138-

cardano-testnet/src/Testnet/Byron.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ testnet testnetOptions H.Conf {..} = do
237237
sprocket <- H.noteShow $ Sprocket tempBaseAbsPath (socketDir </> "node-" <> si)
238238
_spocketSystemNameFile <- H.noteShow $ IO.sprocketSystemName sprocket
239239
-- TODO: Better error message need to indicate a sprocket was not created
240-
H.byDeadlineM 10 deadline $ H.assertM $ H.doesSprocketExist sprocket
240+
H.byDeadlineM 10 deadline "Failed to connect to node socket" $ H.assertM $ H.doesSprocketExist sprocket
241241

242242
forM_ nodeIndexes $ \i -> do
243243
si <- H.noteShow $ show @Int i

cardano-testnet/src/Testnet/Cardano.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ cardanoTestnet testnetOptions H.Conf {..} = do
759759
forM_ allNodeNames $ \node -> do
760760
sprocket <- H.noteShow $ Sprocket tempBaseAbsPath (socketDir </> node)
761761
_spocketSystemNameFile <- H.noteShow $ IO.sprocketSystemName sprocket
762-
H.byDeadlineM 10 deadline $ H.assertM $ H.doesSprocketExist sprocket
762+
H.byDeadlineM 10 deadline "Failed to connect to node socket" $ H.assertM $ H.doesSprocketExist sprocket
763763

764764
forM_ allNodeNames $ \node -> do
765765
nodeStdoutFile <- H.noteTempFile logDir $ node <> ".stdout.log"

cardano-testnet/src/Testnet/Shelley.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ shelleyTestnet testnetOptions H.Conf {..} = do
417417
forM_ allNodes $ \node -> do
418418
sprocket <- H.noteShow $ Sprocket tempBaseAbsPath (socketDir </> node)
419419
_spocketSystemNameFile <- H.noteShow $ IO.sprocketSystemName sprocket
420-
H.byDeadlineM 10 deadline $ H.assertM $ H.doesSprocketExist sprocket
420+
H.byDeadlineM 10 deadline "Failed to connect to node socket" $ H.assertM $ H.doesSprocketExist sprocket
421421

422422
forM_ allNodes $ \node -> do
423423
nodeStdoutFile <- H.noteTempFile logDir $ node <> ".stdout.log"

cardano-testnet/test/Test/Cli/Babbage/LeadershipSchedule.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ hprop_leadershipSchedule = H.integration . H.runFinallies . H.workspace "alonzo"
118118

119119
leadershipScheduleDeadline <- H.noteShowM $ DTC.addUTCTime 180 <$> H.noteShowIO DTC.getCurrentTime
120120

121-
H.byDeadlineM 5 leadershipScheduleDeadline $ do
121+
H.byDeadlineM 5 leadershipScheduleDeadline "Failed to query for leadership schedule" $ do
122122
void $ H.execCli' execConfig
123123
[ "query", "leadership-schedule"
124124
, "--testnet-magic", show @Int testnetMagic
@@ -159,7 +159,7 @@ hprop_leadershipSchedule = H.integration . H.runFinallies . H.workspace "alonzo"
159159

160160
leadershipScheduleDeadline <- H.noteShowM $ DTC.addUTCTime 180 <$> H.noteShowIO DTC.getCurrentTime
161161

162-
H.byDeadlineM 5 leadershipScheduleDeadline $ do
162+
H.byDeadlineM 5 leadershipScheduleDeadline "Failed to query for leadership schedule" $ do
163163
void $ H.execCli' execConfig
164164
[ "query", "leadership-schedule"
165165
, "--testnet-magic", show @Int testnetMagic

cardano-testnet/test/Test/Cli/KesPeriodInfo.hs

+3-3
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ hprop_kes_period_info = H.integration . H.runFinallies . H.workspace "chairman"
186186
, "--testnet-magic", show @Int testnetMagic
187187
]
188188

189-
delegsAndRewards <- H.byDurationM 3 12 $ do
189+
delegsAndRewards <- H.byDurationM 3 12 "Pledge's stake address was not registered" $ do
190190
-- Check to see if pledge's stake address was registered
191191

192192
void $ H.execCli' execConfig
@@ -258,7 +258,7 @@ hprop_kes_period_info = H.integration . H.runFinallies . H.workspace "chairman"
258258

259259
H.note_ $ "Check to see if " <> utxoStakingVkey2 <> " was registered..."
260260

261-
userSAddr <- H.byDurationM 3 12 $ do
261+
userSAddr <- H.byDurationM 3 12 "Failed to query stake address info" $ do
262262
void $ H.execCli' execConfig
263263
[ "query", "stake-address-info"
264264
, "--address", utxostakingaddr
@@ -332,7 +332,7 @@ hprop_kes_period_info = H.integration . H.runFinallies . H.workspace "chairman"
332332
, "--testnet-magic", show @Int testnetMagic
333333
]
334334

335-
H.byDurationM 3 12 $ do
335+
H.byDurationM 3 12 "Stake pool was not registered" $ do
336336
void $ H.execCli' execConfig
337337
[ "query", "stake-pools"
338338
, "--testnet-magic", show @Int testnetMagic

0 commit comments

Comments
 (0)