Skip to content

zombienet migrate misc tests#11394

Merged
pepoviola merged 13 commits intomasterfrom
jv-migrate-misc-tests
Mar 24, 2026
Merged

zombienet migrate misc tests#11394
pepoviola merged 13 commits intomasterfrom
jv-migrate-misc-tests

Conversation

@pepoviola
Copy link
Copy Markdown
Contributor

Migrate misc test:

  • parityDb
  • malus

@pepoviola pepoviola requested review from a team as code owners March 17, 2026 10:13
@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 17, 2026
@pepoviola pepoviola changed the title [DNM] zombienet migrate misc tests zombienet migrate misc tests Mar 18, 2026

log::info!("Check lag - approval / dispute conclusion.");
let metric_checks: Vec<MetricCheckSetup> = vec![
(APPROVAL_CHECKING_FINALITY_LAG_METRIC, Box::new(|v| v <= 2.0), 0),
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.

@sandreim using <=1 cause some failures (10% aprox).

),
(
"polkadot_parachain_candidate_dispute_concluded{validity=\"invalid\"}",
Box::new(|v| v >= 0.0),
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.

This check always passes. it should be |v| v == 0.0

use-zombienet-sdk: false
test-filter: "misc::paritydb::paritydb_test"
runner-type: "large"
use-zombienet-sdk: true
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.

Do we still need this CI flag ?

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.

No, I will remove it as part of this pr.

Comment on lines +29 to +33
for validator in &validator_nodes {
validator
.wait_metric_with_timeout(NODE_ROLES_METRIC, |v| v == 4.0, 60u64)
.await
.map_err(|e| anyhow!("Validator {} role check failed: {e}", validator.name()))?;
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 put this in utils? it's duplicated in many places.

Copy link
Copy Markdown
Contributor

@lrubasze lrubasze left a comment

Choose a reason for hiding this comment

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

LGTM


builder = PARAS.into_iter().fold(builder, |acc, para_id| {
acc.with_parachain(|p| {
let pov_size = 10000*(para_id-1999);
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.

How about adding some comments where these numbers are coming from?

Comment thread polkadot/zombienet-sdk-tests/tests/misc/malus_dispute_valid_block.rs Outdated
@pepoviola
Copy link
Copy Markdown
Contributor Author

update:

  • remove use-zombienet-sdk for test definition / ci workflows.
  • add assert_nodes_are_validators for reuse in utils.

cc: @sandreim

@pepoviola pepoviola added this pull request to the merge queue Mar 24, 2026
Merged via the queue into master with commit 06bded7 Mar 24, 2026
249 of 251 checks passed
@pepoviola pepoviola deleted the jv-migrate-misc-tests branch March 24, 2026 19:11
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.

6 participants