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

Issue 2778533002: config: store binary configs (Closed)

Created:
3 years, 9 months ago by nodir
Modified:
3 years, 8 months ago
Reviewers:
Vadim Sh., M-A Ruel
CC:
chromium-reviews, infra-reviews+luci-py_chromium.org
Target Ref:
refs/heads/master
Project:
luci-py
Visibility:
Public.

Description

config: store binary configs config.get_async: if last good config is requested and destination type is a protobuf message, store it in binary in addition to raw format. When loading from a last good conig, if protobuf message type name matches what we have in the datastore, load the config from the binary field. Also fix tests and include them in PRESUBMIT.py R=vadimsh@chromium.org BUG=705002 Review-Url: https://codereview.chromium.org/2778533002 Committed: https://github.com/luci/luci-py/commit/b048c2783c11ff79dfc32f3925a65d1f42828ac7

Patch Set 1 #

Patch Set 2 : config: store binary configs #

Total comments: 12

Patch Set 3 : address comments #

Patch Set 4 : nit #

Total comments: 6

Patch Set 5 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+365 lines, -145 lines) Patch
M appengine/components/PRESUBMIT.py View 1 chunk +1 line, -0 lines 0 comments Download
M appengine/components/components/config/api.py View 2 chunks +4 lines, -4 lines 0 comments Download
M appengine/components/components/config/api_test.py View 2 chunks +4 lines, -8 lines 0 comments Download
M appengine/components/components/config/fs.py View 2 chunks +3 lines, -2 lines 0 comments Download
M appengine/components/components/config/proto/project_config_pb2.py View 1 6 chunks +38 lines, -17 lines 0 comments Download
M appengine/components/components/config/proto/service_config_pb2.py View 1 32 chunks +165 lines, -88 lines 0 comments Download
M appengine/components/components/config/remote.py View 1 2 3 4 7 chunks +104 lines, -18 lines 0 comments Download
M appengine/components/components/config/remote_test.py View 4 chunks +28 lines, -2 lines 0 comments Download
M appengine/components/components/config/test_config_pb2.py View 3 chunks +18 lines, -6 lines 0 comments Download

Messages

Total messages: 23 (13 generated)
nodir
PTAL
3 years, 9 months ago (2017-03-24 22:31:46 UTC) #8
nodir
tested on -dev. Here is an updated LastGoodConfig entity https://pantheon.corp.google.com/datastore/entities/edit?key=0%2F%7C14%2FLastGoodConfig%7C45%2Fname:services%2Fchromium-swarm-dev:settings.cfg&project=chromium-swarm-dev&organizationId=433637338589&ns=&kind=LastGoodConfig
3 years, 9 months ago (2017-03-24 22:32:35 UTC) #9
nodir
ping
3 years, 8 months ago (2017-03-28 22:11:16 UTC) #12
Vadim Sh.
https://codereview.chromium.org/2778533002/diff/20001/appengine/components/components/config/remote.py File appengine/components/components/config/remote.py (right): https://codereview.chromium.org/2778533002/diff/20001/appengine/components/components/config/remote.py#newcode245 appengine/components/components/config/remote.py:245: if current.content_hash != content_hash or binary_missing: why 'binary_missing' check? ...
3 years, 8 months ago (2017-03-28 22:34:47 UTC) #13
nodir
https://codereview.chromium.org/2778533002/diff/20001/appengine/components/components/config/remote.py File appengine/components/components/config/remote.py (right): https://codereview.chromium.org/2778533002/diff/20001/appengine/components/components/config/remote.py#newcode245 appengine/components/components/config/remote.py:245: if current.content_hash != content_hash or binary_missing: On 2017/03/28 22:34:47, ...
3 years, 8 months ago (2017-03-28 23:20:22 UTC) #14
Vadim Sh.
lgtm https://codereview.chromium.org/2778533002/diff/20001/appengine/components/components/config/remote.py File appengine/components/components/config/remote.py (right): https://codereview.chromium.org/2778533002/diff/20001/appengine/components/components/config/remote.py#newcode245 appengine/components/components/config/remote.py:245: if current.content_hash != content_hash or binary_missing: On 2017/03/28 ...
3 years, 8 months ago (2017-03-28 23:36:59 UTC) #15
M-A Ruel
lgtm with random comments. Thanks a lot! Sorry for missing it. https://codereview.chromium.org/2778533002/diff/60001/appengine/components/components/config/remote.py File appengine/components/components/config/remote.py (right): ...
3 years, 8 months ago (2017-03-28 23:48:22 UTC) #16
nodir
https://codereview.chromium.org/2778533002/diff/20001/appengine/components/components/config/remote.py File appengine/components/components/config/remote.py (right): https://codereview.chromium.org/2778533002/diff/20001/appengine/components/components/config/remote.py#newcode245 appengine/components/components/config/remote.py:245: if current.content_hash != content_hash or binary_missing: On 2017/03/28 23:36:58, ...
3 years, 8 months ago (2017-03-29 22:24:32 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/2778533002/80001
3 years, 8 months ago (2017-03-29 22:24:44 UTC) #20
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 22:27:22 UTC) #23
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://github.com/luci/luci-py/commit/b048c2783c11ff79dfc32f3925a65d1f42828ac7

Powered by Google App Engine
This is Rietveld 408576698