Skip to content

[zombienet] Fix flaky tests#11455

Merged
pepoviola merged 14 commits intomasterfrom
fix-polkadot-flaky-tests
Mar 24, 2026
Merged

[zombienet] Fix flaky tests#11455
pepoviola merged 14 commits intomasterfrom
fix-polkadot-flaky-tests

Conversation

@pepoviola
Copy link
Copy Markdown
Contributor

changes to fix flaky tests.

@pepoviola pepoviola added R0-no-crate-publish-required The change does not require any crates to be re-published. T10-tests This PR/Issue is related to tests. T18-zombienet_tests Trigger zombienet CI tests. labels Mar 20, 2026
@pepoviola pepoviola changed the title [DNM] check block production of paras with assert_para_throughput and add w… Fix flaky tests Mar 23, 2026
@pepoviola pepoviola changed the title Fix flaky tests [zombienet] Fix flaky tests Mar 23, 2026
@pepoviola pepoviola requested review from alindima and sandreim March 23, 2026 15:00
Comment thread polkadot/zombienet-sdk-tests/tests/functional/coretime_shared_core.rs Outdated
Comment on lines +116 to +117
let para_throughput: [(ParaId, Range<u32>); 4] = PARAS.map(|id| (ParaId::from(id), 2..6));
assert_para_throughput(&relay_client, 16, para_throughput).await?;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let para_throughput: [(ParaId, Range<u32>); 4] = PARAS.map(|id| (ParaId::from(id), 2..6));
assert_para_throughput(&relay_client, 16, para_throughput).await?;
assert_para_throughput(&relay_client, 16, [(ParaId::from(id), 2..6).await?;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review @bkchr, maybe I'm missing something but we need to map the paras to create the tuple (paraId, range), that why I created the para_throughput first (maybe not the best naming 🤔).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we please make this assert a higher number of parablocks? 2 is quite a low number and does not give me a high confidence

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something like 10?

Co-authored-by: Bastian Köcher <git@kchr.de>
@pepoviola
Copy link
Copy Markdown
Contributor Author

/cmd fmt

Comment thread polkadot/zombienet-sdk-tests/tests/functional/coretime_shared_core.rs Outdated
Comment thread polkadot/zombienet-sdk-tests/tests/functional/beefy_and_mmr.rs
Comment thread polkadot/zombienet-sdk-tests/tests/functional/coretime_shared_core.rs Outdated
@pepoviola pepoviola enabled auto-merge March 24, 2026 21:52
@pepoviola pepoviola added this pull request to the merge queue Mar 24, 2026
Merged via the queue into master with commit 673d811 Mar 24, 2026
269 of 273 checks passed
@pepoviola pepoviola deleted the fix-polkadot-flaky-tests branch March 24, 2026 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

R0-no-crate-publish-required The change does not require any crates to be re-published. T10-tests This PR/Issue is related to tests. T18-zombienet_tests Trigger zombienet CI tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants