Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id BE576E00C08; Mon, 22 Feb 2016 03:31:15 -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=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.220.48 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 1EC52E00B99 for ; Mon, 22 Feb 2016 03:31:13 -0800 (PST) Received: by mail-pa0-f48.google.com with SMTP id fy10so89826683pac.1 for ; Mon, 22 Feb 2016 03:31:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=ct4RPZoPGDc7RaH8u0rqm87LhzC6aoUYnhC9FigKmsQ=; b=Z4DSoYCsZmYiqqixJlj1byKNpTbg0ePJHkd2uJCfC93j7NAcp6+jCd6Kl1ns3eH3Mz 6Vf0eW+BS1Ia/Fih1YpCqXKFHinnhqXSDjGp0j6+FZ+m7uBz8fUa4TP2NKn1/bw8ZXfG zKIqiUhal4IlXPpHcBI2g8EpIdo+fU+tpgCRcMoKzuprw4RewK6nHFQiQYIQz36hviC8 cDKJ5YrbRR0FFWjKItBUfNx+yinH1ibtxBTGyvlfU980uI5IpmUGeXQLMrU2ngnTLPRZ fkbGR+o6CtRC5lox0U5z4sfarwMZzHPxJCmrv27Shkv1WsEXLLWFJCNGd1ac98QYuKT9 hz3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ct4RPZoPGDc7RaH8u0rqm87LhzC6aoUYnhC9FigKmsQ=; b=iOR0SbsO6SRZOr2fYvLM8uBNYBDjicnZi/nWd2SoO9RZXaZqanP33ee0wPmtDlJbEj HVn6jk/gKYG3oSmJa4vwBKhh/+wNs6CmMcR/Hc/WUwhHvaO339duyB98/94mea5BRRkH 5E8cWTDdE1HDt0uEP91btctUBvNMgvijuLFFahrKAkoPD09l9eR06vzdk9+zHWcyuBam NCL0eHGw9rHGna+JC4S86xI5RMRtKjT/2UFuaBeeJKdhkFrhAS9x60Y07YOVRe+Do7NT ZJN6AAIisrCXCOSsZf9brkasHiz6vUMtH9hw9Jwn3fb5bjclmFqQ+Z04tA5wBUFCQ20P HMCA== X-Gm-Message-State: AG10YORRmk0DTM9MT4o92mf6snPrMK/7zs7+tDNs1ZB69nzCK4ZVyCgylXocUgSoReQuGRuF X-Received: by 10.66.193.161 with SMTP id hp1mr37494496pac.9.1456140673181; Mon, 22 Feb 2016 03:31:13 -0800 (PST) Received: from dorado.ger.corp.intel.com (fmdmzpr01-ext.fm.intel.com. [192.55.54.36]) by smtp.gmail.com with ESMTPSA id n78sm36216801pfb.53.2016.02.22.03.31.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Feb 2016 03:31:12 -0800 (PST) From: Michael Wood To: toaster@yoctoproject.org Date: Mon, 22 Feb 2016 11:30:56 +0000 Message-Id: <1456140666-5344-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.5.0 Subject: [RFC][PATCH 00/10] Build cancel 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: Mon, 22 Feb 2016 11:31:15 -0000 This is the combination of Sujith's and my work on build cancel. It needs an extra bit manual testing due to the number of time and state possibilities that can happen when trying to cancel a build. http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=michaelw/sujith/build-cancel Michael Wood (6): 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 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 | 17 +++- bitbake/lib/toaster/bldcontrol/bbcontroller.py | 29 ++---- .../toaster/bldcontrol/localhostbecontroller.py | 6 +- .../migrations/0002_add_cancelling_state.py | 19 ++++ bitbake/lib/toaster/bldcontrol/models.py | 27 ++++- .../orm/migrations/0007_add_cancelled_state.py | 19 ++++ bitbake/lib/toaster/orm/models.py | 7 +- bitbake/lib/toaster/toastergui/api.py | 109 +++++++++++++++++++++ .../toaster/toastergui/static/js/customrecipe.js | 4 +- .../lib/toaster/toastergui/static/js/layerBtn.js | 3 +- .../lib/toaster/toastergui/static/js/libtoaster.js | 41 +++++--- .../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 | 102 +++++++++++++------ bitbake/lib/toaster/toastergui/urls.py | 5 + 18 files changed, 320 insertions(+), 131 deletions(-) create mode 100644 bitbake/lib/toaster/bldcontrol/migrations/0002_add_cancelling_state.py create mode 100644 bitbake/lib/toaster/orm/migrations/0007_add_cancelled_state.py create mode 100644 bitbake/lib/toaster/toastergui/api.py -- 2.5.0