mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 19:51:02 +00:00
[CI] Prepare CI for Merge Queues (#2308)
PR prepares CI to the GitHub Merge Queues. All github actions that were running in PR adjusted so they can run in the merge queues. Zombienet jobs will do nothing during PRs but they will run during merge queues. Jobs that will be skipped during PR: - all zombienet jobs - all publish docker jobs Jobs that will be skipped during merge queue: - check-labels - check-prdoc - pr-custom-review - review trigger cc https://github.com/paritytech/ci_cd/issues/862
This commit is contained in:
committed by
GitHub
parent
18165ebba8
commit
5b0622bc4d
@@ -3,6 +3,8 @@
|
||||
|
||||
.zombienet-before-script:
|
||||
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 "Zombie-net Tests Config"
|
||||
- echo "${ZOMBIENET_IMAGE}"
|
||||
- echo "${POLKADOT_IMAGE}"
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
# common settings for all zombienet jobs
|
||||
.zombienet-polkadot-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
|
||||
- export BUILD_RELEASE_VERSION="$(cat ./artifacts/BUILD_RELEASE_VERSION)" # from build-linux-stable job
|
||||
- export DEBUG=zombie,zombie::network-node
|
||||
- export ZOMBIENET_INTEGRATION_TEST_IMAGE="${POLKADOT_IMAGE}":${PIPELINE_IMAGE_TAG}
|
||||
@@ -12,12 +14,12 @@
|
||||
- export MALUS_IMAGE="${MALUS_IMAGE}":${PIPELINE_IMAGE_TAG}
|
||||
- IMAGE_AVAILABLE=$(curl -o /dev/null -w "%{http_code}" -I -L -s https://registry.hub.docker.com/v2/repositories/parity/polkadot/tags/${BUILD_RELEASE_VERSION})
|
||||
- if [ $IMAGE_AVAILABLE -eq 200 ]; then
|
||||
export ZOMBIENET_INTEGRATION_TEST_SECONDARY_IMAGE="docker.io/parity/polkadot:${BUILD_RELEASE_VERSION}";
|
||||
export ZOMBIENET_INTEGRATION_TEST_SECONDARY_IMAGE="docker.io/parity/polkadot:${BUILD_RELEASE_VERSION}";
|
||||
else
|
||||
echo "Getting the image to use as SECONDARY, using ${BUILD_RELEASE_VERSION} as base";
|
||||
VERSIONS=$(curl -L -s 'https://registry.hub.docker.com/v2/repositories/parity/polkadot/tags/' | jq -r '.results[].name'| grep -E "v[0-9]" |grep -vE "[0-9]-");
|
||||
VERSION_TO_USE=$(echo "${BUILD_RELEASE_VERSION}\n$VERSIONS"|sort -r|grep -A1 "${BUILD_RELEASE_VERSION}"|tail -1);
|
||||
export ZOMBIENET_INTEGRATION_TEST_SECONDARY_IMAGE="docker.io/parity/polkadot:${VERSION_TO_USE}";
|
||||
echo "Getting the image to use as SECONDARY, using ${BUILD_RELEASE_VERSION} as base";
|
||||
VERSIONS=$(curl -L -s 'https://registry.hub.docker.com/v2/repositories/parity/polkadot/tags/' | jq -r '.results[].name'| grep -E "v[0-9]" |grep -vE "[0-9]-");
|
||||
VERSION_TO_USE=$(echo "${BUILD_RELEASE_VERSION}\n$VERSIONS"|sort -r|grep -A1 "${BUILD_RELEASE_VERSION}"|tail -1);
|
||||
export ZOMBIENET_INTEGRATION_TEST_SECONDARY_IMAGE="docker.io/parity/polkadot:${VERSION_TO_USE}";
|
||||
fi
|
||||
- echo "Zombienet Tests Config"
|
||||
- echo "gh-dir ${GH_DIR}"
|
||||
@@ -117,6 +119,8 @@ zombienet-polkadot-smoke-0001-parachains-smoke-test:
|
||||
extends:
|
||||
- .zombienet-polkadot-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
|
||||
- export ZOMBIENET_INTEGRATION_TEST_IMAGE="${POLKADOT_IMAGE}":${PIPELINE_IMAGE_TAG}
|
||||
- export COL_IMAGE="${COLANDER_IMAGE}":${PIPELINE_IMAGE_TAG}
|
||||
- echo "Zombienet Tests Config"
|
||||
@@ -134,6 +138,8 @@ zombienet-polkadot-smoke-0002-parachains-parachains-upgrade-smoke:
|
||||
extends:
|
||||
- .zombienet-polkadot-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
|
||||
- export ZOMBIENET_INTEGRATION_TEST_IMAGE="${POLKADOT_IMAGE}":${PIPELINE_IMAGE_TAG}
|
||||
- export CUMULUS_IMAGE="docker.io/paritypr/polkadot-parachain-debug:${DOCKER_IMAGES_VERSION}"
|
||||
- echo "Zombienet Tests Config"
|
||||
@@ -176,6 +182,8 @@ zombienet-polkadot-misc-0002-upgrade-node:
|
||||
- job: build-linux-stable
|
||||
artifacts: true
|
||||
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
|
||||
- export ZOMBIENET_INTEGRATION_TEST_IMAGE="docker.io/parity/polkadot:latest"
|
||||
- echo "Overrided poladot image ${ZOMBIENET_INTEGRATION_TEST_IMAGE}"
|
||||
- export COL_IMAGE="${COLANDER_IMAGE}":${PIPELINE_IMAGE_TAG}
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
# common settings for all zombienet jobs
|
||||
.zombienet-substrate-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}"
|
||||
|
||||
Reference in New Issue
Block a user