Skip to content

Comments

fix(release): use consistent 7-char commit hash for image tags#4231

Open
bobbai00 wants to merge 1 commit intoapache:mainfrom
bobbai00:fix/release-image-tag-hash-length
Open

fix(release): use consistent 7-char commit hash for image tags#4231
bobbai00 wants to merge 1 commit intoapache:mainfrom
bobbai00:fix/release-image-tag-hash-length

Conversation

@bobbai00
Copy link
Contributor

@bobbai00 bobbai00 commented Feb 23, 2026

What changes were proposed in this PR?

Fix image tag length mismatch between the build and release workflows.

The build-and-push-images workflow tags images with sha[:7] (always 7 chars), but create-release-candidate used git rev-parse --short which produces a variable-length hash (can be 9+ chars). This caused manifest unknown errors when running docker compose up from the release bundle.

The fix replaces git rev-parse --short with git rev-parse | cut -c1-7 to always produce a 7-character commit hash, consistent with the build workflow.

Any related issues, documentation, discussions?

Fixes #4230

How was this PR tested?

  • Verified docker pull ghcr.io/apache/texera-dashboard-service:9fd356c (7-char) succeeds
  • Verified docker pull ghcr.io/apache/texera-dashboard-service:9fd356c3b (9-char) fails with manifest unknown
  • Fixed the .env locally to use the 7-char tag and confirmed all 11 containers start successfully with docker compose up -d

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 4.6)

The build-and-push-images workflow uses `sha[:7]` (always 7 chars)
to tag images, but create-release-candidate used `git rev-parse --short`
which produces a variable-length hash (can be 7-12+ chars depending on
repo size). This mismatch causes "manifest unknown" errors when the
docker-compose bundle tries to pull images with the wrong tag.

Fix by using `cut -c1-7` to always produce a 7-char hash, matching
the build workflow.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added fix ci changes related to CI labels Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci changes related to CI fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: release candidate image tag uses inconsistent commit hash length

1 participant