Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zombienet upgrade test #5794

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Zombienet upgrade test #5794

wants to merge 12 commits into from

Conversation

pepoviola
Copy link
Contributor

Add zombienet test for upgrading runtime

  • From 2 nodes network using:
    • Latest released version
    • Version from pr

We use a version built in the pipeline (of rococo-runtime) with the spec_version incremented to perform the upgrade and verify then the block production and the expected version.

Thx!

NOTE: This tests is behind the zombienet feature and you can run with

RUST_LOG=zombie=debug ZOMBIE_PROVIDER=native cargo test -p polkadot-zombienet-sdk-tests --features zombienet -- smoke::runtime_upgrade --nocapture

@pepoviola pepoviola added R0-silent Changes should not be mentioned in any release notes T10-tests This PR/Issue is related to tests. labels Sep 21, 2024
@pepoviola pepoviola requested a review from a team as a code owner September 21, 2024 07:41
@pepoviola pepoviola changed the title [DNM] Zombienet upgrade test Zombienet upgrade test Sep 24, 2024
Copy link
Contributor

@alexggh alexggh left a comment

Choose a reason for hiding this comment

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

Nice thank you, we can we use this as a scaffolding for adding the checks I suggested here: #5817, can be done as a follow-up.

spec_name: create_runtime_str!("rococo"),
impl_name: create_runtime_str!("parity-rococo-v2.0"),
authoring_version: 0,
spec_version: 1_016_000,
Copy link
Contributor

Choose a reason for hiding this comment

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

I would extract out:

CONST SPEC_VERSION: 1_015_000 and then here I would use SPEC_VERSION + 1.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

can extract out, I will leave this way.

 error: only numeric literals (e.g. `10`) are supported here
     --> polkadot-sdk/polkadot/runtime/rococo/src/lib.rs:187:16
      |
  187 |     spec_version: SPEC_VERSION,

Thx!

.with_node(|node| {
node.with_name("latest-release")
// used for getting the chain-spec
.with_image("parity/polkadot:latest")
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we somehow use the exact runtime-image that roco chain is currently using, or at least the last stable release version, since the upgrades happened all at once.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

parity/polkadot:latest this tag should point to the latest release (stable).
image

Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes T10-tests This PR/Issue is related to tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants