# This file is part of .gitlab-ci.yml # Here are all jobs that are executed during "zombienet" stage .zombienet-before-script: before_script: - echo "Zombie-net Tests Config" - echo "${ZOMBIENET_IMAGE}" - echo "${RELAY_IMAGE}" - echo "${COL_IMAGE}" - echo "${GH_DIR}" - export DEBUG=zombie - export RELAY_IMAGE=${POLKADOT_IMAGE} - export COL_IMAGE=${COL_IMAGE} .zombienet-after-script: after_script: - mkdir -p ./zombienet-logs - cp /tmp/zombie*/logs/* ./zombienet-logs/ # common settings for all zombienet jobs .zombienet-common: stage: zombienet image: "${ZOMBIENET_IMAGE}" needs: - job: build-push-image-test-parachain artifacts: true variables: POLKADOT_IMAGE: "docker.io/paritypr/polkadot-debug:master" GH_DIR: "https://github.com/paritytech/cumulus/tree/${CI_COMMIT_SHORT_SHA}/zombienet/tests" COL_IMAGE: "docker.io/paritypr/test-parachain:${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHORT_SHA}" FF_DISABLE_UMASK_FOR_DOCKER_EXECUTOR: 1 artifacts: name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}" when: always expire_in: 2 days paths: - ./zombienet-logs allow_failure: true retry: 2 tags: - zombienet-polkadot-integration-test zombienet-0001-sync_blocks_from_tip_without_connected_collator: extends: - .zombienet-common - .zombienet-refs - .zombienet-before-script - .zombienet-after-script script: - /home/nonroot/zombie-net/scripts/ci/run-test-env-manager.sh --github-remote-dir="${GH_DIR}" --concurrency=1 --test="0001-sync_blocks_from_tip_without_connected_collator.zndsl" zombienet-0002-pov_recovery: extends: - .zombienet-common - .zombienet-refs - .zombienet-before-script - .zombienet-after-script script: - /home/nonroot/zombie-net/scripts/ci/run-test-env-manager.sh --github-remote-dir="${GH_DIR}" --concurrency=1 --test="0002-pov_recovery.zndsl" zombienet-0003-full_node_catching_up: extends: - .zombienet-common - .zombienet-refs - .zombienet-before-script - .zombienet-after-script script: - /home/nonroot/zombie-net/scripts/ci/run-test-env-manager.sh --github-remote-dir="${GH_DIR}" --concurrency=1 --test="0003-full_node_catching_up.zndsl" zombienet-0004-runtime_upgrade: extends: - .zombienet-common - .zombienet-refs - .zombienet-before-script - .zombienet-after-script needs: - !reference [.zombienet-common, needs] - job: build-test-parachain artifacts: true before_script: - ls -ltr * - cp ./artifacts/zombienet/wasm_binary_spec_version_incremented.rs.compact.compressed.wasm /tmp/ - ls /tmp - !reference [.zombienet-before-script, before_script] script: - /home/nonroot/zombie-net/scripts/ci/run-test-env-manager.sh --github-remote-dir="${GH_DIR}" --concurrency=1 --test="0004-runtime_upgrade.zndsl" zombienet-0005-migrate_solo_to_para: extends: - .zombienet-common - .zombienet-refs - .zombienet-before-script - .zombienet-after-script needs: - !reference [.zombienet-common, needs] - job: build-test-parachain artifacts: true before_script: - ls -ltr * - !reference [.zombienet-before-script, before_script] script: - /home/nonroot/zombie-net/scripts/ci/run-test-env-manager.sh --github-remote-dir="${GH_DIR}" --concurrency=1 --test="0005-migrate_solo_to_para.zndsl" zombienet-0006-rpc_collator_builds_blocks: extends: - .zombienet-common - .zombienet-refs - .zombienet-before-script - .zombienet-after-script script: - /home/nonroot/zombie-net/scripts/ci/run-test-env-manager.sh --github-remote-dir="${GH_DIR}" --concurrency=1 --test="0006-rpc_collator_builds_blocks.zndsl" zombienet-0007-full_node_warp_sync: extends: - .zombienet-common - .zombienet-refs - .zombienet-before-script - .zombienet-after-script script: - /home/nonroot/zombie-net/scripts/ci/run-test-env-manager.sh --github-remote-dir="${GH_DIR}" --concurrency=1 --test="0007-full_node_warp_sync.zndsl"