-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update to the latest version of lazyledger-core #19
Conversation
…rective for grpc 1.33.2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So basically you're updating grpc and downgrading it back (with replace) at the same commit?
Yes, see : celestiaorg/celestia-core#159 (comment) or Evan's opening comment. Reason is that we want a protobuf security fix while not caring about the grpc update (as it currently breaks stuff in the app). Also, the latest stable tendermint uses these versions, too: https://github.com/tendermint/tendermint/blob/28ce35565675fbb7cef202b283d65826bf514a71/go.mod#L31-L34 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼 But we need to investigate the failing tests and appease the linter gods before merging.
Weirdly enough, the app works fine when v1.35.0 is used, however it introduces non-deterministic test failures in some of the modules' integration tests in the sdk. Even weirder, the tests that fail seem to fail consistently per machine, but which tests fail change per machine. 🤷♂️ The test that was failing appeared to be this. Re-running the CI fixes this. The linter gods kindly never let us forget about the writing file permission issues that were discussed here. That writing function in the I can make a new wrapper of ioutil to silence them, use different permissions, ignore the linter in this case, or we can remove the linter check somehow. Which sounds better? |
Hmm, the plan is to use the latest stable tendermint version in lazyledger-core (0.34.x) and the latest stable sdk release: https://github.com/cosmos/cosmos-sdk/tree/v0.41.x I think in both those version |
Regarding the grpc story I trust Marko's call to replace it and also this seems to be the taken approach in the SDK. |
Let's figure out the whole write function story together with bringing lazyledger-core more on par with the 0.34.x branch. We need an issue for the latter too. I thought I've already opened one but apparently not. |
I'm opening one now with all the context |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Description
lazyledger-core has just had some minor dependency version bumps, so this PR updates the go.mod to the latest commit of the master branch. One of the updated dependencies is grpc
v1.35.0
, which causes a weird marshaling bug, so to avoid the bug this PR also adds a replace directive to force the sdk to usev1.33.2
.closes: #XXXX