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

Aperta
#908 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@ianpittwood ci sta già lavorando.

Dal 4/12/2026.

  • #910 di @ianpittwood — aperta
  • #911 di @ianpittwood — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
docker, github-actions, python

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Python
Stelle
2
Fork
0
Merge medio
3g 10h
PR unite (30g)
19

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di posit-dev/images-shared

Tutte le issue di posit-dev/images-shared

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.