<?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>9986</bug_id>
          
          <creation_ts>2016-07-20 13:22:24 +0000</creation_ts>
          <short_desc>ETA reported for meta-swupd layer is off scale by 1 or 2 orders of magnitude</short_desc>
          <delta_ts>2016-07-26 10:18:13 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</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</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Igor Stoppa">igor.stoppa</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</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>64217</commentid>
    <comment_count>0</comment_count>
    <who name="Igor Stoppa">igor.stoppa</who>
    <bug_when>2016-07-20 13:22:24 +0000</bug_when>
    <thetext>Preconditions:

* clone the Ostro-OS project
* build the swupd image and data (bitbake ostro-image-swupd)

Expected outcome:
The ETA reported is reasonably accurate

Actual Outcome:
The ETA reported is too optimistic.

Example:
At some point the progress was showing for about 15-20 minutes the status pasted below:


Currently  2 running tasks (4403 of 4422)  99% |################################################################################################# |
0: bundle-ostro-image-swupd-mega-1.0-r0 do_rootfs (pid 35487)  81% |####################################################            | ETA:  0:00:25
1: bundle-ostro-image-swupd-world-dev-1.0-r0 do_rootfs (pid 35490)  81% |################################################           | ETA:  0:00:25</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64261</commentid>
    <comment_count>1</comment_count>
    <who name="Igor Stoppa">igor.stoppa</who>
    <bug_when>2016-07-21 10:18:51 +0000</bug_when>
    <thetext>I found out that in some other cases the forecast is completely off by days:

Initialising tasks: 100% |##########################################################################################################| Time: 0:00:07
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
Currently  4 running tasks (4399 of 4422)  99% |################################################################################################# |
0: bundle-ostro-image-swupd-world-dev-1.0-r0 do_rootfs (pid 39704)   0% |                                                 | ETA:  11 days, 14:26:48
1: bundle-ostro-image-swupd-mega-1.0-r0 do_rootfs (pid 39701)   0% |                                                      | ETA:  11 days, 14:26:41
2: bundle-ostro-image-swupd-qa-bundle-b-1.0-r0 do_rootfs (pid 39705)  81% |##############################################           | ETA:  0:00:36
3: bundle-ostro-image-swupd-qa-bundle-a-1.0-r0 do_rootfs (pid 39706)  81% |##############################################           | ETA:  0:00:36


Notice the &quot;ETA:  11 days, 14:26:48&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64339</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-07-22 12:20:53 +0000</bug_when>
    <thetext>Based on this and another report I&apos;ve had, I&apos;ve just sent a patch to drop the ETA display for tasks altogether, since it&apos;s unlikely we&apos;ll be able to make it accurate all of the time with the information we have.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64340</commentid>
    <comment_count>3</comment_count>
    <who name="Igor Stoppa">igor.stoppa</who>
    <bug_when>2016-07-22 12:39:02 +0000</bug_when>
    <thetext>I think a fair compromise would be to show historical data (how long it took on average to perform task X) and elapsed time.

The user can do own prediction.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64479</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-07-26 10:18:13 +0000</bug_when>
    <thetext>We don&apos;t really have anywhere to get that historical data though - if we did then we&apos;d have a reasonable way to actually produce an estimate.

ETA removed in master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=5f4559b2eb8cbf633ee2c923c0b5e23a24b1ec06</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>