Skip to content

Enable race detection in ci#259

Merged
siggy merged 1 commit intomasterfrom
siggy/race
Feb 2, 2018
Merged

Enable race detection in ci#259
siggy merged 1 commit intomasterfrom
siggy/race

Conversation

@siggy
Copy link
Member

@siggy siggy commented Feb 2, 2018

We previously did not have race detection enabled because our tests
would fail. Following #249, this is no longer the case.

Enable race detection in ci and build instructions.

Fixes #173

@siggy siggy self-assigned this Feb 2, 2018
@siggy siggy added the review/ready Issue has a reviewable PR label Feb 2, 2018
Copy link
Contributor

@klingerf klingerf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⭐️ Thanks for adding, and for fixing the existing races.

Copy link

@rmars rmars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐎 🐰 🏎

}
})
}
// func TestNewInternalClient(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this code commented out?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(sorry this is wip, trying to get it to pass ci)

We previously did not have race detection enabled because our tests
would fail. Following #249, this is no longer the case.

Enable race detection in ci and build instructions. This change also
fixes client_test.go attempting to allocate a 2GB buffer due to bad test
input.

Fixes #173

Signed-off-by: Andrew Seigner <[email protected]>
mockTransport.responseToReturn = &http.Response{
StatusCode: 500,
Body: ioutil.NopCloser(strings.NewReader("body")),
Body: ioutil.NopCloser(bufferedReader(t, &pb.Empty{})),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2GB allocation in deserializePayloadFromReader()!

int(binary.LittleEndian.Uint32([]byte("body"))) == 2036625250

https://play.golang.org/p/5AXS4mFaKRW

@siggy siggy merged commit 4156af7 into master Feb 2, 2018
@siggy siggy deleted the siggy/race branch February 2, 2018 23:04
@siggy siggy removed the review/ready Issue has a reviewable PR label Feb 2, 2018
alpeb added a commit that referenced this pull request Aug 15, 2019
Fixes #259

Signed-off-by: Alejandro Pedraza <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants