From ac6c24165e0d60157a18c2437e33c6d62dd1f287 Mon Sep 17 00:00:00 2001 From: kamilsa Date: Mon, 20 May 2024 18:45:24 +0500 Subject: [PATCH] Update 0003, 0004 and 0011 with Compiled kagome --- .../polkadot/functional/0003-beefy-and-mmr.toml | 2 +- .../0004-parachains-garbage-candidate.toml | 2 +- .../0004-parachains-garbage-candidate.zndsl | 12 ++++++------ .../0011-async-backing-6-seconds-rate.toml | 8 ++++---- .../0011-async-backing-6-seconds-rate.zndsl | 6 +++++- 5 files changed, 17 insertions(+), 13 deletions(-) diff --git a/zombienet/polkadot/functional/0003-beefy-and-mmr.toml b/zombienet/polkadot/functional/0003-beefy-and-mmr.toml index 1edc28ff58..5ece86bcd1 100644 --- a/zombienet/polkadot/functional/0003-beefy-and-mmr.toml +++ b/zombienet/polkadot/functional/0003-beefy-and-mmr.toml @@ -15,7 +15,7 @@ name = "kagome-validator" command = "kagome" prometheus_prefix = "kagome" count = 1 -args = ["--log=beefy=debug", "--enable-offchain-indexing=true"] +args = ["--log=beefy=debug", "--enable-offchain-indexing=true", "--wasm-execution=Compiled"] [[relaychain.nodes]] name = "validator-unstable" diff --git a/zombienet/polkadot/functional/0004-parachains-garbage-candidate.toml b/zombienet/polkadot/functional/0004-parachains-garbage-candidate.toml index 0f33c9088f..e393cf0617 100644 --- a/zombienet/polkadot/functional/0004-parachains-garbage-candidate.toml +++ b/zombienet/polkadot/functional/0004-parachains-garbage-candidate.toml @@ -26,7 +26,7 @@ requests = { memory = "2G", cpu = "1" } command = "kagome" prometheus_prefix = "kagome" count = 1 - args = ["-lparachain=debug", "-lruntime=debug"] + args = ["-lparachain=debug", "-lruntime=debug", "--wasm-execution=Compiled"] [[relaychain.node_groups]] name = "malus-validator" diff --git a/zombienet/polkadot/functional/0004-parachains-garbage-candidate.zndsl b/zombienet/polkadot/functional/0004-parachains-garbage-candidate.zndsl index be2ae9504b..516c1f4954 100644 --- a/zombienet/polkadot/functional/0004-parachains-garbage-candidate.zndsl +++ b/zombienet/polkadot/functional/0004-parachains-garbage-candidate.zndsl @@ -5,28 +5,28 @@ Creds: config # Check authority status. honest-validator-0: reports node_roles is 4 honest-validator-1: reports node_roles is 4 -honest-validator-2: reports node_roles is 4 +kagome-honest-validator-0: reports node_roles is 4 malus-validator-0: reports node_roles is 4 # Parachains should be making progress even if we have up to 1/3 malicious validators. honest-validator-0: parachain 2000 block height is at least 2 within 240 seconds honest-validator-1: parachain 2001 block height is at least 2 within 180 seconds -honest-validator-2: parachain 2002 block height is at least 2 within 180 seconds +kagome-honest-validator-0: parachain 2002 block height is at least 2 within 180 seconds # Check there is an offence report after dispute conclusion honest-validator-0: system event contains "There is an offence reported" within 180 seconds honest-validator-1: system event contains "There is an offence reported" within 180 seconds -honest-validator-2: system event contains "There is an offence reported" within 180 seconds +kagome-honest-validator-0: system event contains "There is an offence reported" within 180 seconds # Check for chain reversion after dispute conclusion. honest-validator-0: log line contains "reverted due to a bad parachain block" within 180 seconds honest-validator-1: log line contains "reverted due to a bad parachain block" within 180 seconds -honest-validator-2: log line contains "reverted due to a bad parachain block" within 180 seconds +kagome-honest-validator-0: log line contains "reverted due to a bad parachain block" within 180 seconds # Check if disputes are concluded in less than 2 blocks. honest-validator-0: reports polkadot_parachain_disputes_finality_lag is lower than 2 honest-validator-1: reports polkadot_parachain_disputes_finality_lag is lower than 2 -honest-validator-2: reports polkadot_parachain_disputes_finality_lag is lower than 2 +kagome-honest-validator-0: reports polkadot_parachain_disputes_finality_lag is lower than 2 # Allow more time for malicious validator activity. sleep 30 seconds @@ -34,7 +34,7 @@ sleep 30 seconds # Check that garbage parachain blocks included by malicious validators are being disputed. honest-validator-0: reports polkadot_parachain_candidate_disputes_total is at least 2 within 15 seconds honest-validator-1: reports polkadot_parachain_candidate_disputes_total is at least 2 within 15 seconds -honest-validator-2: reports polkadot_parachain_candidate_disputes_total is at least 2 within 15 seconds +kagome-honest-validator-0: reports kagome_parachain_candidate_disputes_total is at least 2 within 15 seconds # Disputes should always end as "invalid" honest-validator-0: reports polkadot_parachain_candidate_dispute_concluded{validity="invalid"} is at least 2 within 15 seconds diff --git a/zombienet/polkadot/functional/0011-async-backing-6-seconds-rate.toml b/zombienet/polkadot/functional/0011-async-backing-6-seconds-rate.toml index d69f959138..819b406a3b 100644 --- a/zombienet/polkadot/functional/0011-async-backing-6-seconds-rate.toml +++ b/zombienet/polkadot/functional/0011-async-backing-6-seconds-rate.toml @@ -24,14 +24,14 @@ requests = { memory = "2G", cpu = "1" } [[relaychain.node_groups]] name = "alice" args = [ "-lparachain=debug" ] - count = 6 + count = 9 [[relaychain.node_groups]] - name = "kagome-alice" + name = "bob" command = "kagome" prometheus_prefix = "kagome" - args = [ "-lparachain=debug" ] - count = 6 + args = [ "-lparachain=debug", "--wasm-execution Compiled" ] + count = 3 [[parachains]] id = 2000 diff --git a/zombienet/polkadot/functional/0011-async-backing-6-seconds-rate.zndsl b/zombienet/polkadot/functional/0011-async-backing-6-seconds-rate.zndsl index 0d01af8283..c55a54f0f7 100644 --- a/zombienet/polkadot/functional/0011-async-backing-6-seconds-rate.zndsl +++ b/zombienet/polkadot/functional/0011-async-backing-6-seconds-rate.zndsl @@ -4,17 +4,21 @@ Creds: config # Check authority status. alice: reports node_roles is 4 +bob: reports node_roles is 4 # Ensure parachains are registered. alice: parachain 2000 is registered within 60 seconds -alice: parachain 2001 is registered within 60 seconds +bob: parachain 2001 is registered within 60 seconds # Ensure parachains made progress. alice: reports substrate_block_height{status="finalized"} is at least 10 within 100 seconds +bob: reports substrate_block_height{status="finalized"} is at least 10 within 100 seconds # This parachains should produce blocks at 6s clip, let's assume an 8s rate, allowing for # some slots to be missed on slower machines alice: parachain 2000 block height is at least 30 within 240 seconds +bob: parachain 2000 block height is at least 30 within 240 seconds # This should already have produced the needed blocks alice: parachain 2001 block height is at least 30 within 6 seconds +bob: parachain 2001 block height is at least 30 within 6 seconds