Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 84964C88E6A for ; Mon, 14 Sep 2026 07:29:19 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x617f-0008Af-Iy; Mon, 14 Sep 2026 03:29:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x617c-00085A-Tp for qemu-arm@nongnu.org; Mon, 14 Sep 2026 03:29:00 -0400 Received: from mail-wr2-x10.google.com ([2a00:1450:4864:30::10]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1x617Z-00062g-Py for qemu-arm@nongnu.org; Mon, 14 Sep 2026 03:29:00 -0400 Received: by mail-wr2-x10.google.com with SMTP id ffacd0b85a97d-4858bc96fabso1099562f8f.3 for ; Mon, 14 Sep 2026 00:28:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1789370936; x=1789975736; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:message-id:date :user-agent:references:in-reply-to:subject:cc:to:from:from:to:cc :subject:date:message-id:reply-to:content-type; bh=miCeAUCJ/P28lDvL07gO6RScRtVNKg+m4eTqKf4dglc=; b=mOBhVZw5l5+0yMCTBh6F3YtzVCaH+x55b1CmRgUCbZh8EVFms3VDnQeOOSrptemFSy L+iTliepvKU4WOodRjxn8zYC4lHwMPPUjBWkc+UPIOXgMH/+Opu8gkcgpA1NjxBiLpou bbxKHT31+sEIoO0+LT+wKL8YBL3tUfa6dSoPBJBtGMjKl4fA4DZQXtoR4TbtU06Nzi1j 6LkO+1OWKOl3p4Ap9w25LLAtfhjllUAkCQYx3BqTi8TsU+83YqJMqpKjTh/GX7/E6H+M ZymxTjLTamIR/VMOrb5gtlcEIBY0JXFIp7eIQhv5AaqbS2rMJghhrdZO1va1DJQ5NztR T4WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789370936; x=1789975736; h=content-transfer-encoding:content-type:mime-version:message-id:date :user-agent:references:in-reply-to:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=miCeAUCJ/P28lDvL07gO6RScRtVNKg+m4eTqKf4dglc=; b=AZwccqCRWmdK0AEFsQEzRvQPK39q1SMgk3n3sZAoAjTI2lp56/rPiIzt03PhpdOyKx AxzcN1V1xGQ+SSzQM2VTnEcz5z/GDtnIhmVFX2yvvjPQ83/dUOuUbngLdn70/Th29IKN 89FEkwoeCzjD5hRYvvbUhCxBQ7mciyUj2iY7327KF7ryB/9WQt9LtH5bVizotCn3xxfT DJ88E0qSy1yIj8KzeHIZcHZzDO56mDsbT+UR9iZjP8s4CSoUJ1jti0NbuobShGB0ge22 rwbT8LXpH0eDLgtdSOYAjEBZyoz6IPzH4TMeYYK8qLDvmJiv5Xdi/ZaN3PBT1er9KfZh sjQw== X-Forwarded-Encrypted: i=1; AKwUvByoaJADLH1ppj8qXZ3F8GhOvlx3uSv025f5DM3k2rp/goc/ZWAYuZP3Ek3YaMgmPz3bhsxKz+ZttA==@nongnu.org X-Gm-Message-State: AFuF++nI/ovXS3cPMeDxfe3Q6SLHsCmP5tWCJoQ86qb2ep5qubvy9I9G 3plaiA5hC43CW/0dEfVdrp13bVu9NfQwQ45A9Av4RJ30bgM+qUwkY2Jed4oTIqvtndU= X-Gm-Gg: AYBFou3l2rfeS7QhSAAYouHujrfmc92uO/kFgN2a8gM68rP9PTd413sihsRnb2lIiVn fHl3vT6jIg7pat5UlJC54GC+hCMoZo+jYDwo41BGz4Oq/nhjxDS+lqOPfbZSTFw+Ockt7Ve/7dA I2MhR42lfsyz75HqIhPXZ568pMvWuHesnvqbUxIt0XeXpCI6cwZRFjW2MUdaba5gQfRtak6D9OA GFJykEFT/fqmxU5CS3g+2zdt0gU80aJZS/rkGSUc8nOcIz18A2QpW+2kntTclpx0SMK5KdUljdA MlQyiijnJccljE+0h393dThf9yuLjwlpmVfkNgN71Q6X460MTBEaIUci+ENfVWBnrPIYIAqhrxf RtAHQ+SCHExY3L7zySKsxZ47+InRpVLh5fR6L8dzDhsRC9FIe1pgLT2bEX5cPJm78ZXiigWAvEw MJhozyHAR09pymBtRb6wvIMv59OtCHi97AFes70qVdUIl0TpEODTxaPQBpKcvGGHPgI0iUxrzZ X-Received: by 2002:a05:6000:491e:b0:485:a964:be3d with SMTP id ffacd0b85a97d-48702ab66bbmr1193783f8f.13.1789370936155; Mon, 14 Sep 2026 00:28:56 -0700 (PDT) Received: from draig.lan ([185.124.0.156]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-486eb330bdcsm25732716f8f.13.2026.09.14.00.28.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Sep 2026 00:28:55 -0700 (PDT) Received: from draig (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 712855F920; Mon, 14 Sep 2026 08:28:54 +0100 (BST) From: =?utf-8?Q?Alex_Benn=C3=A9e?= To: Pierrick Bouvier Cc: qemu-devel@nongnu.org, Brad Smith , Jiaxun Yang , Song Gao , Warner Losh , Daniel P. =?utf-8?Q?Berrang=C3=A9?= , Peter Maydell , Cornelia Huck , Fabiano Rosas , John Snow , Paolo Bonzini , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= , Thomas Huth , Brian Cain , qemu-arm@nongnu.org, =?utf-8?Q?Marc-Andr?= =?utf-8?Q?=C3=A9?= Lureau , Kyle Evans , Richard Henderson , Cleber Rosa Subject: Re: [PATCH 5/9] tests/docker: add container registry to configure and use In-Reply-To: (Pierrick Bouvier's message of "Sun, 13 Sep 2026 22:21:33 -0700") References: <20260910181504.1010916-1-alex.bennee@linaro.org> <20260910181504.1010916-6-alex.bennee@linaro.org> User-Agent: mu4e 1.14.4-pre2; emacs 30.1 Date: Mon, 14 Sep 2026 08:28:54 +0100 Message-ID: <87qziw1ebt.fsf@draig.linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:30::10; envelope-from=alex.bennee@linaro.org; helo=mail-wr2-x10.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Pierrick Bouvier writes: > On 9/10/26 11:15 AM, Alex Benn=C3=A9e wrote: >> Previously we had the default baked into Makefile.include but as the >> meson container logic will also benefit from it we update the configure >> machinery. >> For now we allow direct make invocations to override but for the >> normal case it is in one place now. >> Signed-off-by: Alex Benn=C3=A9e >> --- >> configure | 8 ++++++++ >> meson_options.txt | 3 +++ >> tests/docker/Makefile.include | 4 +--- >> tests/tcg/meson.build | 6 ++++++ >> 4 files changed, 18 insertions(+), 3 deletions(-) >> diff --git a/configure b/configure >> index aaa41fe47aa..7d6b11ddd35 100755 >> --- a/configure >> +++ b/configure >> @@ -172,6 +172,7 @@ fi >> # some defaults, based on the host environment >> # default parameters >> +container_registry=3D"registry.gitlab.com/qemu-project/qemu" >> cpu=3D"" >> cross_compile=3D"no" >> cross_prefix=3D"" >> @@ -728,6 +729,9 @@ for opt do >> ;; >> --container-command=3D*) meson_option_add -Dcontainer_command=3D"$op= targ" >> ;; >> + --container-registry=3D*) container_registry=3D"$optarg" >> + meson_option_add -Dcontainer_registry=3D"$opt= arg" >> + ;; >> --rust-target-triple=3D*) rust_target_triple=3D"$optarg" >> ;; >> --gdb=3D*) meson_option_add -Dgdb=3D"$optarg" >> @@ -862,6 +866,7 @@ Advanced options (experts only): >> --cpu=3DCPU Build for host CPU [$cpu] >> --disable-containers don't use containers for cross-building >> --container-command=3DCMD which container command to use [autodetec= t] >> + --container-registry=3DURL which container registry to cache from [$c= ontainer_registry] >> --gdb=3DGDB-path gdb to use for gdbstub tests [autodetect] >> --wasm64-32bit-address-limit Restrict wasm64 address space to 32-bit= (default >> is to use the whole 64-bit range). >> @@ -1318,6 +1323,9 @@ echo "GENISOIMAGE=3D$genisoimage" >> $config_host_= mak >> echo "MESON=3D$meson" >> $config_host_mak >> echo "NINJA=3D$ninja" >> $config_host_mak >> echo "EXESUF=3D$EXESUF" >> $config_host_mak >> +if test -n "$container_registry"; then >> + echo "DOCKER_DEFAULT_REGISTRY=3D$container_registry" >> $config_host_= mak >> +fi >> if test "$default_targets" =3D "yes"; then >> echo "CONFIG_DEFAULT_TARGETS=3Dy" >> $config_host_mak >> fi >> diff --git a/meson_options.txt b/meson_options.txt >> index 292625af08a..030231492e1 100644 >> --- a/meson_options.txt >> +++ b/meson_options.txt >> @@ -391,6 +391,9 @@ option('containers', type: 'boolean', value: true, >> description: 'use containers to cross compile tcg tests') >> option('container_command', type: 'string', >> description: 'command to build/run containers') >> +option('container_registry', type: 'string', >> + value: 'registry.gitlab.com/qemu-project/qemu', >> + description: 'container registry to cache from') >> option('tcg_tests_cross_cc_aarch64', type: 'string', >> description: 'cc for aarch64 tcg tests') >> diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.inclu= de >> index 0adddb6a5c6..74bf471f171 100644 >> --- a/tests/docker/Makefile.include >> +++ b/tests/docker/Makefile.include >> @@ -11,9 +11,7 @@ USER =3D $(if $(NOUSER),,$(shell id -un)) >> UID =3D $(if $(NOUSER),,$(shell id -u)) >> DOCKER_FILES_DIR :=3D $(SRC_PATH)/tests/docker/dockerfiles >> -ifeq ($(HOST_ARCH),x86_64) >> -DOCKER_DEFAULT_REGISTRY :=3D registry.gitlab.com/qemu-project/qemu >> -endif >> +DOCKER_DEFAULT_REGISTRY ?=3D registry.gitlab.com/qemu-project/qemu >> DOCKER_REGISTRY :=3D $(if $(REGISTRY),$(REGISTRY),$(DOCKER_DEFAULT_REG= ISTRY)) >> > > Couldn't we read the default from config_host_mak generated by > configure instead? > >> CONTAINER_COMMAND ?=3D $(shell $(SRC_PATH)/tests/docker/docker.py prob= e) >> diff --git a/tests/tcg/meson.build b/tests/tcg/meson.build >> index 814f2f8cd8c..22157a47c96 100644 >> --- a/tests/tcg/meson.build >> +++ b/tests/tcg/meson.build >> @@ -101,6 +101,9 @@ if get_option('containers') >> endif >> endif >> tcg_tests_summary +=3D {'container command': container_command} >> +if get_option('container_registry') !=3D '' >> + tcg_tests_summary +=3D {'container registry': get_option('container_r= egistry')} >> +endif >> # plugins come first, as we need to build the list >> test_plugins =3D {} >> @@ -257,6 +260,9 @@ foreach target, plan: tcg_tests >> if cc_dockerfile not in image_targets and has_docker >> cmd =3D [docker_wrapper, 'build', '-f', dockerfile, '-t', 'qemu/= ' + cc_dockerfile, >> '--add-current-user'] >> + if get_option('container_registry') !=3D '' >> + cmd +=3D ['--registry', get_option('container_registry')] >> + endif >> t =3D custom_target(image_name, command: cmd, >> build_by_default: false, >> output: 'no_output_' + image_name) > > Do user benefit from this, or is it mostly for CI need? The aim is for faster image builds because the CI registry should always be up to date. Most of the time the images don't change. > > The effect is to use --cache-from $registry, which I'm not sure is > what we want by default, given all the "caching issues" we had > previously with dockerfiles already. > If that's for CI, maybe it could simply set with --container-command > in our CI only. > > Regards, > Pierrick --=20 Alex Benn=C3=A9e Virtualisation Tech Lead @ Linaro