From 52bb0809078ca8743443170b6373ac4406032900 Mon Sep 17 00:00:00 2001 From: Jiadong Bai Date: Mon, 23 Feb 2026 00:05:22 -0800 Subject: [PATCH] fix(release): use consistent 9-char commit hash for image tags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The build workflow used sha[:7] (7 chars) while the release workflow used git rev-parse --short (variable length, 9 chars in this repo). This mismatch caused "manifest unknown" errors when the docker-compose bundle tried to pull images with the wrong tag. Standardize both workflows to use 9-char commit hashes: - build-and-push-images.yml: sha[:7] → sha[:9] - create-release-candidate.yml: git rev-parse --short=9 Co-Authored-By: Claude Opus 4.6 --- .github/workflows/build-and-push-images.yml | 2 +- .github/workflows/create-release-candidate.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-push-images.yml b/.github/workflows/build-and-push-images.yml index 94011e036f6..065b10ccc64 100644 --- a/.github/workflows/build-and-push-images.yml +++ b/.github/workflows/build-and-push-images.yml @@ -99,7 +99,7 @@ jobs: # If image_tag is empty, resolve to the short commit hash of the branch if [[ -z "$IMAGE_TAG" ]]; then - COMMIT_SHORT=$(gh api "repos/${{ github.repository }}/commits/${BRANCH}" --jq '.sha[:7]') + COMMIT_SHORT=$(gh api "repos/${{ github.repository }}/commits/${BRANCH}" --jq '.sha[:9]') IMAGE_TAG="$COMMIT_SHORT" echo "No image tag specified - using short commit hash: $IMAGE_TAG" fi diff --git a/.github/workflows/create-release-candidate.yml b/.github/workflows/create-release-candidate.yml index d15f415a906..3f2fca55a33 100644 --- a/.github/workflows/create-release-candidate.yml +++ b/.github/workflows/create-release-candidate.yml @@ -85,7 +85,7 @@ jobs: fi COMMIT_HASH=$(git rev-parse "$TAG_NAME") - COMMIT_SHORT=$(git rev-parse --short "$TAG_NAME") + COMMIT_SHORT=$(git rev-parse "$TAG_NAME" | cut -c1-9) RC_DIR="${VERSION}-RC${RC_NUM}" SRC_TARBALL="apache-texera-${VERSION}-src.tar.gz" COMPOSE_TARBALL="apache-texera-${VERSION}-docker-compose.tar.gz"