<?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>6060</bug_id>
          
          <creation_ts>2014-03-27 17:08:27 +0000</creation_ts>
          <short_desc>When a build fails, some tasks come without order number and with outcome &apos;not available&apos;</short_desc>
          <delta_ts>2014-04-11 06:52:08 +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>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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>1.6 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Belen Barros Pena">belen.barros.pena</reporter>
          <assigned_to name="David Reyna">david.reyna</assigned_to>
          <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>cristiana.voicu</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>Yuan.Sun2</cc>
          
          
          <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>41874</commentid>
    <comment_count>0</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-03-27 17:08:27 +0000</bug_when>
    <thetext>To see an example, download the development database from the wiki:

https://wiki.yoctoproject.org/wiki/images/d/d1/Toaster.sqlite

and check 

/gui/build/6/recipe/1714</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41875</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2014-03-27 17:24:41 +0000</bug_when>
    <thetext>This is normal and expected.

All the tasks are created when the task dependency tree is generated and submitted.

The tasks are assigned order numbers and outcomes when they are executed. When a build fails or is stopped, tasks not yet evaluated will show outcome NA and no order number.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41876</commentid>
    <comment_count>2</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-03-27 17:32:22 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; This is normal and expected.
&gt; 
&gt; All the tasks are created when the task dependency tree is generated and
&gt; submitted.
&gt; 
&gt; The tasks are assigned order numbers and outcomes when they are executed.
&gt; When a build fails or is stopped, tasks not yet evaluated will show outcome
&gt; NA and no order number.

Fair enough, but if they never got to run, Toaster should not show them. 

David: ping Alex if you have any questions. I think he knows how to go about fixing this one.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41995</commentid>
    <comment_count>3</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2014-04-01 02:16:05 +0000</bug_when>
    <thetext>I think that the simple resolution is in the view class to filter out any tasks with no order numbers. That would be easier and safer at this point than making a backend change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42318</commentid>
    <comment_count>4</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2014-04-04 20:38:57 +0000</bug_when>
    <thetext>The solution is to copy the filter for &apos;order&apos; from the All Tasks view class and applied it to this task table within the Recipe view class.

    tasks  = Task.objects.filter(recipe_id = recipe_id).filter(build_id = build_id).exclude(task_name__endswith=&apos;_setscene&apos;).filter(order__gte=0)

BTW, the example database mentioned above is actually a &quot;.tar.gz&quot; formatted file, so be forewarned:
  https://wiki.yoctoproject.org/wiki/images/d/d1/Toaster.sqlite</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42475</commentid>
    <comment_count>5</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2014-04-09 23:13:49 +0000</bug_when>
    <thetext>commit dc7d3d29108d63eb5ecf276769f0099a5bc3ab86</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42594</commentid>
    <comment_count>6</comment_count>
    <who name="Yuan Sun">Yuan.Sun2</who>
    <bug_when>2014-04-11 06:52:08 +0000</bug_when>
    <thetext>Verified in 046a9ea30356daf4f3f8f4ddfc5b57fcfd85a27f.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>