Skip to content

Conversation

@cce
Copy link
Contributor

@cce cce commented Jul 27, 2021

Summary

Since #2527, when you run msgp-generated tests that call protocol.RunEncodingTest from a cwd that doesn't contain "go-algorand" in the name and with GOPATH not set, the test may fail due to //msgp:allocbound not being read from the source, leading to "msgp: length overflow" errors (test data exceeding the allocbound).

Test Plan

Adding a new test that fails, then fixing it in a follow-up commit.

@tsachiherman
Copy link
Contributor

I think that you forgot to add the codec_tester.go that you modified locally to this PR.

Copy link
Contributor

@tsachiherman tsachiherman left a comment

Choose a reason for hiding this comment

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

looks good to me. I think that the test-of-a-test is an overkill here, but I guess it helped you to verify the fix..

@tsachiherman tsachiherman merged commit 9cae863 into algorand:master Jul 28, 2021
@cce cce deleted the codec-test-allocbound-path-check branch July 28, 2021 01:23
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.

2 participants