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

Issue 2191693003: Milo: Add LogDog annotation stream support. (Closed)

Created:
4 years, 4 months ago by dnj
Modified:
4 years, 4 months ago
Reviewers:
Ryan Tseng, nodir, hinoka
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, andrew.wang, todd, tandrii+luci-go_chromium.org, M-A Ruel
Base URL:
https://github.com/luci/luci-go@master
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

Milo: Add LogDog annotation stream support. Add LogDog annotation stream loading support. Using the "/logdog/project/path" URL to a Milo annotation protobuf, this will render that protobuf as a Milo build. The LogDog host is optionally specified using the "?host=..." query parameter, and defaults to Chrome Infra's production LogDog host. This modifies how LogDog build is generated, which affects Swarming expectations. This is because previously the Start/Finish time was being calculated independently; however, now the Start/Finish time is calculated from the annotation protobuf. BUG=chromium:624961 TEST=local - Ran in `dev_appserver`, loads LogDog streams. Committed: https://github.com/luci/luci-go/commit/13ee0b897f1429d897f0f5e1b6443b8c406e3419

Patch Set 1 #

Patch Set 2 : Add warning log if substream links are specified. #

Patch Set 3 : Fix successful build state, derive more Swarming parameters from milo proto common code. #

Total comments: 55

Patch Set 4 : Updated from comments. #

Total comments: 2

Patch Set 5 : Fixed bug, moved some things to http.go #

Total comments: 10

Patch Set 6 : Nits / comments. #

Patch Set 7 : Remove HTTP client re-use. Thanks Obama^H^H^H^H^HGAE #

Patch Set 8 : Rebarse #

Unified diffs Side-by-side diffs Delta from patch set Stats (+968 lines, -292 lines) Patch
M appengine/cmd/milo/frontend/milo.go View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
A appengine/cmd/milo/logdog/build.go View 1 2 3 4 5 6 1 chunk +363 lines, -0 lines 0 comments Download
A appengine/cmd/milo/logdog/http.go View 1 2 3 4 5 6 1 chunk +73 lines, -0 lines 0 comments Download
A + appengine/cmd/milo/logdog/internal/gen.go View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A appengine/cmd/milo/logdog/internal/stream.proto View 1 2 3 4 5 1 chunk +19 lines, -0 lines 0 comments Download
A appengine/cmd/milo/logdog/internal/stream.pb.go View 1 2 3 4 5 1 chunk +75 lines, -0 lines 0 comments Download
M appengine/cmd/milo/logdog/logDogBuild.go View 1 2 3 4 5 chunks +58 lines, -32 lines 0 comments Download
M appengine/cmd/milo/logdog/logDogStream.go View 2 chunks +0 lines, -7 lines 0 comments Download
M appengine/cmd/milo/swarming/build.go View 1 2 3 7 chunks +112 lines, -51 lines 0 comments Download
M appengine/cmd/milo/swarming/expectations/build-canceled.json View 1 2 3 chunks +38 lines, -31 lines 0 comments Download
M appengine/cmd/milo/swarming/expectations/build-exception.json View 1 2 3 chunks +27 lines, -20 lines 0 comments Download
M appengine/cmd/milo/swarming/expectations/build-hang.json View 1 2 3 4 3 chunks +25 lines, -18 lines 0 comments Download
M appengine/cmd/milo/swarming/expectations/build-patch-failure.json View 1 2 3 3 chunks +27 lines, -20 lines 0 comments Download
M appengine/cmd/milo/swarming/expectations/build-running.json View 1 2 3 chunks +17 lines, -10 lines 0 comments Download
M appengine/cmd/milo/swarming/expectations/build-timeout.json View 1 2 3 chunks +38 lines, -31 lines 0 comments Download
M appengine/cmd/milo/swarming/expectations/build-unicode.json View 1 2 3 4 5 6 7 3 chunks +17 lines, -10 lines 0 comments Download
M common/proto/milo/annotations.proto View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M common/proto/milo/annotations.pb.go View 1 2 4 chunks +70 lines, -61 lines 0 comments Download

Messages

Total messages: 24 (10 generated)
dnj
PTAL, I really thought I sent this out already...
4 years, 4 months ago (2016-07-29 16:30:47 UTC) #2
Ryan Tseng
looks good! mostly style / naming comments, also an infra failure is getting marked as ...
4 years, 4 months ago (2016-07-29 18:16:38 UTC) #4
nodir
https://codereview.chromium.org/2191693003/diff/40001/appengine/cmd/milo/logdog/handler.go File appengine/cmd/milo/logdog/handler.go (right): https://codereview.chromium.org/2191693003/diff/40001/appengine/cmd/milo/logdog/handler.go#newcode40 appengine/cmd/milo/logdog/handler.go:40: intermediateCacheLifetime = 10 * time.Second this is a bit ...
4 years, 4 months ago (2016-07-29 18:42:07 UTC) #5
dnj
https://codereview.chromium.org/2191693003/diff/40001/appengine/cmd/milo/logdog/handler.go File appengine/cmd/milo/logdog/handler.go (right): https://codereview.chromium.org/2191693003/diff/40001/appengine/cmd/milo/logdog/handler.go#newcode1 appengine/cmd/milo/logdog/handler.go:1: // Copyright 2016 The LUCI Authors. All rights reserved. ...
4 years, 4 months ago (2016-07-29 19:57:36 UTC) #6
Ryan Tseng
https://codereview.chromium.org/2191693003/diff/40001/appengine/cmd/milo/logdog/handler.go File appengine/cmd/milo/logdog/handler.go (right): https://codereview.chromium.org/2191693003/diff/40001/appengine/cmd/milo/logdog/handler.go#newcode52 appengine/cmd/milo/logdog/handler.go:52: type AnnotationStream struct{} On 2016/07/29 19:57:34, dnj wrote: > ...
4 years, 4 months ago (2016-07-29 20:34:18 UTC) #7
dnj
https://codereview.chromium.org/2191693003/diff/40001/appengine/cmd/milo/logdog/handler.go File appengine/cmd/milo/logdog/handler.go (right): https://codereview.chromium.org/2191693003/diff/40001/appengine/cmd/milo/logdog/handler.go#newcode52 appengine/cmd/milo/logdog/handler.go:52: type AnnotationStream struct{} On 2016/07/29 20:34:17, Ryan Tseng wrote: ...
4 years, 4 months ago (2016-07-29 21:23:37 UTC) #8
Ryan Tseng
lgtm +1
4 years, 4 months ago (2016-07-29 22:28:37 UTC) #9
nodir
lgtm % comment about read lock https://codereview.chromium.org/2191693003/diff/40001/appengine/cmd/milo/logdog/handler.go File appengine/cmd/milo/logdog/handler.go (right): https://codereview.chromium.org/2191693003/diff/40001/appengine/cmd/milo/logdog/handler.go#newcode180 appengine/cmd/milo/logdog/handler.go:180: On 2016/07/29 19:57:35, ...
4 years, 4 months ago (2016-07-29 23:00:32 UTC) #10
dnj
https://codereview.chromium.org/2191693003/diff/80001/appengine/cmd/milo/logdog/build.go File appengine/cmd/milo/logdog/build.go (right): https://codereview.chromium.org/2191693003/diff/80001/appengine/cmd/milo/logdog/build.go#newcode79 appengine/cmd/milo/logdog/build.go:79: if strings.IndexRune(as.host, '/') >= 0 { On 2016/07/29 23:00:32, ...
4 years, 4 months ago (2016-07-29 23:24:44 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/2191693003/120001
4 years, 4 months ago (2016-07-29 23:25:06 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: Luci-go Mac Tester on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/3051cb7081fab910)
4 years, 4 months ago (2016-07-29 23:29:56 UTC) #16
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/2191693003/140001
4 years, 4 months ago (2016-07-29 23:32:02 UTC) #19
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/2191693003/140001
4 years, 4 months ago (2016-07-30 03:26:11 UTC) #22
commit-bot: I haz the power
4 years, 4 months ago (2016-07-30 03:32:01 UTC) #24
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://github.com/luci/luci-go/commit/13ee0b897f1429d897f0f5e1b6443b8c406e3419

Powered by Google App Engine
This is Rietveld 408576698