On Fri, 2023-09-29 at 14:06 +0200, Alexander Kanavin wrote: > On Thu, 28 Sept 2023 at 18:49, Richard Purdie > <richard.pur...@linuxfoundation.org> wrote: > > > I'm curious to see what you find with analysis of bitbake-whatchanged. > > I've taken a look a the script. It obtains the current location of > STAMPS_DIR, then runs this: > > # Generate the new stamps dir > print("Generating the new stamps ... (need several minutes)") > cmdline = "STAMPS_DIR=%s bitbake -S none %s" % (new_stampsdir, > args.recipe) > > Then it walks both trees, matching up file names with a regex: > > # Match the stamp's filename > # group(1): PE_PV (may no PE) > # group(2): PR > # group(3): TASK > # group(4): HASH > stamp_re = > re.compile("(?P<pv>.*)-(?P<pr>r\d+)\.(?P<task>do_\w+)\.(?P<hash>[^\.]*)") > > Then there's some code that finds out what changed in the above > between the two sets. > > I don't see a way to make it work: messing about with STAMPS_DIR like > that isn't supported, and will either do nothing, or remove the > original stamps. Also stamp filenames aren't really a 'public API', > are they? > > Should the script simply be removed, or is there some better way to > re-implement answering the 'what has changed' question in a way that > doesn't flood the console with task hashes? I'd be glad to get > suggestions for this.
I'd prefer to see some dedicated bitbake API used even if we need to create/add it. tinfoil and some of the bblock/unlock work shows we can get stamp data, the question would be how to get it without "disturbing" the existing build. By using dedicated API, we'd be able to control the console output. Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#61163): https://lists.yoctoproject.org/g/yocto/message/61163 Mute This Topic: https://lists.yoctoproject.org/mt/101503345/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/leave/6691583/21656/737036229/xyzzy [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-