# This file is part of .gitlab-ci.yml # Here are all jobs that are executed during "zombienet" stage for bridges # common settings for all zombienet jobs .zombienet-bridges-common: before_script: # Exit if the job is not merge queue # - if [[ $CI_COMMIT_REF_NAME != *"gh-readonly-queue"* ]]; then echo "I will run only in a merge queue"; exit 0; fi - echo "Zombienet Tests Config" - echo "${ZOMBIENET_IMAGE}" - echo "${GH_DIR}" - echo "${LOCAL_DIR}" - ls "${LOCAL_DIR}" - export DEBUG=zombie,zombie::network-node - export ZOMBIENET_INTEGRATION_TEST_IMAGE="${BRIDGES_ZOMBIENET_TESTS_IMAGE}":${BRIDGES_ZOMBIENET_TESTS_IMAGE_TAG} - echo "${ZOMBIENET_INTEGRATION_TEST_IMAGE}" stage: zombienet image: "${BRIDGES_ZOMBIENET_TESTS_IMAGE}:${BRIDGES_ZOMBIENET_TESTS_IMAGE_TAG}" needs: - job: build-push-image-bridges-zombienet-tests artifacts: true extends: - .kubernetes-env - .zombienet-refs variables: BRIDGES_ZOMBIENET_TESTS_IMAGE_TAG: ${DOCKER_IMAGES_VERSION} BRIDGES_ZOMBIENET_TESTS_IMAGE: "docker.io/paritypr/bridges-zombienet-tests" GH_DIR: "https://github.com/paritytech/polkadot-sdk/tree/${CI_COMMIT_SHA}/bridges/zombienet" LOCAL_DIR: "/builds/parity/mirrors/polkadot-sdk/bridges/zombienet" FF_DISABLE_UMASK_FOR_DOCKER_EXECUTOR: 1 RUN_IN_CONTAINER: "1" artifacts: name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}_zombienet_bridge_tests" when: always expire_in: 2 days paths: - ./zombienet-logs after_script: - mkdir -p ./zombienet-logs # copy logs of tests runner (run-tests.sh) - cp -r /tmp/bridges-zombienet-tests.*/tmp.*/tmp.* ./zombienet-logs/ # copy logs of all nodes - cp /tmp/zombie*/logs/* ./zombienet-logs/ # following lines are causing spurious test failures ("At least one of the nodes fails to start") # retry: 2 # tags: # - zombienet-polkadot-integration-test zombienet-bridges-0001-asset-transfer-works: extends: - .zombienet-bridges-common script: - /home/nonroot/bridges-polkadot-sdk/bridges/zombienet/run-tests.sh --docker - echo "Done"