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

Issue 1926443003: swarming: read configs from luci-config (Closed)

Created:
4 years, 7 months ago by nodir
Modified:
4 years, 7 months ago
Reviewers:
Vadim Sh., M-A Ruel
CC:
chromium-reviews, infra-reviews+luci-py_chromium.org
Base URL:
https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Target Ref:
refs/heads/master
Project:
luci-py
Visibility:
Public.

Description

swarming: read configs from luci-config - add proto/config.proto with SettingsCfg message that has same field as GlobalConfig. - add a cron job that updates settings.cfg in the background. - add ConfigApi so we can specify hostname of config service in a particular swarming instance. - update config.py to read settings using components.config instead of GlobalConfig entity. Remove GlobalConfig. - update handlers.py and restricted_config.html accordingly Remove code related to config mutation. R=maruel@chromium.org, vadimsh@chromium.org BUG=601018 Committed: https://github.com/luci/luci-py/commit/fd161432f88fcfa251372ca3e1a3e45c49d24216

Patch Set 1 #

Patch Set 2 : swarming: read configs from luci-config #

Patch Set 3 : unlint #

Total comments: 9

Patch Set 4 : do not specify target in cron.yaml #

Total comments: 6

Patch Set 5 : disable inputs #

Patch Set 6 : unhardcode config service hostname, validate config #

Patch Set 7 : remove type=text #

Patch Set 8 : timeout=1min #

Patch Set 9 : changed logging levels #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -137 lines) Patch
M appengine/components/components/config/api.py View 1 chunk +1 line, -0 lines 0 comments Download
M appengine/components/components/config/common.py View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M appengine/components/components/config/remote.py View 1 chunk +2 lines, -0 lines 0 comments Download
M appengine/swarming/app.yaml View 1 chunk +1 line, -0 lines 0 comments Download
M appengine/swarming/cron.yaml View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M appengine/swarming/handlers_frontend.py View 1 2 3 4 5 1 chunk +3 lines, -42 lines 0 comments Download
M appengine/swarming/handlers_test.py View 1 chunk +1 line, -30 lines 0 comments Download
M appengine/swarming/main.py View 1 2 3 4 5 1 chunk +6 lines, -2 lines 0 comments Download
A appengine/swarming/proto/Makefile View 1 chunk +6 lines, -0 lines 0 comments Download
A + appengine/swarming/proto/__init__.py View 0 chunks +-1 lines, --1 lines 0 comments Download
A appengine/swarming/proto/config.proto View 1 1 chunk +20 lines, -0 lines 0 comments Download
A appengine/swarming/proto/config_pb2.py View 1 chunk +78 lines, -0 lines 0 comments Download
M appengine/swarming/server/config.py View 1 2 3 4 5 6 7 8 1 chunk +95 lines, -19 lines 0 comments Download
M appengine/swarming/server/task_scheduler_test.py View 2 chunks +1 line, -3 lines 0 comments Download
M appengine/swarming/templates/restricted_config.html View 1 2 3 4 5 6 1 chunk +31 lines, -42 lines 0 comments Download

Messages

Total messages: 24 (10 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1926443003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1926443003/20001
4 years, 7 months ago (2016-04-27 17:22:41 UTC) #3
nodir
PTAL Config: https://chromereviews.googleplex.com/410487013/
4 years, 7 months ago (2016-04-27 17:22:48 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Luci-py Presubmit on master.tryserver.infra (JOB_FAILED, https://build.chromium.org/p/tryserver.infra/builders/Luci-py%20Presubmit/builds/742)
4 years, 7 months ago (2016-04-27 17:28:50 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1926443003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1926443003/40001
4 years, 7 months ago (2016-04-27 17:35:12 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-27 17:38:04 UTC) #10
M-A Ruel
https://codereview.chromium.org/1926443003/diff/40001/appengine/swarming/main.py File appengine/swarming/main.py (right): https://codereview.chromium.org/1926443003/diff/40001/appengine/swarming/main.py#newcode42 appengine/swarming/main.py:42: # App that serves new endpoints API. Remove this ...
4 years, 7 months ago (2016-04-27 17:50:46 UTC) #11
nodir
https://codereview.chromium.org/1926443003/diff/40001/appengine/swarming/main.py File appengine/swarming/main.py (right): https://codereview.chromium.org/1926443003/diff/40001/appengine/swarming/main.py#newcode42 appengine/swarming/main.py:42: # App that serves new endpoints API. On 2016/04/27 ...
4 years, 7 months ago (2016-04-27 18:37:22 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1926443003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1926443003/120001
4 years, 7 months ago (2016-04-27 18:37:34 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-27 18:40:05 UTC) #16
M-A Ruel
lgtm https://codereview.chromium.org/1926443003/diff/40001/appengine/swarming/server/config.py File appengine/swarming/server/config.py (right): https://codereview.chromium.org/1926443003/diff/40001/appengine/swarming/server/config.py#newcode29 appengine/swarming/server/config.py:29: @utils.memcache('config:get_configs_url', time=300) On 2016/04/27 18:37:21, nodir wrote: > ...
4 years, 7 months ago (2016-04-27 18:51:19 UTC) #17
nodir
https://codereview.chromium.org/1926443003/diff/40001/appengine/swarming/server/config.py File appengine/swarming/server/config.py (right): https://codereview.chromium.org/1926443003/diff/40001/appengine/swarming/server/config.py#newcode29 appengine/swarming/server/config.py:29: @utils.memcache('config:get_configs_url', time=300) On 2016/04/27 18:51:19, M-A Ruel wrote: > ...
4 years, 7 months ago (2016-04-27 19:08:53 UTC) #18
nodir
I made settings.cfg optional because other instances of swarming use default values
4 years, 7 months ago (2016-04-27 20:47:24 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1926443003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1926443003/160001
4 years, 7 months ago (2016-04-27 21:22:22 UTC) #22
commit-bot: I haz the power
4 years, 7 months ago (2016-04-27 21:25:22 UTC) #24
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://github.com/luci/luci-py/commit/fd161432f88fcfa251372ca3e1a3e45c49d24216

Powered by Google App Engine
This is Rietveld 408576698