This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[Zombienet] add upgrade test #5970
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
8193161
add upgrade test
pepoviola a906520
fix node names
pepoviola 598fe8c
changes from feedback
pepoviola 50f62cd
rename bash script
pepoviola 0b9ea3d
fix upgrade node test
pepoviola 8b1b230
upgrade node test, use env
pepoviola b2b40ca
bump zombienet version and fix upgrade test
pepoviola 411f883
bump zombienet version
pepoviola 51e69ac
bump zombienet
pepoviola 9c146df
fix raw link for binary
pepoviola be6bfd9
adjust within time
pepoviola File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
set -euxo pipefail | ||
|
||
echo $@ | ||
|
||
CFG_DIR=/cfg | ||
|
||
# add CFG_DIR as first `looking dir` to allow to overrides commands. | ||
mkdir -p $CFG_DIR | ||
export PATH=$CFG_DIR:$PATH | ||
|
||
cd $CFG_DIR | ||
# see 0002-upgrade-node.feature to view the args. | ||
curl -L -O $1 | ||
chmod +x $CFG_DIR/polkadot | ||
echo $(polkadot --version) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Description: Smoke / Upgrade Node | ||
Network: ./0002-upgrade-node.toml | ||
Creds: config | ||
|
||
alice: is up | ||
bob: is up | ||
charlie: is up | ||
dave: is up | ||
|
||
alice: parachain 2000 block height is at least 10 within 200 seconds | ||
bob: parachain 2001 block height is at least 10 within 200 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/1842869/artifacts/raw/artifacts/polkadot | ||
# with the version of polkadot you want to download. | ||
|
||
# avg 30s in our infra | ||
alice: run ./0002-download-polkadot-from-pr.sh with "{{POLKADOT_PR_BIN_URL}}" within 40 seconds | ||
bob: run ./0002-download-polkadot-from-pr.sh with "{{POLKADOT_PR_BIN_URL}}" within 40 seconds | ||
alice: restart after 5 seconds | ||
bob: restart after 5 seconds | ||
|
||
# process bootstrap | ||
sleep 30 seconds | ||
|
||
alice: is up within 10 seconds | ||
bob: is up within 10 seconds | ||
|
||
|
||
alice: parachain 2000 block height is at least 30 within 300 seconds | ||
bob: parachain 2001 block height is at least 30 within 120 seconds | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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?