Files
pezkuwi-subxt/polkadot/zombienet_tests/elastic_scaling/0001-basic-3cores-6s-blocks.zndsl
T
Andrei Sandu 039d183be9 adder-collator: add velocity measurement and make elastic scaling test more robust (#4016)
Improves `adder-collator` to also compute the parachain velocity. The
velocity is defined as number of parachain blocks progressing per relay
chain block.

In this test we're asserting that the elastic parachain always
progresses by 3 blocks per RCB, while the non-elastic parachain
progresses normally - 1 block per RCB.

---------

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Co-authored-by: ordian <write@reusable.software>
2024-04-08 12:29:35 +00:00

29 lines
1.2 KiB
Plaintext

Description: Test with adder collator using 3 cores and async backing
Network: ./0001-basic-3cores-6s-blocks.toml
Creds: config
# Check authority status.
elastic-validator-0: reports node_roles is 4
elastic-validator-1: reports node_roles is 4
elastic-validator-2: reports node_roles is 4
elastic-validator-3: reports node_roles is 4
elastic-validator-4: reports node_roles is 4
# Register 2 extra cores to this some-parachain.
elastic-validator-0: js-script ./assign-core.js with "2000,0" return is 0 within 600 seconds
elastic-validator-0: js-script ./assign-core.js with "2000,1" return is 0 within 600 seconds
# Wait for 20 relay chain blocks
elastic-validator-0: reports substrate_block_height{status="best"} is at least 20 within 600 seconds
# Non elastic parachain should progress normally
some-parachain-1: count of log lines containing "Parachain velocity: 1" is at least 9 within 20 seconds
# Sanity
some-parachain-1: count of log lines containing "Parachain velocity: 2" is 0 within 20 seconds
# Parachain should progress 3 blocks per relay chain block ideally, however this measurement does
# `ceil()` on the actual velocity to account for CI overload.
some-parachain: count of log lines containing "Parachain velocity: 3" is at least 9 within 20 seconds