Skip to content

feat: expose providers option #834

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
merged 4 commits into from
Jul 31, 2025
Merged

Conversation

achingbrain
Copy link
Member

Allows pre-seeding transfer sessions with known providers if they are available.

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

Allows pre-seeding transfer sessions with known providers if they
are available.
@achingbrain achingbrain requested a review from a team as a code owner July 22, 2025 14:25
Copy link
Member

@SgtPooki SgtPooki left a comment

Choose a reason for hiding this comment

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

Mostly LGTM but it doesn't seem like we're confirming providers is working as expected in the test.

Also, I believe this is related to #777

import type { FileCandidate } from 'ipfs-unixfs-importer'
import type { KuboInfo, KuboNode } from 'ipfsd-ctl'

describe('providers', () => {
Copy link
Member

Choose a reason for hiding this comment

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

Are we validating that the Kubo node is providing the content, or at least that it is getting a request from us?

It doesn't look like we're overriding gateways, routers, nor bootstrap config in fixtures/create-helia so some of these could be succeeding against the network, right?

@achingbrain
Copy link
Member Author

I've asserted that the blocks are being provided by the kubo node, and added a test that shows that retrieval fails without specifying providers (since the Helia node has no peer discovery mechanism configured).

@achingbrain achingbrain merged commit 5a911c6 into main Jul 31, 2025
18 checks passed
@achingbrain achingbrain deleted the feat/expose-providers-option branch July 31, 2025 11:34
@achingbrain achingbrain mentioned this pull request Jul 31, 2025
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