From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 0723CE00BFF; Tue, 1 Mar 2016 06:36:07 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.115 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id CD0C4E0077F for ; Tue, 1 Mar 2016 06:36:02 -0800 (PST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP; 01 Mar 2016 06:36:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,523,1449561600"; d="scan'208";a="57620033" Received: from linux.intel.com ([10.23.219.25]) by fmsmga004.fm.intel.com with ESMTP; 01 Mar 2016 06:36:02 -0800 Received: from vmed.fi.intel.com (vmed.fi.intel.com [10.237.72.51]) by linux.intel.com (Postfix) with ESMTP id 115626A4002 for ; Tue, 1 Mar 2016 07:23:49 -0800 (PST) From: Ed Bartosh To: toaster@yoctoproject.org Date: Tue, 1 Mar 2016 14:26:19 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 Subject: [PATCH v3 0/7] 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: Tue, 01 Mar 2016 14:36:07 -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 - add INHERIT+="toaster buildhistory" line to conf/local.conf - 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. Changes in v3: Fixed WARNING: Unknown event: Mentioned updating config in testing instructions The following changes since commit f7f35a9d6ff43bd8cb75603557158617a80bb4e5: toaster: cleanup of bin/toaster startup code (2016-03-01 12:35:38 +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 (7): 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 toasterui: fix warning 'Unknown event' bitbake/lib/bb/command.py | 1 + bitbake/lib/bb/ui/toasterui.py | 90 +++++++++++++++++++++++++++++------------- 2 files changed, 64 insertions(+), 27 deletions(-) -- Regards, Ed