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

Release node v0.2 and runtime v0.2 (2000) #88

Closed
2 of 15 tasks
Daanvdplas opened this issue Jun 5, 2024 · 0 comments
Closed
2 of 15 tasks

Release node v0.2 and runtime v0.2 (2000) #88

Daanvdplas opened this issue Jun 5, 2024 · 0 comments

Comments

@Daanvdplas
Copy link
Collaborator

Daanvdplas commented Jun 5, 2024

Issues need to be completed before doing release:

Release Plan

Release Readiness

https://github.com/paritytech/polkadot-sdk/blob/master/cumulus/docs/release.md

Create release PR which:

  • sets node version
  • /node/Cargo.toml set to 0.2.0
  • update version in Jenkinsfile
  • Sets runtime package version + spec_version
  • /runtime/testnet/Cargo.toml set to 0.2.0
  • /runtime/testnet/src/lib.rs: spec_version set to 000_002_000
  • Runtime migrations: check Polkadot prdocs and corresponding release branch for any required migrations introduced

Testing

  • Test node peers/syncs with testnet parachain: ./target/release/pop-node --chain node/chain_specs/pop-paseo.raw.json or ./target/release/pop-node --chain node/chain-specs/pop-paseo.raw.json -- --chain paseo.raw.json`
  • synced #... blocks
  • shown to be peered with collators
  • Test runtime upgrade locally (no existing state):

Pop Network current

  1. Switch to commit of last release and build pop node.
  2. Start network with pop u p -f TODO.toml -r v1.8.0 -v and:
  • verify pop node version -- rpc calls -> system -> version()
  • verify runtime version -- rpc calls -> state -> getRuntimeVersion()

Leave the network running.

Pop new release

  1. Switch to your branch where you have bumped the versions and rebuild.
  2. In Activity Monitor on Mac, find the pop-node process and force quit. The network will still be running, but without the collator so no pop blocks. Or killall pop-node.
    Return to the terminal where you launched pop up and copy the command shown in the output which was used to launch the pop-node collator.
  3. In another terminal, run this copied command. This will launch the newly built node (new release) and have it use previously generated chainspecs, effectively allowing it to take over running the network with latest release. Ensure that blocks continue to be produced and verify node version (see above).
  4. Upgrade the chain to the new runtime release -- can be found in target/release/wbuild/testnet_runtime/testnet_runtime.compact.compressed.wasm
  5. Verify successful runtime upgrade:
  • verify pop node version -- (see above)
  • verify runtime version -- (see above)
  • verify migrations have been executed successfully
  • verify chain is running
  • Test runtime upgrade locally based on existing state from testnet: follow

  • Test runtime upgrade using try-runtime:

cargo b -r --features rococo-testnet,try-runtime
try-runtime --runtime ./target/release/wbuild/testnet-runtime/testnet_runtime.wasm on-runtime-upgrade live --uri rpc3.paseo.popnetwork.xyz

Release

@Daanvdplas Daanvdplas self-assigned this Jun 5, 2024
@Daanvdplas Daanvdplas removed their assignment Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant