Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(16447)

Issue 9711043: code review 9711043: ssh: add Output and CombinedOutput helpers (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by kr
Modified:
10 years, 10 months ago
Reviewers:
albert.strasheim
CC:
golang-dev, dfc
Visibility:
Public.

Description

ssh: add Output and CombinedOutput helpers

Patch Set 1 #

Patch Set 2 : diff -r ecb6c1599438 https://code.google.com/p/go.crypto #

Patch Set 3 : diff -r ecb6c1599438 https://code.google.com/p/go.crypto #

Patch Set 4 : diff -r ecb6c1599438 https://code.google.com/p/go.crypto #

Patch Set 5 : diff -r ecb6c1599438 https://code.google.com/p/go.crypto #

Patch Set 6 : diff -r ecb6c1599438 https://code.google.com/p/go.crypto #

Patch Set 7 : diff -r ecb6c1599438 https://code.google.com/p/go.crypto #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -4 lines) Patch
M ssh/session.go View 1 2 3 4 5 6 4 chunks +42 lines, -4 lines 0 comments Download
M ssh/session_test.go View 1 2 3 4 5 2 chunks +72 lines, -0 lines 0 comments Download

Messages

Total messages: 16
kr
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go.crypto
10 years, 11 months ago (2013-05-23 23:37:48 UTC) #1
dfc
Thanks kr. The code looks good, could I ask you to try adding a test ...
10 years, 11 months ago (2013-05-23 23:52:27 UTC) #2
kr
Hello golang-dev@googlegroups.com, dave@cheney.net (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 11 months ago (2013-05-24 02:14:34 UTC) #3
dfc
On 2013/05/24 02:14:34, kr wrote: > Hello mailto:golang-dev@googlegroups.com, mailto:dave@cheney.net (cc: > mailto:golang-dev@googlegroups.com), > > Please ...
10 years, 11 months ago (2013-05-25 02:44:48 UTC) #4
kr
On 2013/05/25 02:44:48, dfc wrote: > Interestingly, there might be a data race here. I ...
10 years, 11 months ago (2013-05-25 06:25:03 UTC) #5
kr
FWIW: $ go test -race -v ... === RUN TestInvalidServerMessage ================== WARNING: DATA RACE Write ...
10 years, 11 months ago (2013-05-25 06:32:26 UTC) #6
dfc
Yeah, that is a fair call. I think @fullung found another race in the ssh ...
10 years, 11 months ago (2013-05-27 10:45:48 UTC) #7
kr
PTAL
10 years, 10 months ago (2013-05-28 23:40:48 UTC) #8
kr
Adding a mutex, as you suggested, makes the race detector happy. But I'm still a ...
10 years, 10 months ago (2013-05-29 01:58:04 UTC) #9
dfc
Yeah. I'm also concerned that this pattern is being used inside os/exec, and when I ...
10 years, 10 months ago (2013-05-29 02:10:01 UTC) #10
kr
On 2013/05/29 02:10:01, dfc wrote: > wrt/ people home brewing this solution themselves, I can ...
10 years, 10 months ago (2013-05-29 05:14:54 UTC) #11
dfc
*** Submitted as https://code.google.com/p/go/source/detail?r=273987d8ccbc&repo=crypto *** ssh: add Output and CombinedOutput helpers R=golang-dev, dave CC=golang-dev https://codereview.appspot.com/9711043 ...
10 years, 10 months ago (2013-05-29 06:06:35 UTC) #12
dfc
Thanks. I did not want to block this CL any further. Now we have a ...
10 years, 10 months ago (2013-05-29 06:11:32 UTC) #13
albert.strasheim
On 2013/05/29 06:11:32, dfc wrote: > On Wed, May 29, 2013 at 4:06 PM, <mailto:dave@cheney.net> ...
10 years, 10 months ago (2013-05-30 06:33:04 UTC) #14
dfc
I was afraid of that, I will make a note to submit a small patch ...
10 years, 10 months ago (2013-05-30 06:33:52 UTC) #15
dfc
10 years, 10 months ago (2013-06-01 00:06:43 UTC) #16
Sent https://codereview.appspot.com/9921044/

On Thu, May 30, 2013 at 4:33 PM, Dave Cheney <dave@cheney.net> wrote:
> I was afraid of that, I will make a note to submit a small patch to
> try both variations.
>
> On Thu, May 30, 2013 at 4:33 PM,  <fullung@gmail.com> wrote:
>> On 2013/05/29 06:11:32, dfc wrote:
>>
>>> On Wed, May 29, 2013 at 4:06 PM,  <mailto:dave@cheney.net> wrote:
>>> > *** Submitted as
>>> >
>>
>> https://code.google.com/p/go/source/detail?r=273987d8ccbc&repo=crypto
>>>
>>> > ***
>>> > ssh: add Output and CombinedOutput helpers
>>
>>
>> This test is flaky:
>>
>> --- FAIL: TestSessionCombinedOutput-96 (0.08 seconds)
>> session_test.go:183: Remote command did not return expected string:
>> session_test.go:184: want "this-is-stdout.this-is-stderr."
>> session_test.go:185: got  "this-is-stderr.this-is-stdout."
>>
>> https://codereview.appspot.com/9711043/
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b