fix: separate-weights build with r8.im image names fails schema validation#2954
Merged
michaeldwan merged 1 commit intomainfrom Apr 22, 2026
Merged
fix: separate-weights build with r8.im image names fails schema validation#2954michaeldwan merged 1 commit intomainfrom
michaeldwan merged 1 commit intomainfrom
Conversation
…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
Contributor
|
@michaeldwan Bonk workflow was cancelled. View workflow run · To retry, trigger Bonk again. |
Contributor
|
I'm Bonk, and I've done a quick review of your PR. This fixes a bug where The fix is correct and consistent with the non-separate-weights path. The integration test properly reproduces the issue and verifies the fix. LGTM |
markphelps
approved these changes
Apr 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Building with
--separate-weightsand anr8.im/image name fails at post-build schema validation withNo such image: cog-tmp:<hash>.The
cog-tmptemporary 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 finalimageNameinstead oftmpImageId. Post-build steps (schema validation, pip freeze, label addition) then can't find the temp image.One-line fix:
buildRunnerImagein the separate-weights path now getstmpImageIdinstead ofimageName, consistent with the other build paths. The existingBuildAddLabelsAndSchemaToImagecall already handles re-tagging fromtmpImageIdtoimageNameas the final step.Integration test reproduces the exact failure. Uses
--use-cog-base-image=falseso it doesn't hit the real r8.im registry.Fixes #2953