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 v0.2 #142

Closed
10 tasks done
Daanvdplas opened this issue Jul 28, 2024 · 2 comments
Closed
10 tasks done

Release v0.2 #142

Daanvdplas opened this issue Jul 28, 2024 · 2 comments
Assignees
Labels

Comments

@Daanvdplas
Copy link
Collaborator

Daanvdplas commented Jul 28, 2024

Testing

  • Build node and test it peers/syncs with testnet parachain: ./target/release/pop-node --chain ./node/chain_specs/pop-paseo.raw.json --base-path <preferred-location> -- --chain ./node/chain_specs/paseo.raw.json --sync warp
    Screenshot 2024-08-05 at 13 26 55

  • synced #844277 blocks

  • shown to be peered with collators

  • Test runtime upgrade locally (no existing state):
    Screenshot 2024-08-05 at 14 39 32

Pop Network current

  1. Switch to commit of last release and build pop node. This one time two changes have to be made when switched to tag v0.1.0-alpha2. Add paseo.toml from main to the networks folder. In addition, add balances to the chainspec (node/src/chainspec.rs):
        serde_json::json!({
+                "balances": {
+                    "balances": [],
+                },
                "parachainInfo": {
                        "parachainId": id,
                },
  • cargo build --release
  1. Start network with pop u p -f networks/paseo.toml -R v1.2.5 -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
cargo b -r --features=try-runtime
try-runtime --runtime ./target/release/wbuild/pop-runtime-testnet/pop_runtime_testnet.wasm on-runtime-upgrade live --uri wss://rpc3.paseo.popnetwork.xyz:433

Screenshot 2024-08-05 at 15 08 01

Release

@Daanvdplas Daanvdplas self-assigned this Jul 28, 2024
@Daanvdplas
Copy link
Collaborator Author

Stuck on try-runtime and chopsticks tests

@evilrobot-01
Copy link
Collaborator

See #155 and #157

@evilrobot-01 evilrobot-01 changed the title Release v0.1.0-alpha3 Release v0.2 Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants