Skip to content

Cancel builds when cli is interrupted

Elliot Smith yocto-toaster 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 2 repliesIn review
  2. v22 patches 2 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3buildinfohelper: add method to set current build as CANCELLEDbitbake/lib/bb/ui/buildinfohelper.py+10 -00 replies
2/3toasterui: capture keyboard interrupts the same way as knottybitbake/lib/bb/ui/toasterui.py+16 -10 replies
3/3toaster: don't show "Rebuild" button for cancelled cli buildsbitbake/lib/toaster/toastergui/templates/mrb_section.html+14 -110 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH 0/3] [v3] Cancel builds when cli is interrupted

If a bitbake build is running on the command line and is interrupted (e.g. by Ctrl-c), capture the interrupt and shut down the bitbake server. Also set the outcome to CANCELLED so the build displays correctly in the Toaster UI.

The following changes since commit c8ea873d9883f8cdabb6ccadd31bd9967a0f0111:

toaster: tweaks to recipe file downloads (2016-04-29 14:21:32 +0100)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib elliot/toaster/8515-interrupted_cli_builds
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=elliot/toaster/8515-interrupted_cli_builds

Related bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=8515

Elliot Smith (3):
buildinfohelper: add method to set current build as CANCELLED
toasterui: capture keyboard interrupts the same way as knotty
toaster: don't show "Rebuild" button for cancelled cli builds

 bitbake/lib/bb/ui/buildinfohelper.py               | 10 +++++++++
 bitbake/lib/bb/ui/toasterui.py                     | 17 ++++++++++++++-
 .../toaster/toastergui/templates/mrb_section.html  | 25 ++++++++++++----------
 3 files changed, 40 insertions(+), 12 deletions(-)

--
1.9.3

---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.