Skip to content

bitswap/httpnet: improve "Connect"/testCid check#1057

Merged
hsanjuan merged 11 commits intomainfrom
httpnet-connect-errors
Oct 29, 2025
Merged

bitswap/httpnet: improve "Connect"/testCid check#1057
hsanjuan merged 11 commits intomainfrom
httpnet-connect-errors

Conversation

@hsanjuan
Copy link
Copy Markdown
Contributor

Now that we have certain safeguards to disconnect from small providers, we can be more open to connect to places that fail the "testCid request". Particularly places that return 500 with known error messages that prove that they understand ipld and that they are a gateway.

@hsanjuan hsanjuan self-assigned this Oct 23, 2025
@hsanjuan hsanjuan requested a review from a team as a code owner October 23, 2025 09:01
@codecov
Copy link
Copy Markdown

codecov bot commented Oct 23, 2025

Codecov Report

❌ Patch coverage is 51.06383% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 61.05%. Comparing base (5d30479) to head (5a4b19a).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
bitswap/network/httpnet/httpnet.go 28.57% 14 Missing and 1 partial ⚠️
bitswap/message/message.go 55.55% 2 Missing and 2 partials ⚠️
bitswap/network/httpnet/msg_sender.go 81.25% 2 Missing and 1 partial ⚠️
bitswap/network/httpnet/pinger.go 0.00% 1 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1057      +/-   ##
==========================================
- Coverage   61.06%   61.05%   -0.01%     
==========================================
  Files         268      268              
  Lines       26130    26154      +24     
==========================================
+ Hits        15956    15969      +13     
- Misses       8501     8509       +8     
- Partials     1673     1676       +3     
Files with missing lines Coverage Δ
bitswap/network/httpnet/pinger.go 36.55% <0.00%> (ø)
bitswap/network/httpnet/msg_sender.go 60.85% <81.25%> (+0.78%) ⬆️
bitswap/message/message.go 80.59% <55.55%> (-0.45%) ⬇️
bitswap/network/httpnet/httpnet.go 59.06% <28.57%> (-1.80%) ⬇️

... and 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hsanjuan hsanjuan force-pushed the httpnet-connect-errors branch from d0b2074 to 51a4e0e Compare October 29, 2025 22:29
@lidel lidel mentioned this pull request Oct 29, 2025
9 tasks
@hsanjuan hsanjuan merged commit d749619 into main Oct 29, 2025
17 checks passed
@hsanjuan hsanjuan deleted the httpnet-connect-errors branch October 29, 2025 23:04
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.

4 participants