Bug 382540

Summary: very optimistic progress bar
Product: [openSUSE] openSUSE 11.0 Reporter: Christian Boltz <suse-beta>
Component: Update ProblemsAssignee: Ladislav Slezák <lslezak>
Status: RESOLVED DUPLICATE QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: amantia, locilka
Version: Beta 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Screenshot

Description Christian Boltz 2008-04-22 21:20:27 UTC
When updating from 10.3 to 11.0 beta1, I noticed that the "Remaining packages" progressbar is very optimistic. It shows "100% complete" when there are still 1144 packages (3.9 GB) to install...

Some snapshots:

     Remaining packages      Remaining time        % completed in progressbar
     1427 / 4.19 GB          2:16:41               76 %
     1209 / 4.00 GB          > 2:18:07             98 %
     1144 / 3.90 GB          > 2:17:39             100 % (!)
     ...
     133  / 632 MB           13:11                 about 20 % (no number 
                                                   displayed in progressbar)

The y2logs are available in Attachment 209255 [details] of Bug 381751.
Screenshots on request.

(I know the progressbar can and will never be really exact. But this behaviour is just totally broken.)
Comment 1 Cyril Hrubis 2008-04-24 16:28:55 UTC

*** This bug has been marked as a duplicate of bug 382809 ***
Comment 2 Christian Boltz 2008-04-25 19:07:58 UTC
I'm quite sure this is not a duplicate.

Differences:
- it happens while packages are installed (not on package manager startup)
  This means there's really enough time to look at the 100% state ;-)
- it happens while installation (not in the running system)
- the progressbar was painted correctly from the technical point of view (at 
  100%, it was completely filled blue)

(Repos used: Factory and non-OSS, both in beta1 state.)

To provent the question why this is not only minor: have a look at the values in comment #0. YaST showed 100% complete (which should mean "finished") when there were still 1144 packages / 3.90 GB to install, with a remaining time of over 2 hours. 
In reallife, I would not call it minor or normal if someone is two hours late. ;-)
Comment 3 Christian Boltz 2008-04-25 19:09:49 UTC
Created attachment 210580 [details]
Screenshot
Comment 4 Cyril Hrubis 2008-04-28 15:03:15 UTC
*** Bug 384134 has been marked as a duplicate of this bug. ***
Comment 5 Lukas Ocilka 2008-04-28 16:05:57 UTC
HuHa, is the 'optimistic slideshow' yours or ...?
Comment 6 Ladislav Slezák 2008-04-28 16:13:08 UTC
I guess that the number of packages to install/update is wrongly computed...
Comment 7 Ladislav Slezák 2008-04-29 07:41:50 UTC
No, the problem is the same as in bug #380867, but in this case the progress bar value is clipped to a positive number so the progress bar is displayed properly (as opposed to bug #380867), but the value is wrong.

*** This bug has been marked as a duplicate of bug 380867 ***