Skip to content

Commit

Permalink
Add zombienet suite for unneeded para bug (#766)
Browse files Browse the repository at this point in the history
* Add zombie suite for unneeded para bug

* Fix test

* fmt and lint
  • Loading branch information
tmpolaczyk authored Dec 2, 2024
1 parent 215771f commit 3cc9370
Show file tree
Hide file tree
Showing 3 changed files with 514 additions and 5 deletions.
145 changes: 145 additions & 0 deletions test/configs/zombieDancelightUnneededPara.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
{
"settings": {
"timeout": 1000,
"provider": "native"
},
"relaychain": {
"chain_spec_path": "specs/tanssi-relay.json",
"default_command": "../target/release/tanssi-relay",
"default_args": [
"--no-hardware-benchmarks",
"-lparachain=debug",
"--database=paritydb",
"--no-beefy",
"--wasmtime-precompiled=wasm"
],
"genesis": {
"runtimeGenesis": {
"patch": {
"configuration": {
"config": {
"async_backing_params": {
"allowed_ancestry_len": 2,
"max_candidate_depth": 3
},
"scheduler_params": {
"scheduling_lookahead": 2,
"num_cores": 4
}
}
}
}
}
},
"nodes": [
{
"name": "alice",
"ws_port": "9947",
"validator": true
},
{
"name": "bob",
"validator": true
},
{
"name": "charlie",
"validator": true
},
{
"name": "dave",
"validator": true
}
]
},
"parachains": [
{
"id": 2000,
"chain_spec_path": "specs/single-container-template-container-2000.json",
"collators": [
{
"name": "FullNode-2000",
"validator": false,
"command": "../target/release/container-chain-simple-node",
"args": ["--no-hardware-benchmarks", "--database=paritydb", "--wasmtime-precompiled=wasm"],
"ws_port": 9949,
"p2p_port": 33049,
"prometheus_port": 33102
},
{
"name": "Collator-01",
"command": "../target/release/tanssi-node solo-chain",
"args": ["--no-hardware-benchmarks", "--database=paritydb", "--wasmtime-precompiled=wasm"],
"prometheus_port": 33102
},
{
"name": "Collator-02",
"command": "../target/release/tanssi-node solo-chain",
"args": ["--no-hardware-benchmarks", "--database=paritydb", "--wasmtime-precompiled=wasm"],
"prometheus_port": 33102
},
{
"name": "Collator-03",
"command": "../target/release/tanssi-node solo-chain",
"args": ["--no-hardware-benchmarks", "--database=paritydb", "--wasmtime-precompiled=wasm"],
"prometheus_port": 33102
},
{
"name": "Collator-04",
"command": "../target/release/tanssi-node solo-chain",
"args": ["--no-hardware-benchmarks", "--database=paritydb", "--wasmtime-precompiled=wasm"],
"prometheus_port": 33102
},
{
"name": "Collator-05",
"command": "../target/release/tanssi-node solo-chain",
"args": ["--no-hardware-benchmarks", "--database=paritydb", "--wasmtime-precompiled=wasm"],
"prometheus_port": 33102
},
{
"name": "Collator-06",
"command": "../target/release/tanssi-node solo-chain",
"args": ["--no-hardware-benchmarks", "--database=paritydb", "--wasmtime-precompiled=wasm"],
"prometheus_port": 33102
}
]
},
{
"id": 2001,
"chain_spec_path": "specs/single-container-template-container-2001.json",
"collators": [
{
"name": "FullNode-2001",
"validator": false,
"command": "../target/release/container-chain-frontier-node",
"args": ["--no-hardware-benchmarks", "--database=paritydb", "--wasmtime-precompiled=wasm"],
"ws_port": 9950,
"p2p_port": 33050
}
]
},
{
"id": 2002,
"chain_spec_path": "specs/single-container-template-container-2002.json",
"add_to_genesis": false,
"register_para": false,
"onboard_as_parachain": false,
"collators": [
{
"name": "FullNode-2002",
"validator": false,
"command": "../target/release/container-chain-simple-node",
"args": ["--no-hardware-benchmarks", "--database=paritydb", "--wasmtime-precompiled=wasm"],
"ws_port": 9951,
"p2p_port": 33051
}
]
}
],
"types": {
"Header": {
"number": "u64",
"parent_hash": "Hash",
"post_state": "Hash"
}
}
}
55 changes: 50 additions & 5 deletions test/moonwall.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,6 @@
"compile-wasm.ts compile -b tmp/tanssi-node -o wasm -c specs/single-container-tanssi-1000.json",
"compile-wasm.ts compile -b tmp/container-chain-simple-node -o wasm -c specs/single-container-template-container-2000.json"
],

"timeout": 900000,
"foundation": {
"rtUpgradePath": "../target/release/wbuild/container-chain-template-simple-runtime/container_chain_template_simple_runtime.compact.compressed.wasm",
Expand Down Expand Up @@ -586,7 +585,6 @@
"name": "zombie_dancelight_upgrade",
"testFileDir": ["suites/rt-upgrade-relay-zombienet"],
"runScripts": ["download-latest-rt-binaries-starlight.sh", "build-spec-dancelight-single.sh tmp"],

"timeout": 900000,
"foundation": {
"rtUpgradePath": "../target/release/wbuild/dancelight-runtime/dancelight_runtime.compact.compressed.wasm",
Expand Down Expand Up @@ -615,7 +613,6 @@
"compile-wasm.ts compile -b tmp/tanssi-node -o wasm -c specs/single-container-tanssi-1000.json",
"compile-wasm.ts compile -b tmp/container-chain-simple-node -o wasm -c specs/single-container-template-container-2000.json"
],

"timeout": 900000,
"foundation": {
"rtUpgradePath": "../target/release/wbuild/container-chain-template-simple-runtime/container_chain_template_simple_runtime.compact.compressed.wasm",
Expand Down Expand Up @@ -681,7 +678,6 @@
"compile-wasm.ts compile -b tmp/tanssi-node -o wasm -c specs/single-container-tanssi-1000.json",
"compile-wasm.ts compile -b tmp/container-chain-frontier-node -o wasm -c specs/single-container-template-container-2000.json"
],

"timeout": 900000,
"foundation": {
"rtUpgradePath": "../target/release/wbuild/container-chain-template-frontier-runtime/container_chain_template_frontier_runtime.compact.compressed.wasm",
Expand Down Expand Up @@ -720,7 +716,6 @@
"compile-wasm.ts compile -b tmp/tanssi-node -o wasm -c specs/single-container-tanssi-1000.json",
"compile-wasm.ts compile -b tmp/container-chain-frontier-node -o wasm -c specs/single-container-template-container-2000.json"
],

"timeout": 900000,
"foundation": {
"rtUpgradePath": "../target/release/wbuild/container-chain-template-frontier-runtime/container_chain_template_frontier_runtime.compact.compressed.wasm",
Expand Down Expand Up @@ -1081,6 +1076,56 @@
"endpoints": ["ws://127.0.0.1:8000"]
}
]
},
{
"name": "zombie_tanssi_relay_unneeded_para",
"timeout": 600000,
"testFileDir": ["suites/zombie-tanssi-relay-unneeded-para"],
"runScripts": [
"build-spec-dancelight.sh",
"compile-wasm.ts compile -b ../target/release/tanssi-relay -o wasm -c specs/tanssi-relay.json",
"compile-wasm.ts compile -b ../target/release/container-chain-simple-node -o wasm -c specs/single-container-template-container-2000.json",
"compile-wasm.ts compile -b ../target/release/container-chain-frontier-node -o wasm -c specs/single-container-template-container-2001.json"
],
"foundation": {
"type": "zombie",
"zombieSpec": {
"configPath": "./configs/zombieDancelightUnneededPara.json",
"skipBlockCheck": ["Container2002"]
}
},
"connections": [
{
"name": "Tanssi-relay",
"type": "polkadotJs",
"endpoints": ["ws://127.0.0.1:9947"]
},
{
"name": "Container2000",
"type": "polkadotJs",
"endpoints": ["ws://127.0.0.1:9949"]
},
{
"name": "Container2001",
"type": "polkadotJs",
"endpoints": ["ws://127.0.0.1:9950"]
},
{
"name": "Container2002",
"type": "polkadotJs",
"endpoints": ["ws://127.0.0.1:9951"]
},
{
"name": "ethers",
"type": "ethers",
"endpoints": ["ws://127.0.0.1:9950"]
},
{
"name": "w3",
"type": "web3",
"endpoints": ["ws://127.0.0.1:9950"]
}
]
}
]
}
Loading

0 comments on commit 3cc9370

Please sign in to comment.