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

Issue 2580713002: Implement a server-side config service interface. (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

Implement a server-side config service interface. This implements "server/config", a service-specific config service interface. This interface is noticably different from the "common/config.Interface" in the following ways: - It accepts an authority: on whose behalf is the config request being issued? - Defines a greatly-reduced interface, allowing for much simpler cache implementations. - Allows for format translation, enabling implicit conversion and cache storage of configuration data in a different format from its native config service representation. Specifically, this targets storing text protobufs as binary. Ultimately, we will delete the equivalent packages out of "common/config", leaving it as a client endpoint to the config service. Updates to services, notably "appengine/gaeconfig" will follow. BUG=chromium:674378 TEST=unit Review-Url: https://codereview.chromium.org/2580713002 Committed: https://github.com/luci/luci-go/commit/0e70e04e28394c34fad2ec3ba85ff402074f429e

Patch Set 1 #

Patch Set 2 : Update MultiResolver interface, add test for MultiError. #

Total comments: 45

Patch Set 3 : Renamed, moved to luci_config package, fixes, split out backends. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1589 lines, -0 lines) Patch
A luci_config/server/cfgclient/backend/authority.go View 1 2 1 chunk +72 lines, -0 lines 0 comments Download
A luci_config/server/cfgclient/backend/authority_string.go View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
A luci_config/server/cfgclient/backend/backend.go View 1 2 1 chunk +93 lines, -0 lines 0 comments Download
A luci_config/server/cfgclient/backend/client/client.go View 1 2 1 chunk +185 lines, -0 lines 0 comments Download
A luci_config/server/cfgclient/backend/client/client_test.go View 1 2 1 chunk +164 lines, -0 lines 0 comments Download
A luci_config/server/cfgclient/backend/doc.go View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
A luci_config/server/cfgclient/backend/format/format.go View 1 2 1 chunk +119 lines, -0 lines 0 comments Download
A luci_config/server/cfgclient/backend/format/format_test.go View 1 2 1 chunk +156 lines, -0 lines 0 comments Download
A luci_config/server/cfgclient/backend/gen.go View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
A luci_config/server/cfgclient/backend/get_all.go View 1 2 1 chunk +54 lines, -0 lines 0 comments Download
A luci_config/server/cfgclient/backend/meta.go View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A luci_config/server/cfgclient/config.go View 1 2 1 chunk +195 lines, -0 lines 0 comments Download
A luci_config/server/cfgclient/config_test.go View 1 2 1 chunk +222 lines, -0 lines 0 comments Download
A luci_config/server/cfgclient/doc.go View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
A luci_config/server/cfgclient/format.go View 1 2 1 chunk +54 lines, -0 lines 0 comments Download
A luci_config/server/cfgclient/naming.go View 1 2 1 chunk +25 lines, -0 lines 0 comments Download
A luci_config/server/cfgclient/naming_test.go View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A luci_config/server/cfgclient/resolver.go View 1 2 1 chunk +138 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 11 (5 generated)
dnj
PTAL. Full stack is: https://codereview.chromium.org/2580713002 (this) https://codereview.chromium.org/2578893002 (textproto) https://codereview.chromium.org/2576993002 (access) https://codereview.chromium.org/2576343002 (erroring) https://codereview.chromium.org/2582433002 (test) https://codereview.chromium.org/2573403002 ...
4 years ago (2016-12-15 05:10:06 UTC) #2
iannucci
phew that was a long cl. anyway, lgtm https://codereview.chromium.org/2580713002/diff/20001/server/config/authority.go File server/config/authority.go (right): https://codereview.chromium.org/2580713002/diff/20001/server/config/authority.go#newcode1 server/config/authority.go:1: // ...
3 years, 11 months ago (2017-01-07 20:12:16 UTC) #3
iannucci
Oh, and if any of these comments are too annoying to do to the base ...
3 years, 11 months ago (2017-01-07 20:55:51 UTC) #4
dnj
Everything done, PTAL https://codereview.chromium.org/2580713002/diff/20001/server/config/authority.go File server/config/authority.go (right): https://codereview.chromium.org/2580713002/diff/20001/server/config/authority.go#newcode40 server/config/authority.go:40: func (a Authority) String() string { ...
3 years, 11 months ago (2017-01-10 03:25:58 UTC) #5
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/2580713002/40001
3 years, 11 months ago (2017-01-10 23:02:00 UTC) #8
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 23:07:41 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://github.com/luci/luci-go/commit/0e70e04e28394c34fad2ec3ba85ff402074f429e

Powered by Google App Engine
This is Rietveld 408576698