<?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>6087</bug_id>
          
          <creation_ts>2014-04-01 09:43:26 +0000</creation_ts>
          <short_desc>Incorrect number of packages built in image dashboard (for clean builds only)</short_desc>
          <delta_ts>2014-04-11 05:35:44 +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>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>09 April 2014: Set documentation flag to &quot;No.&quot;</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="Farrell Wymore">farrell.wymore</assigned_to>
          <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>cristiana.voicu</cc>
    
    <cc>david.reyna</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>srifenbark</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>42015</commentid>
    <comment_count>0</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-04-01 09:43:26 +0000</bug_when>
    <thetext>I am seeing a mismatch between the number of packages built reported in the build dashboard and the number of entries in the build packages table, but only in clean builds. 

I am wondering if this is related to the package entries with size -1 (i.e. the entries collected only for dependency reporting purposes). Are they being counted in the number of packages built in the build dashboard?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42054</commentid>
    <comment_count>1</comment_count>
    <who name="Farrell Wymore">farrell.wymore</who>
    <bug_when>2014-04-01 16:20:28 +0000</bug_when>
    <thetext>These numbers do indeed appear to be inconsistent but i&apos;m not sure where the problem is. Here is a summary:

1) On the dashboard page, &apos;Packages included&apos; is exactly the number of rows in the target_installed_packages table for a single target. In my example, this number is 29.
2) Again on the dashboard page, &apos;Packages built&apos; is exactly the number or rows in the package table for a single build. In my example, this number is 6146. 
3) The Packages page for this build indicates 3686 packages in my example. 

Looking at the package table in the database, there are 2460 packages with no installed_name, size is -1, installed_size of 0, no version, no license, no description. These entries do have names and ids. So its clear where the package page (paginator) is getting it&apos;s number: 6146 - 2460 = 3686; by ignoring the anomalous package entries.  

So the question is: should the computation of &apos;Packages built&apos; not include these anomalous package entries? Should the package page (paginator) include the anomalous entries? Or, should the anomalous entries be in the db at all?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42056</commentid>
    <comment_count>2</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-04-01 16:43:25 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; These numbers do indeed appear to be inconsistent but i&apos;m not sure where the
&gt; problem is. Here is a summary:
&gt; 
&gt; 1) On the dashboard page, &apos;Packages included&apos; is exactly the number of rows
&gt; in the target_installed_packages table for a single target. In my example,
&gt; this number is 29.
&gt; 2) Again on the dashboard page, &apos;Packages built&apos; is exactly the number or
&gt; rows in the package table for a single build. In my example, this number is
&gt; 6146. 
&gt; 3) The Packages page for this build indicates 3686 packages in my example. 
&gt; 
&gt; Looking at the package table in the database, there are 2460 packages with
&gt; no installed_name, size is -1, installed_size of 0, no version, no license,
&gt; no description. These entries do have names and ids. So its clear where the
&gt; package page (paginator) is getting it&apos;s number: 6146 - 2460 = 3686; by
&gt; ignoring the anomalous package entries.  
&gt; 
&gt; So the question is: should the computation of &apos;Packages built&apos; not include
&gt; these anomalous package entries? 

The answer is no, the &apos;Packages built&apos; computation should not include the anomalous package entries. The anomalous package entries correspond to packages that are not built: the entries exist only in order to be able to provide the full dependency chain. Without them, the dependency information in Toaster would be incomplete.

Should the package page (paginator) include
&gt; the anomalous entries? 

No, same reason as above.

&gt; Or, should the anomalous entries be in the db at all?

Yes, we do need them: without them, we would have incomplete dependency information. Although we might argue if the packages table is the right place to store them, but that&apos;s a different issue :)

The number of packages built in the image dashboard has to be calculated in the same way as in the built packages table (i.e. excluding packages not built recorded only for dependency information purposes).

I hope this explains</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42411</commentid>
    <comment_count>3</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2014-04-09 04:15:33 +0000</bug_when>
    <thetext>commit 10297261219d4373843b31e8aaaed094fcbcf605</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42447</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2014-04-09 13:21:58 +0000</bug_when>
    <thetext>This bug had no impact to docs.  Setting to &quot;No.&quot;

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42587</commentid>
    <comment_count>5</comment_count>
    <who name="Yuan Sun">Yuan.Sun2</who>
    <bug_when>2014-04-11 05:35:44 +0000</bug_when>
    <thetext>Verified in 046a9ea30356daf4f3f8f4ddfc5b57fcfd85a27f.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>