Skip to content
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

(draft) Zombienet test with preopen hrmp with zombienet investigation #1616

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .gitlab/pipeline/zombienet/cumulus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,15 @@ zombienet-cumulus-0009-elastic_pov_recovery:
--local-dir="${LOCAL_DIR}"
--concurrency=1
--test="0009-elastic_pov_recovery.zndsl"

zombienet-cumulus-0010-parachains-preopen-hrmp:
extends:
- .zombienet-cumulus-common
- .zombienet-refs
- .zombienet-before-script
- .zombienet-after-script
script:
- /home/nonroot/zombie-net/scripts/ci/run-test-local-env-manager.sh
--local-dir="${LOCAL_DIR}"
--concurrency=1
--test="0010-parachains-preopen-hrmp.zndsl"
60 changes: 60 additions & 0 deletions cumulus/zombienet/tests/0010-parachains-preopen-hrmp.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
[settings]
timeout = 1000

[relaychain]
default_image = "{{RELAY_IMAGE}}"
default_command = "polkadot"
default_args = [ "-lparachain=debug,xcm=trace" ]
chain = "rococo-local"


[[relaychain.nodes]]
name = "alice"
args = [ "-lparachain=debug,runtime=debug" ]

[[relaychain.nodes]]
name = "bob"
args = [ "-lparachain=debug,runtime=debug" ]

[[relaychain.nodes]]
name = "charlie"
args = [ "-lparachain=debug,runtime=debug" ]

[[relaychain.nodes]]
name = "dave"
args = [ "-lparachain=debug,runtime=debug" ]


[[parachains]]
id = 2000
cumulus_based = true

[parachains.collator]
name = "collator01"
validator = true
image = "{{COL_IMAGE}}"
command = "test-parachain"
args = ["-lparachain=debug"]

[[parachains]]
id = 2001
cumulus_based = true

[parachains.collator]
name = "collator02"
validator = false
image = "{{COL_IMAGE}}"
command = "test-parachain"
args = ["-lparachain=debug"]

[[hrmp_channels]]
sender = 2000
recipient = 2001
max_capacity = 2
max_message_size = 262144

[[hrmp_channels]]
sender = 2001
recipient = 2000
max_capacity = 2
max_message_size = 262144
15 changes: 15 additions & 0 deletions cumulus/zombienet/tests/0010-parachains-preopen-hrmp.zndsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Description: Check that relay chain can preopen HRMP channels between parachains.
Network: ./0008-parachains-preopen-hrmp.toml
Creds: config

alice: parachain 2000 block height is at least 10 within 200 seconds
bob: parachain 2001 block height is at least 10 within 200 seconds
charlie: parachain 2000 block height is at least 10 within 200 seconds
dave: parachain 2001 block height is at least 10 within 200 seconds

# TODO: some js checks for chainstate on relay

collator01: reports block height is at least 1 within 120 seconds
collator02: reports block height is at least 1 within 120 seconds

# TODO: some js checks for chainstate on parachain
Loading