-
Notifications
You must be signed in to change notification settings - Fork 2.7k
zombienet
: warp-sync tests for validators
#13078
Changes from 7 commits
a4ef4d0
4858c39
ac2ef24
1d52835
ac4e35b
9f84d50
318287c
2686928
055a4ca
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Refer to ../0001-basic-warp-sync/README.md for more details. This test is nearly a clone. We want to warp-sync validators and make sure they can build blocks. | ||
0001-basic-warp-sync chainspec (copied) and database are reused in this test. | ||
|
||
|
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[settings] | ||
enable_tracing = false | ||
|
||
[relaychain] | ||
default_image = "{{ZOMBIENET_INTEGRATION_TEST_IMAGE}}" | ||
default_command = "substrate" | ||
|
||
chain = "gen-db" | ||
chain_spec_path = "zombienet/0002-validators-warp-sync/chain-spec.json" | ||
|
||
[[relaychain.nodes]] | ||
name = "alice" | ||
validator = true | ||
args = ["--sync warp"] | ||
|
||
[[relaychain.nodes]] | ||
name = "bob" | ||
validator = true | ||
args = ["--sync warp"] | ||
|
||
#we need at least 3 nodes for warp sync | ||
[[relaychain.nodes]] | ||
name = "charlie" | ||
validator = false | ||
db_snapshot="https://storage.googleapis.com/zombienet-db-snaps/substrate/0001-basic-warp-sync/chains-0bb3f0be2ce41b5615b224215bcc8363aa0416a6.tgz" | ||
|
||
[[relaychain.nodes]] | ||
name = "dave" | ||
validator = false | ||
db_snapshot="https://storage.googleapis.com/zombienet-db-snaps/substrate/0001-basic-warp-sync/chains-0bb3f0be2ce41b5615b224215bcc8363aa0416a6.tgz" | ||
|
||
[[relaychain.nodes]] | ||
name = "eve" | ||
validator = false | ||
db_snapshot="https://storage.googleapis.com/zombienet-db-snaps/substrate/0001-basic-warp-sync/chains-0bb3f0be2ce41b5615b224215bcc8363aa0416a6.tgz" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
Description: Warp sync | ||
Network: ./test-validators-warp-sync.toml | ||
Creds: config | ||
|
||
alice: is up within 30 seconds | ||
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. this is so cool ❤️ |
||
bob: is up within 30 seconds | ||
charlie: is up within 30 seconds | ||
dave: is up within 30 seconds | ||
eve: is up within 30 seconds | ||
|
||
alice: reports node_roles is 4 | ||
bob: reports node_roles is 4 | ||
charlie: reports node_roles is 1 | ||
dave: reports node_roles is 1 | ||
eve: reports node_roles is 1 | ||
|
||
alice: reports peers count is at least 4 within 60 seconds | ||
bob: reports peers count is at least 4 within 60 seconds | ||
charlie: reports peers count is at least 4 within 60 seconds | ||
dave: reports peers count is at least 4 within 60 seconds | ||
eve: reports peers count is at least 4 within 60 seconds | ||
|
||
# db snapshot has 12133 blocks | ||
charlie: reports block height is at least 12133 within 60 seconds | ||
dave: reports block height is at least 12133 within 60 seconds | ||
eve: reports block height is at least 12133 within 60 seconds | ||
|
||
alice: log line matches "Warp sync is complete" within 60 seconds | ||
bob: log line matches "Warp sync is complete" within 60 seconds | ||
|
||
# workaround for: https://github.com/paritytech/zombienet/issues/580 | ||
alice: count of log lines containing "Block history download is complete" is 1 within 60 seconds | ||
bob: count of log lines containing "Block history download is complete" is 1 within 60 seconds | ||
|
||
alice: reports block height is at least 12133 within 10 seconds | ||
bob: reports block height is at least 12133 within 10 seconds | ||
|
||
alice: count of log lines containing "error" is 0 within 10 seconds | ||
bob: count of log lines containing "verification failed" is 0 within 10 seconds | ||
Comment on lines
+37
to
+39
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. Do we really need this? 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. all bugs till now manifests with this log, so it is a way to check all is ok. |
||
|
||
# new block were built | ||
alice: reports block height is at least 12136 within 90 seconds | ||
bob: reports block height is at least 12136 within 90 seconds |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Refer to ../0001-basic-warp-sync/README.md for more details. This test is nearly a clone. We want to warp-sync full nodes in the presence of validators. | ||
0001-basic-warp-sync chainspec (copied) and database are reused in this test. | ||
|
||
|
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[settings] | ||
enable_tracing = false | ||
|
||
[relaychain] | ||
default_image = "{{ZOMBIENET_INTEGRATION_TEST_IMAGE}}" | ||
default_command = "substrate" | ||
|
||
chain = "gen-db" | ||
chain_spec_path = "zombienet/0003-block-building-warp-sync/chain-spec.json" | ||
|
||
#we need at least 3 nodes for warp sync | ||
[[relaychain.nodes]] | ||
name = "alice" | ||
validator = true | ||
db_snapshot="https://storage.googleapis.com/zombienet-db-snaps/substrate/0001-basic-warp-sync/chains-0bb3f0be2ce41b5615b224215bcc8363aa0416a6.tgz" | ||
|
||
[[relaychain.nodes]] | ||
name = "bob" | ||
validator = true | ||
db_snapshot="https://storage.googleapis.com/zombienet-db-snaps/substrate/0001-basic-warp-sync/chains-0bb3f0be2ce41b5615b224215bcc8363aa0416a6.tgz" | ||
|
||
[[relaychain.nodes]] | ||
name = "charlie" | ||
validator = false | ||
db_snapshot="https://storage.googleapis.com/zombienet-db-snaps/substrate/0001-basic-warp-sync/chains-0bb3f0be2ce41b5615b224215bcc8363aa0416a6.tgz" | ||
|
||
[[relaychain.nodes]] | ||
name = "dave" | ||
validator = false | ||
args = ["--sync warp"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Description: Warp sync | ||
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. I'm a little bit confused why we have this extra test. Could we not at least merge them with the other one? 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. We could, but I’d prefer to keep them separate, they are slightly different. I think having smaller tests is simpler in terms of debugging. Please refer to: #13078 (comment) for some details. |
||
Network: ./test-block-building-warp-sync.toml | ||
Creds: config | ||
|
||
alice: is up | ||
bob: is up | ||
charlie: is up | ||
dave: is up | ||
|
||
alice: reports node_roles is 4 | ||
bob: reports node_roles is 4 | ||
charlie: reports node_roles is 1 | ||
dave: reports node_roles is 1 | ||
|
||
alice: reports peers count is at least 3 within 60 seconds | ||
bob: reports peers count is at least 3 within 60 seconds | ||
charlie: reports peers count is at least 3 within 60 seconds | ||
dave: reports peers count is at least 3 within 60 seconds | ||
|
||
|
||
# db snapshot has 12133 blocks | ||
dave: reports block height is at least 1 within 60 seconds | ||
dave: reports block height is at least 12132 within 60 seconds | ||
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. Is this the block we warp sync to? Or why checking for this particular block? 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. db has 12133 blocks. |
||
dave: reports block height is at least 12133 within 60 seconds | ||
|
||
alice: reports block height is at least 12133 within 60 seconds | ||
bob: reports block height is at least 12133 within 60 seconds | ||
charlie: reports block height is at least 12133 within 60 seconds | ||
|
||
dave: log line matches "Warp sync is complete" within 60 seconds | ||
# workaround for: https://github.com/paritytech/zombienet/issues/580 | ||
dave: count of log lines containing "Block history download is complete" is 1 within 10 seconds | ||
|
||
dave: count of log lines containing "error" is 0 within 10 seconds | ||
dave: count of log lines containing "verification failed" is 0 within 10 seconds |
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.
What is this doing?
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.
disables jaeger tracing, see: paritytech/zombienet#582