<?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>16514</bug_id>
          
          <creation_ts>2026-11-15 03:39:18 +0000</creation_ts>
          <short_desc>RRS: milestone percentages are wrong for maintenance plans with more than one layer branch</short_desc>
          <delta_ts>2026-11-15 03:54:50 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Recipe Reporting System (RRS)</product>
          <component>Recipe Reporting System (RRS)</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>IN PROGRESS REVIEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Orling">tim.orling</reporter>
          <assigned_to name="Tim Orling">tim.orling</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>107485</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-11-15 03:39:18 +0000</bug_when>
    <thetext>_get_milestone_statistics() in rrs/views.py sums the upstream statistics
of each layer branch in a maintenance plan, but two of the counts use
&quot;= +&quot; instead of &quot;+=&quot;:

  milestone_statistics[&apos;up_to_date&apos;] = +t_updated
  milestone_statistics[&apos;not_updated&apos;] = +t_not_updated

So the &quot;up-to-date&quot; and &quot;not updated&quot; counts are only those of the last
layer branch, while the total and the other two counts are summed. Plans
with a single layer branch (OE-Core) are not affected.

On a test instance, meta-openembedded 6.2 showed &quot;1% up-to-date (22), 0%
not updated (7)&quot;, which are meta-filesystems&apos; numbers alone. Summed over
its five layer branches it is 1517 up to date (73%) and 420 not updated
(20%) out of 2092.

This has been there since 7606664 (&quot;rrs: link maintenance/upstream
history to layerbranch&quot;, 2018).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107486</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-11-15 03:54:50 +0000</bug_when>
    <thetext>Patch sent to yocto-patches, under review (patchwork 104086):
https://lore.kernel.org/all/20261115034653.77988-2-tim.orling@konsulko.com/

Tested on layers.moto-timo.net: meta-openembedded 6.2 now shows 73% up-to-date (1518) and 20% not updated (420), instead of 1% (22) and 0% (7).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>