Skip to content

Commit 9e6ecab

Browse files
authored
fix mitten icon to ignore some jobs (like retry/cancel) (#8939)
* disable runcount * Ensure Mitten icon is used for actual jobs, not retry/cancel/etc.
1 parent 22937f9 commit 9e6ecab

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ui/job-view/pushes/JobsAndGroups.jsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ export default class JobsAndGroups extends React.Component {
2525
if (!Object.keys(jobCountByName).includes(job.job_type_name)) {
2626
jobCountByName[job.job_type_name] = 0;
2727
}
28+
29+
// job state of retry, usercancel, etc. is misleading
30+
if (
31+
!['success', 'testfailed', 'exception', 'busted'].includes(job.result)
32+
) {
33+
continue;
34+
}
2835
jobCountByName[job.job_type_name]++;
2936

3037
// -cf group can have >1 job of each job_type_name and >1 type of job

0 commit comments

Comments
 (0)