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

Issue 2701033003: milo: Add SwarmBucket templating. (Closed)

Created:
3 years, 10 months ago by dnj
Modified:
3 years, 10 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: Add SwarmBucket templating. Add SwarmBucket template resolution package. Employ this in Milo when resolving the "log_location" URL. This will enable SwarmBucket templates that include a Swarming run ID in their name to resolve to their actual annotation log stream. BUG=chromium:692217 TEST=unit Review-Url: https://codereview.chromium.org/2701033003 Committed: https://github.com/luci/luci-go/commit/fc6bd8a8856796312b4a2e3c043a74dac66ac194

Patch Set 1 #

Total comments: 8

Patch Set 2 : :wq #

Total comments: 6

Patch Set 3 : full Python template package #

Total comments: 7

Patch Set 4 : impossible panic #

Total comments: 4

Patch Set 5 : move package to "swarming". #

Patch Set 6 : fix comments #

Patch Set 7 : Apparently "/swarming" is gitignored! Added... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+304 lines, -30 lines) Patch
D .gitignore View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
A common/data/text/stringtemplate/template.go View 1 2 3 1 chunk +105 lines, -0 lines 0 comments Download
A common/data/text/stringtemplate/template_test.go View 1 2 1 chunk +69 lines, -0 lines 0 comments Download
M milo/appengine/frontend/expectations/bootstrap-swarming.TestableBuild-build-running-logdog.html View 5 chunks +5 lines, -5 lines 0 comments Download
M milo/appengine/frontend/expectations/buildbot-swarming.TestableBuild-build-running-logdog.html View 4 chunks +5 lines, -5 lines 0 comments Download
M milo/appengine/swarming/build.go View 4 chunks +8 lines, -8 lines 0 comments Download
M milo/appengine/swarming/buildinfo.go View 1 2 3 4 5 4 chunks +15 lines, -2 lines 0 comments Download
M milo/appengine/swarming/expectations/build-running-logdog.json View 5 chunks +6 lines, -6 lines 0 comments Download
M milo/appengine/swarming/testdata/build-running-logdog.swarm View 1 chunk +2 lines, -2 lines 0 comments Download
A swarming/tasktemplate/template.go View 1 2 3 4 5 6 1 chunk +43 lines, -0 lines 0 comments Download
A swarming/tasktemplate/template_test.go View 1 2 3 4 5 6 1 chunk +46 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
dnj
PTAL
3 years, 10 months ago (2017-02-17 21:46:59 UTC) #2
hinoka
https://codereview.chromium.org/2701033003/diff/1/buildbucket/swarmbucket/subst/subst.go File buildbucket/swarmbucket/subst/subst.go (right): https://codereview.chromium.org/2701033003/diff/1/buildbucket/swarmbucket/subst/subst.go#newcode5 buildbucket/swarmbucket/subst/subst.go:5: // Package subst is a generic string template resolver. ...
3 years, 10 months ago (2017-02-17 22:07:40 UTC) #3
nodir
https://codereview.chromium.org/2701033003/diff/20001/buildbucket/swarmbucket/templatestr/template.go File buildbucket/swarmbucket/templatestr/template.go (right): https://codereview.chromium.org/2701033003/diff/20001/buildbucket/swarmbucket/templatestr/template.go#newcode1 buildbucket/swarmbucket/templatestr/template.go:1: // Copyright 2017 The LUCI Authors. All rights reserved. ...
3 years, 10 months ago (2017-02-18 03:19:48 UTC) #4
nodir
https://codereview.chromium.org/2701033003/diff/20001/buildbucket/swarmbucket/templatestr/template.go File buildbucket/swarmbucket/templatestr/template.go (right): https://codereview.chromium.org/2701033003/diff/20001/buildbucket/swarmbucket/templatestr/template.go#newcode41 buildbucket/swarmbucket/templatestr/template.go:41: SwarmingRunID string i think this package mixes code of ...
3 years, 10 months ago (2017-02-18 04:27:52 UTC) #5
dnj
https://codereview.chromium.org/2701033003/diff/1/buildbucket/swarmbucket/subst/subst.go File buildbucket/swarmbucket/subst/subst.go (right): https://codereview.chromium.org/2701033003/diff/1/buildbucket/swarmbucket/subst/subst.go#newcode5 buildbucket/swarmbucket/subst/subst.go:5: // Package subst is a generic string template resolver. ...
3 years, 10 months ago (2017-02-18 04:48:32 UTC) #6
dnj
https://codereview.chromium.org/2701033003/diff/20001/buildbucket/swarmbucket/templatestr/template.go File buildbucket/swarmbucket/templatestr/template.go (right): https://codereview.chromium.org/2701033003/diff/20001/buildbucket/swarmbucket/templatestr/template.go#newcode1 buildbucket/swarmbucket/templatestr/template.go:1: // Copyright 2017 The LUCI Authors. All rights reserved. ...
3 years, 10 months ago (2017-02-18 06:08:13 UTC) #7
nodir
https://codereview.chromium.org/2701033003/diff/40001/buildbucket/swarmbucket/tasktemplate/template.go File buildbucket/swarmbucket/tasktemplate/template.go (right): https://codereview.chromium.org/2701033003/diff/40001/buildbucket/swarmbucket/tasktemplate/template.go#newcode5 buildbucket/swarmbucket/tasktemplate/template.go:5: // Package tasktemplate resolves Swarming task templates. a swarming ...
3 years, 10 months ago (2017-02-18 07:00:55 UTC) #8
dnj
https://codereview.chromium.org/2701033003/diff/40001/buildbucket/swarmbucket/tasktemplate/template.go File buildbucket/swarmbucket/tasktemplate/template.go (right): https://codereview.chromium.org/2701033003/diff/40001/buildbucket/swarmbucket/tasktemplate/template.go#newcode19 buildbucket/swarmbucket/tasktemplate/template.go:19: type Params struct { On 2017/02/18 07:00:54, nodir wrote: ...
3 years, 10 months ago (2017-02-18 07:42:48 UTC) #9
nodir
https://codereview.chromium.org/2701033003/diff/40001/buildbucket/swarmbucket/tasktemplate/template.go File buildbucket/swarmbucket/tasktemplate/template.go (right): https://codereview.chromium.org/2701033003/diff/40001/buildbucket/swarmbucket/tasktemplate/template.go#newcode19 buildbucket/swarmbucket/tasktemplate/template.go:19: type Params struct { On 2017/02/18 07:42:48, dnj wrote: ...
3 years, 10 months ago (2017-02-18 15:40:32 UTC) #10
dnj
https://codereview.chromium.org/2701033003/diff/60001/milo/appengine/swarming/buildinfo.go File milo/appengine/swarming/buildinfo.go (right): https://codereview.chromium.org/2701033003/diff/60001/milo/appengine/swarming/buildinfo.go#newcode221 milo/appengine/swarming/buildinfo.go:221: // Gather our SwarmBucket template parameters and perform a ...
3 years, 10 months ago (2017-02-18 18:52:31 UTC) #11
nodir
i don't see the new swarming package
3 years, 10 months ago (2017-02-18 19:11:20 UTC) #12
nodir
lgtm after adding it to the patchset
3 years, 10 months ago (2017-02-18 19:12:09 UTC) #13
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/2701033003/120001
3 years, 10 months ago (2017-02-18 19:24:53 UTC) #16
commit-bot: I haz the power
3 years, 10 months ago (2017-02-18 19:31:16 UTC) #19
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://github.com/luci/luci-go/commit/fc6bd8a8856796312b4a2e3c043a74dac66ac194

Powered by Google App Engine
This is Rietveld 408576698