зеркало из https://github.com/mozilla/treeherder.git
Bug 1197258 - Don't collapse retriggered jobs
If the same job symbol is detected within the same group, don’t collapse them to counts. They are almost surely retriggers and will be shown to make intermittent failures more obvious.
This commit is contained in:
Родитель
3c2cbb0e61
Коммит
ab765405bc
|
@ -279,6 +279,7 @@ treeherder.directive('thCloneJobs', [
|
|||
|
||||
var jobList = platformGroup.find(".group-job-list");
|
||||
var countList = platformGroup.find(".group-count-list");
|
||||
var typeSymbolCounts = _.countBy(jgObj.jobs, "job_type_symbol");
|
||||
jobList.empty();
|
||||
countList.empty();
|
||||
|
||||
|
@ -301,7 +302,8 @@ treeherder.directive('thCloneJobs', [
|
|||
//
|
||||
// We don't add it to group counts, because it should not be counted
|
||||
// when filtered out. Failures don't get included in counts anyway.
|
||||
if (_.contains(failResults, resultStatus)) {
|
||||
if (_.contains(failResults, resultStatus) ||
|
||||
typeSymbolCounts[job.job_type_symbol] > 1) {
|
||||
// render the job itself, not a count
|
||||
addJobBtnToArray(job, lastJobSelected, jobBtnArray);
|
||||
} else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче