On Tue, Jun 13, 2023 at 1:33 PM Richard Purdie <
[email protected]> wrote:

> On Tue, 2023-06-13 at 10:55 +0100, Peter Hoyes wrote:
> > On 23/05/2023 18:06, Ross Burton wrote:
> > > On 17 May 2023, at 17:29, Peter Hoyes via lists.openembedded.org
> > > <[email protected]> wrote:
> > > > The testdata.json file generated as part of the rootfs
> > > > postprocess
> > > > commands contains almost all Bitbake variables and is used by
> > > > OEQA test
> > > > cases to inspect the build environment. However it is only
> > > > regenerated
> > > > when the rootfs task is otherwise retriggered, complicating the
> > > > process
> > > > of developing OEQA test cases.
> > > I’m about to run for dinner, but would it make more sense for this
> > > function to be a separate task inside testimage.bbclass that
> > > happens after rootfs?  This will stop the explosion of variable
> > > dependencies causing rootfs to re-run.
> > >
> > > Ross
> >
> > Thanks for the suggestion - I have implemented this for consideration
> > in
> >
> https://lists.openembedded.org/g/openembedded-core/topic/patch_1_2/99501785
>
> Making it a separate task is fine, the challenge is that it needs to
> run at the same time as image processing so that DATE/TIME are
> consistent and the image names are correct.
>

Maybe the final change from [YOCTO #12937] should help with this as with
that the do_image_complete will produce the images without version suffix
(and only when something in them changed) and separate task will create new
hardlinks with version suffix (which might point to the same image from
previous build or newly built one).

Cheers,


> That implies that it has to be before do_image_complete which means any
> change in variables will retrigger the image creation :(.
>
> I think we need to try and fix this differently and stop exporting
> every variable.
>
> Cheers,
>
> Richard
>
>
> 
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#182713): 
https://lists.openembedded.org/g/openembedded-core/message/182713
Mute This Topic: https://lists.openembedded.org/mt/98951993/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to