-
Notifications
You must be signed in to change notification settings - Fork 162
Avoid branching on translateUpperBoundForPlutusScripts protocol version #5230
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
Conversation
eras/conway/impl/testlib/Test/Cardano/Ledger/Conway/TxInfoSpec.hs
Outdated
Show resolved
Hide resolved
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.
Looks good to me, some minor suggestions and what Joosp said about not invoking the test with @ALONZOERA instead of @era (though the test still passes and i believe it's technically correct, albeit confusing!)
eras/conway/impl/testlib/Test/Cardano/Ledger/Conway/TxInfoSpec.hs
Outdated
Show resolved
Hide resolved
Wait, I can't explain the failure of the golden translation tests! So I'm dismissing my review until I understand - it doesn't seem to me like they should be failing!
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.
There is a golden test failure on CI, which @teodanciu can give you a suggestion on how resolve.
Other than that the PR is good.
@aniketd , I think there is is a mistake in the way the golden files were generated! So I believe what happened is:
That's my theory at least - i got curious because I don't remember seeing these tests fail before. PS: If my theory is correct, and the golden files are, indeed, wrong - i think it would be good to fix them in a different PR, so that it's clear that your change doesn't alter them - so basically to not regenerate the files AND make changes that could potentially change the files in the same PR. |
2632f78
to
4116c2f
Compare
@teodanciu Thanks a lot for your investigation into this matter. It helped a great deal in confirming my solution. Please take a second look at this one, now that I have addressed the review comments 😁 and let me know what you think 👍 |
@aniketd I need to look into the conformance tests and also split the commit into one that changes the code and another that updates the golden files. |
Hey @aniketd , FIY: I had a similar failure on my PR, and the good news is that @neilmayhew's PR has solved mine, so perhaps it will help you too! |
4116c2f
to
de95c3a
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.
Looks good. Both @teodanciu and @Soupstraw rightfully so pointed out inferior setup for the test that check this functionality. Albeit enough to convince that changes in this PR are sound, but they can be adjusted to make their quality much better.
I've created #5249, which @aniketd will tackle as a subsequent PR
...instead of protocol versions. Implement transValidityInterval specific to Conway. Remove: - hardforkConwayTranslateUpperBoundForPlutusScripts - protocol version argument to transValidityInterval Move transVITimeUpperBoundIsOpen test to Conway.TxInfoSpec
de95c3a
to
4a9a52f
Compare
Description
Closes #5126
Checklist
CHANGELOG.md
files updated for packages with externally visible changes.NOTE: New section is never added with the code changes. (See RELEASING.md).
Versions updated in.cabal
andCHANGELOG.md
files when necessary, according to theversioning process.
Version bounds in.cabal
files updated when necessary.NOTE: If bounds change in a cabal file, that package itself must have a version increase. (See RELEASING.md).
scripts/fourmolize.sh
).scripts/cabal-format.sh
).scripts/gen-cddl.sh
)hie.yaml
updated (usescripts/gen-hie.sh
).