Skip to content

Conversation

@hsanjuan
Copy link
Contributor

A Filestore is a Blockstore wrapper. When I moved providing resposibilities to Blockstore/Pinner/MFS... I forgot the Filestore. In Particular, the Filestore writes all blocks to the Blockstore except those of FilestoreNode type, which are serialized and written to the datastore directly via the Filemanager. The data serialized is not the block itself, but a pointer to a filesystem object and an offset.

So FilestoreNodes escaped providing even when the blockstore is configured to provide... Not anymore.

@hsanjuan hsanjuan self-assigned this Sep 24, 2025
@hsanjuan hsanjuan marked this pull request as ready for review September 24, 2025 13:57
@hsanjuan hsanjuan requested a review from a team as a code owner September 24, 2025 13:57
@hsanjuan hsanjuan mentioned this pull request Sep 24, 2025
49 tasks
@hsanjuan
Copy link
Contributor Author

Addresses ipfs/kubo#10983

A Filestore is a Blockstore wrapper. When I moved providing resposibilities to Blockstore/Pinner/MFS... I forgot the Filestore. In Particular, the Filestore writes all blocks to the Blockstore except those of FilestoreNode type, which are serialized and written to the datastore directly via the Filemanager. The data serialized is not the block itself, but a pointer to a filesystem object and an offset.

So FilestoreNodes escaped providing even when the blockstore is configured to provide... Not anymore.
@hsanjuan hsanjuan force-pushed the feat/providing-filestore branch from 8d6d2d8 to 5825d7a Compare September 24, 2025 14:01
@codecov
Copy link

codecov bot commented Sep 24, 2025

Codecov Report

❌ Patch coverage is 15.38462% with 22 lines in your changes missing coverage. Please review.
✅ Project coverage is 60.69%. Comparing base (031df82) to head (69b0c11).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
filestore/filestore.go 19.04% 15 Missing and 2 partials ⚠️
blockstore/blockstore.go 0.00% 5 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1042      +/-   ##
==========================================
+ Coverage   60.58%   60.69%   +0.11%     
==========================================
  Files         263      268       +5     
  Lines       33502    33628     +126     
==========================================
+ Hits        20296    20411     +115     
- Misses      11531    11539       +8     
- Partials     1675     1678       +3     
Files with missing lines Coverage Δ
blockstore/blockstore.go 48.36% <0.00%> (-1.64%) ⬇️
filestore/filestore.go 35.13% <19.04%> (-4.10%) ⬇️

... and 22 files with indirect coverage changes

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

Copy link
Contributor

@guillaumemichel guillaumemichel left a comment

Choose a reason for hiding this comment

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

Looks good!

@hsanjuan hsanjuan merged commit 6084860 into main Sep 25, 2025
13 checks passed
@hsanjuan hsanjuan deleted the feat/providing-filestore branch September 25, 2025 09:43
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.

3 participants