From 0e287526b926ae53562f34fe7f2701964132f069 Mon Sep 17 00:00:00 2001 From: Madraka <8898640+Madraka@users.noreply.github.com> Date: Sun, 29 Nov 2026 01:21:43 +0300 Subject: [PATCH] fix(ci): the Helm smoke test loads a single-platform copy of a pushed image (#311) A pushed build (release, versioned dispatch, nightly edge) is a multi-platform index. `docker pull` of its digest stores only the runner's platform, and `kind load docker-image` imports with `--all-platforms`, so it failed on the missing arm64 blob and the 0.11.0 run never reached its tag job. The recipes now get the pushed digest as a single-platform linux/amd64 image, loaded the way a pull request's build is: a `FROM ` build with `--load` and no attestations (the same layers and config). Pull requests keep tagging their loaded build. The step prints the platform and image id it loaded. Closes #311 Co-Authored-By: Claude Opus 5.5 Signed-off-by: Madraka <8898640+Madraka@users.noreply.github.com> --- .github/workflows/docker.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 2f4532be..98bb49c0 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -215,10 +215,20 @@ jobs: # The recipes (RFC-0047 ยง10) on the same image: deploy/swarm/stack.yml on this runner's engine # in swarm mode, and deploy/helm/cloudhal on a kind cluster (kind, helm and kubectl come with # the runner image). + # A pushed build is a multi-platform index (amd64, arm64, attestations); pulled, only the + # runner's platform has content, and `kind load docker-image` (`ctr import --all-platforms`) + # fails on the missing blobs (#311). So the recipes get a single-platform linux/amd64 image, + # loaded the way a pull request's build is: `FROM` the pushed digest and nothing else (the same + # layers and config), with no attestations. - name: Local copy of the image for the recipes run: | - if [ "$PUSH" = "true" ]; then docker pull "$SMOKE_IMAGE"; fi - docker tag "$SMOKE_IMAGE" cloudhal:ci + if [ "$PUSH" = "true" ]; then + printf 'FROM %s\n' "$SMOKE_IMAGE" | docker buildx build --platform linux/amd64 \ + --provenance=false --sbom=false --load -t cloudhal:ci - + else + docker tag "$SMOKE_IMAGE" cloudhal:ci + fi + docker image inspect cloudhal:ci --format '{{.Os}}/{{.Architecture}} {{.Id}}' env: SMOKE_IMAGE: ${{ steps.ref.outputs.image }} # Every step after the build is bounded (#306): a hang fails with the script's diagnostics