-
Notifications
You must be signed in to change notification settings - Fork 710
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fixes: #3165 --------- (cherry picked from commit 5ba8921) Signed-off-by: Alexandru Gheorghe <[email protected]>
- Loading branch information
Showing
4 changed files
with
87 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
polkadot/zombienet_tests/functional/0011-async-backing-6-seconds-rate.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
[settings] | ||
timeout = 1000 | ||
|
||
[relaychain] | ||
default_image = "{{ZOMBIENET_INTEGRATION_TEST_IMAGE}}" | ||
chain = "rococo-local" | ||
|
||
[relaychain.genesis.runtimeGenesis.patch.configuration.config] | ||
needed_approvals = 4 | ||
relay_vrf_modulo_samples = 6 | ||
scheduling_lookahead = 2 | ||
group_rotation_frequency = 4 | ||
|
||
[relaychain.genesis.runtimeGenesis.patch.configuration.config.async_backing_params] | ||
max_candidate_depth = 3 | ||
allowed_ancestry_len = 2 | ||
|
||
[relaychain.default_resources] | ||
limits = { memory = "4G", cpu = "2" } | ||
requests = { memory = "2G", cpu = "1" } | ||
|
||
[[relaychain.node_groups]] | ||
name = "alice" | ||
args = [ "-lparachain=debug" ] | ||
count = 12 | ||
|
||
[[parachains]] | ||
id = 2000 | ||
addToGenesis = true | ||
genesis_state_generator = "undying-collator export-genesis-state --pov-size=100000 --pvf-complexity=1" | ||
|
||
[parachains.collator] | ||
name = "collator01" | ||
image = "{{COL_IMAGE}}" | ||
command = "undying-collator" | ||
args = ["-lparachain=debug", "--pov-size=100000", "--pvf-complexity=1", "--parachain-id=2000"] | ||
|
||
[[parachains]] | ||
id = 2001 | ||
cumulus_based = true | ||
|
||
[parachains.collator] | ||
name = "collator02" | ||
image = "{{CUMULUS_IMAGE}}" | ||
command = "polkadot-parachain" | ||
args = ["-lparachain=debug"] | ||
|
||
[types.Header] | ||
number = "u64" | ||
parent_hash = "Hash" | ||
post_state = "Hash" |
20 changes: 20 additions & 0 deletions
20
polkadot/zombienet_tests/functional/0011-async-backing-6-seconds-rate.zndsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Description: Test we are producing blocks at 6 seconds clip | ||
Network: ./0011-async-backing-6-seconds-rate.toml | ||
Creds: config | ||
|
||
# Check authority status. | ||
alice: 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 | ||
|
||
# Ensure parachains made progress. | ||
alice: 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 | ||
# This should already have produced the needed blocks | ||
alice: parachain 2001 block height is at least 30 within 6 seconds | ||
|