<?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>12813</bug_id>
          
          <creation_ts>2018-06-25 10:15:33 +0000</creation_ts>
          <short_desc>[QA 2.6 M1 rc1 ][Toaster]:Build stopped without error, to terminate by ctrl+c</short_desc>
          <delta_ts>2018-11-09 06:30:04 +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.6</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.6 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="nagarajagopal">nagarajagopalx.velu</reporter>
          <assigned_to name="David Reyna">david.reyna</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>sharmasudhir</cc>
    
    <cc>stanciux.mihail</cc>
          
          <qa_contact name="Toaster default assignee">toaster</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</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>80916</commentid>
    <comment_count>0</comment_count>
    <who name="nagarajagopal">nagarajagopalx.velu</who>
    <bug_when>2018-06-25 10:15:33 +0000</bug_when>
    <thetext>STATUS - FAILED
 BUILD: 2.6_M1.rc1 - ddbd7b0cd6580ee26e11aa87e426fb294b372d64
 ENVIRONMENT - Ubuntu 16.04

 STEPS TO REPRODUCE,
 - run &quot;source toaster start&quot;
 - run &quot;bitbake core-image-minimal&quot;
 - terminate the build by ctrl+c 

 ACTUAL RESULT:
 Build is stopped without error.
 
 EXPECTED RESULT:
 Build should stop with error and failed as per test cases.

 REGRESSION: 
 Regression done with 2.5, Build is stopped without error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80917</commentid>
    <comment_count>1</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2018-06-25 10:18:05 +0000</bug_when>
    <thetext>Hi, I am not familiar with this test case.

What is the expected error?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80927</commentid>
    <comment_count>2</comment_count>
    <who name="nagarajagopal">nagarajagopalx.velu</who>
    <bug_when>2018-06-26 08:52:02 +0000</bug_when>
    <thetext>
Hi David,

On terminating the build by ctrl+c, a number of errors and warnings should be thrown by the build in &apos;All builds&apos; page, &apos;Latest builds&apos; section and &apos;Build dashboard&apos; page with details.

The details of the test case is available at:
https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=951</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80935</commentid>
    <comment_count>3</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2018-06-27 17:35:40 +0000</bug_when>
    <thetext>Thank you for the clarification, I have scheduled this fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81671</commentid>
    <comment_count>4</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2018-09-30 09:23:22 +0000</bug_when>
    <thetext>I observe the following:

1. If I start a command line build and stop it with a single or double CTRL+C, the build log shows the massage &quot;Build cancelled&quot;, which is the expected and desired result.

2. If I start a command line build and build for example the false target &quot;bitbake foobar&quot;, the build fails but there is no error count in the GUI, though the downloadable log does contain the error. This appears to be the failing behavior.

3. In contrast, if I start a build in the Toaster GUI and build for example the false target &quot;foobar&quot;, the build fails and there _is_ an error count and link. This is the intended behavior.

The root cause of the error is that in &quot;buildinfohelper.py&quot;, the method store_log_event would always put log messages for CLI builds in the backlog, but there was no way to get them out. The solution is in the &quot;close&quot; method force all CLI events to be registered.

NOTE: we should update the test case to use a false build target as a &apos;failure&apos; build test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81879</commentid>
    <comment_count>5</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2018-10-16 19:03:38 +0000</bug_when>
    <thetext>(Bitbake rev: 6458cc4234337f551dfe189b6f8800d8da886c24)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82099</commentid>
    <comment_count>6</comment_count>
    <who name="Sudhir Sharma">sharmasudhir</who>
    <bug_when>2018-11-09 06:30:04 +0000</bug_when>
    <thetext>Issue is resolved.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>