public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: Mikko Rapeli <mikko.rapeli@linaro.org>
To: Trevor Woerner <twoerner@gmail.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH] oeqa wic.py: clean image build dir before rebuild in test_permissions()
Date: Tue, 15 Apr 2025 08:07:19 +0300	[thread overview]
Message-ID: <Z_3phyMbfFT4937_@nuoska> (raw)
In-Reply-To: <20250414205613.GA8398@localhost>

Hi,

On Mon, Apr 14, 2025 at 04:56:14PM -0400, Trevor Woerner wrote:
> On Mon 2025-04-07 @ 02:09:45 PM, Mikko Rapeli via lists.openembedded.org wrote:
> > The test builds images using wic and then with bitbake
> > and compares results. This fails at least on aarch64
> > build machine and multiple target machines due to
> > pseudo errors. Fix by cleaning the build recipe
> > build directory before rebuild.
> > 
> > Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
> > ---
> >  meta/lib/oeqa/selftest/cases/wic.py | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/selftest/cases/wic.py
> > index 4f5d43b5ee..55c655cd6d 100644
> > --- a/meta/lib/oeqa/selftest/cases/wic.py
> > +++ b/meta/lib/oeqa/selftest/cases/wic.py
> > @@ -674,6 +674,7 @@ part /etc --source rootfs --fstype=ext4 --change-directory=etc
> >  
> >                  config = 'IMAGE_FSTYPES += "wic"\nWKS_FILE = "%s"\n' % wks_file
> >                  self.append_config(config)
> > +                bitbake('-c clean core-image-minimal')
> >                  bitbake('core-image-minimal')
> >                  tmpdir = os.path.join(get_bb_var('WORKDIR', 'core-image-minimal'),'build-wic')
> >  
> 
> I have seen this issue too, but it is intermittent for me; is this an
> intermittent issue with you as well? This feels a lot more like a hack rather
> than a solution.

This is somewhat reproducible. I don't fully understand what is happening
but it has something to do with pseudo fakeroot database and creating
files with wic directly vs wic via bitbake build. Hack, possibly, but it
fixes the issue. I don't expect pseudo to work correctly if tools are run
in and outside of bitbake build environment.

Cheers,

-Mikko


  reply	other threads:[~2025-04-15  5:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-07 11:09 [PATCH] oeqa wic.py: clean image build dir before rebuild in test_permissions() Mikko Rapeli
2025-04-14 20:56 ` [OE-core] " Trevor Woerner
2025-04-15  5:07   ` Mikko Rapeli [this message]
2025-04-24 10:38 ` Richard Purdie

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=Z_3phyMbfFT4937_@nuoska \
    --to=mikko.rapeli@linaro.org \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=twoerner@gmail.com \
    /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