Skip to content

fix: push child manifests before image index during upstream sync#23

Merged
davidpoblador merged 1 commit intomainfrom
worktree-bright-inventing-swan
Apr 2, 2026
Merged

fix: push child manifests before image index during upstream sync#23
davidpoblador merged 1 commit intomainfrom
worktree-bright-inventing-swan

Conversation

@davidpoblador
Copy link
Copy Markdown
Member

Summary

  • When syncing an OCI image index (multi-arch manifest list) to upstream, the registry rejects the index with 400 if child manifests don't exist yet
  • sync_one now detects image indexes, pushes each child manifest and its blobs before pushing the index itself
  • Handles both OCI (image.index.v1) and Docker (manifest.list.v2) index formats

Test plan

  • Added _extract_child_manifests unit tests (index, regular manifest, invalid JSON)
  • Added integration test verifying child manifests are pushed before the index
  • All 68 tests pass

🤖 Generated with Claude Code

When syncing an OCI image index (multi-arch manifest), the upstream
registry rejects the index with 400 if referenced child manifests
don't exist yet. Now sync_one detects image indexes and pushes each
child manifest (and its blobs) before the index itself.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@davidpoblador davidpoblador merged commit 3a26e79 into main Apr 2, 2026
1 check passed
@davidpoblador davidpoblador deleted the worktree-bright-inventing-swan branch April 2, 2026 12:06
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.

1 participant