Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add certificates to CLI interface in compatible transaction-sign #972

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

REMVEME: Add SRP

35ff9c3
Select commit
Loading
Failed to load commit list.
Open

Add certificates to CLI interface in compatible transaction-sign #972

REMVEME: Add SRP
35ff9c3
Select commit
Loading
Failed to load commit list.
IOG Hydra / ci/hydra-build:x86_64-linux.ghc8107.checks.cardano-cli:test:cardano-cli-test failed Jan 3, 2025 in 4s

Build failed

1 failed steps

Details

Failed Steps

Step 2

Derivation

/nix/store/mq6scscfbkvh212ffwfi95d1p0givnl2-cardano-cli-test-cardano-cli-test-10.1.1.0-check.drv

Log

Running phase: unpackPhase
unpacking source archive /nix/store/v9njv4pncgim166jvkqrbpqlam91mrcx-source-root-cardano-cli-test-cardano-cli-test-root
source root is source-root-cardano-cli-test-cardano-cli-test-root
Running phase: patchPhase
Running phase: buildPhase
/nix/store/grpkidm3mrfc9pmd9rhfacl7p44wgnfx-cardano-cli-test-cardano-cli-test-10.1.1.0/bin:
patching script interpreter paths in /build/tmp.CqfLyQVEqc/bin
test/cardano-cli-test/cardano-cli-test.hs
  roundtrip Alonzo addCostModelsToEraBasedProtocolParametersUpdate:           OK (2.34s)
      ✓ Test.Cli.AddCostModels.hprop_roundtrip_Alonzo_addCostModelsToEraBasedProtocolParametersUpdate passed 100 tests.
  roundtrip Babbage addCostModelsToEraBasedProtocolParametersUpdate:          OK (2.23s)
      ✓ Test.Cli.AddCostModels.hprop_roundtrip_Babbage_addCostModelsToEraBasedProtocolParametersUpdate passed 100 tests.
  roundtrip Conway addCostModelsToEraBasedProtocolParametersUpdate:           OK (2.39s)
      ✓ Test.Cli.AddCostModels.hprop_roundtrip_Conway_addCostModelsToEraBasedProtocolParametersUpdate passed 100 tests.
  check node configuration success:                                           OK (0.03s)
      ✓ Test.Cli.CheckNodeConfiguration.hprop_check_node_configuration_success passed 1 test.
  check node configuration failure:                                           OK (0.17s)
      ✓ Test.Cli.CheckNodeConfiguration.hprop_check_node_configuration_failure passed 1 test.
  create cardano:                                                             OK (0.09s)
      ✓ Test.Cli.CreateCardano.hprop_create_cardano passed 1 test.
  create testnet data minimal:                                                OK (0.09s)
      ✓ Test.Cli.CreateTestnetData.hprop_create_testnet_data_minimal passed 1 test.
  create testnet data create nonegative supply:                               OK (0.40s)
      ✓ Test.Cli.CreateTestnetData.hprop_create_testnet_data_create_nonegative_supply passed 1 test.
  create testnet data transient stake delegators:                             OK (0.11s)
      ✓ Test.Cli.CreateTestnetData.hprop_create_testnet_data_transient_stake_delegators passed 1 test.
  drep metadata hash url wrong hash fails:                                    OK (0.03s)
      ✓ Test.Cli.DRepMetadata.hprop_drep_metadata_hash_url_wrong_hash_fails passed 1 test.
  drep metadata hash url correct hash:                                        OK (0.03s)
      ✓ 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.06s)
      ✓ Test.Cli.Governance.Committee.hprop_governance_committee_checks_wrong_hash_fails passed 1 test.
  governance committee checks right hash works:                               OK (0.08s)
      ✓ Test.Cli.Governance.Committee.hprop_governance_committee_checks_right_hash_works passed 1 test.
  governance drep registration certificate script hash:                       OK (0.08s)
      ✓ Test.Cli.Governance.DRep.hprop_governance_drep_registration_certificate_script_hash passed 1 test.
  governance drep update certificate vkey file:                               OK (0.11s)
      ✓ 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.07s)
      ✓ 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.06s)
      ✓ 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.06s)
      ✓ 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.07s)
      ✓ Test.Cli.Governance.DRep.hprop_golden_governance_drep_update_certificate_vkey_file passed 1 test.
  governance committee key hash:                                              OK (0.07s)
      ✓ Test.Cli.Governance.Hash.hprop_governance_committee_key_hash passed 1 test.
  governance vote create wrong hash fails:                                    OK (0.02s)
      ✓ Test.Cli.Governance.Vote.hprop_governance_vote_create_wrong_hash_fails passed 1 test.
  governance vote create right hash works:                                    OK (0.02s)
      ✓ Test.Cli.Governance.Vote.hprop_governance_vote_create_right_hash_works passed 1 test.
  generate anchor data hash from file:                                        OK (0.01s)
      ✓ Test.Cli.Hash.hprop_generate_anchor_data_hash_from_file passed 1 test.
  check anchor data hash from file:                                           OK (0.02s)
      ✓ Test.Cli.Hash.hprop_check_anchor_data_hash_from_file passed 1 test.
  check anchor data hash from file fails:                                     OK (0.02s)
      ✓ Test.Cli.Hash.hprop_check_anchor_data_hash_from_file_fails passed 1 test.
  generate anchor data hash from file uri:                                    OK (0.02s)
      ✓ Test.Cli.Hash.hprop_generate_anchor_data_hash_from_file_uri passed 1 test.
  check anchor data hash from http uri:                                       OK (0.02s)
      ✓ Test.Cli.Hash.hprop_check_anchor_data_hash_from_http_uri passed 1 test.
  check anchor data hash from ipfs uri:                                       OK (0.02s)
      ✓ Test.Cli.Hash.hprop_check_anchor_data_hash_from_ipfs_uri passed 1 test.
  convertITNKeys:                                                             OK (0.03s)
      ✓ Test.Cli.ITN.hprop_convertITNKeys passed 1 test.
  convertITNExtendedSigningKey:                                               OK (0.01s)
      ✓ Test.Cli.ITN.hprop_convertITNExtendedSigningKey passed 1 test.
  convertITNBIP32SigningKey:                                                  OK (0.01s)
      ✓ 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.25s)
      ✓ Test.Cli.Json.hprop_json_roundtrip_delegations_and_rewards passed 100 tests.
  roundtrip kes period info output JSON:                                      OK (0.03s)
      ✓ 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
      ✓ Test.Cli.Parser.hprop_integral_reader passed 100 tests.
  integral pair reader positive:                                              OK (0.01s)
      ✓ 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.
  buildShelleyPaymentAddress:                                                 OK (0.05s)
      ✓ Test.Cli.Pioneers.Exercise1.hprop_buildShelleyPaymentAddress passed 1 test.
  buildShelleyStakeAddress:                                                   OK (0.05s)
      ✓ Test.Cli.Pioneers.Exercise1.hprop_buildShelleyStakeAddress passed 1 test.
  createTransaction:                                                          OK (0.07s)
      ✓ Test.Cli.Pioneers.Exercise2.hprop_createTransaction passed 1 test.
  createOperationalCertificate:                                               OK (0.07s)
      ✓ Test.Cli.Pioneers.Exercise3.hprop_createOperationalCertificate passed 1 test.
  createStakeAddressRegistrationCertificate:                                  OK (0.05s)
      ✓ Test.Cli.Pioneers.Exercise4.hprop_createStakeAddressRegistrationCertificate passed 1 test.
  createLegacyZeroTxOutTransaction:                                           OK (0.06s)
      ✓ Test.Cli.Pioneers.Exercise5.hprop_createLegacyZeroTxOutTransaction passed 1 test.
  createZeroLovelaceTxOutTransaction:                                         OK (0.06s)
      ✓ Test.Cli.Pioneers.Exercise6.hprop_createZeroLovelaceTxOutTransaction passed 1 test.
  readFromPipe:                                                               OK (0.12s)
      ✓ Test.Cli.Pipes.hprop_readFromPipe passed 10 tests.
  stake pool certificate hash check wrong metadata fails:                     OK (0.09s)
      ✓ Test.Cli.Shelley.Certificates.StakePool.hprop_stake_pool_certificate_hash_check_wrong_metadata_fails passed 1 test.
  stake pool certificate hash check wrong hash fails:                         OK (0.12s)
      ✓ Test.Cli.Shelley.Certificates.StakePool.hprop_stake_pool_certificate_hash_check_wrong_hash_fails passed 1 test.
  stake pool certificate hash check right hash works:                         OK (0.10s)
      ✓ Test.Cli.Shelley.Certificates.StakePool.hprop_stake_pool_certificate_hash_check_right_hash_works passed 1 test.
  stake pool metadata hash url wrong metadata fails:                          OK (0.03s)
      ✓ Test.Cli.Shelley.Certificates.StakePool.hprop_stake_pool_metadata_hash_url_wrong_metadata_fails passed 1 test.
  stake pool metadata hash url wrong hash fails:                              OK (0.02s)
      ✓ Test.Cli.Shelley.Certificates.StakePool.hprop_stake_pool_metadata_hash_url_wrong_hash_fails passed 1 test.
  stake pool metadata hash url correct hash:                                  OK (0.02s)
      ✓ Test.Cli.Shelley.Certificates.StakePool.hprop_stake_pool_metadata_hash_url_correct_hash passed 1 test.
  hash trip:                                                                  OK (0.17s)
      ✓ Test.Cli.Shelley.Run.Hash.hprop_hash_trip passed 1 test.
  percentage:                                                                 OK
      ✓ Test.Cli.Shelley.Run.Query.hprop_percentage passed 1 test.
  conway transaction build one voter many votes:                              OK (0.03s)
      ✓ Test.Cli.Shelley.Transaction.Build.hprop_conway_transaction_build_one_voter_many_votes passed 1 test.
  conway transaction build raw negative txout:                                OK (0.03s)
      ✓ Test.Cli.Shelley.Transaction.Build.hprop_conway_transaction_build_raw_negative_txout passed 1 test.
  conway transaction build raw negative bits positive total txout:            OK (0.02s)
      ✓ Test.Cli.Shelley.Transaction.Build.hprop_conway_transaction_build_raw_negative_bits_positive_total_txout passed 1 test.
  compatible conway transaction build one voter many votes:                   FAIL (0.07s)
      ✗ Test.Cli.Shelley.Transaction.Compatible.Build.hprop_compatible_conway_transaction_build_one_voter_many_votes failed at test/cardano-cli-test/Test/Cli/Shelley/Transaction/Compatible/Build.hs:51:5
        after 1 test.
        shrink path: 1:
      
           ┏━━ test/cardano-cli-test/Test/Cli/Shelley/Transaction/Compatible/Build.hs ━━━
        26 ┃ hprop_compatible_conway_transaction_build_one_voter_many_votes :: Property
        27 ┃ hprop_compatible_conway_transaction_build_one_voter_many_votes = propertyOnce $ H.moduleWorkspace "tmp" $ \tempDir -> do
           ┃ │ Workspace: /build/tmp-Test.Cli.Shelley.Transaction.Compatible.Build-test-ea176ab76129b5f1
        28 ┃   refOutFile <- H.noteTempFile tempDir "reference_tx.traw"
           ┃   │ /build/tmp-Test.Cli.Shelley.Transaction.Compatible.Build-test-ea176ab76129b5f1/reference_tx.traw
        29 ┃   outFile <- H.noteTempFile tempDir "tx.traw"
           ┃   │ /build/tmp-Test.Cli.Shelley.Transaction.Compatible.Build-test-ea176ab76129b5f1/tx.traw
        30 ┃   let eraName = map toLower . docToString $ pretty ConwayEra
        31 ┃ 
        32 ┃   let args =
        33 ┃         [ "--tx-in"
        34 ┃         , "6e8c947816e82627aeccb55300074f2894a2051332f62a1c8954e7b588a18be7#0"
        35 ┃         , "--tx-out"
        36 ┃         , "addr_test1vpfwv0ezc5g8a4mkku8hhy3y3vp92t7s3ul8g778g5yegsgalc6gc+24910487859"
        37 ┃         , "--fee"
        38 ┃         , "178569"
        39 ┃         , "--certificate-file"
        40 ┃         , "test/cardano-cli-golden/files/golden/shelley/stake-address/reg-certificate-2.json"
        41 ┃         , "--certificate-script-file"
        42 ┃         , "test/cardano-cli-golden/files/input/AlwaysSucceeds.plutus"
        43 ┃         , "--certificate-redeemer-value"
        44 ┃         , "0"
        45 ┃         , "--certificate-execution-units"
        46 ┃         , "(0,0)"
        47 ┃         ]
        48 ┃ 
        49 ┃   -- reference transaction
        50 ┃   _ <-
        51 ┃     execCardanoCLI $
        52 ┃       [ eraName
        53 ┃       , "transaction"
        54 ┃       , "build-raw"
        55 ┃       ]
        56 ┃         <> args
        57 ┃         <> [ "--out-file"
        58 ┃            , refOutFile
        59 ┃            ]
           ┃            │ ━━━━ command ━━━━
           ┃            │ /nix/store/ypsngac3z196sw65i19cnhzr3gszr9ff-cardano-cli-exe-cardano-cli-10.1.1.0/bin/cardano-cli conway transaction build-raw --tx-in 6e8c947816e82627aeccb55300074f2894a2051332f62a1c8954e7b588a18be7#0 --tx-out addr_test1vpfwv0ezc5g8a4mkku8hhy3y3vp92t7s3ul8g778g5yegsgalc6gc+24910487859 --fee 178569 --certificate-file test/cardano-cli-golden/files/golden/shelley/stake-address/reg-certificate-2.json --certificate-script-file test/cardano-cli-golden/files/input/AlwaysSucceeds.plutus --certificate-redeemer-value 0 --certificate-execution-units (0,0) --out-file /build/tmp-Test.Cli.Shelley.Transaction.Compatible.Build-test-ea176ab76129b5f1/reference_tx.traw
           ┃            │ Process exited with non-zero exit-code: 1
           ┃            │ ━━━━ stderr ━━━━
           ┃            │ Command failed: transaction build-raw  Error: test/cardano-cli-golden/files/input/AlwaysSucceeds.plutus: test/cardano-cli-golden/files/input/AlwaysSucceeds.plutus: openBinaryFile: does not exist (No such file or directory)
           ┃            │ 
           ┃            ^
           ┃            │ Execute process failed
        60 ┃ 
        61 ┃   -- tested compatible transaction
        62 ┃   _ <-
        63 ┃     execCardanoCLI $
        64 ┃       [ "compatible"
        65 ┃       , eraName
        66 ┃       , "transaction"
        67 ┃       , "signed-transaction"
        68 ┃       ]
        69 ┃         <> args
        70 ┃         <> [ "--out-file"
        71 ┃            , outFile
        72 ┃            ]
        73 ┃ 
        74 ┃   assertTxFilesEqual refOutFile outFile
      
        This failure can be reproduced by running:
        > recheckAt (Seed 4195052184500528473 6367949778889468273) "1:" Test.Cli.Shelley.Transaction.Compatible.Build.hprop_compatible_conway_transaction_build_one_voter_many_votes
      
    Use "--pattern '$NF ~ /compatible conway transaction build one voter many votes/' --hedgehog-replay '1: Seed 4195052184500528473 6367949778889468273'" to reproduce from the command-line.
    
    Use -p '/compatible conway transaction build one voter many votes/' to rerun this test only.
  verification key drep:                                                      OK (0.06s)
      ✓ Test.Cli.VerificationKey.hprop_verification_key_drep passed 1 test.
  verification key committee hot:                                             OK (0.06s)
      ✓ Test.Cli.VerificationKey.hprop_verification_key_committee_hot passed 1 test.
  verification key committee cold:                                            OK (0.04s)
      ✓ Test.Cli.VerificationKey.hprop_verification_key_committee_cold passed 1 test.

1 out of 62 tests failed (2.39s)