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

Issue 2456953003: LogDog: Update client/bootstrap to generate URLs. (Closed)

Created:
4 years, 1 month ago by dnj
Modified:
4 years, 1 month ago
Reviewers:
Vadim Sh., nodir
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, andrew.wang, todd, tandrii+luci-go_chromium.org, M-A Ruel
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

LogDog: Update client/bootstrap to generate URLs. Add the ability for a populated Bootstrap to generate viewer URLs. Update streamclient.Stream to be able to emit its stream properties. This is useful in general, notably by the Bootstrap's URL generation functions. This change involves modifying streamproto.Properties to remove the false assumption that they are safe to copy/modify. To this end, places where this assumption was made now properly Clone() the Properties to take possession of them, and Properties are now passed around as a pointer to make this clear. BUG=chromium:659291 TEST=unit Committed: https://github.com/luci/luci-go/commit/16e6635d9d47ce93ee0bc0cd952e53abbd95a686

Patch Set 1 : LogDog: Update client/bootstrap to generate URLs. #

Total comments: 6

Patch Set 2 : Better comments, use "url.URL". #

Total comments: 2

Patch Set 3 : Not stupid allocation. #

Patch Set 4 : Winders #

Unified diffs Side-by-side diffs Delta from patch set Stats (+365 lines, -105 lines) Patch
M logdog/client/butler/bundler/bundler.go View 3 chunks +6 lines, -3 lines 0 comments Download
M logdog/client/butler/butler.go View 3 chunks +8 lines, -4 lines 0 comments Download
M logdog/client/butler/butler_test.go View 9 chunks +59 lines, -49 lines 0 comments Download
M logdog/client/butler/streamserver/handshake_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M logdog/client/butlerlib/bootstrap/bootstrap.go View 1 2 chunks +45 lines, -5 lines 0 comments Download
M logdog/client/butlerlib/bootstrap/bootstrap_test.go View 4 chunks +102 lines, -3 lines 0 comments Download
M logdog/client/butlerlib/streamclient/client.go View 2 chunks +2 lines, -2 lines 0 comments Download
M logdog/client/butlerlib/streamclient/client_namedPipe_posix.go View 1 chunk +5 lines, -3 lines 0 comments Download
M logdog/client/butlerlib/streamclient/client_namedPipe_windows.go View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M logdog/client/butlerlib/streamclient/client_test.go View 1 chunk +1 line, -0 lines 0 comments Download
M logdog/client/butlerlib/streamclient/local.go View 1 chunk +2 lines, -2 lines 0 comments Download
M logdog/client/butlerlib/streamclient/registry.go View 2 chunks +12 lines, -9 lines 0 comments Download
M logdog/client/butlerlib/streamclient/stream.go View 2 chunks +9 lines, -2 lines 0 comments Download
M logdog/client/butlerlib/streamclient/stream_test.go View 2 chunks +5 lines, -4 lines 0 comments Download
M logdog/client/butlerlib/streamproto/properties.go View 4 chunks +11 lines, -2 lines 0 comments Download
M logdog/client/butlerlib/streamproto/properties_test.go View 5 chunks +7 lines, -5 lines 0 comments Download
M logdog/client/cmd/logdog_annotee/filesystemClient.go View 3 chunks +4 lines, -0 lines 0 comments Download
M logdog/client/cmd/logdog_butler/stream.go View 1 chunk +2 lines, -2 lines 0 comments Download
A logdog/common/viewer/url.go View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
A logdog/common/viewer/url_test.go View 1 chunk +39 lines, -0 lines 0 comments Download
M milo/appengine/swarming/memoryClient.go View 4 chunks +7 lines, -5 lines 0 comments Download

Messages

Total messages: 27 (16 generated)
dnj
PTAL
4 years, 1 month ago (2016-10-27 23:39:51 UTC) #3
Vadim Sh.
lgtm with nits https://codereview.chromium.org/2456953003/diff/20001/logdog/client/butlerlib/bootstrap/bootstrap.go File logdog/client/butlerlib/bootstrap/bootstrap.go (right): https://codereview.chromium.org/2456953003/diff/20001/logdog/client/butlerlib/bootstrap/bootstrap.go#newcode90 logdog/client/butlerlib/bootstrap/bootstrap.go:90: // GetViewerURL returns a URL to ...
4 years, 1 month ago (2016-10-27 23:50:05 UTC) #4
dnj
https://codereview.chromium.org/2456953003/diff/20001/logdog/client/butlerlib/bootstrap/bootstrap.go File logdog/client/butlerlib/bootstrap/bootstrap.go (right): https://codereview.chromium.org/2456953003/diff/20001/logdog/client/butlerlib/bootstrap/bootstrap.go#newcode90 logdog/client/butlerlib/bootstrap/bootstrap.go:90: // GetViewerURL returns a URL to the On 2016/10/27 ...
4 years, 1 month ago (2016-10-28 00:01:45 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/2456953003/40001
4 years, 1 month ago (2016-10-28 03:55:51 UTC) #12
Vadim Sh.
https://codereview.chromium.org/2456953003/diff/40001/logdog/common/viewer/url.go File logdog/common/viewer/url.go (right): https://codereview.chromium.org/2456953003/diff/40001/logdog/common/viewer/url.go#newcode19 logdog/common/viewer/url.go:19: query := make(url.Values, len(paths)) nit: len(paths) here is harmful. ...
4 years, 1 month ago (2016-10-28 03:56:53 UTC) #13
dnj
https://codereview.chromium.org/2456953003/diff/40001/logdog/common/viewer/url.go File logdog/common/viewer/url.go (right): https://codereview.chromium.org/2456953003/diff/40001/logdog/common/viewer/url.go#newcode19 logdog/common/viewer/url.go:19: query := make(url.Values, len(paths)) On 2016/10/28 03:56:53, Vadim Sh. ...
4 years, 1 month ago (2016-10-28 04:00:10 UTC) #14
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/2456953003/60001
4 years, 1 month ago (2016-10-28 04:04:41 UTC) #18
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/2456953003/80001
4 years, 1 month ago (2016-10-28 04:16:32 UTC) #21
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/3222529039cb8510)
4 years, 1 month ago (2016-10-28 05:18:41 UTC) #23
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/2456953003/80001
4 years, 1 month ago (2016-10-28 06:57:50 UTC) #25
commit-bot: I haz the power
4 years, 1 month ago (2016-10-28 07:04:24 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://github.com/luci/luci-go/commit/16e6635d9d47ce93ee0bc0cd952e53abbd95a686

Powered by Google App Engine
This is Rietveld 408576698