-
Notifications
You must be signed in to change notification settings - Fork 158
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
Upgradeable families #3596
Merged
Merged
Upgradeable families #3596
Conversation
This file contains 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
lehins
force-pushed
the
lehins/upgradeable-families
branch
2 times, most recently
from
August 4, 2023 18:06
bff478b
to
b4f0b7b
Compare
7 tasks
lehins
force-pushed
the
lehins/upgradeable-families
branch
from
August 8, 2023 20:26
b4f0b7b
to
77bf5fd
Compare
lehins
force-pushed
the
lehins/upgradeable-families
branch
from
August 8, 2023 23:10
77bf5fd
to
f2a204d
Compare
nc6
approved these changes
Aug 9, 2023
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, have left a few comments requesting mostly clarification
libs/cardano-ledger-core/testlib/Test/Cardano/Ledger/Core/Binary.hs
Outdated
Show resolved
Hide resolved
lehins
force-pushed
the
lehins/upgradeable-families
branch
2 times, most recently
from
August 9, 2023 14:02
ec0711d
to
f1659cd
Compare
Consensus already defines a similar function. There is no need for it to live there especially since it can be used in other downstream applications and testing
The idea behind tests is to serialize a type in the previous era and deserialize it in the current era, while checking that upgrading functionality produces the same result. Noteable type family that does not translate through serialization is the Script on the Allegra/Alonzo boundary, hence it is treated specially in tests.
* Upgrade of TxCerts can fail on Babbage/Conway boundary, hence slightly different interface than other upgrade functions. * Includes upgradeability test for TxCert
lehins
force-pushed
the
lehins/upgradeable-families
branch
from
August 9, 2023 17:09
f1659cd
to
c43a997
Compare
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.
Description
Take care of part of #3618
Adds
upgradeTxOut
,upgradeTxAuxData
,upgradeScript
andupgradeTxCert
as well as:cardano-ledger-[era]
package that didn't have one. See Consolidate allcardano-ledger-[era]-test
package #3623 for more info on a long goal with respect to test suites.eraName
that can be used in any place where textual representation of an era is needed (this can subsume similar functionality from consensus)ToExpr
instances for more types. Needed for testing.EraTxAuxData
instances into their own modules for Babbage and ConwayChecklist
.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
)