Bug 7004

Summary: Toaster UI - wrong ETA displayed for current running build
Product: [Build System, Metadata & Runtime] Toaster Reporter: Ionut Chisanovici <ionutx.chisanovici>
Component: toasterAssignee: Alexandru Damian <alexandru.damian>
Status: VERIFIED FIXED QA Contact: Alexandru Roman <alexandru.costinx.roman>
Severity: normal    
Priority: Medium CC: alexandru.costinx.roman, alexandru.damian, belen.barros.pena, bogdanx.a.voiculescu, cristiana.voicu
Version: 1.8   
Target Milestone: 1.8 M4   
Hardware: x86   
OS: Multiple   
Whiteboard: project configuration page
OS type for building Yocto: --- Type of Regression: New (Never tested)
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
wrong_eta
none
good_eta_in_all_builds_page
none
wrong_eta_in_project_configuration_page none

Description Ionut Chisanovici 2014-12-02 09:08:26 UTC
Created attachment 2269 [details]
wrong_eta

Hi,

ETA for a current running build in a Toaster project page is not accurate.
See attached screen shot.

Cheers,
Ionut C
Comment 1 Alexandru Damian 2014-12-23 15:37:15 UTC
Can we please use a bug writing format that gives us more details ?
I think it would be helpful to state:

- what actions have been performed to trigger the bug (e.g reproducing rules if possible)
- what is the current output
- what is the expected output

For example, in this bug, I do not understand why do you think this is not accurate, how do you measure the accurateness, and what is the value that you would expect to see there.
Comment 2 Ionut Chisanovici 2015-01-05 11:26:16 UTC
Hi Alex,

As you can see from the attached image, the ETA for a core-image-sato build for qemux86 machine was estimated to around 9 hours.
I would expect to see something around 1 h - 1 h and 30 mins not 9 h.

Cheers,
Ionut C
Comment 3 Belen Barros Pena 2015-01-12 12:11:22 UTC
can I ask, what is the ETA showing? Is it showing at what time the build will finish? Or is it showing how long is the build going to take? Right now the format is not very clear. 

Also, we are currently showing the ETA in different formats in the all builds page and the project page. We should agree on a format and apply it in all pages.
Comment 4 Alexandru Damian 2015-01-12 14:58:27 UTC
The current ETA is how much time it will take for the build to finish. This is estimated considering how many tasks were executed since the beginning of the build, and how many tasks are left to be executed.

I do not believe that this is an accurate method, but it's better than nothing. We could get more accurate results by considering more factors, such as the type of tasks that remain to be executed, individual time measurements for past tasks, load on the machine and so on. However I do not think that spending engineering effort on this issue is a good investment, since the ETA information is not actionable by users.

I agree that we need a unified format for displaying the ETA, and I propose the "Hours:minutes" format to signify how much longer the build will take.
Comment 5 Belen Barros Pena 2015-01-12 15:34:52 UTC
(In reply to comment #4)
> The current ETA is how much time it will take for the build to finish. This
> is estimated considering how many tasks were executed since the beginning of
> the build, and how many tasks are left to be executed.

If that's the case, it looks as if it is showing

minutes:seconds:milliseconds

instead of 

hours:minutes:seconds

For example, for a busybox build, the eta said 11:49:02 and when the build finished the build time was 00:11:51. This could be just coincidence, though. 

> 
> I do not believe that this is an accurate method, but it's better than
> nothing. We could get more accurate results by considering more factors,
> such as the type of tasks that remain to be executed, individual time
> measurements for past tasks, load on the machine and so on. However I do not
> think that spending engineering effort on this issue is a good investment,
> since the ETA information is not actionable by users.

Agreed

> 
> I agree that we need a unified format for displaying the ETA, and I propose
> the "Hours:minutes" format to signify how much longer the build will take.

We should probably use the same format we use for the build time in completed builds, which means hours:minutes:seconds

To help interpret the information we could replace the current label "ETA:" with "ETA in" so you will have something like:

ETA in 00:12:45

Would that work?
Comment 6 Ionut Chisanovici 2015-01-20 15:56:33 UTC
Hi,

In order to better see this issue please check my latest two attached screen shots.
In all builds page the ETA is accurate but in the project configuration page the ETA for the same build is not.

Cheers,
Ionut C
Comment 7 Ionut Chisanovici 2015-01-20 15:57:33 UTC
Created attachment 2345 [details]
good_eta_in_all_builds_page
Comment 8 Ionut Chisanovici 2015-01-20 15:58:15 UTC
Created attachment 2346 [details]
wrong_eta_in_project_configuration_page
Comment 9 Alexandru Damian 2015-02-17 15:06:31 UTC
Pushed for review on:

poky-contrib: adamian/20150217_bug_7004
Comment 10 Alexandru Damian 2015-02-20 13:34:50 UTC
Merged in master.
Comment 11 Alexandru Roman 2015-12-03 14:19:17 UTC
Verified.