Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
bump zombienet version. (#7180)
Browse files Browse the repository at this point in the history
* bump zombienet version

* enable upgrade node test

* changes to fix test

* typo in pipeline
  • Loading branch information
pepoviola authored May 7, 2023
1 parent 1203b25 commit f1cb112
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ variables:
BUILDAH_COMMAND: "buildah --storage-driver overlay2"
DOCKER_OS: "debian:stretch"
ARCH: "x86_64"
ZOMBIENET_IMAGE: "docker.io/paritytech/zombienet:v1.3.49"
ZOMBIENET_IMAGE: "docker.io/paritytech/zombienet:v1.3.50"

default:
cache: {}
Expand Down
65 changes: 31 additions & 34 deletions scripts/ci/gitlab/pipeline/zombienet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,40 +183,37 @@ zombienet-tests-misc-paritydb:
tags:
- zombienet-polkadot-integration-test

## TODO: https://github.com/paritytech/polkadot/issues/7177
## This is temporarily because it's currently broken
##
# zombienet-tests-misc-upgrade-node:
# stage: zombienet
# image: "${ZOMBIENET_IMAGE}"
# extends:
# - .kubernetes-env
# - .zombienet-refs
# needs:
# - job: publish-polkadot-debug-image
# - job: publish-test-collators-image
# - job: build-linux-stable
# artifacts: true
# variables:
# GH_DIR: "https://github.com/paritytech/polkadot/tree/${CI_COMMIT_SHORT_SHA}/zombienet_tests/misc"
# before_script:
# - echo "Zombie-net Tests Config"
# - echo "${ZOMBIENET_IMAGE_NAME}"
# - echo "${PARACHAINS_IMAGE_NAME} ${PARACHAINS_IMAGE_TAG}"
# - echo "${GH_DIR}"
# - export DEBUG=zombie,zombie::network-node
# - export ZOMBIENET_INTEGRATION_TEST_IMAGE="docker.io/parity/polkadot:latest"
# - export COL_IMAGE=${COLLATOR_IMAGE_NAME}:${COLLATOR_IMAGE_TAG}
# - BUILD_LINUX_JOB_ID="$(cat ./artifacts/BUILD_LINUX_JOB_ID)"
# - export POLKADOT_PR_BIN_URL="https://gitlab.parity.io/parity/mirrors/polkadot/-/jobs/${BUILD_LINUX_JOB_ID}/artifacts/raw/artifacts/polkadot"
# script:
# - /home/nonroot/zombie-net/scripts/ci/run-test-env-manager.sh
# --github-remote-dir="${GH_DIR}"
# --test="0002-upgrade-node.zndsl"
# allow_failure: true
# retry: 2
# tags:
# - zombienet-polkadot-integration-test
zombienet-tests-misc-upgrade-node:
stage: zombienet
image: "${ZOMBIENET_IMAGE}"
extends:
- .kubernetes-env
- .zombienet-refs
needs:
- job: publish-polkadot-debug-image
- job: publish-test-collators-image
- job: build-linux-stable
artifacts: true
variables:
GH_DIR: "https://github.com/paritytech/polkadot/tree/${CI_COMMIT_SHORT_SHA}/zombienet_tests/misc"
before_script:
- echo "Zombie-net Tests Config"
- echo "${ZOMBIENET_IMAGE_NAME}"
- echo "${PARACHAINS_IMAGE_NAME} ${PARACHAINS_IMAGE_TAG}"
- echo "${GH_DIR}"
- export DEBUG=zombie,zombie::network-node
- export ZOMBIENET_INTEGRATION_TEST_IMAGE="docker.io/parity/polkadot:latest"
- export COL_IMAGE=${COLLATOR_IMAGE_NAME}:${COLLATOR_IMAGE_TAG}
- BUILD_LINUX_JOB_ID="$(cat ./artifacts/BUILD_LINUX_JOB_ID)"
- export POLKADOT_PR_BIN_URL="https://gitlab.parity.io/parity/mirrors/polkadot/-/jobs/${BUILD_LINUX_JOB_ID}/artifacts/raw/artifacts/polkadot"
script:
- /home/nonroot/zombie-net/scripts/ci/run-test-env-manager.sh
--github-remote-dir="${GH_DIR}"
--test="0002-upgrade-node.zndsl"
allow_failure: false
retry: 2
tags:
- zombienet-polkadot-integration-test

zombienet-tests-malus-dispute-valid:
stage: zombienet
Expand Down
4 changes: 3 additions & 1 deletion zombienet_tests/misc/0002-upgrade-node.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ chain = "rococo-local"
[[relaychain.nodes]]
name = "alice"
args = [ "-lparachain=debug,runtime=debug", "--db paritydb" ]
substrate_cli_args_version = 1

[[relaychain.nodes]]
name = "bob"
args = [ "-lparachain=debug,runtime=debug", "--db rocksdb" ]
substrate_cli_args_version = 1

[[relaychain.nodes]]
name = "charlie"
Expand Down Expand Up @@ -46,4 +48,4 @@ addToGenesis = true
[types.Header]
number = "u64"
parent_hash = "Hash"
post_state = "Hash"
post_state = "Hash"
4 changes: 2 additions & 2 deletions zombienet_tests/misc/0002-upgrade-node.zndsl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ Description: Smoke / Upgrade Node
Network: ./0002-upgrade-node.toml
Creds: config

alice: parachain 2000 block height is at least 10 within 200 seconds
bob: parachain 2001 block height is at least 10 within 200 seconds
charlie: parachain 2000 block height is at least 10 within 200 seconds
dave: 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
Expand Down

0 comments on commit f1cb112

Please sign in to comment.