Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 1, 2025

Bumps github.com/libp2p/go-libp2p-kad-dht from 0.35.1 to 0.36.0.

Release notes

Sourced from github.com/libp2p/go-libp2p-kad-dht's releases.

v0.36.0

[!NOTE] This release was brought to you by the Shipyard team.

Overview

This release brings major improvements to the Sweep provider system: detailed runtime statistics, persistence of reprovide state across restarts, and better connection handling. These features ship to Kubo users in v0.39.

Highlights

Sweep provider statistics API

The SweepingProvider now exposes detailed runtime statistics through a new Stats() method, enabling monitoring tools to track provider health and throughput.

Available metrics include:

  • Queue sizes and worker utilization
  • Reprovide schedule and progress
  • Network statistics (connected peers, regions)
  • Operation rates and success counts

This powers the ipfs provide stat command in Kubo v0.39+. See #1144.

Reprovide cycle persistence and resume

The Sweep provider now persists its state to the datastore and automatically resumes after restarts:

  • Persistent progress: The provider saves its position in the reprovide cycle. On restart, it continues from where it stopped instead of starting over.
  • Catch-up reproviding: If the node was offline, all CIDs overdue for reprovide are immediately queued.
  • Persistent provide queue: Pending provide operations survive restarts.

This fixes the long-standing issue where restarts would reset the reprovide cycle. See #1167, #1170, #1176, #1193.

Connectivity callbacks

Users can now register callbacks to be notified when the provider's connectivity status changes. This enables applications to track and react to connectivity state transitions. See #1194.

Connection protection during provides

New option to protect libp2p connections and keep addresses in the peerstore during provide operations. This prevents the connection manager from pruning connections that are actively being used for provides. See #1172.

Metric rename: provider_provides_total

The Sweep provider metric has been renamed from total_provide_count_total to provider_provides_total to follow OpenTelemetry naming conventions and match other kad-dht metrics.

Migration: Update any Prometheus queries or dashboards using the old metric name. See #1195.

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/libp2p/go-libp2p-kad-dht](https://github.com/libp2p/go-libp2p-kad-dht) from 0.35.1 to 0.36.0.
- [Release notes](https://github.com/libp2p/go-libp2p-kad-dht/releases)
- [Commits](libp2p/go-libp2p-kad-dht@v0.35.1...v0.36.0)

---
updated-dependencies:
- dependency-name: github.com/libp2p/go-libp2p-kad-dht
  dependency-version: 0.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot requested a review from mrz1836 as a code owner December 1, 2025 16:06
@dependabot dependabot bot added chore Simple dependency updates or version bumps dependencies Dependency updates, version bumps, etc. gomod Used for referencing Go Modules labels Dec 1, 2025
@github-actions github-actions bot added the size/XS Very small change (≤10 lines) label Dec 1, 2025
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

🔒 Auto-approving security update: github.com/libp2p/go-libp2p-kad-dht (0.35.1 → 0.36.0)

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 1, 2025

@github-actions github-actions bot enabled auto-merge (squash) December 1, 2025 16:06
@github-actions github-actions bot added automerge Label to automatically merge pull requests that meet all required conditions dependabot PR or issue created by or related to Dependabot minor-update prod-dependency security Security-related issue, vulnerability, or fix labels Dec 1, 2025
@github-actions github-actions bot merged commit e3f8c7a into main Dec 1, 2025
41 checks passed
@dependabot dependabot bot deleted the dependabot/go_modules/main/github.com/libp2p/go-libp2p-kad-dht-0.36.0 branch December 1, 2025 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Label to automatically merge pull requests that meet all required conditions chore Simple dependency updates or version bumps dependabot PR or issue created by or related to Dependabot dependencies Dependency updates, version bumps, etc. gomod Used for referencing Go Modules minor-update prod-dependency security Security-related issue, vulnerability, or fix size/XS Very small change (≤10 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants