Skip to content
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

Rollback libp2p kad dht dependency update #6084

Merged
merged 5 commits into from Jun 2, 2020
Merged

Conversation

prestonvanloon
Copy link
Member

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

These updates to the libp2p kad-dht have far too many breaking changes for Topaz.
Given that we are planning to remove this functionality entirely in #5864, a simple rollback to the last know working version should resolve the issue for the moment.

Which issues(s) does this PR fix?

Fixes #6077

Other notes for review

Commands run:

  • go get github.com/libp2p/go-libp2p-kad-dht@v0.2.1 github.com/libp2p/go-libp2p-kbucket@v0.2.3
  • bazel run //:gazelle -- update-repos -from_file=go.mod -to_macro=deps.bzl%prysm_deps

There were some API changes as well so there is a slight change in the p2p setup code for discovery via kah dht.

@prestonvanloon prestonvanloon changed the title Rollback libp2p kad dht Rollback libp2p kad dht dependency update Jun 2, 2020
@prestonvanloon prestonvanloon marked this pull request as ready for review June 2, 2020 15:20
@prestonvanloon prestonvanloon requested a review from a team as a code owner June 2, 2020 15:20
@prestonvanloon prestonvanloon added the Ready For Review A pull request ready for code review label Jun 2, 2020
@@ -2977,3 +2977,213 @@ def prysm_deps():
sum = "h1:4Z09Hglb792X0kfOBBJUPFEyvVfQWrYT/l8h5EKA6JQ=",
version = "v0.0.0-20190525122527-15d366b2352e",
)
go_repository(
Copy link
Member

Choose a reason for hiding this comment

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

why are all of geth's deps re-imported here ? we are already using a rule for it

Copy link
Member Author

Choose a reason for hiding this comment

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

Gazelle did it.

One thing to keep in mind is that this go_repository alias is a "maybe" style import. So if we have already imported geth's dependencies via bazel rule, then this would not override it.

@prestonvanloon prestonvanloon added the Priority: High High priority item label Jun 2, 2020
@prylabs-bulldozer prylabs-bulldozer bot merged commit e79ba09 into master Jun 2, 2020
@delete-merged-branch delete-merged-branch bot deleted the rollback-kad-dht branch June 2, 2020 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High High priority item Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Libp2p updates are causing p2p peering issues in Topaz
3 participants