Skip to content

Conversation

@mauricefisher64
Copy link
Collaborator

@mauricefisher64 mauricefisher64 commented Jul 23, 2025

Changes in this pull request

Support for validation of V3 features (fixed and variable sized mdat Merkle trees)
Support for generation of fixed size mdat Merkle trees
Fix for bug when top level exclusion is not followed immediately have by the top level box (subset exclusions)
Change HashRanges to be u64 by default to handle large mdata in 32 bit environments
Change streaming path to use safe_vec when generating intermediate stream

Checklist

  • This PR represents a single feature, fix, or change.
  • All applicable changes have been documented.
  • Any TO DO items (or similar) have been entered as GitHub issues and the link to that issue has been included in a comment.

validation of fixedBlockSize and fixedBlockSizes Merkle trees
generation of fixedBlockSize Merkle trees
@codecov
Copy link

codecov bot commented Jul 23, 2025

Codecov Report

❌ Patch coverage is 79.67033% with 148 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.05%. Comparing base (c6b6a59) to head (efe346a).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
sdk/src/assertions/bmff_hash.rs 67.97% 106 Missing ⚠️
sdk/src/claim.rs 40.62% 19 Missing ⚠️
sdk/src/store.rs 95.09% 10 Missing ⚠️
sdk/src/asset_handlers/jpeg_io.rs 80.00% 4 Missing ⚠️
sdk/src/utils/hash_utils.rs 91.83% 4 Missing ⚠️
sdk/src/asset_handlers/bmff_io.rs 95.08% 3 Missing ⚠️
sdk/src/asset_handlers/png_io.rs 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1253      +/-   ##
==========================================
+ Coverage   79.54%   80.05%   +0.51%     
==========================================
  Files         151      151              
  Lines       42726    43204     +478     
==========================================
+ Hits        33987    34588     +601     
+ Misses       8739     8616     -123     

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

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

Copy link
Collaborator

@gpeacock gpeacock left a comment

Choose a reason for hiding this comment

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

I added some suggestions, lmk if you want to follow up on any of that now, or get it it later.

@mauricefisher64 mauricefisher64 requested a review from gpeacock July 25, 2025 18:16
@mauricefisher64 mauricefisher64 merged commit 5fc4767 into main Jul 30, 2025
38 checks passed
@mauricefisher64 mauricefisher64 deleted the bmff_v3 branch July 30, 2025 12:42
@mauricefisher64 mauricefisher64 linked an issue Jul 30, 2025 that may be closed by this pull request
@caiopensrc caiopensrc mentioned this pull request Jul 30, 2025
ok-nick pushed a commit that referenced this pull request Aug 11, 2025
* Support for BMFF Hash V3
validation of fixedBlockSize and fixedBlockSizes Merkle trees
generation of fixedBlockSize Merkle trees

* Bug fix for case when BMFF exclusion subset is using length with no offset

* Setting to control Merkle tree storage

* Change error message

* More error checking
PR comment change

* Make settings fetch return error is not set

* Add test for no fixed offset

* Fix formatting

* Check for conflicting block types

* Fix error response for competing Merkle block types

* Make spec responses

* Allow 0 length fixed offset

* A little cleanup

* Make sure there is a recognized hash binding

* Fix for some more edge cases

* clippy fix

---------

Co-authored-by: Gavin  Peacock <gpeacock@adobe.com>
@caiopensrc caiopensrc mentioned this pull request Aug 13, 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.

BMFF Hash V3 support to enable Merkle generation for BMFF

3 participants