This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add async-backing zombienet tests #6314
Merged
bredamatt
merged 21 commits into
rh-async-backing-feature
from
bredamatt/async-backing-znet-ci-tests
Mar 1, 2023
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
2ee9e1e
Move to new branch
bredamatt 42b9900
use zombienet:v1.3.16 image
bredamatt a2c4729
change to variable
bredamatt 175b01d
Missing curly brace
bredamatt 4969f02
Update parachain progress test from 200s to 250s
bredamatt b5ef240
Merge branch 'rh-async-backing-feature' of github.com:paritytech/polk…
bredamatt ec538e5
- Add more recent gitlab changes
bredamatt 985058c
indent issue
bredamatt 9e07854
Add the correct images...again
bredamatt 60fbc4e
cargo +nightly fmt --all
bredamatt 2c9455e
- Remove PIPELINE_SCRIPTS_TAG
bredamatt 15aeb23
Merge branch 'rh-async-backing-feature' of github.com:paritytech/polk…
bredamatt a756d7a
Add readme
bredamatt f3067d6
Resolve suggestions from @alvicsam
bredamatt 0391bc8
Add async-backing-runtime-upgrade test
bredamatt caf7405
- Add "runtime=debug" argument to relaychain nodes in compatibility a…
bredamatt 0826a31
Use docker.io/paritypr/colander:master in stead of separate build
bredamatt b11a41e
Add async-backing-collator-mix test
bredamatt 8f61215
Use [[parachains.collators]]
bredamatt 2d842cf
Add missing debug argument to alice
bredamatt 4a41fcd
Move secondary image to charlie, as only alice and bob does runtime u…
bredamatt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
34 changes: 34 additions & 0 deletions
34
zombienet_tests/async_backing/001-async-backing-compatibility.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,34 @@ | ||
[settings] | ||
timeout = 1000 | ||
|
||
[relaychain] | ||
default_image = "{{ZOMBIENET_INTEGRATION_TEST_IMAGE}}" | ||
chain = "rococo-local" | ||
default_command = "polkadot" | ||
|
||
[relaychain.default_resources] | ||
limits = { memory = "4G", cpu = "2" } | ||
requests = { memory = "2G", cpu = "1" } | ||
|
||
[[relaychain.nodes]] | ||
name = "alice" | ||
args = [ "-lparachain=debug,runtime=debug"] | ||
|
||
[[relaychain.nodes]] | ||
name = "bob" | ||
image = "{{ZOMBIENET_INTEGRATION_TEST_SECONDARY_IMAGE}}" | ||
args = [ "-lparachain=debug,runtime=debug"] | ||
|
||
[[parachains]] | ||
id = 100 | ||
|
||
[parachains.collator] | ||
name = "collator01" | ||
image = "{{COL_IMAGE}}" | ||
command = "undying-collator" | ||
args = ["-lparachain=debug"] | ||
|
||
[types.Header] | ||
number = "u64" | ||
parent_hash = "Hash" | ||
post_state = "Hash" |
23 changes: 23 additions & 0 deletions
23
zombienet_tests/async_backing/001-async-backing-compatibility.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,23 @@ | ||
Description: Async Backing Compatibility Test | ||
Network: ./001-async-backing-compatibility.toml | ||
Creds: config | ||
|
||
# General | ||
alice: is up | ||
bob: is up | ||
|
||
# Check authority status | ||
alice: reports node_roles is 4 | ||
bob: reports node_roles is 4 | ||
|
||
# Check peers | ||
alice: reports peers count is at least 2 within 20 seconds | ||
bob: reports peers count is at least 2 within 20 seconds | ||
|
||
# Parachain registration | ||
alice: parachain 100 is registered within 225 seconds | ||
bob: parachain 100 is registered within 225 seconds | ||
|
||
# Ensure parachain progress | ||
alice: parachain 100 block height is at least 10 within 250 seconds | ||
bob: parachain 100 block height is at least 10 within 250 seconds |
49 changes: 49 additions & 0 deletions
49
zombienet_tests/async_backing/002-async-backing-runtime-upgrade.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,49 @@ | ||
[settings] | ||
timeout = 1000 | ||
|
||
[relaychain] | ||
default_image = "{{ZOMBIENET_INTEGRATION_TEST_IMAGE}}" | ||
chain = "rococo-local" | ||
default_command = "polkadot" | ||
|
||
[relaychain.default_resources] | ||
limits = { memory = "4G", cpu = "2" } | ||
requests = { memory = "2G", cpu = "1" } | ||
|
||
[[relaychain.nodes]] | ||
name = "alice" | ||
args = [ "-lparachain=debug,runtime=debug"] | ||
|
||
[[relaychain.nodes]] | ||
name = "bob" | ||
args = [ "-lparachain=debug,runtime=debug"] | ||
|
||
[[relaychain.nodes]] | ||
name = "charlie" | ||
image = "{{ZOMBIENET_INTEGRATION_TEST_SECONDARY_IMAGE}}" | ||
args = [ "-lparachain=debug,runtime=debug"] | ||
|
||
[[relaychain.nodes]] | ||
name = "dave" | ||
image = "{{ZOMBIENET_INTEGRATION_TEST_SECONDARY_IMAGE}}" | ||
args = [ "-lparachain=debug,runtime=debug"] | ||
|
||
[[parachains]] | ||
id = 100 | ||
addToGenesis = true | ||
|
||
[parachains.collator] | ||
name = "collator02" | ||
image = "{{COL_IMAGE}}" | ||
command = "undying-collator" | ||
args = ["-lparachain=debug"] | ||
|
||
[[parachains]] | ||
id = 101 | ||
addToGenesis = true | ||
|
||
[parachains.collator] | ||
name = "collator02" | ||
image = "{{COL_IMAGE}}" | ||
command = "undying-collator" | ||
args = ["-lparachain=debug"] |
43 changes: 43 additions & 0 deletions
43
zombienet_tests/async_backing/002-async-backing-runtime-upgrade.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,43 @@ | ||
Description: Async Backing Runtime Upgrade Test | ||
Network: ./002-async-backing-runtime-upgrade.toml | ||
Creds: config | ||
|
||
# General | ||
alice: is up | ||
bob: is up | ||
charlie: is up | ||
dave: is up | ||
|
||
# Check peers | ||
alice: reports peers count is at least 3 within 20 seconds | ||
bob: reports peers count is at least 3 within 20 seconds | ||
|
||
# Parachain registration | ||
alice: parachain 100 is registered within 225 seconds | ||
bob: parachain 100 is registered within 225 seconds | ||
charlie: parachain 100 is registered within 225 seconds | ||
dave: parachain 100 is registered within 225 seconds | ||
alice: parachain 101 is registered within 225 seconds | ||
bob: parachain 101 is registered within 225 seconds | ||
charlie: parachain 101 is registered within 225 seconds | ||
dave: parachain 101 is registered within 225 seconds | ||
|
||
# Ensure parachain progress | ||
alice: parachain 100 block height is at least 10 within 250 seconds | ||
bob: parachain 100 block height is at least 10 within 250 seconds | ||
|
||
# Runtime upgrade (according to previous runtime tests, avg. is 30s) | ||
alice: run ../misc/0002-download-polkadot-from-pr.sh with "{{POLKADOT_PR_BIN_URL}}" within 40 seconds | ||
bob: run ../misc/0002-download-polkadot-from-pr.sh with "{{POLKADOT_PR_BIN_URL}}" within 40 seconds | ||
|
||
# Bootstrap the runtime upgrade | ||
sleep 30 seconds | ||
|
||
alice: restart after 5 seconds | ||
bob: restart after 5 seconds | ||
|
||
alice: is up within 10 seconds | ||
bob: is up within 10 seconds | ||
|
||
alice: parachain 100 block height is at least 10 within 250 seconds | ||
bob: parachain 101 block height is at least 10 within 250 seconds |
40 changes: 40 additions & 0 deletions
40
zombienet_tests/async_backing/003-async-backing-collator-mix.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,40 @@ | ||
[settings] | ||
timeout = 1000 | ||
|
||
[relaychain] | ||
default_image = "{{ZOMBIENET_INTEGRATION_TEST_IMAGE}}" | ||
chain = "rococo-local" | ||
default_command = "polkadot" | ||
|
||
[relaychain.default_resources] | ||
limits = { memory = "4G", cpu = "2" } | ||
requests = { memory = "2G", cpu = "1" } | ||
|
||
[[relaychain.nodes]] | ||
name = "alice" | ||
args = [ "-lparachain=debug"] | ||
|
||
[[relaychain.nodes]] | ||
name = "bob" | ||
image = "{{ZOMBIENET_INTEGRATION_TEST_SECONDARY_IMAGE}}" | ||
args = [ "-lparachain=debug"] | ||
|
||
[[parachains]] | ||
id = 100 | ||
|
||
[[parachains.collators]] | ||
name = "collator01" | ||
image = "docker.io/paritypr/colander:master" | ||
command = "undying-collator" | ||
args = ["-lparachain=debug"] | ||
|
||
[[parachains.collators]] | ||
name = "collator02" | ||
image = "{{COL_IMAGE}}" | ||
command = "undying-collator" | ||
args = ["-lparachain=debug"] | ||
|
||
[types.Header] | ||
number = "u64" | ||
parent_hash = "Hash" | ||
post_state = "Hash" |
21 changes: 21 additions & 0 deletions
21
zombienet_tests/async_backing/003-async-backing-collator-mix.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,21 @@ | ||
Description: Async Backing Collator Mix Test | ||
Network: ./003-async-backing-collator-mix.toml | ||
Creds: config | ||
|
||
# General | ||
alice: is up | ||
bob: is up | ||
charlie: is up | ||
dave: is up | ||
|
||
# Check peers | ||
alice: reports peers count is at least 3 within 20 seconds | ||
bob: reports peers count is at least 3 within 20 seconds | ||
|
||
# Parachain registration | ||
alice: parachain 100 is registered within 225 seconds | ||
bob: parachain 100 is registered within 225 seconds | ||
|
||
# Ensure parachain progress | ||
alice: parachain 100 block height is at least 10 within 250 seconds | ||
bob: parachain 100 block height is at least 10 within 250 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# async-backing zombienet tests | ||
|
||
This directory contains zombienet tests made explicitly for the async-backing feature branch. | ||
|
||
## coverage | ||
|
||
- Network protocol upgrade deploying both master and async branch (compatibility). | ||
- Runtime ugprade while running both master and async backing branch nodes. | ||
- Async backing test with a mix of collators collating via async backing and sync backing. |
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.
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.
why restart?
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.
Took this from the previous runtime-upgrade file. If it is not required, happy to remove it.
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.
yeah, restarts are not required after a runtime upgrade