Skip to contentSkip to conversation

gitlab docker registries

DISCUSSION Richard Henderson 4 participants 15 messages Jan 26 – Jan 28

lore
Share & tools
lore
#0 lore raw

Hiya,

I noticed this today, wondering why the daily scheduled builds are failing:

https://gitlab.com/qemu-project/qemu/-/jobs/12868286187

time="2026-01-26T17:34:06Z" level=fatal msg="Error parsing image name \"docker://registry.gitlab.com/qemu-project/qemu/qemu/emsdk-wasm-cross\": reading manifest latest in registry.gitlab.com/qemu-project/qemu/qemu/emsdk-wasm-cross: manifest unknown"
make: *** [tests/docker/Makefile.include:54: docker-verify-emsdk-wasm-cross] Error 2

I'm not really sure what the error message means. Do we need to push a built version of emsdk-wasm-cross to gitlab, so that a manifest is present? Which doesn't make much sense, since the job is all about a weekly rebuild of the containers.

r~

#1 lore raw
Quoted 7 lines · Richard Henderson

Hiya,

I noticed this today, wondering why the daily scheduled builds are failing:

https://gitlab.com/qemu-project/qemu/-/jobs/12868286187

Quoted 8 lines

time="2026-01-26T17:34:06Z" level=fatal msg="Error parsing image name \"docker://registry.gitlab.com/qemu-project/qemu/qemu/emsdk-wasm-cross\": reading manifest latest in registry.gitlab.com/qemu-project/qemu/qemu/emsdk-wasm-cross: manifest unknown"
make: *** [tests/docker/Makefile.include:54: docker-verify-emsdk-wasm-cross] Error 2

I'm not really sure what the error message means. Do we need to push a built version of emsdk-wasm-cross to gitlab, so that a manifest is present? Which doesn't make much sense, since the job is all about a weekly rebuild of the containers.

I don't see that container image in the registry:
https://gitlab.com/qemu-project/qemu/container_registry?orderBy=UPDATED&sort=desc&search[]=wasm

Only the emsdk-wasm32-cross and emsdk-wasm64-cross images are there.

Stefan

#2 lore raw
Quoted 18 lines · Stefan Hajnoczi
Quoted 7 lines · Richard Henderson

Hiya,

I noticed this today, wondering why the daily scheduled builds are failing:

https://gitlab.com/qemu-project/qemu/-/jobs/12868286187

Quoted 8 lines

time="2026-01-26T17:34:06Z" level=fatal msg="Error parsing image name \"docker://registry.gitlab.com/qemu-project/qemu/qemu/emsdk-wasm-cross\": reading manifest latest in registry.gitlab.com/qemu-project/qemu/qemu/emsdk-wasm-cross: manifest unknown"
make: *** [tests/docker/Makefile.include:54: docker-verify-emsdk-wasm-cross] Error 2

I'm not really sure what the error message means. Do we need to push a built version of emsdk-wasm-cross to gitlab, so that a manifest is present? Which doesn't make much sense, since the job is all about a weekly rebuild of the containers.

Quoted 7 lines

I don't see that container image in the registry:
https://gitlab.com/qemu-project/qemu/container_registry?orderBy=UPDATED&sort=desc&search[]=wasm

Only the emsdk-wasm32-cross and emsdk-wasm64-cross images are there.

Stefan

I don't see where the job that is supposed to build containers weekly is building them, it is just calling skopeo inspect (???).

It should depend on building and pushing associated image.

https://gitlab.com/qemu-project/qemu/-/commit/8bec7b9874235e60f14172618121c60fdbd39302

#3 lore raw
Quoted 25 lines · Pierrick Bouvier
Quoted 14 lines · Stefan Hajnoczi
Quoted 12 lines · Richard Henderson

Hiya,

I noticed this today, wondering why the daily scheduled builds are failing:

https://gitlab.com/qemu-project/qemu/-/jobs/12868286187

time="2026-01-26T17:34:06Z" level=fatal msg="Error parsing image name \"docker://registry.gitlab.com/qemu-project/qemu/qemu/emsdk-wasm-cross\": reading manifest latest in registry.gitlab.com/qemu-project/qemu/qemu/emsdk-wasm-cross: manifest unknown"
make: *** [tests/docker/Makefile.include:54: docker-verify-emsdk-wasm-cross] Error 2

Quoted 9 lines
Quoted 3 lines

I'm not really sure what the error message means. Do we need to push a built version of emsdk-wasm-cross to gitlab, so that a manifest is present? Which doesn't make much sense, since the job is all about a weekly rebuild of the containers.

I don't see that container image in the registry:
https://gitlab.com/qemu-project/qemu/container_registry?orderBy=UPDATED&sort=desc&search[]=wasm
Only the emsdk-wasm32-cross and emsdk-wasm64-cross images are there. Stefan

Quoted 5 lines

I don't see where the job that is supposed to build containers weekly is building them, it is just calling skopeo inspect (???).

It should depend on building and pushing associated image.

it depends on:

- wasm64-emsdk-cross-container

is that build failing?

Quoted 1 line

https://gitlab.com/qemu-project/qemu/-/commit/8bec7b9874235e60f14172618121c60fdbd39302

Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro
#5 lore raw
In reply to Pierrick Bouvier
Quoted 25 lines · Pierrick Bouvier
Quoted 14 lines · Stefan Hajnoczi
Quoted 12 lines · Richard Henderson

Hiya,

I noticed this today, wondering why the daily scheduled builds are failing:

https://gitlab.com/qemu-project/qemu/-/jobs/12868286187

time="2026-01-26T17:34:06Z" level=fatal msg="Error parsing image name \"docker://registry.gitlab.com/qemu-project/qemu/qemu/emsdk-wasm-cross\": reading manifest latest in registry.gitlab.com/qemu-project/qemu/qemu/emsdk-wasm-cross: manifest unknown"
make: *** [tests/docker/Makefile.include:54: docker-verify-emsdk-wasm-cross] Error 2

Quoted 9 lines
Quoted 3 lines

I'm not really sure what the error message means. Do we need to push a built version of emsdk-wasm-cross to gitlab, so that a manifest is present? Which doesn't make much sense, since the job is all about a weekly rebuild of the containers.

I don't see that container image in the registry:
https://gitlab.com/qemu-project/qemu/container_registry?orderBy=UPDATED&sort=desc&search[]=wasm
Only the emsdk-wasm32-cross and emsdk-wasm64-cross images are there. Stefan

Quoted 4 lines

I don't see where the job that is supposed to build containers weekly is building them, it is just calling skopeo inspect (???).

It should depend on building and pushing associated image.

I think it was broken by 4203ea0247f (gitlab-ci: Add build tests for wasm64) because we base the tests of the existence of dockerfiles and it now generates multiple targets.

Do we actually use the wasm32 stuff anymore? Maybe we can just rename it?

Quoted 2 lines

https://gitlab.com/qemu-project/qemu/-/commit/8bec7b9874235e60f14172618121c60fdbd39302

Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro
#6 lore raw
Quoted 5 lines · Alex Bennée

I think it was broken by 4203ea0247f (gitlab-ci: Add build tests for wasm64) because we base the tests of the existence of dockerfiles and it now generates multiple targets.

Do we actually use the wasm32 stuff anymore? Maybe we can just rename it?

All of the wasm32 stuff is supposed to be gone.

r~

#7 lore raw
Quoted 8 lines · Richard Henderson
Quoted 5 lines · Alex Bennée

I think it was broken by 4203ea0247f (gitlab-ci: Add build tests for wasm64) because we base the tests of the existence of dockerfiles and it now generates multiple targets.
Do we actually use the wasm32 stuff anymore? Maybe we can just rename it?

All of the wasm32 stuff is supposed to be gone.

I think [email protected] should fix it, but I need to re-read how to trigger the weekly build on my test branch to test it.

Quoted 2 lines

r~

Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro
#8 lore raw
Quoted 9 lines · Alex Bennée
Quoted 7 lines · Richard Henderson
Quoted 5 lines · Alex Bennée

I think it was broken by 4203ea0247f (gitlab-ci: Add build tests for wasm64) because we base the tests of the existence of dockerfiles and it now generates multiple targets.
Do we actually use the wasm32 stuff anymore? Maybe we can just rename it?

Quoted 9 lines
Quoted 1 line

All of the wasm32 stuff is supposed to be gone.

I think [email protected] should fix it, but I need to re-read how to trigger the weekly build on my test branch to test it.

Quoted 2 lines

r~

What if docker-verify was depending on building the container locally instead? It would allow to have a self-contained command, that works the same in local, or in CI, without any yaml dependencies.

With current approach, it's tricky to reproduce locally as it depends on global gitlab registry, while we are just trying to see if images is buildable from scratch or not.

The fact it's hard to guess how to test such a change exposes that there is a problem to reproduce this, even for the original author.

#9 lore raw
Quoted 24 lines · Pierrick Bouvier
Quoted 9 lines · Alex Bennée
Quoted 7 lines · Richard Henderson
Quoted 5 lines · Alex Bennée

I think it was broken by 4203ea0247f (gitlab-ci: Add build tests for wasm64) because we base the tests of the existence of dockerfiles and it now generates multiple targets.
Do we actually use the wasm32 stuff anymore? Maybe we can just rename it?

Quoted 9 lines
Quoted 1 line

All of the wasm32 stuff is supposed to be gone.

I think [email protected] should fix it, but I need to re-read how to trigger the weekly build on my test branch to test it.

Quoted 2 lines

r~

What if docker-verify was depending on building the container locally instead? It would allow to have a self-contained command, that works the same in local, or in CI, without any yaml dependencies.

Quoted 6 lines

With current approach, it's tricky to reproduce locally as it depends on global gitlab registry, while we are just trying to see if images is buildable from scratch or not.

The fact it's hard to guess how to test such a change exposes that there is a problem to reproduce this, even for the original author.

As well, docker or podman already have inspect command builtin, so I'm not sure what is the added value of skopeo here.

tests/docker/Makefile.include +3 -3
index 38467cca610..c280467aa8d 100644
@@ -50,11 +50,11 @@ docker-image-%: $(DOCKER_FILES_DIR)/%.docker
 		"BUILD", $*)
 
 # General rule for inspecting registry images.
-docker-verify-%: $(DOCKER_FILES_DIR)/%.docker
+docker-verify-%: docker-image-% $(DOCKER_FILES_DIR)/%.docker
 	  $(call quiet-command,			\
-		skopeo inspect 			\
+		$(RUNC) inspect			\
 			--format '{{.Created}}' \
-			docker://$(DOCKER_REGISTRY)/qemu/$*	\
+			qemu/$*	\
 		$(if $V,,> /dev/null),\
 		"VERIFY", $*)
 
#10 lore raw
In reply to Pierrick Bouvier
Quoted 20 lines · Pierrick Bouvier
Quoted 9 lines · Alex Bennée
Quoted 7 lines · Richard Henderson
Quoted 5 lines · Alex Bennée

I think it was broken by 4203ea0247f (gitlab-ci: Add build tests for wasm64) because we base the tests of the existence of dockerfiles and it now generates multiple targets.
Do we actually use the wasm32 stuff anymore? Maybe we can just rename it?

Quoted 9 lines
Quoted 1 line

All of the wasm32 stuff is supposed to be gone.

I think [email protected] should fix it,
but I need to re-read how to trigger the weekly build on my test branch to test it.

Quoted 2 lines

r~

Quoted 7 lines

What if docker-verify was depending on building the container locally instead? It would allow to have a self-contained command, that works the same in local, or in CI, without any yaml dependencies.

With current approach, it's tricky to reproduce locally as it depends on global gitlab registry, while we are just trying to see if images is buildable from scratch or not.

No - the point of verify was to check we where building in the registry.

A lot of the Makefile.include stuff is legacy now (although its a useful wrapper for building tests locally) because gitlab invokes the containers directly. We used to do all sorts of dependency handling as well but the lcitool approach is a lot cleaner even if we don't get layered containers.

Quoted 3 lines

The fact it's hard to guess how to test such a change exposes that there is a problem to reproduce this, even for the original author.

Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro
#11 lore raw
Quoted 26 lines · Alex Bennée
Quoted 24 lines · Pierrick Bouvier
Quoted 9 lines · Alex Bennée
Quoted 7 lines · Richard Henderson
Quoted 5 lines · Alex Bennée

I think it was broken by 4203ea0247f (gitlab-ci: Add build tests for wasm64) because we base the tests of the existence of dockerfiles and it now generates multiple targets.
Do we actually use the wasm32 stuff anymore? Maybe we can just rename it?

Quoted 9 lines
Quoted 1 line

All of the wasm32 stuff is supposed to be gone.

I think [email protected] should fix it,
but I need to re-read how to trigger the weekly build on my test branch to test it.

Quoted 2 lines

r~

What if docker-verify was depending on building the container locally instead? It would allow to have a self-contained command, that works the same in local, or in CI, without any yaml dependencies.

Quoted 7 lines
Quoted 3 lines

With current approach, it's tricky to reproduce locally as it depends on global gitlab registry, while we are just trying to see if images is buildable from scratch or not.

No - the point of verify was to check we where building in the registry.

Hum, I'm not sure what "building in the registry" means. Containers are always built locally then (optionally) pushed to a given registry.

If you want to test something useful, it has to be a build from scratch (docker build --no-cache ...).

Quoted 6 lines

A lot of the Makefile.include stuff is legacy now (although its a useful wrapper for building tests locally) because gitlab invokes the containers directly. We used to do all sorts of dependency handling as well but the lcitool approach is a lot cleaner even if we don't get layered containers.

The commit message for 8bec7b9874 is:

```
gitlab: add a weekly container building job
This will hopefully catch containers that break because of upstream changes as well as keep the container cache fresh.
```

IMHO, a simple weekly job doing what we want is:
docker build --no-cache - < $dockerfile

I don't see what is the relation with gitlab, lcitool or Makefile.

Maybe I miss some extra insights or goals that were not documented in original commit, but it seems like the current implementation is not aware of what it's supposed to do.

#12 lore raw
Quoted 30 lines · Pierrick Bouvier
Quoted 29 lines · Alex Bennée
Quoted 27 lines · Pierrick Bouvier
Quoted 9 lines · Alex Bennée
Quoted 7 lines · Richard Henderson
Quoted 5 lines · Alex Bennée

I think it was broken by 4203ea0247f (gitlab-ci: Add build tests for wasm64) because we base the tests of the existence of dockerfiles and it now generates multiple targets.
Do we actually use the wasm32 stuff anymore? Maybe we can just rename it?

Quoted 9 lines
Quoted 1 line

All of the wasm32 stuff is supposed to be gone.

I think [email protected] should fix it,
but I need to re-read how to trigger the weekly build on my test branch to test it.

Quoted 2 lines

r~

What if docker-verify was depending on building the container locally instead? It would allow to have a self-contained command, that works the same in local, or in CI, without any yaml dependencies.

With current approach, it's tricky to reproduce locally as it depends on global gitlab registry, while we are just trying to see if images is buildable from scratch or not.

Quoted 6 lines
Quoted 3 lines

No - the point of verify was to check we where building in the registry.

Hum, I'm not sure what "building in the registry" means. Containers are always built locally then (optionally) pushed to a given registry.

Yes - and this checks that the registry is up to date. We don't want to re-build every time if it can cache. This benefits the CI and the downstream users that pull the images.

Quoted 11 lines

If you want to test something useful, it has to be a build from scratch (docker build --no-cache ...).

Quoted 6 lines

A lot of the Makefile.include stuff is legacy now (although its a useful wrapper for building tests locally) because gitlab invokes the containers directly. We used to do all sorts of dependency handling as well but the lcitool approach is a lot cleaner even if we don't get layered containers.

The commit message for 8bec7b9874 is:

Quoted 8 lines
```
gitlab: add a weekly container building job
This will hopefully catch containers that break because of upstream
changes as well as keep the container cache fresh.
```

IMHO, a simple weekly job doing what we want is:
docker build --no-cache - < $dockerfile

The containers are built by the dependencies:

needs:

    # core
    - amd64-centos9-container
    - amd64-fedora-container
    # cross
    - amd64-debian-cross-container
    - amd64-debian-user-cross-container
    - amd64-debian-legacy-cross-container
    - arm64-debian-cross-container
    - hexagon-cross-container
    - loongarch-debian-cross-container
    - mips64el-debian-cross-container
    - ppc64el-debian-cross-container
    - riscv64-debian-cross-container
    - s390x-debian-cross-container
    - tricore-debian-cross-container
    - xtensa-debian-cross-container
    - win64-fedora-cross-container
    - wasm64-emsdk-cross-container
    # containers
    - amd64-alpine-container
    - amd64-debian-container
    - amd64-ubuntu2204-container
    - amd64-opensuse-leap-container
    - python-container
    - amd64-fedora-rust-nightly-container
Quoted 5 lines

I don't see what is the relation with gitlab, lcitool or Makefile.

Maybe I miss some extra insights or goals that were not documented in original commit, but it seems like the current implementation is not aware of what it's supposed to do.

We occasionally see failures due to upstream distro changes. By having a separate job we can see if it happens independent of testing staging trees.

Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro
#13 lore raw
Quoted 36 lines · Alex Bennée
Quoted 34 lines · Pierrick Bouvier
Quoted 32 lines · Alex Bennée
Quoted 20 lines · Pierrick Bouvier
Quoted 9 lines · Alex Bennée
Quoted 7 lines · Richard Henderson
Quoted 5 lines · Alex Bennée

I think it was broken by 4203ea0247f (gitlab-ci: Add build tests for wasm64) because we base the tests of the existence of dockerfiles and it now generates multiple targets.
Do we actually use the wasm32 stuff anymore? Maybe we can just rename it?

Quoted 9 lines
Quoted 1 line

All of the wasm32 stuff is supposed to be gone.

I think [email protected] should fix it,
but I need to re-read how to trigger the weekly build on my test branch to test it.

Quoted 2 lines

r~

Quoted 7 lines

What if docker-verify was depending on building the container locally instead? It would allow to have a self-contained command, that works the same in local, or in CI, without any yaml dependencies.

With current approach, it's tricky to reproduce locally as it depends on global gitlab registry, while we are just trying to see if images is buildable from scratch or not.

No - the point of verify was to check we where building in the registry.

Quoted 7 lines
Quoted 2 lines

Hum, I'm not sure what "building in the registry" means. Containers are always built locally then (optionally) pushed to a given registry.

Yes - and this checks that the registry is up to date. We don't want to re-build every time if it can cache. This benefits the CI and the downstream users that pull the images.

Of course, and reusing layers is a good way to optimize our CI, local dev workflow, and reduce pressure on distro servers.
The point I was talking about is related to this weekly-job only, which we specifically want to be without all those layers, to test if image is still buildable from scratch.

Quoted 51 lines
Quoted 11 lines

If you want to test something useful, it has to be a build from scratch (docker build --no-cache ...).

Quoted 6 lines

A lot of the Makefile.include stuff is legacy now (although its a useful wrapper for building tests locally) because gitlab invokes the containers directly. We used to do all sorts of dependency handling as well but the lcitool approach is a lot cleaner even if we don't get layered containers.

The commit message for 8bec7b9874 is:

Quoted 8 lines
```
gitlab: add a weekly container building job
This will hopefully catch containers that break because of upstream
changes as well as keep the container cache fresh.
```

IMHO, a simple weekly job doing what we want is:
docker build --no-cache - < $dockerfile

The containers are built by the dependencies:

needs:

     # core
     - amd64-centos9-container
     - amd64-fedora-container
     # cross
     - amd64-debian-cross-container
     - amd64-debian-user-cross-container
     - amd64-debian-legacy-cross-container
     - arm64-debian-cross-container
     - hexagon-cross-container
     - loongarch-debian-cross-container
     - mips64el-debian-cross-container
     - ppc64el-debian-cross-container
     - riscv64-debian-cross-container
     - s390x-debian-cross-container
     - tricore-debian-cross-container
     - xtensa-debian-cross-container
     - win64-fedora-cross-container
     - wasm64-emsdk-cross-container
     # containers
     - amd64-alpine-container
     - amd64-debian-container
     - amd64-ubuntu2204-container
     - amd64-opensuse-leap-container
     - python-container
     - amd64-fedora-rust-nightly-container
Quoted 2 lines

I don't see what is the relation with gitlab, lcitool or Makefile.

Quoted 8 lines
Quoted 3 lines

Maybe I miss some extra insights or goals that were not documented in original commit, but it seems like the current implementation is not aware of what it's supposed to do.

We occasionally see failures due to upstream distro changes. By having a separate job we can see if it happens independent of testing staging trees.

Yes, and this happens a new divergent layer is added, mostly when we modify dockerfiles themselves with lcitool.

From our container template:
https://gitlab.com/qemu-project/qemu/-/blob/master/.gitlab-ci.d/container-template.yml

```
.container_job_template:
...
export TAG="$CI_REGISTRY_IMAGE/qemu/$NAME:$QEMU_CI_CONTAINER_TAG"
export COMMON_TAG="$CI_REGISTRY/qemu-project/qemu/qemu/$NAME:latest"
...
docker build --tag "$TAG" --cache-from "$TAG" --cache-from "$COMMON_TAG"
      --build-arg BUILDKIT_INLINE_CACHE=1
      $BUILD_ARGS
      -f "tests/docker/dockerfiles/$DOCKERFILE_NAME.docker" "."
```

--cache-from makes that we reuse the existing layers, so the weekly job will not expose anything we don't already saw through regular PR pipelines.

You need to build with --no-cache, to make sure docker builds from scratch. This is not what current weekly job does.

As we talked about in private our conversation with Alex, the two solutions are:
1. make weekly-container use docker build --no-cache directly - < /path/to/dockerfile, without pushing any result (and not trashing everyone's cached layers).
2. extend complex yaml machinery to conditionally use cache or not, and push or not resulting image.

IMHO, 1 is much simpler, and can even be turned into a daily job, so we can see daily what's the status of upstream distros, and know as soon as possible when they are fixed. As well, skopeo can be ditched since it's not checking anything useful, except if image is available in gitlab registry, which we know is by design.

I suspect Alex might prefer 2. and I won't push against it, but let him debug the yaml pile :)

Pierrick

#14 lore raw
In reply to Richard Henderson
Quoted 11 lines · Richard Henderson

Hiya,

I noticed this today, wondering why the daily scheduled builds are failing:

https://gitlab.com/qemu-project/qemu/-/jobs/12868286187

time="2026-01-26T17:34:06Z" level=fatal msg="Error parsing image name \"docker://registry.gitlab.com/qemu-project/qemu/qemu/emsdk-wasm-cross\": reading manifest latest in registry.gitlab.com/qemu-project/qemu/qemu/emsdk-wasm-cross: manifest unknown"
make: *** [tests/docker/Makefile.include:54: docker-verify-emsdk-wasm-cross] Error 2

Quoted 7 lines

I'm not really sure what the error message means. Do we need to push a built version of emsdk-wasm-cross to gitlab, so that a manifest is present? Which doesn't make much sense, since the job is all about a weekly rebuild of the containers.

r~

Not sure how the mechanic for creating those containers was added, but it just seems like this containers does not exist in the registry, and skopeo inspect ... docker://registry.gitlab.com/qemu-project/qemu/qemu/emsdk-wasm-cross fails accordingly. So maybe we should find why this container image was not built and pushed in the first place.