[Storehouse] 010 Util convert v6 -> v7 checkpoint - #8583
Conversation
|
Important Review skippedThe saved review history does not include the base for the last reviewed commit. This saved history cannot establish the base for an incremental review. Comment You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 4 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughChangesThe V6-to-V7 checkpoint converter now supports node-by-node streaming conversion. It centralizes validation, checksum verification, temporary-file cleanup, partial-output cleanup, and completion logging. Callers and tests pass the new mode argument. Checkpoint conversion
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~45 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant CLI
participant ConvertCheckpointV6ToV7
participant StreamingConverter
participant CheckpointFiles
CLI->>ConvertCheckpointV6ToV7: pass --stream
ConvertCheckpointV6ToV7->>StreamingConverter: convert subtrie and top-trie files
StreamingConverter->>CheckpointFiles: write V7 parts and checksums
ConvertCheckpointV6ToV7->>CheckpointFiles: write V7 header
Suggested reviewers: Merge Risk: 🟡 Moderate · up to Payloadless bootstrap can incur a substantial memory and time spike for mainnet-scale checkpoints. Switch it to streaming conversion before merge. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
ce39b24 to
287bfbb
Compare
287bfbb to
a9c6645
Compare
a9c6645 to
ca39b1a
Compare
ca39b1a to
4d5c8bf
Compare
4d5c8bf to
91eb0a7
Compare
91eb0a7 to
1c62fec
Compare
b82aac5 to
4528bb1
Compare
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
1 similar comment
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
4528bb1 to
7d6436a
Compare
7d6436a to
2708c79
Compare
7666345 to
9aa585d
Compare
3d20f83 to
4be13db
Compare
4be13db to
3e0fe8b
Compare
3e0fe8b to
c7d9875
Compare
This comment has been minimized.
This comment has been minimized.
c7d9875 to
27fea0f
Compare
27fea0f to
f508d89
Compare
f508d89 to
290387c
Compare
…l V7 conversion cleanup at bootstrap, logger and godoc fixes, and tests for the leaf-hash flag and V7 subtrie paths
Co-authored-by: zhangchiqing <811374+zhangchiqing@users.noreply.github.com>
… failed conversion
290387c to
4f72654
Compare
To bootstrap a payloadless EN, a v7 root checkpoint file is needed. This PR adds a util to convert a v6 root checkpoint into a v7 root checkpoint.
It adds two ways to convert:
Summary by CodeRabbit
New Features
Bug Fixes
Tests