[Toaster] [PATCH] Create Build object earlier in bitbake processing

Smith, Elliot elliot.smith at intel.com
Fri Feb 19 03:14:01 PST 2016


On 19 February 2016 at 11:12, Elliot Smith <elliot.smith at intel.com> wrote:

> 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 I sent this patch with a covering letter so I could include
testing instructions without polluting the patch.

Elliot


>
> To test, try the following on the command line:
>
> 1. Set an invalid MACHINE in conf/local.conf and do a build of a valid
> target, e.g. bitbake zlib.
> 2. Set an invalid DISTRO in conf/local.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
> builds. Note that fixing bug 8443 will improve how we show these early
> failed builds.
>
> Related bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=8440
>
> Changes since c0fe43b (toaster-next) are in
> git://git.yoctoproject.org/poky-contrib,
> elliot/toaster/failed_builds-8440-v5
>
> http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=elliot/toaster/failed_builds-8440-v5
>
> Elliot Smith (1):
>   toaster: create Build object earlier in bitbake processing
>
>  bitbake/lib/bb/event.py                            |  7 +++
>  bitbake/lib/bb/server/xmlrpc.py                    |  3 +
>  bitbake/lib/bb/ui/buildinfohelper.py               | 73
> ++++++++++------------
>  bitbake/lib/bb/ui/toasterui.py                     | 21 ++++---
>  .../orm/migrations/0005_remove_build_build_name.py | 18 ++++++
>  bitbake/lib/toaster/orm/models.py                  |  1 -
>  6 files changed, 73 insertions(+), 50 deletions(-)
>  create mode 100644
> bitbake/lib/toaster/orm/migrations/0005_remove_build_build_name.py
>
> --
> Elliot Smith
> Software Engineer
> Intel OTC
>
> ---------------------------------------------------------------------
> Intel Corporation (UK) Limited
> Registered No. 1134945 (England)
> Registered Office: Pipers Way, Swindon SN3 1RJ
> VAT No: 860 2173 47
>
> This e-mail and any attachments may contain confidential material for
> the sole use of the intended recipient(s). Any review or distribution
> by others is strictly prohibited. If you are not the intended
> recipient, please contact the sender and delete all copies.
>
>


-- 
Elliot Smith
Software Engineer
Intel Open Source Technology Centre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/toaster/attachments/20160219/86af8a35/attachment.html>


More information about the toaster mailing list