Fix cli-proxy image tag mismatch causing fleet-wide smoke-test outage - #50685
Conversation
…mismatch Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Fixes smoke-test startup failures caused by mismatched versioned and latest Docker image tags.
Changes:
- Adds local
:latestaliases after image pulls. - Adds a patch changeset documenting the fix.
Show a summary per file
| File | Description |
|---|---|
actions/setup/sh/download_docker_images.sh |
Adds Docker tag aliasing logic. |
.changeset/patch-fix-cli-proxy-latest-tag-alias.md |
Documents the patch release. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Suppressed comments (1)
actions/setup/sh/download_docker_images.sh:63
- Splitting on the first colon breaks valid image references whose registry includes a port.
registry.example:5000/team/image:v1producesregistry.example:latestinstead ofregistry.example:5000/team/image:latest. Detect a tag only in the final path component and remove only its last colon-delimited suffix.
if [[ "$tag_ref" == *":"* && "$tag_ref" != *"@"* ]]; then
local repo_ref="${tag_ref%%:*}"
local tag_part="${tag_ref##*:}"
if [[ "$tag_part" != "latest" ]]; then
local latest_ref="${repo_ref}:latest"
- Files reviewed: 2/2 changed files
- Comments generated: 2
- Review effort level: Balanced
| tag_ref="${image%%@sha256:*}" | ||
| if [[ "$tag_ref" == *":"* ]]; then | ||
| echo "Tagging digest-pinned image as $tag_ref" | ||
| docker tag "$image" "$tag_ref" | ||
| else | ||
| tag_ref="$image" | ||
| fi |
| local latest_ref="${repo_ref}:latest" | ||
| echo "Aliasing $tag_ref as $latest_ref" | ||
| docker tag "$tag_ref" "$latest_ref" |
|
@copilot please review the latest PR feedback, refresh this branch if it is behind
Run: https://github.com/github/gh-aw/actions/runs/31052246569
|
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Addressed the follow-up fixes in |
|
@copilot please review the latest PR feedback, refresh this branch if it is behind
Run: https://github.com/github/gh-aw/actions/runs/31055742237
|
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
download_docker_images.shonly tagged digest-pinned AWF images with their version-pinned tag (e.g.:0.27.44), while AWF's compose stack resolves images likecli-proxyvia:latestunder--pull never. The mismatch causeddocker compose up -d --pull neverto fail withNo such imageacross 9 smoke workflows since the container stack never started.Fix
actions/setup/sh/download_docker_images.sh: after pulling and resolving the version tag (including the existing digest-pin tag alias step), additionally alias the image under the mutable:latesttag whenever the resolved tag differs fromlatest. Both the versioned tag and:latestnow resolve locally regardless of which reference downstream tooling uses.Run: https://github.com/github/gh-aw/actions/runs/31052246569> Generated by 👨🍳 PR Sous Chef · gpt54 · 5.39 AIC · ⌖ 7.13 AIC · ⊞ 8.3K · ◷