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.
Garnix CI / check ghc8107:cardano-cli:test:cardano-cli-test [x86_64-linux] failed Jan 3, 2025 in 47m 47s

Run results

Build failed

Details

Last 100 lines of logs:

      ✓ 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 (1.70s)
      ✓ 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.51s)
      ✓ 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.53s)
      ✓ 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.51s)
      ✓ Test.Cli.Shelley.Certificates.StakePool.hprop_stake_pool_metadata_hash_url_correct_hash passed 1 test.
  hash trip:                                                                  OK (1.80s)
      ✓ 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.54s)
      ✓ Test.Cli.Shelley.Transaction.Build.hprop_conway_transaction_build_one_voter_many_votes passed 1 test.
  conway transaction build raw negative txout:                                OK (0.54s)
      ✓ 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.28s)
      ✓ 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.92s)
      ✗ 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-aeb033628ac52a77
        28 ┃   refOutFile <- H.noteTempFile tempDir "reference_tx.traw"
           ┃   │ /build/tmp-Test.Cli.Shelley.Transaction.Compatible.Build-test-aeb033628ac52a77/reference_tx.traw
        29 ┃   outFile <- H.noteTempFile tempDir "tx.traw"
           ┃   │ /build/tmp-Test.Cli.Shelley.Transaction.Compatible.Build-test-aeb033628ac52a77/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…
           ┃            │ 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 14259128922851793393 4736505586548904181) "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 14259128922851793393 4736505586548904181'" 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.92s)
      ✓ Test.Cli.VerificationKey.hprop_verification_key_drep passed 1 test.
  verification key committee hot:                                             OK (0.92s)
      ✓ Test.Cli.VerificationKey.hprop_verification_key_committee_hot passed 1 test.
  verification key committee cold:                                            OK (1.03s)
      ✓ Test.Cli.VerificationKey.hprop_verification_key_committee_cold passed 1 test.

1 out of 62 tests failed (85.78s)