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

Issue 1221643020: config services: services.cfg and validation (Closed)

Created:
5 years, 5 months ago by nodir
Modified:
5 years, 5 months ago
CC:
chromium-reviews, Sergiy Byelozyorov
Base URL:
git@github.com:luci/luci-py.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

config services: services.cfg and validation * Introduced services.cfg, a registry of services * A service may expose a secure metadata endpoint that describes config patterns that the service may validate * Removed validation.cfg: config service sends validation requests to other services based on their metadata * Decreased Gitiles polling frequency to 1/10 min because of gitiles quota * Added customizable service config_location in proto, but did not implement in gitiles_import.py yet R=sergiyb@chromium.org, vadimsh@chromium.org BUG= Committed: https://github.com/luci/luci-py/commit/e7059157d4d05ec55f8d1d9643a0f7edb52f23eb

Patch Set 1 : #

Total comments: 29

Patch Set 2 : metadata format version #

Patch Set 3 : use compile_pattern in validate_pattern #

Patch Set 4 : nits #

Total comments: 18

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1043 lines, -249 lines) Patch
M appengine/components/components/config/common.py View 1 2 3 4 3 chunks +4 lines, -1 line 0 comments Download
M appengine/components/components/config/endpoint.py View 1 2 3 4 4 chunks +97 lines, -7 lines 0 comments Download
A appengine/components/components/config/endpoint_test.py View 1 2 3 4 1 chunk +76 lines, -0 lines 0 comments Download
M appengine/components/components/config/remote.py View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M appengine/components/components/config/remote_test.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M appengine/components/components/config/validation.py View 1 2 6 chunks +71 lines, -11 lines 0 comments Download
M appengine/components/components/config/validation_test.py View 3 chunks +31 lines, -2 lines 0 comments Download
M appengine/components/components/net.py View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M appengine/config_service/README.md View 1 2 3 chunks +36 lines, -13 lines 0 comments Download
M appengine/config_service/common.py View 1 chunk +1 line, -1 line 0 comments Download
M appengine/config_service/cron.yaml View 1 chunk +1 line, -1 line 0 comments Download
M appengine/config_service/gitiles_import.py View 1 chunk +1 line, -0 lines 0 comments Download
M appengine/config_service/proto/service_config.proto View 1 2 3 4 2 chunks +59 lines, -20 lines 0 comments Download
M appengine/config_service/proto/service_config_pb2.py View 1 2 3 4 15 chunks +187 lines, -50 lines 0 comments Download
A appengine/config_service/services.py View 1 2 3 4 1 chunk +86 lines, -0 lines 0 comments Download
A appengine/config_service/services_test.py View 1 2 3 4 1 chunk +115 lines, -0 lines 0 comments Download
M appengine/config_service/validation.py View 1 2 3 4 8 chunks +128 lines, -63 lines 0 comments Download
M appengine/config_service/validation_test.py View 1 2 3 4 7 chunks +145 lines, -77 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
nodir
PTAL. Recommended reviewing order: 1) CL description 2) README.md 3) config_service/proto/service_config.proto 4) components/components/config/validation.py 5) components/components/config/endpoint.py ...
5 years, 5 months ago (2015-07-06 17:19:30 UTC) #1
nodir
cc:sergiyb
5 years, 5 months ago (2015-07-06 17:42:15 UTC) #6
Sergiy Byelozyorov
https://codereview.chromium.org/1221643020/diff/80001/appengine/components/components/config/endpoint.py File appengine/components/components/config/endpoint.py (right): https://codereview.chromium.org/1221643020/diff/80001/appengine/components/components/config/endpoint.py#newcode8 appengine/components/components/config/endpoint.py:8: * Validates configs. TODO(nodir): implement. This should probably be ...
5 years, 5 months ago (2015-07-07 09:10:47 UTC) #8
nodir
https://codereview.chromium.org/1221643020/diff/80001/appengine/components/components/config/endpoint.py File appengine/components/components/config/endpoint.py (right): https://codereview.chromium.org/1221643020/diff/80001/appengine/components/components/config/endpoint.py#newcode8 appengine/components/components/config/endpoint.py:8: * Validates configs. TODO(nodir): implement. On 2015/07/07 09:10:46, Sergiy ...
5 years, 5 months ago (2015-07-07 15:54:18 UTC) #9
Sergiy Byelozyorov
lgtm https://codereview.chromium.org/1221643020/diff/80001/appengine/components/components/config/endpoint.py File appengine/components/components/config/endpoint.py (right): https://codereview.chromium.org/1221643020/diff/80001/appengine/components/components/config/endpoint.py#newcode133 appengine/components/components/config/endpoint.py:133: """Describes a service. Used by config service to ...
5 years, 5 months ago (2015-07-07 23:04:38 UTC) #10
Vadim Sh.
https://codereview.chromium.org/1221643020/diff/140001/appengine/components/components/config/endpoint.py File appengine/components/components/config/endpoint.py (right): https://codereview.chromium.org/1221643020/diff/140001/appengine/components/components/config/endpoint.py#newcode55 appengine/components/components/config/endpoint.py:55: def is_trusted_requester(): I propose to reduce magicallity and store ...
5 years, 5 months ago (2015-07-08 03:05:59 UTC) #11
nodir
https://codereview.chromium.org/1221643020/diff/140001/appengine/components/components/config/endpoint.py File appengine/components/components/config/endpoint.py (right): https://codereview.chromium.org/1221643020/diff/140001/appengine/components/components/config/endpoint.py#newcode55 appengine/components/components/config/endpoint.py:55: def is_trusted_requester(): On 2015/07/08 03:05:58, Vadim Sh. wrote: > ...
5 years, 5 months ago (2015-07-08 15:24:47 UTC) #14
Vadim Sh.
lgtm
5 years, 5 months ago (2015-07-08 16:14:28 UTC) #15
nodir
5 years, 5 months ago (2015-07-08 17:11:19 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 (id:200001) manually as
e7059157d4d05ec55f8d1d9643a0f7edb52f23eb (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698