Use cardano-config and adopt db-synthesizer - #6628
Draft
jasagredo wants to merge 53 commits into
Draft
IOG Hydra / ci/hydra-build:aarch64-darwin.native."checks/cardano-testnet-11.0.0-inplace-cardano-testnet-golden/cardano-testnet-golden"
failed
Jul 24, 2026 in 11s
Build failed
1 failed steps
Details
Failed Steps
Step 2
Derivation
/nix/store/haka9c3mjqdkcyxy6q0jpw7cbk9rxgla-cardano-testnet-test-cardano-testnet-golden-11.0.0-check.drv
Log
running auto-GC to free 151740416 bytes
finding garbage collector roots...
deleting garbage...
deleting '/nix/store/3jbr3hcc0b5spxhdi6nnq672vgadjzg7-hydra-node-exe-hydra-node-2.3.0'
deleted more than 151740416 bytes; stopping
deleting unused links...
note: hard linking is currently saving 273.8 MiB
Running phase: unpackPhase
unpacking source archive /nix/store/w7n3nfl1aaqzaj4sgabm6aqrm3n2i481-source-cardano-testnet-test-cardano-testnet-golden-root
source root is source-cardano-testnet-test-cardano-testnet-golden-root
Running phase: patchPhase
Running phase: buildPhase
/nix/store/y6gh1wdsawmdxzc2rdzkg7kk0a8lx9vh-cardano-testnet-test-cardano-testnet-golden-11.0.0/bin:
patching script interpreter paths in /nix/var/nix/builds/nix-83976-3586308766/tmp.zM8meYt3uu/bin
Golden tests
golden_DefaultConfig: OK
✓ golden_DefaultConfig passed 1 test.
golden_HelpAll: FAIL (2.69s)
✗ golden_HelpAll failed at test/cardano-testnet-golden/Cardano/Testnet/Test/Golden/Help.hs:63:7
after 1 test.
shrink path: 1:
┏━━ test/cardano-testnet-golden/Cardano/Testnet/Test/Golden/Help.hs ━━━
50 ┃ golden_HelpAll :: Property
51 ┃ golden_HelpAll =
52 ┃ H.propertyOnce . H.moduleWorkspace "help" $ \_ -> do
┃ │ Workspace: /nix/var/nix/builds/nix-83976-3586308766/help-Cardano.Testnet.Test.Golden.Help-test-872b40e9eb89dd0e
┃ │ Test failed, preserving workspace for debugging: /nix/var/nix/builds/nix-83976-3586308766/help-Cardano.Testnet.Test.Golden.Help-test-872b40e9eb89dd0e
53 ┃ -- These tests are not run on Windows because the cardano-testnet usage
54 ┃ -- output is slightly different on Windows. For example it uses
55 ┃ -- "cardano-testnet.exe" instead of "cardano-testnet".
56 ┃ unless isWin32 $ do
57 ┃ helpFp <- H.note "test/cardano-testnet-golden/files/golden/help.cli"
┃ │ test/cardano-testnet-golden/files/golden/help.cli
58 ┃
59 ┃ help <- filterAnsi <$> execCardanoTestnet
┃ │ ━━━━ command ━━━━
┃ │ /nix/store/rcpwinyzmph4wbjj5ac727x2ma4r9bad-cardano-testnet-exe-cardano-testnet-11.0.0/bin/cardano-testnet help
60 ┃ [ "help"
61 ┃ ]
62 ┃
63 ┃ H.diffVsGoldenFile help helpFp
┃ │ Reading file: test/cardano-testnet-golden/files/golden/help.cli
┃ │ Golden test failed against the golden file.
┃ │ To recreate golden file, run with RECREATE_GOLDEN_FILES=1.
┃ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
┃ │ 1c1
┃ │ < Usage: cardano-testnet (cardano | create-env | version | help)
┃ │ ---
┃ │ > Usage: cardano-testnet (cardano | create-env | version | help)
┃ │ 4,21c4,18
┃ │ < [ --node-env FILEPATH [--preserve-timestamps]
┃ │ < | [ --nodes SPEC[,SPEC...]
┃ │ < | --num-pool-nodes COUNT
┃ │ < ]
┃ │ < [--max-lovelace-supply WORD64]
┃ │ < [--num-dreps NUMBER]
┃ │ < [--testnet-magic INT]
┃ │ < [--epoch-length SLOTS]
┃ │ < [--slot-length SECONDS]
┃ │ < [--active-slots-coeff DOUBLE]
┃ │ < [--params-file FILEPATH | --params-mainnet]
┃ │ < [--output-dir DIRECTORY]
┃ │ < ]
┃ │ < [--enable-new-epoch-state-logging]
┃ │ < [--enable-grpc]
┃ │ < [--use-kes-agent]
┃ │ < [--disable-chain-stall-watchdog]
┃ │ <
┃ │ ---
┃ │ > [ --node-env FILEPATH [--preserve-timestamps]
┃ │ > | [--nodes SPEC[,SPEC...] | --num-pool-nodes COUNT]
┃ │ > [--max-lovelace-supply WORD64]
┃ │ > [--num-dreps NUMBER]
┃ │ > [--testnet-magic INT]
┃ │ > [--epoch-length SLOTS]
┃ │ > [--slot-length SECONDS]
┃ │ > [--active-slots-coeff DOUBLE]
┃ │ > [--params-file FILEPATH | --params-mainnet]
┃ │ > [--output-dir DIRECTORY]
┃ │ > ]
┃ │ > [--enable-new-epoch-state-logging]
┃ │ > [--enable-grpc]
┃ │ > [--use-kes-agent]
┃ │ > [--disable-chain-stall-watchdog]
┃ │ 26,37c23,31
┃ │ < [ --nodes SPEC[,SPEC...]
┃ │ < | --num-pool-nodes COUNT
┃ │ < ]
┃ │ < [--max-lovelace-supply WORD64]
┃ │ < [--num-dreps NUMBER]
┃ │ < [--testnet-magic INT]
┃ │ < [--epoch-length SLOTS]
┃ │ < [--slot-length SECONDS]
┃ │ < [--active-slots-coeff DOUBLE]
┃ │ < [--params-file FILEPATH | --params-mainnet]
┃ │ < --output DIRECTORY
┃ │ <
┃ │ ---
┃ │ > [--nodes SPEC[,SPEC...] | --num-pool-nodes COUNT]
┃ │ > [--max-lovelace-supply WORD64]
┃ │ > [--num-dreps NUMBER]
┃ │ > [--testnet-magic INT]
┃ │ > [--epoch-length SLOTS]
┃ │ > [--slot-length SECONDS]
┃ │ > [--active-slots-coeff DOUBLE]
┃ │ > [--params-file FILEPATH | --params-mainnet]
┃ │ > --output DIRECTORY
This failure can be reproduced by running:
> recheckAt (Seed 1988224271287812007 17557982574745435457) "1:" golden_HelpAll
Use "--pattern '$NF ~ /golden_HelpAll/' --hedgehog-replay '1: Seed 1988224271287812007 17557982574745435457'" to reproduce from the command-line.
Use -p '/golden_HelpAll/' to rerun this test only.
golden_HelpCmds: FAIL (2.72s)
✗ golden_HelpCmds failed at test/cardano-testnet-golden/Cardano/Testnet/Test/Golden/Help.hs:105:9
after 1 test.
shrink path: 1:
┏━━ test/cardano-testnet-golden/Cardano/Testnet/Test/Golden/Help.hs ━━━
86 ┃ golden_HelpCmds :: Property
87 ┃ golden_HelpCmds =
88 ┃ H.propertyOnce . H.moduleWorkspace "help-commands" $ \_ -> do
┃ │ Workspace: /nix/var/nix/builds/nix-83976-3586308766/help-commands-Cardano.Testnet.Test.Golden.Help-test-2f2d672b7c65152d
┃ │ Test failed, preserving workspace for debugging: /nix/var/nix/builds/nix-83976-3586308766/help-commands-Cardano.Testnet.Test.Golden.Help-test-2f2d672b7c65152d
89 ┃ -- These tests are not run on Windows because the cardano-testnet usage
90 ┃ -- output is slightly different on Windows. For example it uses
91 ┃ -- "cardano-testnet.exe" instead of "cardano-testnet".
92 ┃ unless isWin32 $ do
93 ┃ help <- filterAnsi <$> execCardanoTestnet
┃ │ ━━━━ command ━━━━
┃ │ /nix/store/rcpwinyzmph4wbjj5ac727x2ma4r9bad-cardano-testnet-exe-cardano-testnet-11.0.0/bin/cardano-testnet help
94 ┃ [ "help"
95 ┃ ]
96 ┃ let lines = Text.lines $ Text.pack help
97 ┃ let usages = List.filter (not . null) $ fmap extractCmd $ maybeToList . selectCmd =<< lines
98 ┃
99 ┃ forM_ usages $ \usage -> do
100 ┃ H.noteShow_ usage
┃ │ ["cardano"]
101 ┃ let expectedCmdHelpFp = "test/cardano-testnet-golden/files/golden/help" </> Text.unpack (Text.intercalate "_" usage) <> ".cli"
102 ┃
103 ┃ cmdHelp <- filterAnsi . second <$> execDetailCardanoTestnet (fmap Text.unpack usage <> ["--help"])
┃ │ Command: /nix/store/rcpwinyzmph4wbjj5ac727x2ma4r9bad-cardano-testnet-exe-cardano-testnet-11.0.0/bin/cardano-testnet cardano --help
104 ┃
105 ┃ H.diffVsGoldenFile cmdHelp expectedCmdHelpFp
┃ │ Reading file: test/cardano-testnet-golden/files/golden/help/cardano.cli
┃ │ Golden test failed against the golden file.
┃ │ To recreate golden file, run with RECREATE_GOLDEN_FILES=1.
┃ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
┃ │ 2,19c2,16
┃ │ < [ --node-env FILEPATH [--preserve-timestamps]
┃ │ < | [ --nodes SPEC[,SPEC...]
┃ │ < | --num-pool-nodes COUNT
┃ │ < ]
┃ │ < [--max-lovelace-supply WORD64]
┃ │ < [--num-dreps NUMBER]
┃ │ < [--testnet-magic INT]
┃ │ < [--epoch-length SLOTS]
┃ │ < [--slot-length SECONDS]
┃ │ < [--active-slots-coeff DOUBLE]
┃ │ < [--params-file FILEPATH | --params-mainnet]
┃ │ < [--output-dir DIRECTORY]
┃ │ < ]
┃ │ < [--enable-new-epoch-state-logging]
┃ │ < [--enable-grpc]
┃ │ < [--use-kes-agent]
┃ │ < [--disable-chain-stall-watchdog]
┃ │ <
┃ │ ---
┃ │ > [ --node-env FILEPATH [--preserve-timestamps]
┃ │ > | [--nodes SPEC[,SPEC...] | --num-pool-nodes COUNT]
┃ │ > [--max-lovelace-supply WORD64]
┃ │ > [--num-dreps NUMBER]
┃ │ > [--testnet-magic INT]
┃ │ > [--epoch-length SLOTS]
┃ │ > [--slot-length SECONDS]
┃ │ > [--active-slots-coeff DOUBLE]
┃ │ > [--params-file FILEPATH | --params-mainnet]
┃ │ > [--output-dir DIRECTORY]
┃ │ > ]
┃ │ > [--enable-new-epoch-state-logging]
┃ │ > [--enable-grpc]
┃ │ > [--use-kes-agent]
┃ │ > [--disable-chain-stall-watchdog]
This failure can be reproduced by running:
> recheckAt (Seed 13908282975904447090 13777665317292508553) "1:" golden_HelpCmds
Use "--pattern '$NF ~ /golden_HelpCmds/' --hedgehog-replay '1: Seed 13908282975904447090 13777665317292508553'" to reproduce from the command-line.
Use -p '/golden_HelpCmds/' to rerun this test only.
golden_VersionCmd: OK (2.65s)
✓ golden_VersionCmd passed 1 test.
2 out of 4 tests failed (2.72s)
Loading