Skip to content

Build cancellation

Ed Bartosh yocto-toaster 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15toaster: bldcontrol Add forceShutDown function to BitbakeControllerbitbake/lib/toaster/bldcontrol/bbcontroller.py+3 -00 replies
2/15toaster: Move xhr calls for starting and stopping buildsbitbake/lib/toaster/toastergui/api.py bitbake/lib/toaster/toastergui/tables.py bitbake/lib/toaster/toastergui/urls.py+80 -420 replies
3/15toaster: xhr Update the implementation of the build cancellation requestbitbake/lib/toaster/toastergui/api.py+45 -90 replies
4/15toaster: libtoaster Update implementation of startABuild and cancelABuildbitbake/lib/toaster/toastergui/static/js/customrecipe.js bitbake/lib/toaster/toastergui/static/js/layerBtn.js bitbake/lib/toaster/toastergui/static/js/libtoaster.js +4 more+34 -290 replies
5/15toaster: update BuildEnvironmentController and BitbakeControllerbitbake/lib/toaster/bldcontrol/bbcontroller.py bitbake/lib/toaster/bldcontrol/localhostbecontroller.py+5 -230 replies
6/15toaster: models Add cancelled state to build outcomebitbake/lib/toaster/orm/migrations/0006_add_cancelled_state.py bitbake/lib/toaster/orm/models.py+25 -10 replies
7/15toaster: bldcontrol models Add a cancelling state the BuildRequestbitbake/lib/toaster/bldcontrol/migrations/0002_add_cancelling_state.py bitbake/lib/toaster/bldcontrol/models.py+45 -10 replies
8/15buildinfohelper: Add handler for cancelling a buildbitbake/lib/bb/ui/buildinfohelper.py+18 -10 replies
9/15toaster: tables BuildsTable exclude cancelled buildsbitbake/lib/toaster/toastergui/tables.py+3 -20 replies
10/15toaster: mrb_section template Add build cancel buttonbitbake/lib/toaster/toastergui/static/js/mrbsection.js bitbake/lib/toaster/toastergui/templates/mrb_section.html+149 -940 replies
11/15toaster: models Exclude the CANCELLED builds from get_number_of_buildsbitbake/lib/toaster/orm/models.py+4 -10 replies
12/15toaster: runbuilds Make runbuilds aware of the build CANCELLED statebitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py+22 -40 replies
13/15toaster: runbuilds Clean up runbuildsbitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py+52 -290 replies
14/15toaster: fix conflicting migrationsbitbake/lib/toaster/bldcontrol/migrations/0003_merge.py bitbake/lib/toaster/orm/migrations/0007_merge.py+30 -00 replies
15/15toaster: use empty tokenbitbake/lib/toaster/bldcontrol/localhostbecontroller.py+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/15] Build cancellation

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