From c2fb04abf55b9051b159b377f975076ba25df76f Mon Sep 17 00:00:00 2001 From: la10736 Date: Thu, 15 Jan 2026 16:41:19 +0100 Subject: [PATCH 1/2] Before generate a mainnet release x.y.z we should che if testnet release x.y.z tag is the same as mainnet. --- ci/check_runtime_requirements.sh | 8 ++++++++ ci/common.sh | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/ci/check_runtime_requirements.sh b/ci/check_runtime_requirements.sh index a4452e2..244e3c1 100755 --- a/ci/check_runtime_requirements.sh +++ b/ci/check_runtime_requirements.sh @@ -46,6 +46,14 @@ if [ "${tag_runtime}" != "${runtime}" ]; then fn_die "ERROR: Runtime in the tag (${tag_runtime}) does not match the expected runtime (${runtime}). Exiting ..." fi +if [[ "${runtime}" = "zkverify" && -z "${version_ext}" ]]; then + log_info "INFO: checking that zkverify and volta production release tags point to the same commit..." + volta_tag="rt-volta-${version}" + if [ "$(git_tag_commit "${github_tag}")" != "$(git_tag_commit "${volta_tag}")" ]; then + fn_die "ERROR: commit pointed to by zkverify tag (${github_tag}) does not match commit of volta tag (${volta_tag}). Exiting..." + fi +fi + # Checking if it is a release build if git branch -r --contains "${github_tag}" | grep -xqE ". origin\/${release_branch}\/rt-${runtime}\/${version_str}$"; then IS_A_RELEASE="true" diff --git a/ci/common.sh b/ci/common.sh index 3de65ae..f489dbd 100644 --- a/ci/common.sh +++ b/ci/common.sh @@ -147,3 +147,8 @@ check_signed_tag() { IS_A_RELEASE="false" fi } + +function git_tag_commit { + local tag="$1" + git rev-list -n 1 "${tag}" +} \ No newline at end of file From eba1a6f053e6ce97e6ec50c709d777f36d1994eb Mon Sep 17 00:00:00 2001 From: Daniele Rogora Date: Thu, 9 Jul 2026 16:58:09 +0200 Subject: [PATCH 2/2] Rename zkverify to mainnet in script --- ci/check_runtime_requirements.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/check_runtime_requirements.sh b/ci/check_runtime_requirements.sh index 244e3c1..50e466f 100755 --- a/ci/check_runtime_requirements.sh +++ b/ci/check_runtime_requirements.sh @@ -46,11 +46,11 @@ if [ "${tag_runtime}" != "${runtime}" ]; then fn_die "ERROR: Runtime in the tag (${tag_runtime}) does not match the expected runtime (${runtime}). Exiting ..." fi -if [[ "${runtime}" = "zkverify" && -z "${version_ext}" ]]; then - log_info "INFO: checking that zkverify and volta production release tags point to the same commit..." +if [[ "${runtime}" = "mainnet" && -z "${version_ext}" ]]; then + log_info "INFO: checking that mainnet and volta production release tags point to the same commit..." volta_tag="rt-volta-${version}" if [ "$(git_tag_commit "${github_tag}")" != "$(git_tag_commit "${volta_tag}")" ]; then - fn_die "ERROR: commit pointed to by zkverify tag (${github_tag}) does not match commit of volta tag (${volta_tag}). Exiting..." + fn_die "ERROR: commit pointed to by mainnet tag (${github_tag}) does not match commit of volta tag (${volta_tag}). Exiting..." fi fi