paritytech / polkadot-sdk

The Parity Polkadot Blockchain SDK
https://polkadot.network/
1.63k stars 566 forks source link

Adjust configuration in subsystem regression tests to Kusama network #3528

Closed AndreiEres closed 3 months ago

AndreiEres commented 4 months ago

Subsystem regression tests for availability read and write introduced in https://github.com/paritytech/polkadot-sdk/pull/3311.

However, their configuration was simply copied from benchmark examples. For better results, we should simulate the Kusama network.

AndreiEres commented 4 months ago

Copied from @sandreim wrote here https://github.com/paritytech/polkadot-sdk/pull/3311#discussion_r1508876931

let mut config = TestConfiguration::default();
config.n_cores = 20;

This value should be set to the number of block validators are expected to check per relay chain block. This depends on approval voting parameters. We should also factor in async backing, that is we'd expect to have 1 included candidate at every block.

We can calibrate these in the followup PR.