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

Issue 2953253003: Replace custom blob gRPC API with ByteStream (Closed)

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

Description

Replace custom blob gRPC API with ByteStream Also allow bot code to be sharded in memcached to get around the 1MB memcached limit. BUG= Review-Url: https://codereview.chromium.org/2953253003 Committed: https://github.com/luci/luci-py/commit/e3c4ba92a8136e80daa32a27299f463a9e8d4f7a

Patch Set 1 #

Patch Set 2 : Remove old hack from on_error.py #

Patch Set 3 : Rebase to latest #

Total comments: 17

Patch Set 4 : Response to review: async memcached #

Patch Set 5 : Minor cleanups #

Total comments: 32

Patch Set 6 : More responses #

Total comments: 4

Patch Set 7 : Formatting; mocked tasklets #

Total comments: 2

Patch Set 8 : Import ndb directly to test code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6551 lines, -1161 lines) Patch
M appengine/swarming/server/bot_archive.py View 3 chunks +36 lines, -1 line 0 comments Download
M appengine/swarming/server/bot_code.py View 1 2 3 4 5 6 3 chunks +73 lines, -3 lines 0 comments Download
M appengine/swarming/server/bot_code_test.py View 1 2 3 4 5 6 7 4 chunks +34 lines, -0 lines 0 comments Download
M client/isolate_storage.py View 1 2 3 4 5 6 7 chunks +114 lines, -76 lines 0 comments Download
M client/isolateserver.py View 1 chunk +3 lines, -0 lines 0 comments Download
M client/proto/build.sh View 1 chunk +1 line, -1 line 0 comments Download
A client/proto/bytestream.proto View 1 chunk +173 lines, -0 lines 0 comments Download
A client/proto/bytestream_pb2.py View 1 chunk +684 lines, -0 lines 0 comments Download
A client/proto/bytestream_pb2_grpc.py View 1 chunk +162 lines, -0 lines 0 comments Download
D client/proto/isolate_bot.proto View 1 chunk +0 lines, -116 lines 0 comments Download
D client/proto/isolate_bot_pb2.py View 1 chunk +0 lines, -698 lines 0 comments Download
D client/proto/isolate_bot_pb2_grpc.py View 1 chunk +0 lines, -95 lines 0 comments Download
M client/tests/isolate_storage_test.py View 14 chunks +88 lines, -157 lines 0 comments Download
A client/third_party/cachetools/README.swarming View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
A client/third_party/cachetools/__init__.py View 1 chunk +112 lines, -0 lines 0 comments Download
A client/third_party/cachetools/abc.py View 1 chunk +48 lines, -0 lines 0 comments Download
A client/third_party/cachetools/cache.py View 1 chunk +104 lines, -0 lines 0 comments Download
A client/third_party/cachetools/func.py View 1 chunk +106 lines, -0 lines 0 comments Download
A client/third_party/cachetools/keys.py View 1 chunk +42 lines, -0 lines 0 comments Download
A client/third_party/cachetools/lfu.py View 1 chunk +35 lines, -0 lines 0 comments Download
A client/third_party/cachetools/lru.py View 1 chunk +48 lines, -0 lines 0 comments Download
A client/third_party/cachetools/rr.py View 1 chunk +28 lines, -0 lines 0 comments Download
A client/third_party/cachetools/ttl.py View 1 chunk +217 lines, -0 lines 0 comments Download
M client/third_party/google/README.swarming View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A + client/third_party/google/auth/__init__.py View 2 chunks +15 lines, -2 lines 0 comments Download
A client/third_party/google/auth/_cloud_sdk.py View 1 chunk +133 lines, -0 lines 0 comments Download
A client/third_party/google/auth/_default.py View 1 chunk +282 lines, -0 lines 0 comments Download
A client/third_party/google/auth/_helpers.py View 1 chunk +217 lines, -0 lines 0 comments Download
A client/third_party/google/auth/_oauth2client.py View 1 chunk +166 lines, -0 lines 0 comments Download
A client/third_party/google/auth/_service_account_info.py View 1 chunk +73 lines, -0 lines 0 comments Download
A client/third_party/google/auth/app_engine.py View 1 chunk +154 lines, -0 lines 0 comments Download
A + client/third_party/google/auth/compute_engine/__init__.py View 2 chunks +9 lines, -2 lines 0 comments Download
A client/third_party/google/auth/compute_engine/_metadata.py View 1 chunk +202 lines, -0 lines 0 comments Download
A client/third_party/google/auth/compute_engine/credentials.py View 1 chunk +121 lines, -0 lines 0 comments Download
A client/third_party/google/auth/credentials.py View 1 chunk +251 lines, -0 lines 0 comments Download
A client/third_party/google/auth/crypt.py View 1 chunk +308 lines, -0 lines 0 comments Download
A client/third_party/google/auth/environment_vars.py View 1 chunk +49 lines, -0 lines 0 comments Download
A + client/third_party/google/auth/exceptions.py View 2 chunks +17 lines, -8 lines 0 comments Download
A client/third_party/google/auth/iam.py View 1 chunk +102 lines, -0 lines 0 comments Download
A client/third_party/google/auth/jwt.py View 1 chunk +755 lines, -0 lines 0 comments Download
A client/third_party/google/auth/transport/__init__.py View 1 chunk +96 lines, -0 lines 0 comments Download
A client/third_party/google/auth/transport/_http_client.py View 1 chunk +111 lines, -0 lines 0 comments Download
A client/third_party/google/auth/transport/grpc.py View 1 chunk +131 lines, -0 lines 0 comments Download
A client/third_party/google/auth/transport/requests.py View 1 chunk +202 lines, -0 lines 0 comments Download
A client/third_party/google/auth/transport/urllib3.py View 1 chunk +253 lines, -0 lines 0 comments Download
A + client/third_party/google/oauth2/__init__.py View 2 chunks +2 lines, -2 lines 0 comments Download
A client/third_party/google/oauth2/_client.py View 1 chunk +200 lines, -0 lines 0 comments Download
A client/third_party/google/oauth2/credentials.py View 1 chunk +131 lines, -0 lines 0 comments Download
A client/third_party/google/oauth2/id_token.py View 1 chunk +115 lines, -0 lines 0 comments Download
A client/third_party/google/oauth2/service_account.py View 1 chunk +326 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (14 generated)
aludwin
Hi Ryan, Vadim - PTAL. The majority of this change is to add OAuth and ...
3 years, 6 months ago (2017-06-23 14:06:23 UTC) #2
aludwin
+maruel for the record
3 years, 6 months ago (2017-06-23 14:07:53 UTC) #3
Vadim Sh.
Some comments for server side, haven't looked at client side yet. (Also, it could have ...
3 years, 6 months ago (2017-06-23 18:26:51 UTC) #5
chromium-reviews
I could break it up if you prefer. As you can probably guess, it grew ...
3 years, 6 months ago (2017-06-23 19:36:34 UTC) #6
Vadim Sh.
On 2017/06/23 19:36:34, chromium-reviews wrote: > I could break it up if you prefer. As ...
3 years, 6 months ago (2017-06-23 19:48:46 UTC) #7
aludwin
https://codereview.chromium.org/2953253003/diff/40001/appengine/swarming/server/bot_code.py File appengine/swarming/server/bot_code.py (right): https://codereview.chromium.org/2953253003/diff/40001/appengine/swarming/server/bot_code.py#newcode31 appengine/swarming/server/bot_code.py:31: MAX_MEMCACHED_SIZE_BYTES = 1000000 On 2017/06/23 18:26:50, Vadim Sh. wrote: ...
3 years, 5 months ago (2017-06-26 17:12:57 UTC) #8
Vadim Sh.
https://codereview.chromium.org/2953253003/diff/80001/appengine/swarming/server/bot_code.py File appengine/swarming/server/bot_code.py (right): https://codereview.chromium.org/2953253003/diff/80001/appengine/swarming/server/bot_code.py#newcode258 appengine/swarming/server/bot_code.py:258: for p in range((int)(num_parts))] just int(num_parts) https://codereview.chromium.org/2953253003/diff/80001/appengine/swarming/server/bot_code.py#newcode259 appengine/swarming/server/bot_code.py:259: content ...
3 years, 5 months ago (2017-06-27 19:12:49 UTC) #9
aludwin
https://codereview.chromium.org/2953253003/diff/80001/appengine/swarming/server/bot_code.py File appengine/swarming/server/bot_code.py (right): https://codereview.chromium.org/2953253003/diff/80001/appengine/swarming/server/bot_code.py#newcode259 appengine/swarming/server/bot_code.py:259: content = ''.join(f.get_result() for f in futures) On 2017/06/27 ...
3 years, 5 months ago (2017-06-27 19:23:06 UTC) #10
Vadim Sh.
https://codereview.chromium.org/2953253003/diff/80001/appengine/swarming/server/bot_code.py File appengine/swarming/server/bot_code.py (right): https://codereview.chromium.org/2953253003/diff/80001/appengine/swarming/server/bot_code.py#newcode259 appengine/swarming/server/bot_code.py:259: content = ''.join(f.get_result() for f in futures) On 2017/06/27 ...
3 years, 5 months ago (2017-06-27 19:27:09 UTC) #11
aludwin
https://codereview.chromium.org/2953253003/diff/80001/appengine/swarming/server/bot_code.py File appengine/swarming/server/bot_code.py (right): https://codereview.chromium.org/2953253003/diff/80001/appengine/swarming/server/bot_code.py#newcode258 appengine/swarming/server/bot_code.py:258: for p in range((int)(num_parts))] On 2017/06/27 19:12:49, Vadim Sh. ...
3 years, 5 months ago (2017-06-27 20:10:17 UTC) #12
Vadim Sh.
few nits https://codereview.chromium.org/2953253003/diff/80001/appengine/swarming/server/bot_code_test.py File appengine/swarming/server/bot_code_test.py (right): https://codereview.chromium.org/2953253003/diff/80001/appengine/swarming/server/bot_code_test.py#newcode107 appengine/swarming/server/bot_code_test.py:107: def mock_memcache_async_get(version, desc, part=None): On 2017/06/27 20:10:17, ...
3 years, 5 months ago (2017-06-27 21:14:29 UTC) #17
aludwin
https://codereview.chromium.org/2953253003/diff/80001/appengine/swarming/server/bot_code_test.py File appengine/swarming/server/bot_code_test.py (right): https://codereview.chromium.org/2953253003/diff/80001/appengine/swarming/server/bot_code_test.py#newcode107 appengine/swarming/server/bot_code_test.py:107: def mock_memcache_async_get(version, desc, part=None): On 2017/06/27 21:14:29, Vadim Sh. ...
3 years, 5 months ago (2017-06-28 13:23:54 UTC) #18
Vadim Sh.
lgtm with one last nit https://codereview.chromium.org/2953253003/diff/120001/appengine/swarming/server/bot_code_test.py File appengine/swarming/server/bot_code_test.py (right): https://codereview.chromium.org/2953253003/diff/120001/appengine/swarming/server/bot_code_test.py#newcode101 appengine/swarming/server/bot_code_test.py:101: @bot_code.ndb.tasklet please import ndb ...
3 years, 5 months ago (2017-06-28 17:52:39 UTC) #19
aludwin
https://codereview.chromium.org/2953253003/diff/120001/appengine/swarming/server/bot_code_test.py File appengine/swarming/server/bot_code_test.py (right): https://codereview.chromium.org/2953253003/diff/120001/appengine/swarming/server/bot_code_test.py#newcode101 appengine/swarming/server/bot_code_test.py:101: @bot_code.ndb.tasklet On 2017/06/28 17:52:39, Vadim Sh. wrote: > please ...
3 years, 5 months ago (2017-06-28 19:19:49 UTC) #20
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/2953253003/140001
3 years, 5 months ago (2017-06-28 19:20:05 UTC) #23
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/2953253003/140001
3 years, 5 months ago (2017-06-28 19:28:08 UTC) #26
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/2953253003/140001
3 years, 5 months ago (2017-06-28 19:42:18 UTC) #29
commit-bot: I haz the power
3 years, 5 months ago (2017-06-28 20:06:05 UTC) #32
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://github.com/luci/luci-py/commit/e3c4ba92a8136e80daa32a27299f463a9e8d4f7a

Powered by Google App Engine
This is Rietveld 408576698