-
Notifications
You must be signed in to change notification settings - Fork 146
test: revive node+wallet multi-process integration suite #772
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: staging
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,39 +1,29 @@ | ||
| [package] | ||
| name = "grin_integration" | ||
| version = "1.1.0" | ||
| name = "grin_wallet_integration" | ||
| version = "5.4.1" | ||
| authors = ["Grin Developers <mimblewimble@lists.launchpad.net>"] | ||
| description = "Simple, private and scalable cryptocurrency implementation based on the MimbleWimble chain format." | ||
| description = "Node + wallet multi-process integration tests for grin-wallet" | ||
| license = "Apache-2.0" | ||
| repository = "https://github.com/mimblewimble/grin" | ||
| keywords = [ "crypto", "grin", "mimblewimble" ] | ||
| repository = "https://github.com/mimblewimble/grin-wallet" | ||
| keywords = ["crypto", "grin", "mimblewimble"] | ||
| workspace = ".." | ||
| edition = "2021" | ||
| publish = false | ||
|
|
||
| [dependencies] | ||
| hyper = "0.12" | ||
| futures = "0.1" | ||
| http = "0.1" | ||
| itertools = "0.7" | ||
| rand = "0.5" | ||
| serde = "1" | ||
| futures = "0.3" | ||
| log = "0.4" | ||
| serde_derive = "1" | ||
| serde_json = "1" | ||
| chrono = "0.4.4" | ||
| tokio = "0.1.11" | ||
| blake2-rfc = "0.2" | ||
| bufstream = "0.1" | ||
|
|
||
| #grin_apiwallet = { path = "../apiwallet", version = "1.1.0" } | ||
| #grin_libwallet = { path = "../libwallet", version = "1.1.0" } | ||
| #grin_refwallet = { path = "../refwallet", version = "1.1.0" } | ||
| #grin_wallet_config = { path = "../config", version = "1.1.0" } | ||
| grin_wallet_config = { path = "../config", version = "5.4.1" } | ||
| grin_wallet_controller = { path = "../controller", version = "5.4.1" } | ||
| grin_wallet_impls = { path = "../impls", version = "5.4.1" } | ||
| grin_wallet_libwallet = { path = "../libwallet", version = "5.4.1" } | ||
|
|
||
| #grin_core = { git = "https://github.com/mimblewimble/grin", branch = "milestone/1.1.0" } | ||
| #grin_keychain = { git = "https://github.com/mimblewimble/grin", branch = "milestone/1.1.0" } | ||
| #grin_chain = { git = "https://github.com/mimblewimble/grin", branch = "milestone/1.1.0" } | ||
| #grin_util = { git = "https://github.com/mimblewimble/grin", branch = "milestone/1.1.0" } | ||
| #grin_api = { git = "https://github.com/mimblewimble/grin", branch = "milestone/1.1.0" } | ||
| #grin_store = { git = "https://github.com/mimblewimble/grin", branch = "milestone/1.1.0" } | ||
| #grin_p2p = { git = "https://github.com/mimblewimble/grin", branch = "milestone/1.1.0" } | ||
| #grin_servers = { git = "https://github.com/mimblewimble/grin", branch = "milestone/1.1.0" } | ||
| # Align with workspace grin crates (node multi-server stack). | ||
| grin_core = "5.4.1" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The integration crate still pulls the node crates from crates.io, while staging now uses the pinned grin submodule. In a local merge this resolved two different Grin stacks, and the test build then failed against the current APIs. Could we use the same path dependencies as staging here? |
||
| grin_keychain = "5.4.1" | ||
| grin_util = "5.4.1" | ||
| grin_api = "5.4.1" | ||
| grin_p2p = "5.4.1" | ||
| grin_servers = "5.4.1" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # Wallet + node integration tests | ||
|
|
||
| Multi-process tests that run a real Grin node (`grin_servers`) together with | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These tests run as threads inside one process, and the owner HTTP listener is currently not used at all. Could we describe this as live node-and-wallet integration with foreign HTTP, or actually add the missing owner and multi-process coverage? |
||
| `grin-wallet` foreign/owner HTTP listeners. | ||
|
|
||
| **Node-only** multi-server suites (seeding, propagation, body sync, stratum) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The revived node suites are currently still part of the open mimblewimble/grin #3910 PR and do not live in grin yet. Could we link the open PR and phrase this accordingly until it is merged? |
||
| live in [mimblewimble/grin](https://github.com/mimblewimble/grin) under | ||
| `integration/` ([#2957](https://github.com/mimblewimble/grin/issues/2957)). | ||
|
|
||
| In-process wallet unit/integration coverage (mock node via `WalletProxy`) | ||
| remains under `controller/tests/`. | ||
|
|
||
| ## Run | ||
|
|
||
| ```bash | ||
| cd integration | ||
| cargo test --release -- --test-threads=1 | ||
| ``` | ||
|
|
||
| Serial execution avoids port and RocksDB races. | ||
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.
Grin uses LMDB here, not RocksDB, and the same wording also appears in the README. Could we simply say “fixed ports and data directories” instead?
Grin++ use RocksDB