Bug 9986 - ETA reported for meta-swupd layer is off scale by 1 or 2 orders of magnitude
Summary: ETA reported for meta-swupd layer is off scale by 1 or 2 orders of magnitude
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.2
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-07-20 13:22 UTC by Igor Stoppa
Modified: 2016-07-26 10:18 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Stoppa 2016-07-20 13:22:24 UTC
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
Comment 1 Igor Stoppa 2016-07-21 10:18:51 UTC
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 "ETA:  11 days, 14:26:48"
Comment 2 Paul Eggleton 2016-07-22 12:20:53 UTC
Based on this and another report I've had, I've just sent a patch to drop the ETA display for tasks altogether, since it's unlikely we'll be able to make it accurate all of the time with the information we have.
Comment 3 Igor Stoppa 2016-07-22 12:39:02 UTC
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.
Comment 4 Paul Eggleton 2016-07-26 10:18:13 UTC
We don't really have anywhere to get that historical data though - if we did then we'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