* [PATCH] oeqa wic.py: clean image build dir before rebuild in test_permissions()
@ 2025-04-07 11:09 Mikko Rapeli
2025-04-14 20:56 ` [OE-core] " Trevor Woerner
2025-04-24 10:38 ` Richard Purdie
0 siblings, 2 replies; 4+ messages in thread
From: Mikko Rapeli @ 2025-04-07 11:09 UTC (permalink / raw)
To: openembedded-core; +Cc: Mikko Rapeli
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')
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [OE-core] [PATCH] oeqa wic.py: clean image build dir before rebuild in test_permissions()
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 ` Trevor Woerner
2025-04-15 5:07 ` Mikko Rapeli
2025-04-24 10:38 ` Richard Purdie
1 sibling, 1 reply; 4+ messages in thread
From: Trevor Woerner @ 2025-04-14 20:56 UTC (permalink / raw)
To: mikko.rapeli; +Cc: openembedded-core
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [OE-core] [PATCH] oeqa wic.py: clean image build dir before rebuild in test_permissions()
2025-04-14 20:56 ` [OE-core] " Trevor Woerner
@ 2025-04-15 5:07 ` Mikko Rapeli
0 siblings, 0 replies; 4+ messages in thread
From: Mikko Rapeli @ 2025-04-15 5:07 UTC (permalink / raw)
To: Trevor Woerner; +Cc: openembedded-core
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [OE-core] [PATCH] oeqa wic.py: clean image build dir before rebuild in test_permissions()
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-24 10:38 ` Richard Purdie
1 sibling, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2025-04-24 10:38 UTC (permalink / raw)
To: mikko.rapeli, openembedded-core
On Mon, 2025-04-07 at 14:09 +0300, 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')
>
>
Just to follow up on this, I'm reluctant to merge this as it will "live
forever" without people understanding why it is there. We really need
to get to the bottom of the underlying issue.
Cheers,
Richard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-04-24 10:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2025-04-24 10:38 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox