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

Issue 2737603003: Butler stream servers can generate client address. (Closed)

Created:
3 years, 9 months ago by dnj
Modified:
3 years, 9 months ago
Reviewers:
iannucci, nodir
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

Butler stream servers can generate client address. Allow a StreamServer instance to generate client addresses. These addresses can be processed by the stream client package to generate a client for the corresponding StreamServer. This also adds tests for UNIX and Windows stream server implementations. These tests have the bonus of actually tying together this Address() string to the "streamclient" package, confirming that they are functional together. In order for this connection to be made, the circular dependency that "streamclient" had on "/logdog/client/butler" had to be broken. This is done by moving the "local" client implementation into the "butler" package space. This makes sense, since this implementation is an internalization of the stream server. BUG=chromium:698768 TEST=None Review-Url: https://codereview.chromium.org/2737603003 Committed: https://github.com/luci/luci-go/commit/66a9c7cb1e03d984da7d0f5e12eebe2065b95602

Patch Set 1 #

Patch Set 2 : better #

Total comments: 2

Patch Set 3 : cleanup #

Patch Set 4 : fix windows #

Patch Set 5 : better comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+322 lines, -112 lines) Patch
M logdog/client/butler/butler_test.go View 1 chunk +3 lines, -3 lines 0 comments Download
M logdog/client/butler/streamserver/base.go View 1 2 2 chunks +14 lines, -2 lines 0 comments Download
M logdog/client/butler/streamserver/base_test.go View 1 2 4 chunks +56 lines, -5 lines 0 comments Download
A + logdog/client/butler/streamserver/localclient/local.go View 1 3 chunks +9 lines, -6 lines 0 comments Download
M logdog/client/butler/streamserver/namedPipe_posix.go View 1 2 2 chunks +30 lines, -8 lines 0 comments Download
A logdog/client/butler/streamserver/namedPipe_posix_test.go View 1 2 1 chunk +68 lines, -0 lines 0 comments Download
M logdog/client/butler/streamserver/namedPipe_windows.go View 1 2 3 1 chunk +32 lines, -6 lines 0 comments Download
A logdog/client/butler/streamserver/namedPipe_windows_test.go View 1 2 3 1 chunk +52 lines, -0 lines 0 comments Download
M logdog/client/butler/streamserver/streamserver.go View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M logdog/client/butlerlib/streamclient/client.go View 1 1 chunk +2 lines, -2 lines 0 comments Download
M logdog/client/butlerlib/streamclient/client_namedPipe_windows.go View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M logdog/client/butlerlib/streamclient/client_test.go View 1 1 chunk +2 lines, -2 lines 0 comments Download
D logdog/client/butlerlib/streamclient/local.go View 1 1 chunk +0 lines, -50 lines 0 comments Download
M logdog/client/butlerlib/streamclient/stream.go View 1 4 chunks +16 lines, -12 lines 0 comments Download
M logdog/client/butlerlib/streamclient/stream_test.go View 1 2 chunks +4 lines, -4 lines 0 comments Download
M logdog/client/cmd/logdog_butler/main_posix.go View 1 1 chunk +2 lines, -2 lines 0 comments Download
M logdog/client/cmd/logdog_butler/main_windows.go View 1 2 chunks +2 lines, -3 lines 0 comments Download
M logdog/client/cmd/logdog_butler/subcommand_run.go View 1 2 chunks +8 lines, -4 lines 0 comments Download
M logdog/client/cmd/logdog_butler/subcommand_serve.go View 1 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 19 (11 generated)
dnj
PTAL
3 years, 9 months ago (2017-03-06 22:21:02 UTC) #3
nodir
lgtm https://codereview.chromium.org/2737603003/diff/20001/logdog/client/butler/streamserver/namedPipe_windows.go File logdog/client/butler/streamserver/namedPipe_windows.go (right): https://codereview.chromium.org/2737603003/diff/20001/logdog/client/butler/streamserver/namedPipe_windows.go#newcode36 logdog/client/butler/streamserver/namedPipe_windows.go:36: name = localNamedPipePrefix + name this may be ...
3 years, 9 months ago (2017-03-06 22:29:44 UTC) #4
dnj
https://codereview.chromium.org/2737603003/diff/20001/logdog/client/butler/streamserver/namedPipe_windows.go File logdog/client/butler/streamserver/namedPipe_windows.go (right): https://codereview.chromium.org/2737603003/diff/20001/logdog/client/butler/streamserver/namedPipe_windows.go#newcode36 logdog/client/butler/streamserver/namedPipe_windows.go:36: name = localNamedPipePrefix + name On 2017/03/06 22:29:44, nodir ...
3 years, 9 months ago (2017-03-06 22:39:31 UTC) #5
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/2737603003/20001
3 years, 9 months ago (2017-03-06 22:39:42 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: Luci-go Win Tester on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/34be98ea5bd88810)
3 years, 9 months ago (2017-03-06 23:10:48 UTC) #9
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/2737603003/60001
3 years, 9 months ago (2017-03-07 01:13:20 UTC) #12
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/2737603003/80001
3 years, 9 months ago (2017-03-07 01:25:00 UTC) #16
commit-bot: I haz the power
3 years, 9 months ago (2017-03-07 01:31:59 UTC) #19
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://github.com/luci/luci-go/commit/66a9c7cb1e03d984da7d0f5e12eebe2065b95602

Powered by Google App Engine
This is Rietveld 408576698