Add certificates to CLI interface in compatible transaction-sign
#972
+688
−37
Garnix CI / check ghc965-x86_64-unknown-linux-musl:cardano-cli:test:cardano-cli-test [x86_64-linux]
failed
Jan 3, 2025 in 52m 13s
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 (0.72s)
✓ 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.38s)
✓ 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.43s)
✓ 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.44s)
✓ Test.Cli.Shelley.Certificates.StakePool.hprop_stake_pool_metadata_hash_url_correct_hash passed 1 test.
hash trip: OK (0.54s)
✓ 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.18s)
✓ Test.Cli.Shelley.Transaction.Build.hprop_conway_transaction_build_one_voter_many_votes passed 1 test.
conway transaction build raw negative txout: OK (0.18s)
✓ 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.19s)
✓ 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.23s)
✗ 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-c5204128b7b27ffd
28 ┃ refOutFile <- H.noteTempFile tempDir "reference_tx.traw"
┃ │ /build/tmp-Test.Cli.Shelley.Transaction.Compatible.Build-test-c5204128b7b27ffd/reference_tx.traw
29 ┃ outFile <- H.noteTempFile tempDir "tx.traw"
┃ │ /build/tmp-Test.Cli.Shelley.Transaction.Compatible.Build-test-c5204128b7b27ffd/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 $
┃ │ ━━━━ command ━━━━
┃ │ /nix/store/bra9c3glvl9hw8cmx1hb11gsssk55fif-cardano-cli-exe-cardano-cli-x86_64-unknown-linux-musl-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.Co…
┃ │ 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: withBinaryFile: does not exist (No such file or directory)
┃ │
┃ ^^^^^^^^^^^^^^^^
┃ │ Execute process failed
52 ┃ [ eraName
53 ┃ , "transaction"
54 ┃ , "build-raw"
55 ┃ ]
56 ┃ <> args
57 ┃ <> [ "--out-file"
58 ┃ , refOutFile
59 ┃ ]
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 16550192728959902721 13928286238976892897) "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 16550192728959902721 13928286238976892897'" 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.34s)
✓ Test.Cli.VerificationKey.hprop_verification_key_drep passed 1 test.
verification key committee hot: OK (0.33s)
✓ Test.Cli.VerificationKey.hprop_verification_key_committee_hot passed 1 test.
verification key committee cold: OK (0.34s)
✓ Test.Cli.VerificationKey.hprop_verification_key_committee_cold passed 1 test.
1 out of 62 tests failed (5.74s)
Loading