Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Issue 2592683002: Retry non-streaming gRPC calls (Closed)

Created:
4 years ago by aludwin
Modified:
4 years ago
Reviewers:
ryanmartens, M-A Ruel
CC:
chromium-reviews, infra-reviews+luci-py_chromium.org
Target Ref:
refs/heads/master
Project:
luci-py
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 13

Patch Set 2 : Response to comments #

Total comments: 1

Patch Set 3 : Call calculate_sleep_before_retry and add unit tests #

Total comments: 4

Patch Set 4 : Final changes from maruel #

Patch Set 5 : Disable incorrect pylint warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -7 lines) Patch
M appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py View 1 2 3 8 chunks +34 lines, -6 lines 0 comments Download
M appengine/swarming/swarming_bot/bot_code/remote_client_grpc_test.py View 1 2 3 4 3 chunks +86 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 23 (8 generated)
aludwin
I confirmed that when the proxy briefly goes away, the bot no longer dies. This ...
4 years ago (2016-12-20 14:22:45 UTC) #2
M-A Ruel
https://codereview.chromium.org/2592683002/diff/1/appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py File appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py (right): https://codereview.chromium.org/2592683002/diff/1/appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py#newcode232 appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py:232: num_attempts = 0 for num_attempts in xrange(MAX_GRPC_ATTEMPTS): https://codereview.chromium.org/2592683002/diff/1/appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py#newcode238 appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py:238: ...
4 years ago (2016-12-20 15:06:00 UTC) #3
aludwin
https://codereview.chromium.org/2592683002/diff/1/appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py File appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py (right): https://codereview.chromium.org/2592683002/diff/1/appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py#newcode238 appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py:238: logging.warning('call_grpc succeeded after %d attempts', num_attempts) On 2016/12/20 15:05:59, ...
4 years ago (2016-12-20 16:42:35 UTC) #4
M-A Ruel
You forgot to upload. https://codereview.chromium.org/2592683002/diff/1/appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py File appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py (right): https://codereview.chromium.org/2592683002/diff/1/appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py#newcode246 appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py:246: time.sleep(1) On 2016/12/20 16:42:35, aludwin ...
4 years ago (2016-12-20 17:01:45 UTC) #5
aludwin
https://codereview.chromium.org/2592683002/diff/1/appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py File appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py (right): https://codereview.chromium.org/2592683002/diff/1/appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py#newcode232 appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py:232: num_attempts = 0 On 2016/12/20 15:05:59, M-A Ruel wrote: ...
4 years ago (2016-12-20 19:51:44 UTC) #6
M-A Ruel
https://codereview.chromium.org/2592683002/diff/1/appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py File appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py (right): https://codereview.chromium.org/2592683002/diff/1/appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py#newcode232 appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py:232: num_attempts = 0 On 2016/12/20 19:51:44, aludwin wrote: > ...
4 years ago (2016-12-20 19:55:37 UTC) #7
aludwin
4 years ago (2016-12-20 21:22:11 UTC) #8
M-A Ruel
lgtm with change https://codereview.chromium.org/2592683002/diff/20001/appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py File appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py (right): https://codereview.chromium.org/2592683002/diff/20001/appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py#newcode249 appengine/swarming/swarming_bot/bot_code/remote_client_grpc.py:249: # random.random() returns [0.0, 1.0). Starts ...
4 years ago (2016-12-20 22:05:55 UTC) #9
aludwin
Hi M-A, I made some changes to the call_grpc function and also added a bunch ...
4 years ago (2016-12-21 16:19:47 UTC) #10
M-A Ruel
lgtm https://codereview.chromium.org/2592683002/diff/40001/appengine/swarming/swarming_bot/bot_code/remote_client_grpc_test.py File appengine/swarming/swarming_bot/bot_code/remote_client_grpc_test.py (right): https://codereview.chromium.org/2592683002/diff/40001/appengine/swarming/swarming_bot/bot_code/remote_client_grpc_test.py#newcode47 appengine/swarming/swarming_bot/bot_code/remote_client_grpc_test.py:47: add empty line here https://codereview.chromium.org/2592683002/diff/40001/appengine/swarming/swarming_bot/bot_code/remote_client_grpc_test.py#newcode202 appengine/swarming/swarming_bot/bot_code/remote_client_grpc_test.py:202: try: FYI, ...
4 years ago (2016-12-21 16:31:45 UTC) #11
aludwin
https://codereview.chromium.org/2592683002/diff/40001/appengine/swarming/swarming_bot/bot_code/remote_client_grpc_test.py File appengine/swarming/swarming_bot/bot_code/remote_client_grpc_test.py (right): https://codereview.chromium.org/2592683002/diff/40001/appengine/swarming/swarming_bot/bot_code/remote_client_grpc_test.py#newcode47 appengine/swarming/swarming_bot/bot_code/remote_client_grpc_test.py:47: On 2016/12/21 16:31:44, M-A Ruel wrote: > add empty ...
4 years ago (2016-12-21 16:50:35 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2592683002/60001
4 years ago (2016-12-21 16:52:17 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: Luci-py Presubmit on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/333b1ddede0ba410)
4 years ago (2016-12-21 16:59:57 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2592683002/80001
4 years ago (2016-12-21 17:10:45 UTC) #20
commit-bot: I haz the power
4 years ago (2016-12-21 17:15:07 UTC) #23
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://github.com/luci/luci-py/commit/0f3cdde6c7b7b9118ac93a549b18fdc7b96b716b

Powered by Google App Engine
This is Rietveld 408576698