Re: [toaster][PATCHv3 3/3] toaster: Update eventreplay functionality for new eventlog file structure
Richard Purdie <[email protected]> Wed, 06 Dec 2023 23:02:09 +0000
| Newsgroups | org.yoctoproject.lists.toaster,org.openembedded.lists.bitbake-devel |
|---|---|
| Message-ID | <9e1be8c6a333fcbb50b7e6fdfab98094a341e025.camel@linuxfoundation.org> |
On Wed, 2023-12-06 at 17:43 -0500, Marlon Rodriguez Garcia wrote: > Added class EventPlayer to list of libraries under bitbake/bb/ui/ > Update file read functionality to match new eventlog format > > Exclude listing of files that don't contain the allvariables definitions used to replay builds > This part of the feature should be revisited. Over a long period of time, the BB_DEFAULT_EVENTLOG > will exponentially increase the size of the log file and cause bottlenecks when importing. > > Signed-off-by: Marlon Rodriguez Garcia <[email protected]> > --- > lib/bb/ui/eventreplay.py | 85 +++++++++++++++++++++ > lib/toaster/toastergui/views.py | 131 ++++++++++++-------------------- > 2 files changed, 132 insertions(+), 84 deletions(-) > create mode 100644 lib/bb/ui/eventreplay.py Our patches overlapped! I've merged a patch to fix toaster-eventreplay and it is slightly different to the code below. The major tweaks are handling a second 'allvariables' entry and adding a eventfile.seek(0) to reset the stream before calling the player. We should probably have a standalone patch moving that code from toaster-eventreplay to lib/bb/ui/eventreplay.py and making it use it, when can then be followed by the patch below to have views.py use it as well? Cheers, Richard