<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>8515</bug_id>
          
          <creation_ts>2015-10-14 23:35:36 +0000</creation_ts>
          <short_desc>In analysis mode, if you interrupt the bitbake build, toaster erroneously reports a successful build</short_desc>
          <delta_ts>2016-05-17 14:58:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Toaster</product>
          <component>toaster</component>
          <version>2.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M1</target_milestone>
          <dependson>6787</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="brian avery">brian.avery</reporter>
          <assigned_to name="Elliot Smith">elliot.smith</assigned_to>
          <cc>belen.barros.pena</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>stanciux.mihail</cc>
          
          <qa_contact name="Libertad">libertad.gonzalez.de.la.cruz</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>55323</commentid>
    <comment_count>0</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2015-10-14 23:35:36 +0000</bug_when>
    <thetext>To replicate:
1)run toaster in analysis mode
2) do bitbake bash
3) allow it to get into the tasks running (like a do_configure or 2)
4)Ctrl-c the bitbake. Toaster shows a green build.

Bitbake cli says:
Keyboard Interrupt, closing down...

NOTE: Tasks Summary: Attempted 202 tasks of which 0 didn&apos;t need to be rerun and all succeeded.
ERROR: Command execution failed: Stopped build

Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Execution was interrupted, returning a non-zero exit code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59831</commentid>
    <comment_count>1</comment_count>
    <who name="Elliot Smith">elliot.smith</who>
    <bug_when>2016-03-09 15:54:04 +0000</bug_when>
    <thetext>Builds interrupted on the command line count as cancelled and need the same design (i.e. https://bugzilla.yoctoproject.org/attachment.cgi?id=2706), hence the dependency on bug 6787.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61632</commentid>
    <comment_count>2</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2016-04-25 15:36:27 +0000</bug_when>
    <thetext>I just tried this. The builds started from cli that you cancel no longer show as failed: they just stay forever as running, until you stop Toaster. When you restart Toaster, they show as failed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61726</commentid>
    <comment_count>3</comment_count>
    <who name="Elliot Smith">elliot.smith</who>
    <bug_when>2016-04-27 15:13:57 +0000</bug_when>
    <thetext>Submitted for review:
https://lists.yoctoproject.org/pipermail/toaster/2016-April/004511.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61727</commentid>
    <comment_count>4</comment_count>
    <who name="Elliot Smith">elliot.smith</who>
    <bug_when>2016-04-27 15:15:15 +0000</bug_when>
    <thetext>The old BuildCompleted event with an _interrupted flag no longer appears to be fired, which is what I was previously using to notice when the bitbake build was interrupted.

Needs further work to figure out if there&apos;s now an event for interrupted builds which we could cancel (might need to change the event mask to be able to see this).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61828</commentid>
    <comment_count>5</comment_count>
    <who name="Elliot Smith">elliot.smith</who>
    <bug_when>2016-04-29 13:10:59 +0000</bug_when>
    <thetext>Sent v2 for review:
https://lists.yoctoproject.org/pipermail/toaster/2016-April/004521.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62250</commentid>
    <comment_count>6</comment_count>
    <who name="Elliot Smith">elliot.smith</who>
    <bug_when>2016-05-17 14:58:45 +0000</bug_when>
    <thetext>Now in bitbake master.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>