Bug #2936: Pipeline instance component display: for a finished pi (and probably for one in progress with multiple components), the job progress bar is not red if the job has failed.
Review at 4b8a53c
- All job progress bars reflect at least one task. If a job has no tasks at all (done, failed, finished, or todo) that should be considered a failed job, so render a progress bar as though one task ran and failed.
- A failed job (j[:success] == false) always shows at least one failed task. If a job is marked as failed but has no failed tasks, then pretend there was one failed task so at least some red will appear in the progress bar.