-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[Zombienet] add upgrade test #5970
Changes from 6 commits
8193161
a906520
598fe8c
50f62cd
0b9ea3d
8b1b230
b2b40ca
411f883
51e69ac
9c146df
be6bfd9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
set -euxo pipefail | ||
|
||
TEMP_DIR=/tmp/zombie | ||
|
||
# add /tmp/zombie as first `looking dir` to allow to overrides commands. | ||
mkdir -p $TEMP_DIR | ||
export PATH=$TEMP_DIR:$PATH | ||
|
||
cd $TEMP_DIR | ||
# see 0002-upgrade-node.feature to view the args. | ||
curl -L -O $1 | ||
chmod +x $TEMP_DIR/polkadot | ||
echo $(polkadot --version) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Description: Smoke / Upgrade Node | ||
Network: ./0002-upgrade-node.toml | ||
Creds: config | ||
|
||
alice: is up | ||
bob: is up | ||
charlie: is up | ||
dave: is up | ||
|
||
alice: reports block height is at least 10 within 200 seconds | ||
alice: parachain 2000 block height is at least 10 within 200 seconds | ||
bob: reports block height is at least 15 within 240 seconds | ||
bob: parachain 2001 block height is at least 10 within 200 seconds | ||
charlie: reports block height is at least 20 within 320 seconds | ||
|
||
# upgrade both nodes | ||
# For testing using native provider you should set this env var | ||
# POLKADOT_PR_BIN_URL=https://gitlab.parity.io/parity/mirrors/polkadot/-/jobs/1810914/artifacts/file/artifacts/polkadot | ||
# with the version of polkadot you want to download. | ||
alice: run ./0002-download-polkadot-from-pr.sh with ["{{POLKADOT_PR_BIN_URL}}"] within 200 seconds | ||
bob: run ./0002-download-polkadot-from-pr.sh with ["{{POLKADOT_PR_BIN_URL}}"] within 200 seconds | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This downloads the new |
||
|
||
alice: reports block height is at least 40 within 200 seconds | ||
bob: reports block height is at least 40 within 200 seconds | ||
pepoviola marked this conversation as resolved.
Show resolved
Hide resolved
|
||
alice: parachain 2000 block height is at least 30 within 240 seconds | ||
bob: parachain 2001 block height is at least 30 within 240 seconds | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If download for The check that new binary makes progress needs to be stronger IMO. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agree, I think we should add support to store the return metric of a test to use in another test. So we can use relative values to assert. I will work on that feature, so we can capture the exact block height before restart the nodes and assert on the progress later. Thanks! |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
[settings] | ||
timeout = 1000 | ||
|
||
[relaychain] | ||
default_image = "{{ZOMBIENET_INTEGRATION_TEST_IMAGE}}" | ||
chain = "rococo-local" | ||
|
||
|
||
[[relaychain.nodes]] | ||
name = "alice" | ||
args = [ "-lparachain=debug,runtime=debug", "--db paritydb" ] | ||
|
||
[[relaychain.nodes]] | ||
name = "bob" | ||
args = [ "-lparachain=debug,runtime=debug", "--db rocksdb" ] | ||
|
||
[[relaychain.nodes]] | ||
name = "charlie" | ||
args = [ "-lparachain=debug,runtime=debug", "--db paritydb" ] | ||
|
||
[[relaychain.nodes]] | ||
name = "dave" | ||
args = [ "-lparachain=debug,runtime=debug", "--db rocksdb" ] | ||
|
||
|
||
[[parachains]] | ||
id = 2000 | ||
addToGenesis = true | ||
|
||
[parachains.collator] | ||
name = "collator01" | ||
image = "{{COL_IMAGE}}" | ||
command = "undying-collator" | ||
args = ["-lparachain=debug"] | ||
|
||
[[parachains]] | ||
id = 2001 | ||
addToGenesis = true | ||
|
||
[parachains.collator] | ||
name = "collator02" | ||
image = "{{COL_IMAGE}}" | ||
command = "undying-collator" | ||
args = ["-lparachain=debug"] | ||
|
||
[types.Header] | ||
number = "u64" | ||
parent_hash = "Hash" | ||
post_state = "Hash" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: do we need
dave
node for this test?