Skip to content

Chunkerfixed sparse handling tests master#9589

Draft
ThomasWaldmann wants to merge 6 commits intoborgbackup:masterfrom
ThomasWaldmann:chunkerfixed-sparse-handling-tests-master
Draft

Chunkerfixed sparse handling tests master#9589
ThomasWaldmann wants to merge 6 commits intoborgbackup:masterfrom
ThomasWaldmann:chunkerfixed-sparse-handling-tests-master

Conversation

@ThomasWaldmann
Copy link
Copy Markdown
Member

No description provided.

- Update fixed_test.py expectations for non-sparse chunking.
- Enable `sparse=True` in interaction_test.py and reader_test.py where zero detection is required.
- Catch `ValueError` in _build_fmap to support `BytesIO` seeking.
doesn't work anyway.
the fixed chunker also cuts BS blocks.
# this only works if sparse map blocks are same size as fixed chunker blocks
fn = str(tmpdir / fname)
make_sparsefile(fn, sparse_map, header_size=header_size)
get_chunks(fn, sparse=sparse, header_size=header_size) == make_content(sparse_map, header_size=header_size)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

an assert was missing here.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.25%. Comparing base (6849288) to head (4edbec1).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9589      +/-   ##
==========================================
- Coverage   83.38%   82.25%   -1.14%     
==========================================
  Files          87       87              
  Lines       15489    15489              
  Branches     2326     2326              
==========================================
- Hits        12916    12740     -176     
- Misses       1821     2011     +190     
+ Partials      752      738      -14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

1 participant