Skip to content

Commit

Permalink
Update 0003, 0004 and 0011 with Compiled kagome
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilsa committed May 20, 2024
1 parent f457b23 commit ac6c241
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion zombienet/polkadot/functional/0003-beefy-and-mmr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,36 @@ 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

# 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ac6c241

Please sign in to comment.