-
Notifications
You must be signed in to change notification settings - Fork 51
Stabilization of cardano db v2 (aggregator) #2610
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
c4ea96d to
683b515
Compare
b993cdb to
66a378d
Compare
66a378d to
f10f9fc
Compare
f10f9fc to
538b882
Compare
538b882 to
c825406
Compare
191fa50 to
e4324e0
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.
Pull Request Overview
This PR stabilizes the Cardano DB v2 aggregator and signer tests by adjusting allowed discriminants and updating download directory parameters. Key changes include removing CardanoImmutableFilesFull from the default allowed discriminants, adding it explicitly in tests and configurations, and standardizing download directory naming with the new --download-dir option.
- Updated allowed discriminants in various configuration and test files.
- Revised CLI download commands to use a consistent directory naming scheme.
- Improved documentation to reflect these changes.
Reviewed Changes
Copilot reviewed 21 out of 21 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| mithril-test-lab/mithril-end-to-end/src/stress_test/aggregator_helpers.rs | Adds CardanoImmutableFilesFull to test configuration. |
| mithril-test-lab/mithril-end-to-end/src/mithril/client.rs | Introduces the --download-dir parameter for both v1 and v2 downloads. |
| mithril-test-lab/mithril-end-to-end/src/main.rs | Updates the default signed_entity_types to include CardanoImmutableFilesFull. |
| mithril-signer/tests/create_cardano_transaction_single_signature.rs | Updates tests to allow CardanoImmutableFilesFull as a signed entity. |
| mithril-common/src/entities/signed_entity_config.rs | Removes CardanoImmutableFilesFull from DEFAULT_ALLOWED_DISCRIMINANTS. |
| mithril-client-cli/src/commands/cardano_db/download/* | Refactors download commands to use a constant directory name (DB_DIRECTORY_NAME). |
| mithril-aggregator/tests/* & src/runtime/runner.rs | Adapts test helpers to handle the explicit allowed discriminants configuration. |
| docs/website/* | Adjusts documentation to reflect the new download directory logic and configuration changes. |
| .github/workflows/* | Updates CI workflow commands to include --download-dir with the appropriate directory names. |
Comments suppressed due to low confidence (2)
mithril-aggregator/src/configuration.rs:491
- The documentation comment is unclear; consider rephrasing it to 'The value
MithrilStakeDistributionis automatically prepended to the list.'
/// The value `MithrilStakeDistribution` is prepended is automatically to the list.
docs/website/root/manual/develop/nodes/mithril-client.md:581
- Please verify that updating the default backend to 'v2' in the documentation aligns with the actual default behavior in the client implementation.
| `backend` | `--backend` | `-b` | - | - | `v2` | - | - |
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 🚀
docs/website/versioned_docs/version-maintained/manual/getting-started/bootstrap-cardano-node.md
Outdated
Show resolved
Hide resolved
docs/website/versioned_docs/version-maintained/manual/getting-started/bootstrap-cardano-node.md
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.
LGTM 🚀
docs/website/versioned_docs/version-maintained/manual/getting-started/bootstrap-cardano-node.md
Outdated
Show resolved
Hide resolved
docs/website/versioned_docs/version-maintained/manual/getting-started/bootstrap-cardano-node.md
Outdated
Show resolved
Hide resolved
docs/website/versioned_docs/version-maintained/manual/getting-started/bootstrap-cardano-node.md
Outdated
Show resolved
Hide resolved
docs/website/versioned_docs/version-maintained/manual/getting-started/bootstrap-cardano-node.md
Outdated
Show resolved
Hide resolved
3438ccb to
a31cdad
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
docs/website/versioned_docs/version-maintained/manual/getting-started/bootstrap-cardano-node.md
Outdated
Show resolved
Hide resolved
4742a28 to
03001b4
Compare
017ca63 to
2cf0638
Compare
docs/website/versioned_docs/version-maintained/manual/getting-started/bootstrap-cardano-node.md
Outdated
Show resolved
Hide resolved
docs/website/versioned_docs/version-maintained/manual/getting-started/bootstrap-cardano-node.md
Outdated
Show resolved
Hide resolved
2cf0638 to
47ab327
Compare
…on in default allowed discriminants
15db34a to
61096f3
Compare
* mithril-aggregator from `0.7.70` to `0.7.71` * mithril-client-cli from `0.12.16` to `0.12.17` * mithril-common from `0.6.4` to `0.6.5` * mithril-signer from `0.2.257` to `0.2.258` * mithril-end-to-end from `0.4.93` to `0.4.94`
61096f3 to
77385e4
Compare
Content
This PR includes...
mithril aggragtor :
CardanoImmutableFilesFullto keep onlyMithrilStakeDistributionin theDEFAULT_ALLOWED_DISCRIMINANTSCardanoImmutableFilesFullwithCardanoDatabaseinallowed_discriminants(signed entity config) of aggregator's testsCardanoImmutableFilesFullwithCardanoDatabaseinsigned_entity_typesof aggregator's integration testsmithril signer :
CardanoImmutableFilesFullin signed entities of signer's integration teststest-lab :
CardanoImmutableFilesFullinsigned_entity_typesof stress testbackward compatibility github action :
CardanoImmutableFilesFullinsigned_entity_typesof stress testmithril client CLI & test-client.yml :
db_v2todbwhen usingcardano-db download --backend v2and some documentation improvements
Pre-submit checklist
Issue(s)
Closes #2577