Reduce retries in gclient_utils

There are other retries (e.g. in git wrapper, gclient_scm) so we
shouldn't be retrying that much in gclient_utils.

In ideal case, we have a dedicated place where retries are determined,
and we make a retry decision based on stderr / exit code.

R=jojwang@google.com

Bug: 1359109
Change-Id: I97daa0d991a7294635e54b7a3d85a349c03c04c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3871979
Commit-Queue: Josip Sokcevic <sokcevic@google.com>
Reviewed-by: Joanna Wang <jojwang@chromium.org>
This commit is contained in:
Josip Sokcevic
2022-09-02 18:08:57 +00:00
committed by LUCI CQ
parent 8cdc635be8
commit 38d669fe6f
2 changed files with 6 additions and 3 deletions

View File

@@ -116,7 +116,7 @@ class CheckCallAndFilterTestCase(unittest.TestCase):
'allo',
'addb',
'',
'________ running \'boo foo bar\' in \'bleh\' attempt 2 / 4\n',
'________ running \'boo foo bar\' in \'bleh\' attempt 2 / 2\n',
'ahah',
'accb',
'allo',