[bitbake-devel] [PATCH] Create Build object earlier in bitbake processing

Michael Wood michael.g.wood at intel.com
Thu Mar 10 13:57:54 UTC 2016


Patch from Elliot for capturing early build failure errors

""
To capture command-line build failures earlier, add an additional event to
the bitbake XMLRPC server which fires just before the buildTargets command
is run. This event contains the target and task information required by
Toaster for annotating a build so that it displays correctly in the "recent
builds" page fragment. Toaster can then capture builds which fail very early
in the build process (e.g. due to bitbake misconfiguration or bad targets) and
display them intelligibly.

Note that you may get an error like this when running a build on this branch:

WARNING: Unknown event: <bb.event.ParseStarted object at 0x29f2950>

This should be resolved later by Ed's patches (awaiting review) which fix how
Toaster uses the event mask.

To test, try the following on the command line:

1. Set an invalid MACHINE in conf/toaster.conf and do a build of a valid target, e.g. bitbake zlib.
2. Set an invalid DISTRO in conf/toaster.conf and do a build of a valid target, e.g. bitbake zlib.
3. Try to build an invalid target, e.g. bitbake zzz.

In all cases, the "all builds" pages should show the failed command line build.
Note that the fixes for bug 8443 (which I will submit once these patches
are in toaster-next) will improve how we display such early failed builds.

Related bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=8440
""

Elliot Smith (1):
  toaster: create Build object earlier in bitbake processing

 lib/bb/event.py                                    |  7 +++
 lib/bb/server/xmlrpc.py                            |  3 +
 lib/bb/ui/buildinfohelper.py                       | 73 ++++++++++------------
 lib/bb/ui/toasterui.py                             | 17 ++---
 .../orm/migrations/0006_remove_build_build_name.py | 18 ++++++
 lib/toaster/orm/models.py                          |  1 -
 .../fixtures/toastergui-unittest-data.xml          |  4 --
 7 files changed, 71 insertions(+), 52 deletions(-)
 create mode 100644 lib/toaster/orm/migrations/0006_remove_build_build_name.py

-- 
2.1.4




More information about the bitbake-devel mailing list