[PATCH] CI: Use different containers for concurrent runner

Tom Rini trini at konsulko.com
Mon Feb 3 18:13:56 CET 2025


On Mon, Feb 03, 2025 at 09:25:54AM -0700, Simon Glass wrote:

> When running multiple runners on the same machine, each should be in its
> own container to avoid them interfering with either other.
> 
> Add a container name for this. Ensure it is removed after use.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
>  .gitlab-ci.yml | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> index 1d4d3a85741..3487ad7e579 100644
> --- a/.gitlab-ci.yml
> +++ b/.gitlab-ci.yml
> @@ -14,6 +14,10 @@ default:
>  # in the u-boot tree at tools/docker/Dockerfile
>  image: ${MIRROR_DOCKER}/trini/u-boot-gitlab-ci-runner:jammy-20240911.1-08Dec2024
>  
> +services:
> +  - name: container:${CI_JOB_ID}`
> +    command: ["--rm"]
> +
>  # We run some tests in different order, to catch some failures quicker.
>  stages:
>    - testsuites

This seems fine, but we should start by moving the image: line to be
under the default: stanza, and then add this in default as well.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250203/b0a11813/attachment.sig>


More information about the U-Boot mailing list