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

Issue 2675493003: milo: Use service interface for swarming. (Closed)

Created:
3 years, 10 months ago by dnj
Modified:
3 years, 10 months ago
Reviewers:
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 service interface for swarming. Milo now uses an internal "swarmingService" interface for swarming operations. This allows the debug code to be moved into test files, removing it from production. It also makes room for additional Swarming service operations to be added in parallel. BUG=chromium:687625 TEST=unit Review-Url: https://codereview.chromium.org/2675493003 Committed: https://github.com/luci/luci-go/commit/f640dfb81c083686c36758c43176f983c9351d38

Patch Set 1 #

Total comments: 8

Patch Set 2 : Added crude Swarming host whitelist. #

Patch Set 3 : Fix error text. #

Total comments: 1

Patch Set 4 : Update fetch signature #

Unified diffs Side-by-side diffs Delta from patch set Stats (+252 lines, -151 lines) Patch
M milo/appengine/frontend/expectations/buildbot-swarming.TestableBuild-build-canceled.html View 1 chunk +2 lines, -2 lines 0 comments Download
M milo/appengine/frontend/expectations/buildbot-swarming.TestableBuild-build-exception.html View 1 chunk +1 line, -1 line 0 comments Download
M milo/appengine/frontend/expectations/buildbot-swarming.TestableBuild-build-expired.html View 1 chunk +1 line, -1 line 0 comments Download
M milo/appengine/frontend/expectations/buildbot-swarming.TestableBuild-build-link.html View 1 chunk +1 line, -1 line 0 comments Download
M milo/appengine/frontend/expectations/buildbot-swarming.TestableBuild-build-nested.html View 1 chunk +1 line, -1 line 0 comments Download
M milo/appengine/frontend/expectations/buildbot-swarming.TestableBuild-build-patch-failure.html View 1 chunk +1 line, -1 line 0 comments Download
M milo/appengine/frontend/expectations/buildbot-swarming.TestableBuild-build-pending.html View 1 chunk +1 line, -1 line 0 comments Download
M milo/appengine/frontend/expectations/buildbot-swarming.TestableBuild-build-running.html View 1 chunk +1 line, -1 line 0 comments Download
M milo/appengine/frontend/expectations/buildbot-swarming.TestableBuild-build-timeout.html View 1 chunk +2 lines, -2 lines 0 comments Download
M milo/appengine/frontend/expectations/buildbot-swarming.TestableBuild-build-unicode.html View 1 chunk +1 line, -1 line 0 comments Download
M milo/appengine/swarming/build.go View 1 2 3 7 chunks +114 lines, -87 lines 0 comments Download
M milo/appengine/swarming/buildLog.go View 1 2 3 3 chunks +8 lines, -17 lines 0 comments Download
M milo/appengine/swarming/build_test.go View 4 chunks +10 lines, -6 lines 0 comments Download
M milo/appengine/swarming/expectations/build-canceled.json View 1 chunk +3 lines, -3 lines 0 comments Download
M milo/appengine/swarming/expectations/build-exception.json View 1 chunk +2 lines, -2 lines 0 comments Download
M milo/appengine/swarming/expectations/build-expired.json View 1 chunk +2 lines, -2 lines 0 comments Download
M milo/appengine/swarming/expectations/build-link.json View 1 chunk +2 lines, -2 lines 0 comments Download
M milo/appengine/swarming/expectations/build-nested.json View 1 chunk +2 lines, -2 lines 0 comments Download
M milo/appengine/swarming/expectations/build-patch-failure.json View 1 chunk +2 lines, -2 lines 0 comments Download
M milo/appengine/swarming/expectations/build-pending.json View 1 chunk +2 lines, -2 lines 0 comments Download
M milo/appengine/swarming/expectations/build-running.json View 1 chunk +2 lines, -2 lines 0 comments Download
M milo/appengine/swarming/expectations/build-timeout.json View 1 chunk +3 lines, -3 lines 0 comments Download
M milo/appengine/swarming/expectations/build-unicode.json View 1 chunk +2 lines, -2 lines 0 comments Download
M milo/appengine/swarming/html.go View 1 3 chunks +35 lines, -6 lines 0 comments Download
M milo/appengine/swarming/html_data.go View 4 chunks +51 lines, -1 line 0 comments Download

Messages

Total messages: 17 (5 generated)
dnj
PTAL. This set of CLs adds a pRPC service to Milo called "BuildInfo". This service ...
3 years, 10 months ago (2017-02-02 02:57:14 UTC) #2
hinoka
Is there a plan to add more swarming service implementations? If there is no plan ...
3 years, 10 months ago (2017-02-02 22:36:51 UTC) #3
dnj
On 2017/02/02 22:36:51, hinoka wrote: > Is there a plan to add more swarming service ...
3 years, 10 months ago (2017-02-02 22:44:47 UTC) #4
dnj
(ping)
3 years, 10 months ago (2017-02-03 00:13:06 UTC) #5
hinoka
Generally lg but i'm super wary of indirection creep, as it makes the code harder ...
3 years, 10 months ago (2017-02-03 01:02:24 UTC) #6
dnj
https://codereview.chromium.org/2675493003/diff/1/milo/appengine/swarming/build.go File milo/appengine/swarming/build.go (right): https://codereview.chromium.org/2675493003/diff/1/milo/appengine/swarming/build.go#newcode109 milo/appengine/swarming/build.go:109: type swarmingFetch struct { On 2017/02/03 01:02:23, hinoka wrote: ...
3 years, 10 months ago (2017-02-03 01:04:56 UTC) #7
dnj
https://codereview.chromium.org/2675493003/diff/1/milo/appengine/swarming/build.go File milo/appengine/swarming/build.go (right): https://codereview.chromium.org/2675493003/diff/1/milo/appengine/swarming/build.go#newcode32 milo/appengine/swarming/build.go:32: var errNotMiloJob = errors.New("No a Milo Job") On 2017/02/02 ...
3 years, 10 months ago (2017-02-03 02:22:04 UTC) #8
hinoka
https://codereview.chromium.org/2675493003/diff/40001/milo/appengine/swarming/build.go File milo/appengine/swarming/build.go (right): https://codereview.chromium.org/2675493003/diff/40001/milo/appengine/swarming/build.go#newcode109 milo/appengine/swarming/build.go:109: type swarmingFetch struct { How about splitting this into ...
3 years, 10 months ago (2017-02-03 20:50:46 UTC) #9
hinoka
lgtm after the change
3 years, 10 months ago (2017-02-03 20:54:09 UTC) #10
hinoka
Also don't make fetch a method, just a function is fine
3 years, 10 months ago (2017-02-03 20:54:37 UTC) #11
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/2675493003/60001
3 years, 10 months ago (2017-02-03 22:09:35 UTC) #14
commit-bot: I haz the power
3 years, 10 months ago (2017-02-03 22:16:38 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://github.com/luci/luci-go/commit/f640dfb81c083686c36758c43176f983c9351d38

Powered by Google App Engine
This is Rietveld 408576698