feat: add dashd integration tests for SPV sync#464
Draft
xdustinface wants to merge 1 commit intofeat/sync-cyclefrom
Draft
feat: add dashd integration tests for SPV sync#464xdustinface wants to merge 1 commit intofeat/sync-cyclefrom
dashd integration tests for SPV sync#464xdustinface wants to merge 1 commit intofeat/sync-cyclefrom
Conversation
Adds comprehensive integration tests that verify SPV sync against a real `dashd` instance with pre-generated regtest blockchain: [dashpay/regtest-blockchain](https://github.com/dashpay/regtest-blockchain) ### Includes: - CI infrastructure: `contrib/setup-dashd.py` for cross-platform dashd/test-data setup, GitHub Actions caching and log retention on test failure - Shared test utilities in `dash-spv/src/test_utils/`: `DashCoreNode` (`dashd` process management, RPC), `DashdTestContext` (common setup), filesystem helpers - FFI test utilities in `dash-spv-ffi/src/test_utils/`: `CallbackTracker` (callback verification), `FFITestContext` (FFI client wrapper lifecycle management) - Thread-local logging support for parallel test isolation - SPV tests: basic sync, empty wallet, multi-wallet, restart consistency, restart with fresh wallet, multiple restarts, random restarts, peer disconnection (exclusive and non-exclusive mode), incremental transactions (single block, across blocks) - FFI tests: wallet sync, incremental sync, restart consistency, all-callbacks verification, post-sync transaction and disconnect callbacks
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or 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
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.
Adds comprehensive integration tests that verify SPV sync against a real
dashdinstance with pre-generated regtest blockchain: dashpay/regtest-blockchainIncludes:
contrib/setup-dashd.pyfor cross-platform dashd/test-data setup, GitHub Actions caching and log retention on test failuredash-spv/src/test_utils/:DashCoreNode(dashdprocess management, RPC),DashdTestContext(common setup), filesystem helpersdash-spv-ffi/src/test_utils/:CallbackTracker(callback verification),FFITestContext(FFI client wrapper lifecycle management)Based on:
cycletoSyncEvent::SyncComplete#459