presubmit: add a one hour timeout to bot_update.

Mirroring crrev.com/c/1717663. bot_update runs that take more than an
hour are typically hung in irrecoverable ways.

Recipe-Nontrivial-Roll: build
Change-Id: Ic0afc48db7e0ac3464888e7715621a04f55443ce
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1754263
Reviewed-by: Stephen Martinis <martiniss@chromium.org>
Reviewed-by: Haiyang Pan <hypan@google.com>
Reviewed-by: Nodir Turakulov <nodir@chromium.org>
Commit-Queue: John Budorick <jbudorick@chromium.org>
Auto-Submit: John Budorick <jbudorick@chromium.org>
changes/63/1754263/3
John Budorick 6 years ago committed by Commit Bot
parent a151265d61
commit 1069d421d9

@ -52,7 +52,7 @@ class PresubmitApi(recipe_api.RecipeApi):
"""
# Expect callers to have already set up their gclient configuration.
bot_update_step = self.m.bot_update.ensure_checkout()
bot_update_step = self.m.bot_update.ensure_checkout(timeout=3600)
relative_root = self.m.gclient.get_gerrit_patch_root().rstrip('/')
abs_root = self.m.context.cwd.join(relative_root)

Loading…
Cancel
Save