Skip to content
Snippets Groups Projects
Unverified Commit 9f515e02 authored by Serban Iorga's avatar Serban Iorga Committed by GitHub
Browse files

Fix and re-enable `zombienet-substrate-0002-validators-warp-sync` (#6154)

Closes https://github.com/paritytech/polkadot-sdk/issues/5974

Fixed as per
https://github.com/paritytech/polkadot-sdk/issues/5974#issuecomment-2426463359
parent 95483a88
Branches
No related merge requests found
Pipeline #502203 waiting for manual action with stages
in 24 minutes and 13 seconds
......@@ -70,11 +70,11 @@ zombienet-substrate-0001-basic-warp-sync:
--local-dir="${LOCAL_DIR}/0001-basic-warp-sync"
--test="test-warp-sync.zndsl"
.zombienet-substrate-0002-validators-warp-sync:
zombienet-substrate-0002-validators-warp-sync:
extends:
- .zombienet-substrate-warp-sync-common
before_script:
- !reference [.zombienet-substrate-warp-sync-common, before_script]
- !reference [ .zombienet-substrate-warp-sync-common, before_script ]
- cp --remove-destination ${LOCAL_DIR}/0001-basic-warp-sync/chain-spec.json ${LOCAL_DIR}/0002-validators-warp-sync
script:
- /home/nonroot/zombie-net/scripts/ci/run-test-local-env-manager.sh
......@@ -85,7 +85,7 @@ zombienet-substrate-0003-block-building-warp-sync:
extends:
- .zombienet-substrate-warp-sync-common
before_script:
- !reference [.zombienet-substrate-warp-sync-common, before_script]
- !reference [ .zombienet-substrate-warp-sync-common, before_script ]
- cp --remove-destination ${LOCAL_DIR}/0001-basic-warp-sync/chain-spec.json ${LOCAL_DIR}/0003-block-building-warp-sync
script:
- /home/nonroot/zombie-net/scripts/ci/run-test-local-env-manager.sh
......
......@@ -11,12 +11,12 @@ chain_spec_path = "chain-spec.json"
[[relaychain.nodes]]
name = "alice"
validator = true
args = ["--sync warp"]
args = ["--log=beefy=debug", "--sync warp"]
[[relaychain.nodes]]
name = "bob"
validator = true
args = ["--sync warp"]
args = ["--log=beefy=debug", "--sync warp"]
# we need at least 3 nodes for warp sync
[[relaychain.nodes]]
......
......@@ -31,11 +31,9 @@ bob: log line matches "Block history download is complete" within 120 seconds
alice: reports block height is at least {{DB_BLOCK_HEIGHT}} within 10 seconds
bob: reports block height is at least {{DB_BLOCK_HEIGHT}} within 10 seconds
alice: reports substrate_beefy_best_block is at least {{DB_BLOCK_HEIGHT}} within 180 seconds
bob: reports substrate_beefy_best_block is at least {{DB_BLOCK_HEIGHT}} within 180 seconds
alice: reports substrate_beefy_best_block is greater than {{DB_BLOCK_HEIGHT}} within 180 seconds
bob: reports substrate_beefy_best_block is greater than {{DB_BLOCK_HEIGHT}} within 180 seconds
# In the worst case scenario, the validators should vote on 1 mandatory block each 6 seconds. And 1 era = 200 blocks.
alice: reports substrate_beefy_best_block is at least {{200*180/6}} within 180 seconds
bob: reports substrate_beefy_best_block is at least {{200*180/6}} within 180 seconds
alice: count of log lines containing "error" is 0 within 10 seconds
bob: count of log lines containing "verification failed" is 0 within 10 seconds
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment