Skip to content

Commit 6a7c241

Browse files
committed
fix: github action e2e which uses "LLM_D_RELEASE:main"
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
1 parent b43367b commit 6a7c241

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

deploy/install.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -775,11 +775,12 @@ EOF
775775
deploy_llm_d_infrastructure() {
776776
log_info "Deploying llm-d infrastructure..."
777777

778-
# Clone llm-d repo if not exists or if has older version locally
778+
# Clone llm-d repo if not exists, or re-clone if version mismatch detected
779779
if [ -d "$LLM_D_PROJECT/.git" ]; then
780-
CURRENT_TAG=$(cd "$LLM_D_PROJECT" && git describe --tags --exact-match 2>/dev/null || echo "unknown")
781-
if [ "$CURRENT_TAG" != "$LLM_D_RELEASE" ]; then
782-
log_warning "$LLM_D_PROJECT exists but has version '$CURRENT_TAG' (expected: $LLM_D_RELEASE)"
780+
# Check current version (try tag first, then branch)
781+
CURRENT_VERSION=$(cd "$LLM_D_PROJECT" && git describe --tags --exact-match 2>/dev/null || git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "unknown")
782+
if [ "$CURRENT_VERSION" != "$LLM_D_RELEASE" ]; then
783+
log_warning "$LLM_D_PROJECT exists but has version '$CURRENT_VERSION' (expected: $LLM_D_RELEASE)"
783784
rm -rf "$LLM_D_PROJECT"
784785
else
785786
log_info "$LLM_D_PROJECT directory already exists with correct version ($LLM_D_RELEASE)"

0 commit comments

Comments
 (0)