Add an optional runner tag for the buildx assets jobs

What does this MR do and why?

Adds an optional runner tag, GLCI_BUILDX_RUNNER_OPTIONAL, to compile-production-assets and build-assets-image. The as-if-foss and istanbul variants extend these two jobs and inherit it. compile-production-assets vue3 is not changed.

The variable is empty by default, and an empty tag is dropped when the pipeline is created. In the pipeline of this MR both jobs have only the large runner tag, in gitlab-org/gitlab and in the as-if-foss pipeline. dev.gitlab.org, JiHu and forks need no change.

On gitlab-org/gitlab the variable will be set to docker-machine-legacy, a tag that the VM runners have and the gVisor runners do not. Since 2026-11-11 the gVisor runners take a share of the jobs of the private runners. Both jobs build linux/arm64 images with buildx through QEMU, which the gVisor sandbox cannot provide. On gVisor they have failed every time: more than 350 failed jobs and none passed. build-assets-image has retry: 2. A pipeline that lands there spends three attempts on it.

The error the jobs stop at first on gVisor is Cannot connect to the Docker daemon at tcp://docker:2375. That one has a fix in progress in the runner (see References). QEMU is the reason the jobs need the VM runners.

As-if-foss: the trigger job forwards the variable like the other runner tag variables. A forwarded variable only resolves when it is set in the CI/CD settings of the parent project. With only the default from the CI configuration, the as-if-foss jobs get the literal $GLCI_BUILDX_RUNNER_OPTIONAL as a tag, and no runner picks them up. GLCI_BUILDX_RUNNER_OPTIONAL is now set to an empty value on gitlab-org/gitlab and on gitlab-org/gitlab-foss. Any other project that starts as-if-foss pipelines needs it set as well, empty or with a tag.

To take effect: change the value to docker-machine-legacy on gitlab-org/gitlab, which covers its own pipelines and the as-if-foss ones, and on gitlab-org/gitlab-foss for its own master and stable branch pipelines. With the empty value both jobs run with the large runner tag only, as they do today.

References

Screenshots or screen recordings

Not applicable, CI configuration only.

How to set up and validate locally

No local steps. In a pipeline of this MR, compile-production-assets and build-assets-image show only the large runner tag, because the variable is empty. Once the variable is set, they show both tags and run on k8s.large.private.runners-manager.gitlab.com.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Igor

Merge request reports

Loading
Loading