[FR] cardano-db-sync - Analyse possibility of testing rollbacks with framework
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python
- Domain
- databases, testing-qa
Research direction
Start by reviewing the cardano-node-tests framework and the cardano-db-sync command, especially the --rollback-to-slot option. Assess whether rollback can run efficiently on a minimal test blockchain after the regular cluster tests. Done means documenting feasibility, expected runtime, and the tables, columns, or flag configurations that require coverage.
Written by the indexing model from the issue text.
Description
Analyse if it would make sense to test db-sync rollbacks with cardano-node-tests framework.
Currently the only way to invoke rollback is to stop current db-sync process and start it again with flag --rollback-to-slot :
Usage: cardano-db-sync (COMMAND | --config FILEPATH --socket-path FILEPATH
[--state-dir FILEPATH] --schema-dir FILEPATH
[--pg-pass-env ENV] [--disable-epoch] [--disable-cache]
[--disable-ledger] [--skip-fix] [--fix-only]
[--force-indexes] [--disable-multiassets]
[--disable-metadata] [--disable-plutus-extra]
[--disable-offline-data] [--turbo] [--full]
[--consumed-tx-out] [--prune-tx-out]
[--rollback-to-slot WORD])
This might be a time consuming process - however on a test blockchain with minimal amount of data this could be a faster process than on real networks either test ones or mainnet.
This should be probably run after all regular cluster tests are finished so we have test data including all conway era tests and check if rollback propagates properly and deletes all data. Currently some columns , tables might be ignored during rollbacks.
Detailed list of tables / columns / cases (flag configurations causing issues) would be needed in case this would make sense to implement and we wanted to proceed with idea - but for now just the concept itself can be checked from the efficiency point of view and how much time consuming it would be.
- Dominant language
- Python
- Stars
- 59
- Forks
- 28
- Avg merge
- 13h 57m
- Merged PRs (30d)
- 87
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from IntersectMBO/cardano-node-tests
-
node upstream bug
Difficulty 5/5 Over a week Newbie friendliness 25/100
IntersectMBO/cardano-node-tests#3670 · 1 comment ·
Maintainers usually reply within 1 day
-
node upstream bug
Difficulty 4/5 3-5 days Newbie friendliness 25/100
IntersectMBO/cardano-node-tests#3669 ·
Maintainers usually reply within 1 day
-
Integrate Antithesis using MOOG into Cardano node test suiteMay be free again @saratomaz claimed this 283 days ago, and no pull request is open. Openenhancement
IntersectMBO/cardano-node-tests#3316 · 1 assignee ·
Maintainers usually reply within 1 day
-
[FR] cardano-db-sync - Create tests for new db-sync configurationPossibly taken @ArturWieczorek claimed this 122 days ago. Opendb-sync enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
IntersectMBO/cardano-node-tests#2652 ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 3/5 1-2 days Newbie friendliness 45/100
IntersectMBO/cardano-node-tests#2421 ·
Maintainers usually reply within 1 day
All issues in IntersectMBO/cardano-node-tests
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
deepchem/deepchem#5289 · 1 comment ·
Maintainers usually reply within 2 days
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 60/100
UKGovernmentBEIS/inspect_evals#2892 · 1 comment ·
Maintainers usually reply within 1 day
-
Versioning docs: say that no output from the 0.46 warning check means nothing is affectedPossibly taken @grelinfo claimed this today. Opendocumentation priority:low size:S
Difficulty 1/5 Under an hour Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
alphacrack/readme2demo#293 ·