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

Issue 746373002: Convert sky_server over to a go-based http server. (Closed)

Created:
6 years, 1 month ago by ojan
Modified:
6 years ago
CC:
abarth-chromium, agable, hinoka, mojo-reviews_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Project:
mojo
Visibility:
Public.

Description

Convert sky_server over to a go-based http server. We keep seeing timeouts on the bots that seem to be due to cherrypy dropping requests on the floor, which in turn causes imports to stall, which causes the test to time out. In local testing, I was able to reproduce the timeouts and wasn't able to do so with the go-based server. R=abarth@chromium.org, eseidel@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/9bc957919c2969883e10c0faeda78d53d96a08ed

Patch Set 1 #

Patch Set 2 : no check in binary #

Total comments: 6

Patch Set 3 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -3 lines) Patch
A sky/tools/download_sky_server View 1 1 chunk +20 lines, -0 lines 0 comments Download
M sky/tools/sky_server View 1 Binary file 0 comments Download
M sky/tools/skydb View 1 1 chunk +3 lines, -1 line 0 comments Download
A sky/tools/skygo/README View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
A sky/tools/skygo/sky_server.go View 1 2 1 chunk +46 lines, -0 lines 0 comments Download
A sky/tools/skygo/sky_server.sha1 View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M sky/tools/test_perf View 1 1 chunk +3 lines, -1 line 0 comments Download
M sky/tools/webkitpy/layout_tests/port/base.py View 1 2 chunks +4 lines, -1 line 0 comments Download
M sky/tools/webkitpy/layout_tests/run_webkit_tests.py View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (2 generated)
ojan
6 years, 1 month ago (2014-11-22 03:59:21 UTC) #2
abarth-chromium
lgtm
6 years, 1 month ago (2014-11-22 04:08:46 UTC) #3
abarth-chromium
Actually, can we not check in the binary?
6 years, 1 month ago (2014-11-22 04:09:56 UTC) #4
jamesr
Yeah, please don't check a binary in. Instead add a file describing how to build ...
6 years ago (2014-11-24 19:21:18 UTC) #6
ojan
OK. Done. abarth really wanted the binary to only be pulled if you actually tried ...
6 years ago (2014-12-03 02:08:12 UTC) #7
ojan
To be clear, this needs another review since it now touches a ton of python ...
6 years ago (2014-12-03 02:09:29 UTC) #8
esprehn
https://codereview.chromium.org/746373002/diff/20001/sky/tools/skygo/sky_server.go File sky/tools/skygo/sky_server.go (right): https://codereview.chromium.org/746373002/diff/20001/sky/tools/skygo/sky_server.go#newcode27 sky/tools/skygo/sky_server.go:27: http.ServeFile(w, r, path) Does this serve images with the ...
6 years ago (2014-12-03 02:26:43 UTC) #9
ojan
https://codereview.chromium.org/746373002/diff/20001/sky/tools/skygo/sky_server.go File sky/tools/skygo/sky_server.go (right): https://codereview.chromium.org/746373002/diff/20001/sky/tools/skygo/sky_server.go#newcode27 sky/tools/skygo/sky_server.go:27: http.ServeFile(w, r, path) On 2014/12/03 02:26:43, esprehn wrote: > ...
6 years ago (2014-12-03 02:54:19 UTC) #10
eseidel
lgtm i'm not sure why this is better than httpd. I guess having some go ...
6 years ago (2014-12-04 18:36:48 UTC) #11
esprehn
On 2014/12/04 at 18:36:48, eseidel wrote: > lgtm > > i'm not sure why this ...
6 years ago (2014-12-04 20:05:49 UTC) #12
jamesr
https://codereview.chromium.org/746373002/diff/20001/sky/tools/skygo/sky_server.go File sky/tools/skygo/sky_server.go (right): https://codereview.chromium.org/746373002/diff/20001/sky/tools/skygo/sky_server.go#newcode14 sky/tools/skygo/sky_server.go:14: type skyHandler struct { if the only state you ...
6 years ago (2014-12-04 22:15:08 UTC) #13
ojan
https://codereview.chromium.org/746373002/diff/20001/sky/tools/skygo/sky_server.go File sky/tools/skygo/sky_server.go (right): https://codereview.chromium.org/746373002/diff/20001/sky/tools/skygo/sky_server.go#newcode14 sky/tools/skygo/sky_server.go:14: type skyHandler struct { On 2014/12/04 22:15:08, jamesr wrote: ...
6 years ago (2014-12-04 23:57:20 UTC) #14
jamesr
http://play.golang.org/p/Dkxr1yPD6I Sounds like you used a pointer to a skyHandler instead of a skyHandler as ...
6 years ago (2014-12-05 00:02:43 UTC) #15
ojan
On 2014/12/05 at 00:02:43, jamesr wrote: > http://play.golang.org/p/Dkxr1yPD6I > > Sounds like you used a ...
6 years ago (2014-12-05 00:04:15 UTC) #16
jamesr
Cool. If you end up needing more state using a struct and a pointer-to-struct is ...
6 years ago (2014-12-05 00:07:51 UTC) #17
ojan
On 2014/12/05 at 00:07:51, jamesr wrote: > Cool. If you end up needing more state ...
6 years ago (2014-12-05 00:09:07 UTC) #18
ojan
Committed patchset #3 (id:40001) manually as 9bc957919c2969883e10c0faeda78d53d96a08ed (presubmit successful).
6 years ago (2014-12-05 00:10:14 UTC) #19
jamesr
6 years ago (2014-12-05 00:13:10 UTC) #20
Message was sent while issue was closed.
On 2014/12/05 00:09:07, ojan wrote:
> On 2014/12/05 at 00:07:51, jamesr wrote:
> > Cool.  If you end up needing more state using a struct and a
pointer-to-struct
> is really useful since you don't want to copy everything for each request, but
> as long as you just have a string this is a little nicer imho
> 
> Actually...still doesn't seem to work. path.Join doesn't like taking a
> skyHandler. http://play.golang.org/p/l9pWIsQsRo

http://play.golang.org/p/m_G2NmiqAV

Powered by Google App Engine
This is Rietveld 408576698