Bug 1627271 - Order 'Similar Jobs' first by push id, then by task's start time. (#6266)

The most common issue with failed tasks except intermittent failures are
check-in related issues. Until now, the tasks in 'Similar Jobs' were ordered by
the task's start time which was confusing if tasks had been requested to run
again ("retrigger") because the list jumped between pushes. With the new order
by pushes, issues can be more easily associated with a push/check-in.

The downside is that infrastructure related issues are harder to spot but in
general these don't affect only one kind of task (which the 'Similar Jobs' tab
focuses on).
This commit is contained in:
Sebastian Hengst 2020-04-07 00:30:00 +02:00 коммит произвёл GitHub
Родитель 9652c11aa9
Коммит 5f41c24e7f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -470,7 +470,7 @@ class JobsProjectViewSet(viewsets.ViewSet):
*self._default_select_related)).qs
# similar jobs we want in descending order from most recent
jobs = jobs.order_by('-start_time')
jobs = jobs.order_by('-push_id', '-start_time')
response_body = self._get_job_list_response(jobs, offset, count,
return_type)