-
Notifications
You must be signed in to change notification settings - Fork 45
Stabilisation 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
base: main
Are you sure you want to change the base?
Conversation
Test Results 3 files ±0 102 suites ±0 16m 16s ⏱️ -20s Results for commit 3438ccb. ± Comparison against base commit 63bc902. This pull request removes 1 and adds 1 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
c4ea96d
to
683b515
Compare
b993cdb
to
66a378d
Compare
66a378d
to
f10f9fc
Compare
f10f9fc
to
538b882
Compare
538b882
to
c825406
Compare
c4eeee6
to
191fa50
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
MithrilStakeDistribution
is 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` | - | - |
Content
This PR includes...
mithril aggragtor :
CardanoImmutableFilesFull
to keep onlyMithrilStakeDistribution
in theDEFAULT_ALLOWED_DISCRIMINANTS
CardanoImmutableFilesFull
inallowed_discriminants
(signed entity config) of aggregator's testsCardanoImmutableFilesFull
insigned_entity_types
of aggregator's integration testsmithril signer :
CardanoImmutableFilesFull
in signed entities of signer's integration teststest-lab :
CardanoImmutableFilesFull
insigned_entity_types
of stress testbackward compatibility github action :
CardanoImmutableFilesFull
insigned_entity_types
of stress testmithril client CLI & test-client.yml :
db_v2
todb
when usingcardano-db download --backend v2
and some documentation improvements
Pre-submit checklist
Issue(s)
Closes #2577