From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id E636FE00C2B; Thu, 17 Mar 2016 11:02:30 -0700 (PDT) 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 * [134.134.136.20 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 8A508E00931 for ; Thu, 17 Mar 2016 11:02:26 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 17 Mar 2016 11:01:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,350,1455004800"; d="scan'208";a="913222418" Received: from linux.intel.com ([10.23.219.25]) by orsmga001.jf.intel.com with ESMTP; 17 Mar 2016 11:01:51 -0700 Received: from vmed.fi.intel.com (vmed.fi.intel.com [10.237.72.51]) by linux.intel.com (Postfix) with ESMTP id 0CDAA6A4004 for ; Thu, 17 Mar 2016 11:49:33 -0700 (PDT) From: Ed Bartosh To: toaster@yoctoproject.org Date: Thu, 17 Mar 2016 17:41:43 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 Subject: [PATCH 00/15] Build cancellation 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, 17 Mar 2016 18:02:31 -0000 This is build cancelation functionality implemented by Sujith and Michael and modified by me to work on top of 'per project build directory' patchset. NOTE: This patchset depends on 'per project build directory' patchset' v5: https://lists.yoctoproject.org/pipermail/toaster/2016-March/004170.html The following changes since commit e4ba8a50641b6a2ad8ccda5fc62c61fdf7cef733: toasterui: shutdown on BuildCompleted event (2016-03-17 17:31:00 +0200) are available in the git repository at: git://git.yoctoproject.org/poky-contrib ed/toaster/project-build-dir-7880-cancel http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/toaster/project-build-dir-7880-cancel Ed Bartosh (2): toaster: fix conflicting migrations toaster: use empty token Michael Wood (9): toaster: Move xhr calls for starting and stopping builds toaster: xhr Update the implementation of the build cancellation request toaster: libtoaster Update implementation of startABuild and cancelABuild toaster: bldcontrol models Add a cancelling state the BuildRequest buildinfohelper: Add handler for cancelling a build toaster: mrb_section template Add build cancel button toaster: models Exclude the CANCELLED builds from get_number_of_builds toaster: runbuilds Make runbuilds aware of the build CANCELLED state toaster: runbuilds Clean up runbuilds Sujith H (4): toaster: bldcontrol Add forceShutDown function to BitbakeController toaster: update BuildEnvironmentController and BitbakeController toaster: models Add cancelled state to build outcome toaster: tables BuildsTable exclude cancelled builds bitbake/lib/bb/ui/buildinfohelper.py | 19 ++- bitbake/lib/toaster/bldcontrol/bbcontroller.py | 29 +--- .../toaster/bldcontrol/localhostbecontroller.py | 4 +- .../bldcontrol/management/commands/runbuilds.py | 107 ++++++++++----- .../migrations/0002_add_cancelling_state.py | 19 +++ .../toaster/bldcontrol/migrations/0003_merge.py | 15 +++ bitbake/lib/toaster/bldcontrol/models.py | 27 +++- .../orm/migrations/0006_add_cancelled_state.py | 19 +++ bitbake/lib/toaster/orm/migrations/0007_merge.py | 15 +++ bitbake/lib/toaster/orm/models.py | 12 +- bitbake/lib/toaster/toastergui/api.py | 110 +++++++++++++++ .../toaster/toastergui/static/js/customrecipe.js | 4 +- .../lib/toaster/toastergui/static/js/layerBtn.js | 3 +- .../lib/toaster/toastergui/static/js/libtoaster.js | 41 +++--- .../lib/toaster/toastergui/static/js/mrbsection.js | 95 +++++++++++++ .../toaster/toastergui/static/js/projectpage.js | 4 +- .../toaster/toastergui/static/js/projecttopbar.js | 6 +- .../toaster/toastergui/static/js/recipedetails.js | 4 +- bitbake/lib/toaster/toastergui/tables.py | 48 +------ bitbake/lib/toaster/toastergui/templates/base.html | 1 + .../toaster/toastergui/templates/mrb_section.html | 148 ++++++++------------- bitbake/lib/toaster/toastergui/urls.py | 5 + 22 files changed, 507 insertions(+), 228 deletions(-) create mode 100644 bitbake/lib/toaster/bldcontrol/migrations/0002_add_cancelling_state.py create mode 100644 bitbake/lib/toaster/bldcontrol/migrations/0003_merge.py create mode 100644 bitbake/lib/toaster/orm/migrations/0006_add_cancelled_state.py create mode 100644 bitbake/lib/toaster/orm/migrations/0007_merge.py create mode 100644 bitbake/lib/toaster/toastergui/api.py create mode 100644 bitbake/lib/toaster/toastergui/static/js/mrbsection.js -- Regards, Ed