Skip to content

fix flatkv snapshot import export metadata#3217

Open
Kbhat1 wants to merge 146 commits intomainfrom
kartik/flatkv-import-export-lowlevel-main
Open

fix flatkv snapshot import export metadata#3217
Kbhat1 wants to merge 146 commits intomainfrom
kartik/flatkv-import-export-lowlevel-main

Conversation

@Kbhat1
Copy link
Copy Markdown
Contributor

@Kbhat1 Kbhat1 commented Apr 8, 2026

Summary

Test plan

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedApr 9, 2026, 5:16 PM

@Kbhat1 Kbhat1 force-pushed the kartik/flatkv-import-export-lowlevel-main branch from be1354d to f55674b Compare April 8, 2026 22:13
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 8, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 58.51%. Comparing base (289bc61) to head (9960ddd).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
sei-db/state_db/sc/flatkv/store_read.go 0.00% 1 Missing ⚠️

❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (50.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3217      +/-   ##
==========================================
- Coverage   59.02%   58.51%   -0.51%     
==========================================
  Files        2065     2099      +34     
  Lines      169349   172677    +3328     
==========================================
+ Hits        99960   101047    +1087     
- Misses      60630    62529    +1899     
- Partials     8759     9101     +342     
Flag Coverage Δ
sei-db 70.41% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
sei-db/common/evm/keys.go 91.48% <ø> (ø)
sei-db/state_db/sc/composite/exporter.go 80.48% <ø> (-0.47%) ⬇️
sei-db/state_db/sc/composite/importer.go 92.00% <ø> (-0.60%) ⬇️
sei-db/state_db/sc/flatkv/exporter.go 71.18% <ø> (-12.91%) ⬇️
sei-db/state_db/sc/flatkv/importer.go 34.37% <ø> (-37.72%) ⬇️
sei-db/state_db/sc/flatkv/iterator.go 37.03% <ø> (-42.38%) ⬇️
sei-db/state_db/sc/flatkv/keys.go 100.00% <ø> (ø)
sei-db/state_db/sc/flatkv/store.go 70.51% <ø> (-2.76%) ⬇️
sei-db/state_db/sc/flatkv/store_write.go 75.60% <ø> (-10.00%) ⬇️
sei-db/state_db/ss/composite/store.go 67.77% <ø> (-2.66%) ⬇️
... and 1 more

... and 221 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Cody Littley and others added 3 commits April 9, 2026 08:57
Export FlatKV state sync data as raw low-level key/value pairs so the new value metadata survives state sync, and translate those raw modules back into logical EVM keys only when importing into SS.

Made-with: Cursor
@Kbhat1 Kbhat1 force-pushed the kartik/flatkv-import-export-lowlevel-main branch from f55674b to 9960ddd Compare April 9, 2026 17:15
@Kbhat1 Kbhat1 changed the base branch from cjl/9-byte-metadata to main April 9, 2026 17:15
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