QEMU-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Cc: qemu-devel@nongnu.org, "Brad Smith" <brad@comstyle.com>,
	"Jiaxun Yang" <jiaxun.yang@flygoat.com>,
	"Song Gao" <gaosong@loongson.cn>, "Warner Losh" <imp@bsdimp.com>,
	"Daniel P. Berrangé" <berrange@redhat.com>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Cornelia Huck" <cohuck@redhat.com>,
	"Fabiano Rosas" <farosas@suse.de>, "John Snow" <jsnow@redhat.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@mailo.com>,
	"Thomas Huth" <th.huth+qemu@posteo.eu>,
	"Brian Cain" <brian.cain@oss.qualcomm.com>,
	qemu-arm@nongnu.org,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Kyle Evans" <kevans@freebsd.org>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"Cleber Rosa" <crosa@redhat.com>
Subject: Re: [PATCH 4/9] tests/tcg: use --add-current-user when building containers
Date: Mon, 14 Sep 2026 08:27:57 +0100	[thread overview]
Message-ID: <87wlso1ede.fsf@draig.linaro.org> (raw)
In-Reply-To: <78b4bda8-02cc-40b3-b9aa-137069a54811@oss.qualcomm.com> (Pierrick Bouvier's message of "Sun, 13 Sep 2026 22:15:12 -0700")

Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com> writes:

> On 9/10/26 11:14 AM, Alex Bennée wrote:
>> As the meson tcg build routes the container builds through docker.py
>> we can also clean up its hack which involved appending a RUN line to
>> the dockerfile. All the dockerfiles that care will work with the
>> --build-arg.
>> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
>> ---
>>   tests/docker/docker.py | 13 ++++++-------
>>   tests/tcg/meson.build  |  3 ++-
>>   2 files changed, 8 insertions(+), 8 deletions(-)
>> 
>
> I'm not sure why this was added in the first place.
> Technically, running the container with a specific uid (whether or not
> a user is declared for it) is enough. The only errors you can have is
> if some specific commands ran expect to check if user exist on the
> machine, like sudo for instance.
> For our need (cross compilation), it's not needed, as a compiler will
> never check who is $USER. Files written will still have the correct
> uid on host fs anyway.

That's why you do the mapping. Before I was seeing a whole bunch of the
test files with a random group ownership.

>
> Do you have more info on this?
>
> Regards,
> Pierrick

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro


  reply	other threads:[~2026-09-14  7:28 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-10 18:14 [PATCH 0/9] testing: various docker clean-ups post meson tcg conversion Alex Bennée
2026-09-10 18:14 ` [PATCH 1/9] scripts/meson-buildoptions.sh: update missing options Alex Bennée
2026-09-10 20:03   ` Fabiano Rosas
2026-09-10 22:17     ` Alex Bennée
2026-09-14  5:00   ` Pierrick Bouvier
2026-09-14 10:22   ` Paolo Bonzini
2026-09-10 18:14 ` [PATCH 2/9] tests/tcg: improve check for working cross compilers Alex Bennée
2026-09-14  5:08   ` Pierrick Bouvier
2026-09-14  8:34     ` Daniel P. Berrangé
2026-09-14 16:05       ` Pierrick Bouvier
2026-09-14 16:07       ` Alex Bennée
2026-09-14 23:55         ` Ilya Leoshkevich
2026-09-15  0:21           ` Pierrick Bouvier
2026-09-10 18:14 ` [PATCH 3/9] tests/tcg: prefix meson built docker tags with qemu/ Alex Bennée
2026-09-14  5:10   ` Pierrick Bouvier
2026-09-10 18:14 ` [PATCH 4/9] tests/tcg: use --add-current-user when building containers Alex Bennée
2026-09-14  5:15   ` Pierrick Bouvier
2026-09-14  7:27     ` Alex Bennée [this message]
2026-09-14 15:59       ` Pierrick Bouvier
2026-09-10 18:15 ` [PATCH 5/9] tests/docker: add container registry to configure and use Alex Bennée
2026-09-14  5:21   ` Pierrick Bouvier
2026-09-14  7:28     ` Alex Bennée
2026-09-14 16:15       ` Pierrick Bouvier
2026-09-14 16:18       ` Pierrick Bouvier
2026-09-15 17:10         ` Alex Bennée
2026-09-15 17:49           ` Pierrick Bouvier
2026-09-10 18:15 ` [PATCH 6/9] tests/docker: remove used _read_qemu_dockerfile Alex Bennée
2026-09-14  5:21   ` Pierrick Bouvier
2026-09-10 18:15 ` [PATCH 7/9] tests/docker: strip remaining caching logic from docker.py Alex Bennée
2026-09-14  5:22   ` Pierrick Bouvier
2026-09-10 18:15 ` [PATCH 8/9] tests/docker: add specific command to parser Alex Bennée
2026-09-14  5:22   ` Pierrick Bouvier
2026-09-10 18:15 ` [PATCH 9/9] tests/docker: swap --quiet for --verbose Alex Bennée
2026-09-12  8:46 ` [PATCH 0/9] testing: various docker clean-ups post meson tcg conversion Richard Henderson
2026-09-12 17:24   ` Alex Bennée
2026-09-12 10:52 ` Richard Henderson
2026-09-12 19:37   ` Alex Bennée

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wlso1ede.fsf@draig.linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=berrange@redhat.com \
    --cc=brad@comstyle.com \
    --cc=brian.cain@oss.qualcomm.com \
    --cc=cohuck@redhat.com \
    --cc=crosa@redhat.com \
    --cc=farosas@suse.de \
    --cc=gaosong@loongson.cn \
    --cc=imp@bsdimp.com \
    --cc=jiaxun.yang@flygoat.com \
    --cc=jsnow@redhat.com \
    --cc=kevans@freebsd.org \
    --cc=marcandre.lureau@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@mailo.com \
    --cc=pierrick.bouvier@oss.qualcomm.com \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=th.huth+qemu@posteo.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox