-
Notifications
You must be signed in to change notification settings - Fork 20
Delete top level babbage command group
#1117
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
Delete top level babbage command group
#1117
Conversation
| scriptTxBody :: FilePath -> Integration () | ||
| scriptTxBody transactionBodyFile = | ||
| void $ | ||
| execCardanoCLI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fails with:
✗ Test.Golden.TxView.hprop_golden_view_redeemer failed at test/cardano-cli-golden/Test/Golden/TxView.hs:111:7
after 1 test.
shrink path: 1:
┏━━ test/cardano-cli-golden/Test/Golden/TxView.hs ━━━
94 ┃ hprop_golden_view_redeemer :: Property
95 ┃ hprop_golden_view_redeemer = do
96 ┃ propertyOnce $
97 ┃ moduleWorkspace "tmp" $ \tempDir -> do
┃ │ Workspace: /tmp/tmp-Test.Golden.TxView-test-9d0e749d0d4e1385
98 ┃ transactionBodyFile <- noteTempFile tempDir "transaction-body-file"
┃ │ cardano-cli//tmp/tmp-Test.Golden.TxView-test-9d0e749d0d4e1385/transaction-body-file
99 ┃ scriptTxBody transactionBodyFile
100 ┃
101 ┃ -- View transaction body
102 ┃ result <-
103 ┃ execCardanoCLI
104 ┃ ["debug", "transaction", "view", "--tx-body-file", transactionBodyFile, "--output-yaml"]
105 ┃
106 ┃ H.diffVsGoldenFile result $ goldenDir </> "conway/transaction-view-redeemer.out"
107 ┃ where
108 ┃ scriptTxBody :: FilePath -> Integration ()
109 ┃ scriptTxBody transactionBodyFile =
110 ┃ void $
111 ┃ execCardanoCLI
┃ │ ━━━━ command ━━━━
┃ │ /home/jky/wrk/intersect/cardano-cli/dist-newstyle/build/x86_64-linux/ghc-9.10.1/cardano-cli-10.5.0.0/x/cardano-cli/build/cardano-cli/cardano-cli conway transaction build-raw --tx-in ed7c8f68c194cc763ee65ad22ef0973e26481be058c65005fd39fb93f9c43a20#213 --tx-in-datum-value 6666 --tx-in-redeemer-value 42 --tx-in-script-file test/cardano-cli-golden/files/input/AlwaysSucceeds.plutus --tx-in-execution-units "(100, 200)" --tx-in-collateral c9765d7d0e3955be8920e6d7a38e1f3f2032eac48c7c59b0b9193caa87727e7e#256 --protocol-params-file test/cardano-cli-golden/files/input/conway/transaction-calculate-min-fee/protocol-params.json --fee 213 --out-file /tmp/tmp-Test.Golden.TxView-test-9d0e749d0d4e1385/transaction-body-file
┃ │ Process exited with non-zero exit-code: 1
┃ │ ━━━━ stderr ━━━━
┃ │ Command failed: transaction build-raw
┃ │ Error: Error while decoding the protocol parameters at: "test/cardano-cli-golden/files/input/conway/transaction-calculate-min-fee/protocol-params.json" Error: "Error in $: key \"poolVotingThresholds\" not found"
┃ │
┃ ^^^^^^^^^^^^^^
┃ │ Execute process failed
02f0bf0 to
6bcf059
Compare
| txBodyOutFile <- noteTempFile tempDir "tx-body-out" | ||
|
|
||
| void $ | ||
| execCardanoCLI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fails with:
┏━━ test/cardano-cli-golden/Test/Golden/Shelley/Transaction/Build.hs ━━━
48 ┃ hprop_golden_shelley_transaction_build_certificate_script_witnessed :: Property
49 ┃ hprop_golden_shelley_transaction_build_certificate_script_witnessed =
50 ┃ propertyOnce $ H.moduleWorkspace "tmp" $ \tempDir -> do
┃ │ Workspace: /tmp/tmp-Test.Golden.Shelley.Transaction.Build-test-fa8223f991df8f93
51 ┃ let deregcert =
52 ┃ "test/cardano-cli-golden/files/input/shelley/certificates/stake_address_deregistration_certificate"
53 ┃ scriptWit = "test/cardano-cli-golden/files/input/shelley/multisig/scripts/any"
54 ┃
55 ┃ txBodyOutFile <- noteTempFile tempDir "tx-body-out"
┃ │ cardano-cli//tmp/tmp-Test.Golden.Shelley.Transaction.Build-test-fa8223f991df8f93/tx-body-out
56 ┃
57 ┃ void $
58 ┃ execCardanoCLI
┃ │ ━━━━ command ━━━━
┃ │ /home/jky/wrk/intersect/cardano-cli/dist-newstyle/build/x86_64-linux/ghc-9.10.1/cardano-cli-10.5.0.0/x/cardano-cli/build/cardano-cli/cardano-cli conway transaction build-raw --tx-in 2392d2b1200b5139fe555c81261697b29a8ccf561c5c783d46e78a479d977053#0 --tx-out addr1q94cxl99qvtwunsqqv6g9mgj3zrawtpt4edsgwxkjtwpy5dsezcht90tmwfur7t5hc9fk8hjd3r5vjwec2h8vmk3xh8s7er7t3+100 --certificate-file test/cardano-cli-golden/files/input/shelley/certificates/stake_address_deregistration_certificate --certificate-script-file test/cardano-cli-golden/files/input/shelley/multisig/scripts/any --fee 12 --tx-body-file /tmp/tmp-Test.Golden.Shelley.Transaction.Build-test-fa8223f991df8f93/tx-body-out
┃ │ Process exited with non-zero exit-code: 1
┃ │ ━━━━ stderr ━━━━
┃ │ Command failed: transaction build-raw
┃ │ Error: test/cardano-cli-golden/files/input/shelley/certificates/stake_address_deregistration_certificate: TextEnvelope type error: Expected: CertificateConway Actual: CertificateShelley
┃ │
┃ ^^^^^^^^^^^^^^
┃ │ Execute process failed
6bcf059 to
35e23b7
Compare
| checkTextEnvelopeFormat | ||
| registrationCertificateType | ||
| referenceRegistrationCertificate | ||
| registrationCertificate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fails with:
126 ┃ checkTextEnvelopeFormat
┃ ^^^^^^^^^^^^^^^^^^^^^^^
┃ │ /tmp/tmp-Test.Golden.Shelley.TextEnvelope.Certificates.StakePool-test-d529f1472a1ce685/stake-pool-registration-certificate: TextEnvelope type error: Expected: CertificateShelley Actual: CertificateConway
35e23b7 to
6d03d98
Compare
| checkTextEnvelopeFormat | ||
| registrationCertificateType | ||
| referenceRegistrationCertificate | ||
| registrationCertificate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fails with:
76 ┃ checkTextEnvelopeFormat
┃ ^^^^^^^^^^^^^^^^^^^^^^^
┃ │ test/cardano-cli-golden/files/input/shelley/certificates/stake_address_registration_certificate: TextEnvelope type error: Expected: CertificateConway Actual: CertificateShelley
6d03d98 to
e2f35f3
Compare
| let testAddr = "stake1u9j6axhcpd0exvrthn5dqzqt54g85akqvkn4uqmccm70qsc5hpv9w" | ||
| -- Create MIR certificate | ||
| void $ | ||
| execCardanoCLI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fails with:
50 ┃ execCardanoCLI
┃ │ ━━━━ command ━━━━
┃ │ /home/jky/wrk/intersect/cardano-cli/dist-newstyle/build/x86_64-linux/ghc-9.10.1/cardano-cli-10.5.0.0/x/cardano-cli/build/cardano-cli/cardano-cli conway governance create-mir-certificate --reserves --stake-address stake1u9j6axhcpd0exvrthn5dqzqt54g85akqvkn4uqmccm70qsc5hpv9w --reward 1000 --out-file /tmp/tmp-Test.Golden.Shelley.TextEnvelope.Certificates.MIR-test-d5ed057a2128d2f3/mir-certificate-file
┃ │ Process exited with non-zero exit-code: 1
┃ │ ━━━━ stderr ━━━━
┃ │ Invalid argument `create-mir-certificate'
┃ │
┃ │ Usage: cardano-cli conway governance (action | committee | drep | vote)
┃ │
┃ │ Governance commands.
┃ │
┃ ^^^^^^^^^^^^^^
e2f35f3 to
2e9bf97
Compare
| <$> execCardanoCLI | ||
| [ "babbage" | ||
| , "governance" | ||
| , "verify-poll" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the tests in this file fail like this:
┃ │ ━━━━ command ━━━━
┃ │ /home/jky/wrk/intersect/cardano-cli/dist-newstyle/build/x86_64-linux/ghc-9.10.1/cardano-cli-10.5.0.0/x/cardano-cli/build/cardano-cli/cardano-cli conway governance verify-poll --poll-file test/cardano-cli-golden/files/input/governance/polls/basic.json --tx-file test/cardano-cli-golden/files/input/governance/verify/valid
┃ │ Process exited with non-zero exit-code: 1
┃ │ ━━━━ stderr ━━━━
┃ │ Invalid argument `verify-poll'
┃ │
┃ │ Usage: cardano-cli conway governance (action | committee | drep | vote)
┃ │
┃ │ Governance commands.
┃ │
┃ ^^^^^^^^^^^^^^^^^^
┃ │ Execute process failed
2e9bf97 to
8a0d7d5
Compare
| pollFile <- noteTempFile tempDir "poll.json" | ||
|
|
||
| stdout <- | ||
| execCardanoCLI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the tests in this file fail like this:
52 ┃ execCardanoCLI
┃ │ ━━━━ command ━━━━
┃ │ /home/jky/wrk/intersect/cardano-cli/dist-newstyle/build/x86_64-linux/ghc-9.10.1/cardano-cli-10.5.0.0/x/cardano-cli/build/cardano-cli/cardano-cli conway governance create-poll --question "What is the most adequate topping to put on a pizza (please consider all possibilities and take time to answer)?" --answer pineapples --answer "only traditional topics should go on a pizza, this isn't room for jokes" --out-file /tmp/tmp-Test.Golden.EraBased.Governance.CreatePoll-test-d31e174ef726f950/poll.json
┃ │ Process exited with non-zero exit-code: 1
┃ │ ━━━━ stderr ━━━━
┃ │ Invalid argument `create-poll'
┃ │
┃ │ Usage: cardano-cli conway governance (action | committee | drep | vote)
┃ │
┃ │ Governance commands.
┃ │
┃ ^^^^^^^^^^^^^^
8a0d7d5 to
874c983
Compare
| outFile <- H.noteTempFile tempDir "answer-file.json" | ||
|
|
||
| result <- | ||
| tryExecCardanoCLI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the tests in this file fail like this:
69 ┃ execCardanoCLI
┃ │ ━━━━ command ━━━━
┃ │ /home/jky/wrk/intersect/cardano-cli/dist-newstyle/build/x86_64-linux/ghc-9.10.1/cardano-cli-10.5.0.0/x/cardano-cli/build/cardano-cli/cardano-cli conway governance answer-poll --poll-file test/cardano-cli-golden/files/input/governance/polls/basic.json --answer 1 --out-file /tmp/governance-answer-poll-Test.Golden.EraBased.Governance.AnswerPoll-test-9bfed09f7006ee62/answer-file.json
┃ │ Process exited with non-zero exit-code: 1
┃ │ ━━━━ stderr ━━━━
┃ │ Invalid argument `answer-poll'
┃ │
┃ │ Usage: cardano-cli conway governance (action | committee | drep | vote)
┃ │
┃ │ Governance commands.
┃ │
┃ ^^^^^^^^^^^^^^
┃ │ Execute process failed
0a66dd0 to
5a76a29
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. We need to switch to the latest command group in the cli tests.
5a76a29 to
f31b11a
Compare
f31b11a to
cbe4ee6
Compare
Changelog
Context
Additional context for the PR goes here. If the PR fixes a particular issue please provide a link to the issue.
How to trust this PR
Highlight important bits of the PR that will make the review faster. If there are commands the reviewer can run to observe the new behavior, describe them.
Checklist