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

Issue 2801463002: Milo: Use custom config caching layer (Closed)

Created:
3 years, 8 months ago by Ryan Tseng
Modified:
3 years, 8 months ago
Reviewers:
nodir, hinoka
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

Milo: Use custom config caching layer Use our own caching layer for luci config. This allows for better failure conditions, and also the configs can be viewed. Some behavioral changes: * GetSettings() should never error, just returns an unfilled config. BUG=700055 Review-Url: https://codereview.chromium.org/2801463002 Committed: https://github.com/luci/luci-go/commit/a42d0e810765a5abf65fe3c4d8a5fe1b4645e12c

Patch Set 1 #

Patch Set 2 : Working #

Total comments: 35

Patch Set 3 : review #

Patch Set 4 : Fix test interface #

Patch Set 5 : Pass in authority too #

Patch Set 6 : also the test interface #

Patch Set 7 : Fix swarming leftovers #

Total comments: 13

Patch Set 8 : Review: Remove double logging #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -82 lines) Patch
M luci_config/server/cfgclient/backend/backend.go View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M luci_config/server/cfgclient/backend/client/client.go View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M luci_config/server/cfgclient/backend/erroring/erroring.go View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M luci_config/server/cfgclient/config_test.go View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M milo/appengine/buildbot/pubsub.go View 1 chunk +1 line, -8 lines 0 comments Download
M milo/appengine/buildbot/pubsub_test.go View 1 chunk +3 lines, -0 lines 0 comments Download
M milo/appengine/buildbucket/buckets.go View 1 chunk +1 line, -6 lines 0 comments Download
M milo/appengine/buildbucket/builder.go View 1 chunk +2 lines, -6 lines 0 comments Download
M milo/appengine/buildbucket/builder_test.go View 2 chunks +4 lines, -0 lines 0 comments Download
M milo/appengine/common/acl.go View 1 chunk +3 lines, -3 lines 0 comments Download
M milo/appengine/common/config.go View 1 2 3 4 5 6 7 3 chunks +136 lines, -20 lines 0 comments Download
M milo/appengine/common/config_test.go View 1 2 3 4 5 6 7 4 chunks +12 lines, -5 lines 0 comments Download
M milo/appengine/frontend/config.go View 1 2 2 chunks +23 lines, -9 lines 0 comments Download
M milo/appengine/frontend/cron.yaml View 1 chunk +0 lines, -3 lines 0 comments Download
M milo/appengine/frontend/expectations/frontpage-Basic_frontpage.html View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M milo/appengine/frontend/frontpage.go View 1 2 3 chunks +2 lines, -6 lines 0 comments Download
M milo/appengine/frontend/templates/pages/configs.html View 1 1 chunk +13 lines, -0 lines 0 comments Download
M milo/appengine/frontend/templates/pages/frontpage.html View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M milo/appengine/swarming/html.go View 1 2 3 4 5 6 1 chunk +3 lines, -12 lines 0 comments Download

Messages

Total messages: 47 (37 generated)
hinoka
3 years, 8 months ago (2017-04-04 21:36:50 UTC) #10
chromium-reviews
Demo: https://luci-milo-dev.appspot.com/admin/configs On Tue, Apr 4, 2017 at 2:36 PM, <hinoka@chromium.org> wrote: > https://codereview.chromium.org/2801463002/ > ...
3 years, 8 months ago (2017-04-04 21:37:07 UTC) #11
nodir
On 2017/04/04 21:37:07, chromium-reviews wrote: > Demo: https://luci-milo-dev.appspot.com/admin/configs > this returns an internal server error ...
3 years, 8 months ago (2017-04-04 23:12:00 UTC) #14
nodir
https://codereview.chromium.org/2801463002/diff/20001/milo/api/resp/status_string.go File milo/api/resp/status_string.go (right): https://codereview.chromium.org/2801463002/diff/20001/milo/api/resp/status_string.go#newcode1 milo/api/resp/status_string.go:1: // Code generated by "stringer -type=Status,ComponentType,Verbosity"; DO NOT EDIT. ...
3 years, 8 months ago (2017-04-04 23:12:08 UTC) #15
nodir
https://codereview.chromium.org/2801463002/diff/20001/milo/appengine/common/config.go File milo/appengine/common/config.go (right): https://codereview.chromium.org/2801463002/diff/20001/milo/appengine/common/config.go#newcode96 milo/appengine/common/config.go:96: // UpdateServiceConfig fetches the service config from luci-cfg On ...
3 years, 8 months ago (2017-04-04 23:27:15 UTC) #16
hinoka
https://codereview.chromium.org/2801463002/diff/20001/milo/api/resp/status_string.go File milo/api/resp/status_string.go (right): https://codereview.chromium.org/2801463002/diff/20001/milo/api/resp/status_string.go#newcode1 milo/api/resp/status_string.go:1: // Code generated by "stringer -type=Status,ComponentType,Verbosity"; DO NOT EDIT. ...
3 years, 8 months ago (2017-04-05 20:45:07 UTC) #19
nodir
lgtm % comments please make sure that UpdateServiceConfig does not call logging functions https://codereview.chromium.org/2801463002/diff/20001/milo/appengine/frontend/config.go File ...
3 years, 8 months ago (2017-04-05 21:47:50 UTC) #34
hinoka
https://codereview.chromium.org/2801463002/diff/120001/luci_config/server/cfgclient/backend/backend.go File luci_config/server/cfgclient/backend/backend.go (right): https://codereview.chromium.org/2801463002/diff/120001/luci_config/server/cfgclient/backend/backend.go#newcode69 luci_config/server/cfgclient/backend/backend.go:69: // GetConfigInterface returns the raw configuration interface for the ...
3 years, 8 months ago (2017-04-06 03:34:34 UTC) #41
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/2801463002/140001
3 years, 8 months ago (2017-04-06 03:35:16 UTC) #44
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 03:54:19 UTC) #47
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://github.com/luci/luci-go/commit/a42d0e810765a5abf65fe3c4d8a5fe1b4645e12c

Powered by Google App Engine
This is Rietveld 408576698