-
Notifications
You must be signed in to change notification settings - Fork 729
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
509 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
165 changes: 165 additions & 0 deletions
165
polkadot/zombienet_tests/0004-basic-beefy-warp-sync/chain-spec.json
Large diffs are not rendered by default.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
polkadot/zombienet_tests/0004-basic-beefy-warp-sync/generate-warp-sync-database.toml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# this file is not intended to be executed in CI stage | ||
[relaychain] | ||
default_image = "docker.io/parity/polkadot:latest" | ||
default_command = "/home/serban/workplace/sources/polkadot-sdk/target/release/polkadot" | ||
|
||
# refer to ./README.md for more details on how to create snapshot and spec | ||
chain = "rococo-local" | ||
chain_spec_path = "/home/serban/workplace/snapshots/db-test-gen-main/rococo-local.json" | ||
|
||
[[relaychain.nodes]] | ||
name = "alice" | ||
validator = true | ||
|
||
[[relaychain.nodes]] | ||
name = "bob" | ||
validator = true |
37 changes: 37 additions & 0 deletions
37
polkadot/zombienet_tests/0004-basic-beefy-warp-sync/test-warp-sync.toml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[settings] | ||
enable_tracing = false | ||
|
||
#[relaychain] | ||
##default_image = "docker.io/parity/polkadot:latest" | ||
##default_command = "/home/serban/workplace/sources/polkadot-sdk/target/release/polkadot" | ||
# | ||
#chain = "rococo-local" | ||
#chain_spec_path = "/home/serban/workplace/snapshots/db-test-gen-main/rococo-local.json" | ||
|
||
[relaychain] | ||
default_image = "{{ZOMBIENET_INTEGRATION_TEST_IMAGE}}" | ||
default_command = "polkadot" | ||
|
||
chain = "rococo-local" | ||
chain_spec_path = "chain-spec.json" | ||
|
||
[[relaychain.nodes]] | ||
name = "alice" | ||
validator = true | ||
db_snapshot="https://storage.googleapis.com/zombienet-db-snaps/substrate/0004-basic-beefy-warp-sync/chains.tgz" | ||
|
||
[[relaychain.nodes]] | ||
name = "bob" | ||
validator = true | ||
db_snapshot="https://storage.googleapis.com/zombienet-db-snaps/substrate/0004-basic-beefy-warp-sync/chains.tgz" | ||
|
||
#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/0004-basic-beefy-warp-sync/chains.tgz" | ||
|
||
[[relaychain.nodes]] | ||
name = "dave" | ||
validator = false | ||
args = ["--sync warp"] |
31 changes: 31 additions & 0 deletions
31
polkadot/zombienet_tests/0004-basic-beefy-warp-sync/test-warp-sync.zndsl
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Description: Warp sync | ||
Network: ./test-warp-sync.toml | ||
Creds: config | ||
|
||
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 #17751 blocks | ||
alice: reports block height is at least 17751 within 60 seconds | ||
bob: reports block height is at least 17751 within 60 seconds | ||
charlie: reports block height is at least 17751 within 60 seconds | ||
|
||
dave: reports block height is at least 1 within 60 seconds | ||
dave: reports block height is at least 17750 within 60 seconds | ||
dave: reports block height is at least 17751 within 60 seconds | ||
|
||
dave: log line matches "Warp sync is complete" within 60 seconds | ||
dave: log line matches "Block history download is complete" within 60 seconds | ||
dave: log line matches "🥩 Concluded mandatory round #17715" within 60 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 |
This file contains 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
165 changes: 165 additions & 0 deletions
165
substrate/zombienet/0004-basic-beefy-warp-sync/chain-spec.json
Large diffs are not rendered by default.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
substrate/zombienet/0004-basic-beefy-warp-sync/generate-warp-sync-database.toml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# this file is not intended to be executed in CI stage | ||
[relaychain] | ||
default_image = "docker.io/parity/polkadot:latest" | ||
default_command = "/home/serban/workplace/sources/polkadot-sdk/target/release/polkadot" | ||
|
||
# refer to ./README.md for more details on how to create snapshot and spec | ||
chain = "rococo-local" | ||
chain_spec_path = "/home/serban/workplace/snapshots/db-test-gen-main/rococo-local.json" | ||
|
||
[[relaychain.nodes]] | ||
name = "alice" | ||
validator = true | ||
|
||
[[relaychain.nodes]] | ||
name = "bob" | ||
validator = true |
37 changes: 37 additions & 0 deletions
37
substrate/zombienet/0004-basic-beefy-warp-sync/test-warp-sync.toml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[settings] | ||
enable_tracing = false | ||
|
||
#[relaychain] | ||
##default_image = "docker.io/parity/polkadot:latest" | ||
##default_command = "/home/serban/workplace/sources/polkadot-sdk/target/release/polkadot" | ||
# | ||
#chain = "rococo-local" | ||
#chain_spec_path = "/home/serban/workplace/snapshots/db-test-gen-main/rococo-local.json" | ||
|
||
[relaychain] | ||
default_image = "{{ZOMBIENET_INTEGRATION_TEST_IMAGE}}" | ||
default_command = "polkadot" | ||
|
||
chain = "rococo-local" | ||
chain_spec_path = "chain-spec.json" | ||
|
||
[[relaychain.nodes]] | ||
name = "alice" | ||
validator = true | ||
db_snapshot="https://storage.googleapis.com/zombienet-db-snaps/substrate/0004-basic-beefy-warp-sync/chains.tgz" | ||
|
||
[[relaychain.nodes]] | ||
name = "bob" | ||
validator = true | ||
db_snapshot="https://storage.googleapis.com/zombienet-db-snaps/substrate/0004-basic-beefy-warp-sync/chains.tgz" | ||
|
||
#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/0004-basic-beefy-warp-sync/chains.tgz" | ||
|
||
[[relaychain.nodes]] | ||
name = "dave" | ||
validator = false | ||
args = ["--sync warp"] |
31 changes: 31 additions & 0 deletions
31
substrate/zombienet/0004-basic-beefy-warp-sync/test-warp-sync.zndsl
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Description: Warp sync | ||
Network: ./test-warp-sync.toml | ||
Creds: config | ||
|
||
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 #17751 blocks | ||
alice: reports block height is at least 17751 within 60 seconds | ||
bob: reports block height is at least 17751 within 60 seconds | ||
charlie: reports block height is at least 17751 within 60 seconds | ||
|
||
dave: reports block height is at least 1 within 60 seconds | ||
dave: reports block height is at least 17750 within 60 seconds | ||
dave: reports block height is at least 17751 within 60 seconds | ||
|
||
dave: log line matches "Warp sync is complete" within 60 seconds | ||
dave: log line matches "Block history download is complete" within 60 seconds | ||
dave: log line matches "🥩 Concluded mandatory round #17715" within 60 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 |