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

[Merged by Bors] - Upgrade go-libp2p to v0.37.2 #6497

Closed
wants to merge 1 commit into from

Conversation

ivan4th
Copy link
Contributor

@ivan4th ivan4th commented Nov 26, 2024

Motivation

Need to switch to a more up-do-date go-libp2p version.

Description

Also, upgrade go-libp2p-kad-dht to v0.28.1 and quic-go to v0.48.2.
There's a bug in go-libp2p related to reuse of the slices retured by AddrsFactory, fix: libp2p/go-libp2p#3068
For now, the problem is mitigated by cloning the slice returned from AddrsFactory (cfg.AdvertiseAddress).
Deprecated max-reservations-per-peer field in the relay server config, as now it is always 1 (and other values didn't make too much sense).

Test Plan

Verify on mainnet / testnet nodes

TODO

  • Explain motivation or link existing issue(s)
  • Test changes and document test plan

Also, upgrade go-libp2p-kad-dht to v0.28.1 and quic-go to v0.48.2.
There's a bug in go-libp2p related to reuse of the slices retured by
`AddrsFactory`, fix: libp2p/go-libp2p#3068
For now, the problem is mitigated by cloning the slice returned
from `AddrsFactory` (`cfg.AdvertiseAddress`).
Deprecated `max-reservations-per-peer` field in the relay server
config, as now it is always 1 (and other values didn't make too much
sense).
@ivan4th ivan4th marked this pull request as draft November 26, 2024 21:51
@ivan4th
Copy link
Contributor Author

ivan4th commented Nov 26, 2024

Marking it as a draft to give it a bit more testing before we merge it.

Copy link

codecov bot commented Nov 26, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 3 lines in your changes missing coverage. Please review.

Please upload report for BASE (develop@b30f7c2). Learn more about missing BASE report.
Report is 2 commits behind head on develop.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
p2p/host.go 50.0% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             develop   #6497   +/-   ##
=========================================
  Coverage           ?   79.9%           
=========================================
  Files              ?     352           
  Lines              ?   46441           
  Branches           ?       0           
=========================================
  Hits               ?   37131           
  Misses             ?    7207           
  Partials           ?    2103           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ivan4th
Copy link
Contributor Author

ivan4th commented Nov 27, 2024

bors try

spacemesh-bors bot added a commit that referenced this pull request Nov 27, 2024
@spacemesh-bors
Copy link

try

Build succeeded:

@ivan4th
Copy link
Contributor Author

ivan4th commented Nov 27, 2024

P2P appears to work fine

@ivan4th ivan4th marked this pull request as ready for review November 27, 2024 19:15
@ivan4th
Copy link
Contributor Author

ivan4th commented Nov 27, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Nov 27, 2024
## Motivation

Need to switch to a more up-do-date go-libp2p version.
@spacemesh-bors
Copy link

Build failed (retrying...):

  • systest-status

spacemesh-bors bot pushed a commit that referenced this pull request Nov 27, 2024
## Motivation

Need to switch to a more up-do-date go-libp2p version.
@spacemesh-bors
Copy link

Pull request successfully merged into develop.

Build succeeded:

@spacemesh-bors spacemesh-bors bot changed the title Upgrade go-libp2p to v0.37.2 [Merged by Bors] - Upgrade go-libp2p to v0.37.2 Nov 27, 2024
@spacemesh-bors spacemesh-bors bot closed this Nov 27, 2024
@spacemesh-bors spacemesh-bors bot deleted the libp2p/upgrade-to-v0.37.2 branch November 27, 2024 23:03
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