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

Issue 2796743004: Milo flex raw log viewer endpoint (Closed)

Created:
3 years, 8 months ago by Ryan Tseng
Modified:
3 years, 7 months ago
Reviewers:
Vadim Sh., 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 flex raw log viewer endpoint This is a simple flex app that runs the logdog fetcher and serves back log text. It runs in flex to avoid the GAE classic restrictions such as response size and response time. Most of the logic is setting up a flex environment, most notably, memcache is not yet available. The idea is to refactor this to look more like the GAE Classic middleware once a public memcache API is released. Until then, memcache is simply not used. BUG=698429 Review-Url: https://codereview.chromium.org/2796743004 Committed: https://github.com/luci/luci-go/commit/d7caba160073c8b83e1b7d393227162f910d46ee

Patch Set 1 #

Patch Set 2 : Refactor for middleware #

Patch Set 3 : Cleaning up, add logs.go #

Patch Set 4 : Tidy up #

Patch Set 5 : Remove debug prints #

Patch Set 6 : Fix makefile #

Patch Set 7 : Remove more debug comments #

Total comments: 1

Patch Set 8 : Remove gaemiddleware/context.go" #

Patch Set 9 : GoImports #

Total comments: 16

Patch Set 10 : Review + Working #

Patch Set 11 : Rebase #

Patch Set 12 : SetConfig fix #

Patch Set 13 : Update with UseFlex() #

Patch Set 14 : Fix setConfig #

Patch Set 15 : Cleanup #

Patch Set 16 : Rip out auth #

Patch Set 17 : Fix module path #

Total comments: 30

Patch Set 18 : review #

Patch Set 19 : More review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+286 lines, -5 lines) Patch
M milo/Makefile View 1 2 3 4 5 1 chunk +11 lines, -5 lines 0 comments Download
M milo/appengine/common/middleware.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +34 lines, -0 lines 0 comments Download
M milo/appengine/frontend/dispatch.yaml View 1 1 chunk +2 lines, -0 lines 0 comments Download
A milo/appengine/logs/README.md View 1 chunk +3 lines, -0 lines 0 comments Download
A milo/appengine/logs/logs.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +153 lines, -0 lines 0 comments Download
A milo/appengine/logs/main.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +74 lines, -0 lines 0 comments Download
A milo/appengine/logs/module-logs.yaml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 95 (81 generated)
hinoka
I just want to land this so that it's there and available for debug usage ...
3 years, 8 months ago (2017-04-17 23:31:18 UTC) #37
Vadim Sh.
https://codereview.chromium.org/2796743004/diff/160001/milo/appengine/common/middleware.go File milo/appengine/common/middleware.go (right): https://codereview.chromium.org/2796743004/diff/160001/milo/appengine/common/middleware.go#newcode71 milo/appengine/common/middleware.go:71: &server.OAuth2Method{Scopes: []string{server.EmailScope}}, fyi: this doesn't work on Flex currently ...
3 years, 8 months ago (2017-04-18 00:33:24 UTC) #38
hinoka
ptal again. Uploaded and seems to work: https://logs-dot-luci-milo-dev.appspot.com/log/raw/chromium/bb/tryserver.chromium.linux/chromium_presubmit/404619/+/recipes/steps/commit-git-patch/0/stdout https://codereview.chromium.org/2796743004/diff/160001/milo/appengine/common/middleware.go File milo/appengine/common/middleware.go (right): https://codereview.chromium.org/2796743004/diff/160001/milo/appengine/common/middleware.go#newcode71 milo/appengine/common/middleware.go:71: &server.OAuth2Method{Scopes: ...
3 years, 8 months ago (2017-04-21 22:12:41 UTC) #67
hinoka
vadimsh: Given you're removing cookie auth, would it be better to rip that out for ...
3 years, 8 months ago (2017-04-24 23:04:38 UTC) #68
Vadim Sh.
On 2017/04/24 23:04:38, hinoka wrote: > vadimsh: Given you're removing cookie auth, would it be ...
3 years, 8 months ago (2017-04-24 23:14:36 UTC) #69
hinoka
(Regarding this CL) Remove all of the middlewares except for logging and base.
3 years, 8 months ago (2017-04-24 23:23:18 UTC) #70
Vadim Sh.
On 2017/04/24 23:23:18, hinoka wrote: > (Regarding this CL) Remove all of the middlewares except ...
3 years, 8 months ago (2017-04-24 23:24:43 UTC) #71
hinoka
Yeah, and then make sure it makes logdog requests anonymously only
3 years, 8 months ago (2017-04-24 23:26:49 UTC) #72
Vadim Sh.
On 2017/04/24 23:26:49, hinoka wrote: > Yeah, and then make sure it makes logdog requests ...
3 years, 8 months ago (2017-04-24 23:28:15 UTC) #73
hinoka
ptal latest patch. Default http roundtripper is used so everything is unauthenticated. Demo still works: ...
3 years, 8 months ago (2017-04-26 00:09:01 UTC) #78
nodir
lgtm to land it https://codereview.chromium.org/2796743004/diff/310001/milo/appengine/common/middleware.go File milo/appengine/common/middleware.go (right): https://codereview.chromium.org/2796743004/diff/310001/milo/appengine/common/middleware.go#newcode74 milo/appengine/common/middleware.go:74: // Flex returns the basic ...
3 years, 7 months ago (2017-04-29 00:59:45 UTC) #81
hinoka
https://codereview.chromium.org/2796743004/diff/310001/milo/appengine/common/middleware.go File milo/appengine/common/middleware.go (right): https://codereview.chromium.org/2796743004/diff/310001/milo/appengine/common/middleware.go#newcode74 milo/appengine/common/middleware.go:74: // Flex returns the basic middleware for use on ...
3 years, 7 months ago (2017-05-01 23:08:03 UTC) #88
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/2796743004/350001
3 years, 7 months ago (2017-05-01 23:08:27 UTC) #92
commit-bot: I haz the power
3 years, 7 months ago (2017-05-01 23:14:44 UTC) #95
Message was sent while issue was closed.
Committed patchset #19 (id:350001) as
https://github.com/luci/luci-go/commit/d7caba160073c8b83e1b7d393227162f910d46ee

Powered by Google App Engine
This is Rietveld 408576698