Bug 1615408 Ensure task estimates work when none are selected r=ahal

The previous patch got backed out, and couldn't be patched itself, so here's a new one.

Differential Revision: https://phabricator.services.mozilla.com/D62844

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Simon Fraser 2020-02-14 15:25:42 +00:00
Родитель 739311265d
Коммит b5bae78f79
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -151,7 +151,11 @@ def find_longest_path(graph, tasklist, duration_data):
return md return md
longest_paths = [find_dependency_durations(task) for task in tasklist] longest_paths = [find_dependency_durations(task) for task in tasklist]
return max(longest_paths) # Default in case there are no tasks
if longest_paths:
return max(longest_paths)
else:
return 0
def determine_quantile(quantiles_file, duration): def determine_quantile(quantiles_file, duration):