-
Notifications
You must be signed in to change notification settings - Fork 157
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
Utxow Predicate failure tests #4213
Conversation
214b4af
to
7d4e35b
Compare
97d0664
to
20ff045
Compare
edcdac2
to
f7487be
Compare
91ec8ae
to
9b06a3e
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.
This is really great work. There are a bunch of comments, but I think they all can improve the PR even more than it already is.
eras/alonzo/impl/testlib/Test/Cardano/Ledger/Alonzo/Imp/UtxowSpec.hs
Outdated
Show resolved
Hide resolved
eras/alonzo/impl/testlib/Test/Cardano/Ledger/Alonzo/Imp/UtxowSpec.hs
Outdated
Show resolved
Hide resolved
eras/alonzo/impl/testlib/Test/Cardano/Ledger/Alonzo/Imp/UtxowSpec.hs
Outdated
Show resolved
Hide resolved
eras/alonzo/impl/testlib/Test/Cardano/Ledger/Alonzo/Imp/UtxowSpec.hs
Outdated
Show resolved
Hide resolved
eras/shelley/impl/testlib/Test/Cardano/Ledger/Shelley/Imp/UtxowSpec.hs
Outdated
Show resolved
Hide resolved
eras/allegra/impl/testlib/Test/Cardano/Ledger/Allegra/Imp/UtxowSpec.hs
Outdated
Show resolved
Hide resolved
eras/allegra/impl/testlib/Test/Cardano/Ledger/Allegra/Imp/UtxowSpec.hs
Outdated
Show resolved
Hide resolved
eras/allegra/impl/testlib/Test/Cardano/Ledger/Allegra/Imp/UtxowSpec.hs
Outdated
Show resolved
Hide resolved
eras/shelley/impl/testlib/Test/Cardano/Ledger/Shelley/ImpTest.hs
Outdated
Show resolved
Hide resolved
9b06a3e
to
f0b3f9a
Compare
I have rewritten most of these tests to make more use of postFixup. In the initial version, I was trying to produce the exact list of failures, and for that, the fixing up was more complicated and less comprehensible. If you wanted to have another look @lehins when you have time. Also, @neilmayhew - hope this isn't too much interfering with the work on your other (related) PR. |
f0b3f9a
to
68c10ef
Compare
68c10ef
to
7b6b3dd
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.
Ok, I do have a problem with submitFailingTxWithSubset
. There is a proposed solution on how to solve this in the review.
Also the PredicteFailrues that do not roundtrip as expected can be tested for that as well.
Other than that this PR is looking much better than before 😉 thanks to all of the work you've done in other PRs.
eras/shelley/impl/testlib/Test/Cardano/Ledger/Shelley/ImpTest.hs
Outdated
Show resolved
Hide resolved
eras/shelley/impl/testlib/Test/Cardano/Ledger/Shelley/Imp/UtxowSpec.hs
Outdated
Show resolved
Hide resolved
eras/shelley/impl/testlib/Test/Cardano/Ledger/Shelley/ImpTest.hs
Outdated
Show resolved
Hide resolved
b550f3d
to
0bf021b
Compare
0bf021b
to
e4311d0
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.
Beautiful! Thank you!
eras/shelley/impl/testlib/Test/Cardano/Ledger/Shelley/ImpTest.hs
Outdated
Show resolved
Hide resolved
eras/shelley/impl/testlib/Test/Cardano/Ledger/Shelley/ImpTest.hs
Outdated
Show resolved
Hide resolved
in order to support testing failures for which we know that the roundtripping is not working (and needs to be kept like this for backwards compatibility)
to enable testing invalid scripts
e4311d0
to
e0ff234
Compare
Description
Tests for UTXOW Predicate failures, part of #4185
InvalidWitnessesUTXOW
MissingVKeyWitnessesUTXOW
MissingScriptWitnessesUTXOW
ScriptWitnessNotValidatingUTXOW
MissingTxBodyMetadataHash
MissingTxMetadata
ConflictingMetadataHash
InvalidMetadata
ExtraneousScriptWitnessesUTXOW
MissingRedeemers
MissingRequiredDatums
NotAllowedSupplementalDatums
PPViewHashesDontMatch
UnspendableUTxONoDatumHash
ExtraRedeemers
MalformedScriptWitnesses
MalformedReferenceScripts
Checklist
.cabal
andCHANGELOG.md
files according to theversioning process.
.cabal
files for all affected packages are updated. If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)CHANGELOG.md
for the affected packages. New section is never added with the code changes. (See RELEASING.md)fourmolu
(usescripts/fourmolize.sh
)scripts/cabal-format.sh
)hie.yaml
has been updated (usescripts/gen-hie.sh
)