Repository navigation
Commit 1ae59ff
committed
e2e: seed node image with skopeo to preserve its digest
GitHub moved the ubuntu-latest runner from Ubuntu 24.04 to 26.04,
which upgraded podman from 4.9.3 to 5.7.0. Since then most of the
bink e2e tests fail on every Kubernetes version with:
Value for field 'Booted' failed to satisfy matcher.
Value for field 'ImageDigest' failed to satisfy matcher.
Expected "...a256:9566a5..." to equal "...a256:0136fd..."
seed-node-image pulls the bootc image that the node disk image was
installed from (by digest) and re-pushes it to the local bink
registry with `podman push`. The tests take the "original" digest
from the local registry (E2E_NODE_IMAGE_DIGEST) and expect the
node's booted digest to match it.
podman 4 pushed the OCI manifest unchanged, so both digests were
sha256:9566a5.... podman 5 rewrites the manifest on push, so the
local registry now holds sha256:0136fd... while the VM is still
booted from sha256:9566a5.... Every test that checks the booted
digest against the original image now times out. Tests that only
check the update images still pass, because those images are built
and pushed locally and their digests are read back from the
registry.
Copy the image directly from the source registry to the local
registry with `skopeo copy --preserve-digests` so the manifest is
transferred unchanged, independent of the podman version on the
runner. The local podman tag is kept because build-update-image
builds FROM localhost:5000/node:latest.
Assisted-by: AI
Signed-off-by: Alice Frosi <afrosi@redhat.com>1 parent 7304f7b commit 1ae59ff
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
| 232 | + | |
231 | 233 | | |
232 | 234 | | |
233 | 235 | | |
234 | 236 | | |
235 | 237 | | |
236 | 238 | | |
237 | 239 | | |
238 | | - | |
239 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
240 | 244 | | |
241 | 245 | | |
242 | 246 | | |
| |||
0 commit comments