Skip to content

Commit ee71e0f

Browse files
committed
REMOVEME: Enable multiple retries
1 parent 61f99ee commit ee71e0f

File tree

10 files changed

+14
-30
lines changed

10 files changed

+14
-30
lines changed

.github/workflows/haskell.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -28,29 +28,13 @@ jobs:
2828
# If you edit these versions, make sure the version in the lonely macos-latest job below is updated accordingly
2929
ghc: ["9.6.4", "9.8.1"]
3030
cabal: ["3.10.2.1"]
31-
os: [windows-latest, ubuntu-latest]
32-
include:
33-
# Using include, to make sure there will only be one macOS job, even if the matrix gets expanded later on.
34-
# We want a single job, because macOS runners are scarce.
35-
- os: macos-latest
36-
cabal: "3.10.2.1"
37-
ghc: "9.6.4"
31+
os: [ubuntu-latest]
32+
n: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]
3833

3934
env:
4035
# Modify this value to "invalidate" the cabal cache.
4136
CABAL_CACHE_VERSION: "2024-04-24"
4237

43-
concurrency:
44-
group: >
45-
a+${{ github.event_name }}
46-
b+${{ github.workflow_ref }}
47-
c+${{ github.job }}
48-
d+${{ matrix.ghc }}
49-
e+${{ matrix.cabal }}
50-
f+${{ matrix.os }}
51-
g+${{ (startsWith(github.ref, 'refs/heads/gh-readonly-queue/') && github.run_id) || github.event.pull_request.number || github.ref }}
52-
cancel-in-progress: true
53-
5438
steps:
5539
- name: Concurrency group
5640
run: >
@@ -154,7 +138,7 @@ jobs:
154138
if: ${{ failure() }}
155139
uses: actions/upload-artifact@v4
156140
with:
157-
name: failed-test-workspaces-${{ matrix.os }}-ghc${{ matrix.ghc }}-cabal${{ matrix.cabal }}.tgz
141+
name: failed-test-workspaces-${{ matrix.os }}-ghc${{ matrix.ghc }}-cabal${{ matrix.cabal }}-${{ matrix.n }}.tgz
158142
path: ${{ runner.temp }}/workspaces.tgz
159143

160144
- name: "Tar artifacts"

cardano-node-chairman/test/Spec/Chairman/Cardano.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import Spec.Chairman.Chairman (chairmanOver)
1515

1616
-- TODO: Conway broken in conway
1717
hprop_chairman :: H.Property
18-
hprop_chairman = integrationRetryWorkspace 2 "cardano-chairman" $ \tempAbsPath' -> do
18+
hprop_chairman = integrationRetryWorkspace 0 "cardano-chairman" $ \tempAbsPath' -> do
1919
conf <- mkConf tempAbsPath'
2020

2121
allNodes' <- fmap nodeName . allNodes <$> cardanoTestnetDefault cardanoDefaultTestnetOptions conf

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ import qualified Hedgehog.Extras.Test.File as H
5454
-- | Execute me with:
5555
-- @DISABLE_RETRIES=1 cabal test cardano-testnet-test --test-options '-p "/leadership-schedule/"'@
5656
hprop_leadershipSchedule :: Property
57-
hprop_leadershipSchedule = integrationRetryWorkspace 2 "babbage-leadership-schedule" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
57+
hprop_leadershipSchedule = integrationRetryWorkspace 0 "babbage-leadership-schedule" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
5858
H.note_ SYS.os
5959
conf@Conf { tempAbsPath=tempAbsPath@(TmpAbsolutePath work) } <- mkConf tempAbsBasePath'
6060
let tempBaseAbsPath = makeTmpBaseAbsPath tempAbsPath

cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Cli/Babbage/StakeSnapshot.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import qualified Hedgehog.Extras.Stock.IO.Network.Sprocket as IO
3030
import qualified Hedgehog.Extras.Test.Base as H
3131

3232
hprop_stakeSnapshot :: Property
33-
hprop_stakeSnapshot = integrationRetryWorkspace 2 "babbage-stake-snapshot" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
33+
hprop_stakeSnapshot = integrationRetryWorkspace 0 "babbage-stake-snapshot" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
3434
H.note_ SYS.os
3535
conf@Conf { tempAbsPath } <- mkConf tempAbsBasePath'
3636
let tempAbsPath' = unTmpAbsPath tempAbsPath

cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Cli/Conway/StakeSnapshot.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import qualified Hedgehog.Extras.Stock.IO.Network.Sprocket as IO
2929
import qualified Hedgehog.Extras.Test.Base as H
3030

3131
hprop_stakeSnapshot :: Property
32-
hprop_stakeSnapshot = integrationRetryWorkspace 2 "conway-stake-snapshot" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
32+
hprop_stakeSnapshot = integrationRetryWorkspace 0 "conway-stake-snapshot" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
3333
H.note_ SYS.os
3434
conf@Conf { tempAbsPath } <- mkConf tempAbsBasePath'
3535
let tempAbsPath' = unTmpAbsPath tempAbsPath

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import qualified Hedgehog.Extras.Test.Base as H
4848
import qualified Hedgehog.Extras.Test.File as H
4949

5050
hprop_kes_period_info :: Property
51-
hprop_kes_period_info = integrationRetryWorkspace 2 "kes-period-info" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
51+
hprop_kes_period_info = integrationRetryWorkspace 0 "kes-period-info" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
5252
H.note_ SYS.os
5353
conf@Conf { tempAbsPath=tempAbsPath@(TmpAbsolutePath work) }
5454
-- TODO: Move yaml filepath specification into individual node options

cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Cli/QuerySlotNumber.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import qualified Hedgehog.Internal.Property as H
3737

3838
-- | Tests @query slot-number@ cardano-cli command that it returns correct slot numbers for provided utc time
3939
hprop_querySlotNumber :: Property
40-
hprop_querySlotNumber = integrationRetryWorkspace 2 "query-slot-number" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
40+
hprop_querySlotNumber = integrationRetryWorkspace 0 "query-slot-number" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
4141
H.note_ SYS.os
4242
conf <- mkConf tempAbsBasePath'
4343

cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Gov/DRepRetirement.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ sbe = ShelleyBasedEraConway
3838
-- Execute this test with:
3939
-- @DISABLE_RETRIES=1 cabal test cardano-testnet-test --test-options '-p "/DRepRetirement/"'@
4040
hprop_drep_retirement :: Property
41-
hprop_drep_retirement = integrationRetryWorkspace 2 "drep-retirement" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
41+
hprop_drep_retirement = integrationRetryWorkspace 0 "drep-retirement" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
4242
-- Start a local test net
4343
conf@Conf { tempAbsPath } <- H.noteShowM $ mkConf tempAbsBasePath'
4444
let tempAbsPath' = unTmpAbsPath tempAbsPath

cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Gov/TreasuryWithdrawal.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import Hedgehog
4949
import qualified Hedgehog.Extras as H
5050

5151
hprop_ledger_events_treasury_withdrawal:: Property
52-
hprop_ledger_events_treasury_withdrawal = integrationRetryWorkspace 1 "treasury-withdrawal" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
52+
hprop_ledger_events_treasury_withdrawal = integrationRetryWorkspace 0 "treasury-withdrawal" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
5353
conf@Conf { tempAbsPath } <- H.noteShowM $ mkConf tempAbsBasePath'
5454
let tempAbsPath' = unTmpAbsPath tempAbsPath
5555
tempBaseAbsPath = makeTmpBaseAbsPath tempAbsPath

cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Node/Shutdown.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ import qualified Hedgehog.Extras.Test.Process as H
5959
--
6060
-- TODO: Use cardanoTestnet in hprop_shutdown
6161
hprop_shutdown :: Property
62-
hprop_shutdown = integrationRetryWorkspace 2 "shutdown" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
62+
hprop_shutdown = integrationRetryWorkspace 0 "shutdown" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
6363
conf <- mkConf tempAbsBasePath'
6464
let tempBaseAbsPath' = makeTmpBaseAbsPath $ tempAbsPath conf
6565
tempAbsPath' = unTmpAbsPath $ tempAbsPath conf
@@ -184,7 +184,7 @@ hprop_shutdown = integrationRetryWorkspace 2 "shutdown" $ \tempAbsBasePath' -> r
184184

185185

186186
hprop_shutdownOnSlotSynced :: Property
187-
hprop_shutdownOnSlotSynced = integrationRetryWorkspace 2 "shutdown-on-slot-synced" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
187+
hprop_shutdownOnSlotSynced = integrationRetryWorkspace 0 "shutdown-on-slot-synced" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
188188
-- Start a local test net
189189
-- TODO: Move yaml filepath specification into individual node options
190190
conf <- mkConf tempAbsBasePath'
@@ -233,7 +233,7 @@ hprop_shutdownOnSlotSynced = integrationRetryWorkspace 2 "shutdown-on-slot-synce
233233
-- Execute this test with:
234234
-- @DISABLE_RETRIES=1 cabal test cardano-testnet-test --test-options '-p "/ShutdownOnSigint/"'@
235235
hprop_shutdownOnSigint :: Property
236-
hprop_shutdownOnSigint = integrationRetryWorkspace 2 "shutdown-on-sigint" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
236+
hprop_shutdownOnSigint = integrationRetryWorkspace 0 "shutdown-on-sigint" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
237237
-- Start a local test net
238238
-- TODO: Move yaml filepath specification into individual node options
239239
conf <- mkConf tempAbsBasePath'

0 commit comments

Comments
 (0)