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

Update Dependencies & Go #35

Closed
wants to merge 8 commits into from
Closed

Update Dependencies & Go #35

wants to merge 8 commits into from

Conversation

hacdias
Copy link
Member

@hacdias hacdias commented Apr 3, 2024

Closes #34.

chore: update dependencies
@hacdias
Copy link
Member Author

hacdias commented Apr 3, 2024

Well, the tests seem to fail, but the exact same query fails on the live version:

image

I don't think the current tests are very reproducible as they rely on having Kubo installed and running, as well as an active Internet connection, and specific expectations from the network.

@hacdias hacdias requested a review from aschmahmann April 3, 2024 12:17
@hacdias hacdias marked this pull request as draft April 4, 2024 14:25
daemon.go Outdated
func providerRecordInDHT(ctx context.Context, d kademlia, c cid.Cid, p peer.ID) bool {
func providerRecordInDHT(ctx context.Context, d kademlia, c cid.Cid) bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the idea behind the change here? This version seems to answer the question "has anyone advertised the record" which is different from "did node X that is hosting the data advertise it has the data".

Unless this is part of bigger changes towards #24 or #6, seems like we'd rather answer the second question. Otherwise, someone might see:
✔ Successfully connected to multiaddr
✔ Found multiaddr with 2 dht peers
✔ Found the multihash in the dht
✔ Successfully downloaded the CID from the peer

and yet the data would still not be retrievable because a different peer (who is unreachable) had advertised themselves in the DHT but this one had not

Copy link
Member Author

@hacdias hacdias Apr 5, 2024

Choose a reason for hiding this comment

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

Ah, okay. I will revert this. I would also like to actually incorporate the features from #24. I don't mind tackling that in this PR.

Regarding the tests:

  • Locally only one test is failing: checking if the bootstrap peer has the empty directory.
  • In the CI there's more tests failing.

I still have to take a better look at it.


TODO: rewrite initial comment with the goals of this PR.

@hacdias
Copy link
Member Author

hacdias commented May 6, 2024

I'm closing this as it's unlikely that I'll get back to this until EOM. Feel free to reuse any of the commits in the future.

@hacdias hacdias closed this May 6, 2024
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.

Upgrade go-libp2p for quic-v1 multiaddrs to work
2 participants