Skip to content

Commit

Permalink
Bug 1615408 Ensure task estimates work when none are selected r=ahal
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D62816

--HG--
extra : moz-landing-system : lando
  • Loading branch information
Simon Fraser committed Feb 13, 2020
1 parent 83760cc commit 509a0a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/tryselect/util/estimates.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ def find_dependency_durations(task):
return md

longest_paths = [find_dependency_durations(task) for task in tasklist]
return max(longest_paths)
# Default in case there are no tasks
return max(longest_paths, default=0)


def determine_quantile(quantiles_file, duration):
Expand Down

0 comments on commit 509a0a5

Please sign in to comment.