From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id AB182E00CFE; Thu, 25 Feb 2016 09:19:51 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 30125E00CF0 for ; Thu, 25 Feb 2016 09:19:48 -0800 (PST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP; 25 Feb 2016 09:19:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,498,1449561600"; d="scan'208";a="923868200" Received: from linux.intel.com ([10.23.219.25]) by fmsmga002.fm.intel.com with ESMTP; 25 Feb 2016 09:19:48 -0800 Received: from vmed.fi.intel.com (vmed.fi.intel.com [10.237.72.51]) by linux.intel.com (Postfix) with ESMTP id D3BD26A4004 for ; Thu, 25 Feb 2016 10:07:36 -0800 (PST) From: Ed Bartosh To: toaster@yoctoproject.org Date: Thu, 25 Feb 2016 17:10:06 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 Subject: [PATCH v2 0/6] Make toasterui to work in build mode X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2016 17:19:51 -0000 Hi, This patchset is a preparation for the #7880 fix. As we're going to get rid of running bitbake server we need toasterui to work in build mode, i.e. with bitbake -u toasterui. If you want to test this functionality you can do the following: - start Toaster - kill bitbake server and observer processes - unset BBSERVER - run bitbake -u toasterui Expected outcome: you should see commandline build in UI without bitbake server and observer running. I've discovered nasty bug in handling setEventMask by bitbake server while working on this. It causes ignoring of the event mask set by toasterui. The result of this is that list of events in _ev_list variable is different from the actual list of events processed by toasterui. Here is the difference: -bb.command.CommandExit +bb.event.BuildCompleted +bb.event.BuildStarted +bb.event.ConfigParsed +bb.event.DepTreeGenerated -bb.runqueue.runQueueExitWait +bb.event.RecipeParsed +bb.event.SanityCheck +bb.event.SanityCheckPassed +bb.event.TreeDataPreparationCompleted +bb.event.TreeDataPreparationStarted +bb.runqueue.runQueueTaskCompleted +bb.runqueue.runQueueTaskSkipped +bb.runqueue.sceneQueueTaskCompleted The fix for this bug is also included in this patchset. Changes in v2: Added several missing events to the _ev_list. Removed workaround code that ignores unwanted events. The following changes since commit 029cc9b513864376024cd5fcbb2724e618e92090: toaster: custom breadcrumb for the default project (2016-02-24 13:29:00 +0000) are available in the git repository at: git://git.yoctoproject.org/poky-contrib ed/toaster/toasterui-in-build-mode http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/toaster/toasterui-in-build-mode Ed Bartosh (6): toasterui: reformat list of events toasterui: update list of events command: make setEventMask readonly toasterui: check if setEventMask succeeded toasterui: make toasterui to work in build mode toasterui: exit on final events bitbake/lib/bb/command.py | 1 + bitbake/lib/bb/ui/toasterui.py | 89 +++++++++++++++++++++++++++++------------- 2 files changed, 63 insertions(+), 27 deletions(-) -- Regards, Ed