Skip to content

ZN test for asserting building Parablocks on RC with session change#10204

Merged
skunert merged 14 commits intomasterfrom
cyon/assert_builds_on_rc_parent_in_old_session
Nov 25, 2025
Merged

ZN test for asserting building Parablocks on RC with session change#10204
skunert merged 14 commits intomasterfrom
cyon/assert_builds_on_rc_parent_in_old_session

Conversation

@Sajjon
Copy link
Copy Markdown
Contributor

@Sajjon Sajjon commented Nov 4, 2025

Edit by @skunert (edited because original test said not to merge):

This adds a zombienet test that verifies that parachains running with a relay parent offset will not build on relay parents that have a session change in the descendant blocks.

The reason is that candidates that were build in a past session are dropped on session boundary.

@Sajjon Sajjon requested a review from skunert November 4, 2025 15:29
Copy link
Copy Markdown
Contributor

@skunert skunert left a comment

Choose a reason for hiding this comment

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

Overall looks like its checking what its supposed to check (except the comment). These complicated conditions are not super easy to check sadly, so we need this boilerplate.

@Sajjon Sajjon requested a review from skunert November 6, 2025 08:56
@Sajjon Sajjon force-pushed the cyon/assert_builds_on_rc_parent_in_old_session branch from a856389 to 0bc8f94 Compare November 7, 2025 09:11
@skunert skunert added the T10-tests This PR/Issue is related to tests. label Nov 20, 2025
@skunert
Copy link
Copy Markdown
Contributor

skunert commented Nov 20, 2025

/cmd prdoc --audience node_dev --bump minor

@skunert skunert marked this pull request as ready for review November 20, 2025 09:46
@skunert skunert changed the title [NEVER MERGE] ZN test for asserting building Parablocks on RC with session change ZN test for asserting building Parablocks on RC with session change Nov 20, 2025
@skunert skunert added the R0-no-crate-publish-required The change does not require any crates to be re-published. label Nov 20, 2025
@skunert
Copy link
Copy Markdown
Contributor

skunert commented Nov 20, 2025

Simplified the logic a bit and merged it with the original offset assertion. Also extended the block amount so we see some more session changes.

@skunert skunert requested review from a team and sandreim November 20, 2025 09:58
@paritytech-workflow-stopper
Copy link
Copy Markdown

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/19532694750
Failed job name: cargo-clippy

Copy link
Copy Markdown
Contributor

@sandreim sandreim left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@lexnv lexnv left a comment

Choose a reason for hiding this comment

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

Nice! 🙏

Comment thread cumulus/zombienet/zombienet-sdk-helpers/src/lib.rs Outdated
Comment thread cumulus/zombienet/zombienet-sdk-helpers/src/lib.rs Outdated
@skunert skunert enabled auto-merge November 25, 2025 15:17
@skunert skunert added this pull request to the merge queue Nov 25, 2025
Merged via the queue into master with commit 8e9ea65 Nov 25, 2025
228 of 229 checks passed
@skunert skunert deleted the cyon/assert_builds_on_rc_parent_in_old_session branch November 25, 2025 19:24
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants