Misc refactors #1340
+59
−9
Closed
Misc refactors #1340
IOG Hydra / ci/hydra-build:x86_64-linux.ghc9122.checks.cardano-cli:test:cardano-cli-test
failed
Mar 6, 2026 in 6s
Build failed
1 failed steps
Details
Failed Steps
Step 1
Derivation
/nix/store/z65q978w45fhk47rpyx8s1n8755qx16r-cardano-cli-test-cardano-cli-test-10.15.0.1-check.drv
Log
Running phase: unpackPhase
unpacking source archive /nix/store/8hx1jkwv9qx7w2m0vl4icp506f0s1zj5-source-cardano-cli-test-cardano-cli-test-root
source root is source-cardano-cli-test-cardano-cli-test-root
Running phase: patchPhase
Running phase: buildPhase
/nix/store/6m59h3l5gfp890ly2gczckjapnfn9rw7-cardano-cli-test-cardano-cli-test-10.15.0.1/bin:
patching script interpreter paths in /build/tmp.FFUxbVW0IQ/bin
test/cardano-cli-test/cardano-cli-test.hs
roundtrip Alonzo addCostModelsToEraBasedProtocolParametersUpdate: OK (4.03s)
✓ Test.Cli.AddCostModels.hprop_roundtrip_Alonzo_addCostModelsToEraBasedProtocolParametersUpdate passed 100 tests.
roundtrip Babbage addCostModelsToEraBasedProtocolParametersUpdate: OK (4.18s)
✓ Test.Cli.AddCostModels.hprop_roundtrip_Babbage_addCostModelsToEraBasedProtocolParametersUpdate passed 100 tests.
roundtrip Conway addCostModelsToEraBasedProtocolParametersUpdate: OK (4.28s)
✓ Test.Cli.AddCostModels.hprop_roundtrip_Conway_addCostModelsToEraBasedProtocolParametersUpdate passed 100 tests.
golden shelleyGenesisKeyDelegationCertificate: OK (0.17s)
✓ Test.Cli.Certificates.GenesisKeyDelegationCertificate.hprop_golden_shelleyGenesisKeyDelegationCertificate passed 1 test.
stake pool certificate hash check wrong metadata fails: OK (0.16s)
✓ Test.Cli.Certificates.StakePool.hprop_stake_pool_certificate_hash_check_wrong_metadata_fails passed 1 test.
stake pool certificate hash check wrong hash fails: OK (0.15s)
✓ Test.Cli.Certificates.StakePool.hprop_stake_pool_certificate_hash_check_wrong_hash_fails passed 1 test.
stake pool certificate hash check right hash works: OK (0.16s)
✓ Test.Cli.Certificates.StakePool.hprop_stake_pool_certificate_hash_check_right_hash_works passed 1 test.
stake pool metadata hash url wrong metadata fails: OK (0.06s)
✓ Test.Cli.Certificates.StakePool.hprop_stake_pool_metadata_hash_url_wrong_metadata_fails passed 1 test.
stake pool metadata hash url wrong hash fails: OK (0.06s)
✓ Test.Cli.Certificates.StakePool.hprop_stake_pool_metadata_hash_url_wrong_hash_fails passed 1 test.
stake pool metadata hash url correct hash: OK (0.06s)
✓ Test.Cli.Certificates.StakePool.hprop_stake_pool_metadata_hash_url_correct_hash passed 1 test.
check node configuration success: OK (0.06s)
✓ Test.Cli.CheckNodeConfiguration.hprop_check_node_configuration_success passed 1 test.
check node configuration failure: OK (0.24s)
✓ Test.Cli.CheckNodeConfiguration.hprop_check_node_configuration_failure passed 1 test.
compatible stake address delegation certificate: OK (0.09s)
✓ Test.Cli.Compatible.StakeAddress.DelegationCertificate.hprop_compatible_stake_address_delegation_certificate passed 1 test.
compatible stake address registration certificate: OK (0.10s)
✓ Test.Cli.Compatible.StakeAddress.RegistrationCertificate.hprop_compatible_stake_address_registration_certificate passed 1 test.
compatible stake pool registration certificate: OK (0.20s)
✓ Test.Cli.Compatible.StakePool.RegistrationCertificate.hprop_compatible_stake_pool_registration_certificate passed 1 test.
compatible conway transaction build one voter many votes: OK (0.19s)
✓ Test.Cli.Compatible.Transaction.Build.hprop_compatible_conway_transaction_build_one_voter_many_votes passed 1 test.
compatible shelley create update proposal: OK (0.07s)
✓ Test.Cli.Compatible.Transaction.Build.hprop_compatible_shelley_create_update_proposal passed 1 test.
create cardano: OK (0.12s)
✓ Test.Cli.CreateCardano.hprop_create_cardano passed 1 test.
create testnet data minimal: OK (0.16s)
✓ Test.Cli.CreateTestnetData.hprop_create_testnet_data_minimal passed 1 test.
create testnet data create nonegative supply: OK (0.89s)
✓ Test.Cli.CreateTestnetData.hprop_create_testnet_data_create_nonegative_supply passed 1 test.
create testnet data transient stake delegators: OK (0.17s)
✓ Test.Cli.CreateTestnetData.hprop_create_testnet_data_transient_stake_delegators passed 1 test.
drep metadata hash url wrong hash fails: OK (0.08s)
✓ Test.Cli.DRepMetadata.hprop_drep_metadata_hash_url_wrong_hash_fails passed 1 test.
drep metadata hash url correct hash: OK (0.05s)
✓ Test.Cli.DRepMetadata.hprop_drep_metadata_hash_url_correct_hash passed 1 test.
createVRFSigningKeyFilePermissions: OK (0.02s)
✓ Test.Cli.FilePermissions.hprop_createVRFSigningKeyFilePermissions passed 1 test.
governance committee checks wrong hash fails: OK (0.09s)
✓ Test.Cli.Governance.Committee.hprop_governance_committee_checks_wrong_hash_fails passed 1 test.
governance committee checks right hash works: OK (0.11s)
✓ Test.Cli.Governance.Committee.hprop_governance_committee_checks_right_hash_works passed 1 test.
governance drep registration certificate script hash: OK (0.12s)
✓ Test.Cli.Governance.DRep.hprop_governance_drep_registration_certificate_script_hash passed 1 test.
governance drep update certificate vkey file: OK (0.29s)
✓ Test.Cli.Governance.DRep.hprop_governance_drep_update_certificate_vkey_file passed 1 test.
golden governance drep registration certificate vkey file wrong hash fails: OK (0.10s)
✓ Test.Cli.Governance.DRep.hprop_golden_governance_drep_registration_certificate_vkey_file_wrong_hash_fails passed 1 test.
golden governance drep registration certificate vkey file: OK (0.10s)
✓ Test.Cli.Governance.DRep.hprop_golden_governance_drep_registration_certificate_vkey_file passed 1 test.
golden governance drep update certificate vkey file wrong hash fails: OK (0.10s)
✓ Test.Cli.Governance.DRep.hprop_golden_governance_drep_update_certificate_vkey_file_wrong_hash_fails passed 1 test.
golden governance drep update certificate vkey file: OK (0.09s)
✓ Test.Cli.Governance.DRep.hprop_golden_governance_drep_update_certificate_vkey_file passed 1 test.
governance committee key hash: OK (0.19s)
✓ Test.Cli.Governance.Hash.hprop_governance_committee_key_hash passed 1 test.
governance vote create wrong hash fails: OK (0.07s)
✓ Test.Cli.Governance.Vote.hprop_governance_vote_create_wrong_hash_fails passed 1 test.
governance vote create right hash works: OK (0.04s)
✓ Test.Cli.Governance.Vote.hprop_governance_vote_create_right_hash_works passed 1 test.
generate anchor data hash from file: OK (0.03s)
✓ Test.Cli.Hash.hprop_generate_anchor_data_hash_from_file passed 1 test.
check anchor data hash from file: OK (0.03s)
✓ Test.Cli.Hash.hprop_check_anchor_data_hash_from_file passed 1 test.
check anchor data hash from file fails: OK (0.03s)
✓ Test.Cli.Hash.hprop_check_anchor_data_hash_from_file_fails passed 1 test.
generate anchor data hash from file uri: FAIL (0.06s)
✗ Test.Cli.Hash.hprop_generate_anchor_data_hash_from_file_uri failed at test/cardano-cli-test/Test/Cli/Hash.hs:77:7
after 1 test.
shrink path: 1:
┏━━ test/cardano-cli-test/Test/Cli/Hash.hs ━━━
71 ┃ hprop_generate_anchor_data_hash_from_file_uri :: Property
72 ┃ hprop_generate_anchor_data_hash_from_file_uri =
73 ┃ watchdogProp . propertyOnce $ do
74 ┃ cwd <- H.evalIO getCurrentDirectory
75 ┃ posixCwd <- toPOSIX cwd
76 ┃ result <-
77 ┃ execCardanoCLI
┃ │ ━━━━ command ━━━━
┃ │ /nix/store/48yqwga2syrw8wqls5lhrpviw0lmzh3k-cardano-cli-exe-cardano-cli-10.15.0.1/bin/cardano-cli hash anchor-data --url file:///build/source-cardano-cli-test-cardano-cli-test-root/cardano-cli/test/cardano-cli-test/files/input/example_anchor_data.txt
┃ │ Process exited with non-zero exit-code: 1
┃ │ ━━━━ stderr ━━━━
┃ │ option --url: URL exceeds the maximum of 128 bytes: file:///build/source-cardano-cli-test-cardano-cli-test-root/cardano-cli/test/cardano-cli-test/files/input/example_anchor_data.txt
┃ │
┃ │ Usage: cardano-cli hash anchor-data
┃ │ ( --text TEXT
┃ │ | --file-binary FILEPATH
┃ │ | --file-text FILEPATH
┃ │ | --url TEXT
┃ │ )
┃ │ [ --expected-hash HASH
┃ │ | --out-file FILEPATH
┃ │ ]
┃ │
┃ │ Compute the hash of some anchor data (to then pass it to other commands).
┃ │
┃ ^^^^^^^^^^^^^^
┃ │ Execute process failed
78 ┃ [ "hash"
79 ┃ , "anchor-data"
80 ┃ , "--url"
81 ┃ , "file://" ++ posixCwd ++ "/" ++ exampleAnchorDataPathTest
82 ┃ ]
83 ┃ result === exampleAnchorDataHash
84 ┃ where
85 ┃ toPOSIX :: MonadIO m => FilePath -> PropertyT m [Char]
86 ┃ toPOSIX path =
87 ┃ case map dropTrailingPathSeparator (splitDirectories path) of
88 ┃ letter : restOfPath -> do
89 ┃ fixedLetter <- case letter of
90 ┃ '/' : _ -> return ""
91 ┃ l : ':' : _ -> return $ l : ":/"
92 ┃ wrongLetter -> do
93 ┃ H.note_ ("Unexpected letter: " ++ wrongLetter)
94 ┃ H.failure
95 ┃ return $ fixedLetter ++ intercalate "/" (fixedLetter : restOfPath)
96 ┃ [] -> do
97 ┃ H.note_ ("Path doesn't split:" ++ path)
98 ┃ H.failure
This failure can be reproduced by running:
> recheckAt (Seed 2157457441425450079 14307775146288261855) "1:" Test.Cli.Hash.hprop_generate_anchor_data_hash_from_file_uri
Use "--pattern '$NF ~ /generate anchor data hash from file uri/' --hedgehog-replay '1: Seed 2157457441425450079 14307775146288261855'" to reproduce from the command-line.
Use -p '/generate anchor data hash from file uri/' to rerun this test only.
check anchor data hash from http uri: OK (0.04s)
✓ Test.Cli.Hash.hprop_check_anchor_data_hash_from_http_uri passed 1 test.
check anchor data hash from ipfs uri: OK (0.05s)
✓ Test.Cli.Hash.hprop_check_anchor_data_hash_from_ipfs_uri passed 1 test.
convertITNKeys: OK (0.10s)
✓ Test.Cli.ITN.hprop_convertITNKeys passed 1 test.
convertITNExtendedSigningKey: OK (0.05s)
✓ Test.Cli.ITN.hprop_convertITNExtendedSigningKey passed 1 test.
convertITNBIP32SigningKey: OK (0.05s)
✓ Test.Cli.ITN.hprop_convertITNBIP32SigningKey passed 1 test.
golden bech32Decode: OK
✓ Test.Cli.ITN.hprop_golden_bech32Decode passed 1 test.
json roundtrip delegations and rewards: OK (0.20s)
✓ Test.Cli.Json.hprop_json_roundtrip_delegations_and_rewards passed 100 tests.
roundtrip kes period info output JSON: OK (0.06s)
✓ Test.Cli.Json.hprop_roundtrip_kes_period_info_output_JSON passed 100 tests.
monad warning: OK
✓ Test.Cli.MonadWarning.hprop_monad_warning passed 100 tests.
integral reader: OK (0.04s)
✓ Test.Cli.Parser.hprop_integral_reader passed 100 tests.
integral pair reader positive: OK (0.04s)
✓ Test.Cli.Parser.hprop_integral_pair_reader_positive passed 100 tests.
integral pair reader negative: OK
✓ Test.Cli.Parser.hprop_integral_pair_reader_negative passed 1 test.
lovelace reader: OK
✓ Test.Cli.Parser.hprop_lovelace_reader passed 1 test.
url reader: OK
✓ Test.Cli.Parser.hprop_url_reader passed 1 test.
buildShelleyPaymentAddress: OK (0.09s)
✓ Test.Cli.Pioneers.Exercise1.hprop_buildShelleyPaymentAddress passed 1 test.
buildShelleyStakeAddress: OK (0.14s)
✓ Test.Cli.Pioneers.Exercise1.hprop_buildShelleyStakeAddress passed 1 test.
createTransaction: OK (0.17s)
✓ Test.Cli.Pioneers.Exercise2.hprop_createTransaction passed 1 test.
createOperationalCertificate: OK (0.15s)
✓ Test.Cli.Pioneers.Exercise3.hprop_createOperationalCertificate passed 1 test.
createStakeAddressRegistrationCertificate: OK (0.11s)
✓ Test.Cli.Pioneers.Exercise4.hprop_createStakeAddressRegistrationCertificate passed 1 test.
createLegacyZeroTxOutTransaction: OK (0.17s)
✓ Test.Cli.Pioneers.Exercise5.hprop_createLegacyZeroTxOutTransaction passed 1 test.
createZeroLovelaceTxOutTransaction: OK (0.18s)
✓ Test.Cli.Pioneers.Exercise6.hprop_createZeroLovelaceTxOutTransaction passed 1 test.
readFromPipe: OK (0.04s)
✓ Test.Cli.Pipes.hprop_readFromPipe passed 10 tests.
hash trip: OK (0.26s)
✓ Test.Cli.Run.Hash.hprop_hash_trip passed 1 test.
percentage: OK
✓ Test.Cli.Run.Query.hprop_percentage passed 1 test.
shelleyGenesisCreate: OK (0.29s)
✓ Test.Cli.Shelley.Genesis.Create.hprop_shelleyGenesisCreate passed 1 test.
conway transaction build one voter many votes: OK (0.06s)
✓ Test.Cli.Transaction.Build.hprop_conway_transaction_build_one_voter_many_votes passed 1 test.
conway transaction build raw negative txout: OK (0.07s)
✓ Test.Cli.Transaction.Build.hprop_conway_transaction_build_raw_negative_txout passed 1 test.
conway transaction build raw negative bits positive total txout: OK (0.06s)
✓ Test.Cli.Transaction.Build.hprop_conway_transaction_build_raw_negative_bits_positive_total_txout passed 1 test.
conway calculate plutus script cost offline: OK (0.19s)
✓ Test.Cli.Transaction.Build.hprop_conway_calculate_plutus_script_cost_offline passed 1 test.
verification key drep: OK (0.10s)
✓ Test.Cli.VerificationKey.hprop_verification_key_drep passed 1 test.
verification key committee hot: OK (0.10s)
✓ Test.Cli.VerificationKey.hprop_verification_key_committee_hot passed 1 test.
verification key committee cold: OK (0.10s)
✓ Test.Cli.VerificationKey.hprop_verification_key_committee_cold passed 1 test.
1 out of 71 tests failed (4.28s)
Loading