bakery ci publish drops all but one platform from SOCI-enabled images since oras 1.4.0

Open
#908 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

@ianpittwood is already working on this.

Since Dec 4, 2026.

  • #910 by @ianpittwood — open
  • #911 by @ianpittwood — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
docker, github-actions, python

Research direction

Start with plugins/builtin/imagetools/soci.py and inspect SociConvertWorkflow.run() and the oras cp --to-oci-layout step. The issue proposes keeping only the index.json entry whose org.opencontainers.image.ref.name annotation is image; add a test where that entry is not first. Done means the converted index retains all platforms and index annotations with ORAS 1.4.0.

Written by the indexing model from the issue text.

Description

bug cicd docker priority/critical

Since oras 1.4.0 rolled out on 2026-12-03, bakery ci publish has been pushing SOCI-enabled images with only one platform and no index annotations, including production Docker Hub tags.

Impact

Every image with soci: enabled: true that was published after roughly 13:00 UTC on 2026-12-03 is affected. Each multi-platform tag now holds a single architecture (amd64 or arm64, varying by run) plus that platform's SOCI index. The index-level org.opencontainers.image.* annotations are also gone. Checked with skopeo inspect --raw:

  • ghcr.io/posit-dev/connect-preview:daily and :2026.12.0-dev-744* are arm64 only. The last good build was dev-708 (run 47103708554). dev-712 onward are broken.
  • The production pushes on 2026-12-03 around 19:00 UTC left these tags single-platform:
    • docker.io/posit/connect:latest and :2026.11.1-ubuntu-24.04 are amd64 only.
    • :2026.10.0-ubuntu-24.04 is arm64 only.
    • posit/package-manager:latest and posit/workbench:latest are amd64 only.
  • ghcr.io/posit-dev/package-manager-preview:daily and connect-content-init-preview:daily are also single-platform.
  • Tags that were not republished are fine. For example, posit/connect-content-init:latest from 2026-11-29 still has both platforms.

CI stays green. Publish's verify step only checks that each destination digest matches the SOCI temp ref, and that ref is already single-platform.

Root cause

The v0 tag moved from dc0ffb1e to ac728b9d. That change included the dependabot bump of oras-project/setup-oras from v2.0.2 to v2.0.4 in bakery-build-native.yml, which changed the installed ORAS version from 1.3.1 to 1.4.0. The merge logs confirm the download URLs for each version. No Bakery publish code changed in that range.

SociConvertWorkflow.run() (plugins/builtin/imagetools/soci.py) runs oras cp --to-oci-layout <temp index> <src>:image, then soci convert --standalone --all-platforms <src> <out>. The layout's index.json lists the tagged index and its child manifests as separate top-level entries:

  • ORAS 1.3.1 writes the tagged index (ref.name=image) first.
  • ORAS 1.4.0 writes the children first and the tagged index last.

soci convert --standalone converts index.json manifests[0]. With ORAS 1.4.0, that entry is a single platform's image manifest, not the multi-platform index. The output becomes a single-platform image plus one SOCI index, without the index annotations. Which platform ends up first probably depends on the order the concurrent copy finishes, which would explain why the result alternates between amd64 and arm64.

oras manifest index create behaves identically in both versions. I checked this by reproducing locally with registry:2, busybox amd64/arm64, oras 1.3.1/1.4.0, and soci 0.13.0. Results for the soci output index:

  • oras 1.3.1: 4 manifests (amd64, arm64, and both SOCI indexes), annotations present.
  • oras 1.4.0: 2 manifests (amd64 image and amd64 SOCI index), annotations missing.

Proposed fix

  1. Fix in Bakery. After the oras cp --to-oci-layout in SociConvertWorkflow.run(), rewrite src/index.json so it keeps only the entry with annotations["org.opencontainers.image.ref.name"] == "image". I verified locally that soci 0.13.0 then converts the 1.4.0 layout correctly: 4 manifests and both annotations. Add a test with a multi-entry index.json in which the tagged index is not first.
  2. Mitigate now (optional). Pin version: 1.3.1 on both setup-oras steps in bakery-build-native.yml (and bakery-build.yml if needed) until the fix ships.
  3. Harden verify. Have publish fail when the final index's platform set doesn't match the target's configured platforms. That check would have caught this.
  4. Republish. Rerun the affected production and development workflows for connect, package-manager, and workbench to restore multi-platform tags.

References

Dominant language
Python
Stars
2
Forks
0
Avg merge
3d 12h
Merged PRs (30d)
19

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from posit-dev/images-shared

All issues in posit-dev/images-shared

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.