Skip to content

fix: separate-weights build with r8.im image names fails schema validation#2954

Merged
michaeldwan merged 1 commit intomainfrom
md/fix-tmp-tag-miss
Apr 22, 2026
Merged

fix: separate-weights build with r8.im image names fails schema validation#2954
michaeldwan merged 1 commit intomainfrom
md/fix-tmp-tag-miss

Conversation

@michaeldwan
Copy link
Copy Markdown
Member

Building with --separate-weights and an r8.im/ image name fails at post-build schema validation with No such image: cog-tmp:<hash>.

The cog-tmp temporary tag was introduced in #2658 to avoid tagging intermediate builds with registry names. The non-separate-weights path uses it correctly, but the separate-weights path was missed -- it tagged the runner image with the final imageName instead of tmpImageId. Post-build steps (schema validation, pip freeze, label addition) then can't find the temp image.

One-line fix: buildRunnerImage in the separate-weights path now gets tmpImageId instead of imageName, consistent with the other build paths. The existing BuildAddLabelsAndSchemaToImage call already handles re-tagging from tmpImageId to imageName as the final step.

Integration test reproduces the exact failure. Uses --use-cog-base-image=false so it doesn't hit the real r8.im registry.

Fixes #2953

…ation

When building with --separate-weights and an r8.im/ image name, the runner
image was tagged as the final image name instead of the cog-tmp:<hash>
intermediate tag. Post-build steps (schema validation, pip freeze, label
addition) then failed with 'No such image: cog-tmp:...' because the temp
tag was never created.

Fixes #2953
@michaeldwan michaeldwan requested a review from a team as a code owner April 22, 2026 00:20
@ask-bonk
Copy link
Copy Markdown
Contributor

ask-bonk Bot commented Apr 22, 2026

@michaeldwan Bonk workflow was cancelled.

View workflow run · To retry, trigger Bonk again.

@ask-bonk
Copy link
Copy Markdown
Contributor

ask-bonk Bot commented Apr 22, 2026

I'm Bonk, and I've done a quick review of your PR.

This fixes a bug where --separate-weights builds with r8.im/ image names fail at post-build schema validation because the runner image was tagged with the full imageName instead of the temporary tmpImageId (cog-tmp:<hash>).

The fix is correct and consistent with the non-separate-weights path. The integration test properly reproduces the issue and verifies the fix.

LGTM

github run

@michaeldwan michaeldwan added this pull request to the merge queue Apr 22, 2026
Merged via the queue into main with commit d6d022d Apr 22, 2026
42 of 43 checks passed
@michaeldwan michaeldwan deleted the md/fix-tmp-tag-miss branch April 22, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use of cog-tmp image causes failure in schema validation

2 participants