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

Issue 2578893002: server/config: Add text protobuf support. (Closed)

Created:
4 years ago by dnj
Modified:
3 years, 11 months ago
Reviewers:
iannucci
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, maruel+w_chromium.org, tandrii+luci-go_chromium.org
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

server/config: Add text protobuf support. Add a text protobuf configuration Resolver. This will load text protobufs into their proto.Message targets. It will also expose a binary version of the protobufs for caching, enabling the protobufs to be loaded from cache as binaries. Loading from binaries is particularly useful because binaries ignore unknown tags, whereas text protobufs error on them. This reduces risk of application rollbacks when loading cached configurations. BUG=chromium:674378 TEST=unit Review-Url: https://codereview.chromium.org/2578893002 Committed: https://github.com/luci/luci-go/commit/aae008db5bab0425635902546ca339bda0ec7f5c

Patch Set 1 #

Patch Set 2 : Update MultiResolver interface. #

Total comments: 6

Patch Set 3 : Rebase, comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+393 lines, -0 lines) Patch
A luci_config/server/cfgclient/textproto/resolver.go View 1 2 1 chunk +249 lines, -0 lines 0 comments Download
A luci_config/server/cfgclient/textproto/resolver_test.go View 1 2 1 chunk +144 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 10 (5 generated)
dnj
PTAL. Full stack is: https://codereview.chromium.org/2580713002 (base) https://codereview.chromium.org/2578893002 <-- this https://codereview.chromium.org/2576993002 (access) https://codereview.chromium.org/2576343002 (erroring) https://codereview.chromium.org/2582433002 (test) ...
4 years ago (2016-12-15 05:10:22 UTC) #2
iannucci
lgtm https://codereview.chromium.org/2578893002/diff/20001/server/config/textproto/resolver.go File server/config/textproto/resolver.go (right): https://codereview.chromium.org/2578893002/diff/20001/server/config/textproto/resolver.go#newcode5 server/config/textproto/resolver.go:5: // Package textproto implements a textproto config service ...
3 years, 11 months ago (2017-01-07 20:22:11 UTC) #3
dnj
Updated, PTAL. https://codereview.chromium.org/2578893002/diff/20001/server/config/textproto/resolver.go File server/config/textproto/resolver.go (right): https://codereview.chromium.org/2578893002/diff/20001/server/config/textproto/resolver.go#newcode5 server/config/textproto/resolver.go:5: // Package textproto implements a textproto config ...
3 years, 11 months ago (2017-01-10 03:26:37 UTC) #4
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/2578893002/40001
3 years, 11 months ago (2017-01-10 23:08:09 UTC) #7
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 23:15:25 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://github.com/luci/luci-go/commit/aae008db5bab0425635902546ca339bda0ec7f5c

Powered by Google App Engine
This is Rietveld 408576698