Skip to content

Commit baee90f

Browse files
committed
REMOVEME: Enable multiple retries
1 parent 03b946f commit baee90f

File tree

11 files changed

+15
-31
lines changed

11 files changed

+15
-31
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
@@ -14,7 +14,7 @@ import Spec.Chairman.Chairman (chairmanOver)
1414

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

2020
allNodes <- fmap H.nodeName . H.allNodes <$> H.cardanoTestnetDefault H.cardanoDefaultTestnetOptions conf

cardano-node-chairman/testnet/Testnet/Run.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import qualified Hedgehog.Extras.Test.Process as H
2525
import qualified Test.Base as H
2626

2727
testnetProperty :: (H.Conf -> H.Integration ()) -> H.Property
28-
testnetProperty tn = H.integrationRetryWorkspace 2 "testnet-chairman" $ \tempAbsPath' -> do
28+
testnetProperty tn = H.integrationRetryWorkspace 0 "testnet-chairman" $ \tempAbsPath' -> do
2929
base <- H.note =<< H.noteIO . IO.canonicalizePath =<< H.getProjectBase
3030
configurationTemplate <- H.noteShow $ base </> "configuration/defaults/byron-mainnet/configuration.yaml"
3131
conf <- H.mkConf tempAbsPath'

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 = H.integrationRetryWorkspace 2 "babbage-leadership-schedule" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
57+
hprop_leadershipSchedule = H.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
@@ -33,7 +33,7 @@ import qualified Hedgehog.Extras.Stock.IO.Network.Sprocket as IO
3333
import qualified Hedgehog.Extras.Test.Base as H
3434

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ sbe = ShelleyBasedEraConway
3939
-- Execute this test with:
4040
-- @DISABLE_RETRIES=1 cabal test cardano-testnet-test --test-options '-p "/DRepRetirement/"'@
4141
hprop_drep_retirement :: Property
42-
hprop_drep_retirement = H.integrationRetryWorkspace 2 "drep-retirement" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
42+
hprop_drep_retirement = H.integrationRetryWorkspace 0 "drep-retirement" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
4343
-- Start a local test net
4444
conf@Conf { tempAbsPath } <- H.noteShowM $ mkConf tempAbsBasePath'
4545
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
@@ -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 = H.integrationRetryWorkspace 2 "conway-stake-snapshot" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
33+
hprop_stakeSnapshot = H.integrationRetryWorkspace 0 "conway-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/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 = H.integrationRetryWorkspace 2 "kes-period-info" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
51+
hprop_kes_period_info = H.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 = H.integrationRetryWorkspace 2 "query-slot-number" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
40+
hprop_querySlotNumber = H.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/FoldBlocks.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ instance Show FoldBlocksException where
4040
-- events and block, and on reception writes this to the `lock` `MVar`
4141
-- that main thread blocks on.
4242
prop_foldBlocks :: H.Property
43-
prop_foldBlocks = H.integrationRetryWorkspace 2 "foldblocks" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
43+
prop_foldBlocks = H.integrationRetryWorkspace 0 "foldblocks" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
4444
-- Start testnet
4545
conf <- TN.mkConf tempAbsBasePath'
4646

0 commit comments

Comments
 (0)