Delete top level babbage command group#1117
Merged
Conversation
newhoggy
commented
Mar 30, 2025
| scriptTxBody :: FilePath -> Integration () | ||
| scriptTxBody transactionBodyFile = | ||
| void $ | ||
| execCardanoCLI |
Contributor
Author
There was a problem hiding this comment.
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
newhoggy
commented
Mar 30, 2025
| txBodyOutFile <- noteTempFile tempDir "tx-body-out" | ||
|
|
||
| void $ | ||
| execCardanoCLI |
Contributor
Author
There was a problem hiding this comment.
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
newhoggy
commented
Mar 30, 2025
| checkTextEnvelopeFormat | ||
| registrationCertificateType | ||
| referenceRegistrationCertificate | ||
| registrationCertificate |
Contributor
Author
There was a problem hiding this comment.
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
newhoggy
commented
Mar 30, 2025
| checkTextEnvelopeFormat | ||
| registrationCertificateType | ||
| referenceRegistrationCertificate | ||
| registrationCertificate |
Contributor
Author
There was a problem hiding this comment.
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
newhoggy
commented
Mar 30, 2025
| let testAddr = "stake1u9j6axhcpd0exvrthn5dqzqt54g85akqvkn4uqmccm70qsc5hpv9w" | ||
| -- Create MIR certificate | ||
| void $ | ||
| execCardanoCLI |
Contributor
Author
There was a problem hiding this comment.
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
newhoggy
commented
Mar 30, 2025
| <$> execCardanoCLI | ||
| [ "babbage" | ||
| , "governance" | ||
| , "verify-poll" |
Contributor
Author
There was a problem hiding this comment.
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
newhoggy
commented
Mar 30, 2025
| pollFile <- noteTempFile tempDir "poll.json" | ||
|
|
||
| stdout <- | ||
| execCardanoCLI |
Contributor
Author
There was a problem hiding this comment.
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
newhoggy
commented
Mar 30, 2025
| outFile <- H.noteTempFile tempDir "answer-file.json" | ||
|
|
||
| result <- | ||
| tryExecCardanoCLI |
Contributor
Author
There was a problem hiding this comment.
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
Jimbo4350
approved these changes
Apr 3, 2025
Contributor
Jimbo4350
left a comment
There was a problem hiding this comment.
LGTM. We need to switch to the latest command group in the cli tests.
5a76a29 to
f31b11a
Compare
f31b11a to
cbe4ee6
Compare
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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