When there are three jobs (e.g. install, test, reservesys), the Progress bar in "My Jobs" is missing one little peace most-right. Of course the status is "Completed", but it would be much better if one could read it from the Progress bar itself. Version - 0.5.63 How reproducible: 100% Steps to Reproduce: 1. Create a new job containing three tasks, e.g. -------------------------------------------------------------- bkr workflow-simple \ --whiteboard="Cumin Basic Test Automated" \ --arch=i386 \ --arch=x86_64 \ --distro=RHEL5-Server-U5 \ --family=RedHatEnterpriseLinuxServer5 \ --task=/distribution/MRG/Messaging/mgmt_cumin_basic \ --task=/distribution/reservesys -------------------------------------------------------------- 2. Wait until it ends 3. Click "My Jobs" Actual results: There is a missing one-pixel slice in the Progress bar. Expected results: All the area should be filled with some colors if the job is not running anymore.
I meant "one piece" of course :-)
We can do round() in the TaskBase.progress_bar method, rather than just int() truncation. That should solve most cases (certainly the 1/3 case) although I suspect it still won't guarantee that the rounded percentages will sum to 100 due to floating point representation inaccuracy. http://gerrit.beaker-project.org/2264
Verified. A job with three tasks two successful jobs show the width as 67 + 33. Earlier, it would be showing 66 + 33.
Beaker 0.15 has been released.