Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
ad5d721
zombienet/pov-recovery: do not setup reserved connection for collators
Sep 30, 2022
8e1ba07
connect eve to dave
Sep 30, 2022
8ae8d53
REVERTME: diener update --polkadot --branch ao-recovery-try-connect
Sep 30, 2022
f8d16c3
REVERTME: cargo update -p sp-io
Oct 4, 2022
0d66b70
REVERTME: cargo update -p sp-io and hope for the best
Oct 4, 2022
788e355
pass reserved flags for eve after --
Oct 4, 2022
6090379
Revert "REVERTME: cargo update -p sp-io and hope for the best"
Oct 5, 2022
2d8c568
Revert "REVERTME: cargo update -p sp-io"
Oct 5, 2022
dc05eb8
Merge branch 'master' into ao-recovery-try-connect
Oct 5, 2022
d48e1e6
REVERTME: cargo update -p sp-io
Oct 5, 2022
528d02f
Revert "REVERTME: cargo update -p sp-io"
Oct 6, 2022
638e501
Merge branch 'master' into ao-recovery-try-connect
Oct 6, 2022
f1cc66c
REVERTME: cargo update -p sp-io
Oct 6, 2022
02838a6
REVERTME: cargo update -p sp-io
Oct 7, 2022
3ccb759
try some logs and flags
Oct 7, 2022
4dd7cd6
apply some suggestions from Sebastian
Oct 7, 2022
0019174
let Charlie produce blocks
Oct 7, 2022
beaa1da
Revert "REVERTME: cargo update -p sp-io"
Oct 7, 2022
8910d24
git checkout master Cargo.lock
Oct 7, 2022
d2247fd
Revert "REVERTME: diener update --polkadot --branch ao-recovery-try-c…
Oct 7, 2022
3f4a571
zombienet/pov-recovery: 4 validators
Oct 7, 2022
3cc9182
REVERTME: diener update --polkadot --branch ao-recovery-try-connect &…
Oct 7, 2022
8896d82
Revert "REVERTME: diener update --polkadot --branch ao-recovery-try-c…
Oct 7, 2022
6f10c8c
make sure it is not due to backing group connections
Oct 7, 2022
d105940
clean up flags
Oct 7, 2022
199333d
try no-mdns on collators, limit out-peers on validators
Oct 8, 2022
312a480
try no-mdns on validators and bob
Oct 8, 2022
a78ec5f
fix bob flag
Oct 8, 2022
00cb341
try 7 validators (3 chunks needed for recovery)
Oct 8, 2022
37fef29
reserved-only on validators
Oct 9, 2022
f35778e
reserved-only on alice and charlie
Oct 9, 2022
29d8b57
explicitly pass log targets
Oct 9, 2022
b19bf62
rm default_args
Oct 9, 2022
3e0a4dd
Merge branch 'master' into ao-recovery-try-connect
Oct 10, 2022
f7886f1
parachain=debug and cumulus-pov-recovery=debug
Oct 10, 2022
3a815a8
try another idea
Oct 11, 2022
025877d
try 13 validators (4 chunks required)
Oct 11, 2022
2fe8401
bump block height to 20
Oct 14, 2022
c768d1c
Register parachain after 20sec, increase block target to 20
skunert Oct 14, 2022
581b3b9
bump zombienet version
pepoviola Oct 14, 2022
ee32416
remove debug
pepoviola Oct 17, 2022
cd8e800
bump zombienet
pepoviola Oct 17, 2022
05f51db
Merge remote-tracking branch 'origin/master' into ao-recovery-try-con…
Oct 18, 2022
1b04f18
update lockfile for {"polkadot", "substrate"}
Oct 18, 2022
2058c1e
Merge remote-tracking branch 'origin/master' into ao-recovery-try-con…
bkchr Oct 19, 2022
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
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ variables:
CI_IMAGE: "paritytech/ci-linux:production"
DOCKER_OS: "debian:stretch"
ARCH: "x86_64"
ZOMBIENET_IMAGE: "docker.io/paritytech/zombienet:v1.2.59"
ZOMBIENET_IMAGE: "docker.io/paritytech/zombienet:v1.2.80"

.collect-artifacts: &collect-artifacts
artifacts:
Expand Down
25 changes: 17 additions & 8 deletions zombienet_tests/0002-pov_recovery.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,20 @@ Network: ./0002-pov_recovery.toml
Creds: config


alice: is up
bob: is up
charlie: is up
dave: is up
eve: is up
alice: parachain 2000 is registered within 225 seconds
dave: reports block height is at least 7 within 250 seconds
eve: reports block height is at least 7 within 250 seconds
validator-0: is up
validator-1: is up
validator-2: is up
validator-3: is up
alice: is up within 60 seconds
bob: is up within 60 seconds
charlie: is up within 60 seconds

# wait 30 blocks and register parachain
validator-3: reports block height is at least 30 within 250 seconds
validator-0: js-script ./register-para.js with "2000" within 240 seconds
validator-0: parachain 2000 is registered within 300 seconds

# check block production
bob: reports block height is at least 20 within 600 seconds
alice: reports block height is at least 20 within 600 seconds
charlie: reports block height is at least 20 within 600 seconds
47 changes: 27 additions & 20 deletions zombienet_tests/0002-pov_recovery.toml
Original file line number Diff line number Diff line change
@@ -1,44 +1,51 @@
[relaychain]
default_image = "{{RELAY_IMAGE}}"
default_command = "polkadot"
default_args = [ "-lparachain=debug" ]

chain = "rococo-local"

[[relaychain.nodes]]
name = "alice"
validator = true
[relaychain.genesis.runtime.runtime_genesis_config.configuration.config]
# set parameters such that collators only connect to 1 validator as a backing group
max_validators_per_core = 1
group_rotation_frequency = 100 # 10 mins

[[relaychain.nodes]]
name = "bob"
validator = true
name = "ferdie" # bootnode fullnode
validator = false

[[relaychain.node_groups]]
name = "validator"
count = 13
args = ["-lparachain::availability=trace,sync=debug,parachain=debug", "--reserved-only", "--reserved-nodes {{'ferdie'|zombie('multiAddress')}}"]

[[parachains]]
id = 2000
cumulus_based = true
register_para = false
add_to_genesis = false

# run charlie as parachain collator
# run bob as a parachain collator who is the only one producing blocks
# alice and charlie will need to recover the pov blocks through availability recovery
[[parachains.collators]]
name = "charlie"
validator = true
name = "bob"
validator = true # collator
image = "{{COL_IMAGE}}"
command = "test-parachain"
args = ["-lparachain=debug"]
args = ["--disable-block-announcements"]

# Run dave as parachain collator and eve as parachain full node
#
# They will need to recover the pov blocks through availability recovery.
# run alice as a parachain collator who does not produce blocks
# alice is a bootnode for bob and charlie
[[parachains.collators]]
name = "dave"
validator = true
name = "alice"
validator = true # collator
image = "{{COL_IMAGE}}"
command = "test-parachain"
args = ["--reserved-only", "--reserved-nodes {{'charlie'|zombie('multiAddress')}}", "--use-null-consensus", "--disable-block-announcements"]
args = ["-lparachain::availability=trace,sync=debug,parachain=debug,cumulus-pov-recovery=debug", "--use-null-consensus", "--disable-block-announcements", "--bootnodes {{'bob'|zombie('multiAddress')}}", "--", "--reserved-only", "--reserved-nodes {{'ferdie'|zombie('multiAddress')}}"]

# run eve as parachain full node that is only connected to dave
# run eve as a parachain full node
[[parachains.collators]]
name = "eve"
validator = false
name = "charlie"
validator = false # full node
image = "{{COL_IMAGE}}"
command = "test-parachain"
args = ["--reserved-only", "--reserved-nodes {{'charlie'|zombie('multiAddress')}}", "--use-null-consensus", "--disable-block-announcements"]
args = ["-lparachain::availability=trace,sync=debug,parachain=debug,cumulus-pov-recovery=debug", "--disable-block-announcements", "--bootnodes {{'bob'|zombie('multiAddress')}}","--", "--reserved-only", "--reserved-nodes {{'ferdie'|zombie('multiAddress')}}"]
9 changes: 9 additions & 0 deletions zombienet_tests/register-para.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
async function run(nodeName, networkInfo, args) {
const paraIdStr = args[0];
const para = networkInfo.paras[paraIdStr];
const relayNode = networkInfo.relay[0];

await zombie.registerParachain(parseInt(paraIdStr,10),para.wasmPath, para.statePath, relayNode.wsUri, "//Alice", true);
}

module.exports = { run }