Skip to content

WIP: Switch to cardano-config - #6608

Open
jasagredo wants to merge 21 commits into
masterfrom
js/cardano-config
Open

WIP: Switch to cardano-config#6608
jasagredo wants to merge 21 commits into
masterfrom
js/cardano-config

Remove the node's bespoke configuration-file parsing

1aab680
Select commit
Loading
Failed to load commit list.
IOG Hydra / ci/hydra-build:x86_64-linux.native."checks/cardano-testnet-11.0.0-inplace-cardano-testnet-golden/cardano-testnet-golden" failed Jun 23, 2026 in 2s

Build failed

1 failed steps

Details

Failed Steps

Step 1

Derivation

/nix/store/k3d81xwsc7b560j6d8ir7cwd4khaqwx0-cardano-testnet-test-cardano-testnet-golden-11.0.0-check.drv

Log

Running phase: unpackPhase
unpacking source archive /nix/store/vam72zg9rclf5hcmfbahswpg905zj50y-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/ng7xnvflaf32vb5yai667fr7x51l59a4-cardano-testnet-test-cardano-testnet-golden-11.0.0/bin:
patching script interpreter paths in /build/tmp.f3Em5wTPQD/bin
Golden tests
  golden_DefaultConfig: OK
      ✓ golden_DefaultConfig passed 1 test.
  golden_HelpAll:       FAIL (0.04s)
      ✗ 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: /build/help-Cardano.Testnet.Test.Golden.Help-test-6fb425e1643b6e59
           ┃   │ Test failed, preserving workspace for debugging: /build/help-Cardano.Testnet.Test.Golden.Help-test-6fb425e1643b6e59
        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/m7466ca9b23ag4sbfmf5jx1fzd47xb9w-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.
           ┃       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
           ┃       │ 3,13c3,17
           ┃       │ < Usage: cardano-testnet cardano [--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]
           ┃       │ ---
           ┃       │ > Usage: cardano-testnet cardano 
           ┃       │ >   [ --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]
           ┃       │ 17,24c21,30
           ┃       │ < Usage: cardano-testnet create-env [--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
           ┃       │ ---
           ┃       │ > Usage: cardano-testnet create-env 
           ┃       │ >   [--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 7922727676835236324 8932439086219815117) "1:" golden_HelpAll
      
    Use "--pattern '$NF ~ /golden_HelpAll/' --hedgehog-replay '1: Seed 7922727676835236324 8932439086219815117'" to reproduce from the command-line.
    
    Use -p '/golden_HelpAll/' to rerun this test only.
  golden_HelpCmds:      FAIL (0.06s)
      ✗ 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: /build/help-commands-Cardano.Testnet.Test.Golden.Help-test-6b0661f1f120119a
            ┃   │ Test failed, preserving workspace for debugging: /build/help-commands-Cardano.Testnet.Test.Golden.Help-test-6b0661f1f120119a
         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/m7466ca9b23ag4sbfmf5jx1fzd47xb9w-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/m7466ca9b23ag4sbfmf5jx1fzd47xb9w-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.
            ┃         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            ┃         │ 1,11c1,15
            ┃         │ < Usage: cardano-testnet cardano [--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]
            ┃         │ ---
            ┃         │ > Usage: cardano-testnet cardano 
            ┃         │ >   [ --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]
      
        This failure can be reproduced by running:
        > recheckAt (Seed 18202171573238310430 8743427821129628117) "1:" golden_HelpCmds
      
    Use "--pattern '$NF ~ /golden_HelpCmds/' --hedgehog-replay '1: Seed 18202171573238310430 8743427821129628117'" to reproduce from the command-line.
    
    Use -p '/golden_HelpCmds/' to rerun this test only.
  golden_VersionCmd:    OK (0.04s)
      ✓ golden_VersionCmd passed 1 test.

2 out of 4 tests failed (0.06s)