Skip to content

feat(sei-db): roll back state store from snapshot and WAL - #3967

Merged
blindchaser merged 3 commits into
mainfrom
yiren/ss-snapshot-wal-rollback-v2
Aug 21, 2026
Merged

feat(sei-db): roll back state store from snapshot and WAL#3967
blindchaser merged 3 commits into
mainfrom
yiren/ss-snapshot-wal-rollback-v2

docs(sei-db): explain why an empty WAL suffix is unsafe

8b6e603
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Aug 21, 2026 in 0s

57.60% (-0.98%) compared to 700e3a5

View this Pull Request on Codecov

57.60% (-0.98%) compared to 700e3a5

Details

Codecov Report

❌ Patch coverage is 61.57113% with 181 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.60%. Comparing base (700e3a5) to head (8b6e603).
⚠️ Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
sei-db/state_db/ss/composite/rollback.go 66.01% 50 Missing and 37 partials ⚠️
sei-db/db_engine/pebbledb/mvcc/db.go 44.61% 18 Missing and 18 partials ⚠️
sei-db/common/utils/clone.go 53.48% 10 Missing and 10 partials ⚠️
sei-db/state_db/ss/composite/store.go 53.57% 8 Missing and 5 partials ⚠️
sei-db/state_db/ss/snapshot/manager.go 42.85% 8 Missing and 4 partials ⚠️
sei-db/wal/changelog.go 65.21% 4 Missing and 4 partials ⚠️
sei-db/state_db/ss/cosmos/store.go 66.66% 2 Missing and 1 partial ⚠️
sei-cosmos/storev2/rootmulti/store.go 91.30% 1 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3967      +/-   ##
==========================================
- Coverage   58.57%   57.60%   -0.98%     
==========================================
  Files        2318     2232      -86     
  Lines      198159   188834    -9325     
==========================================
- Hits       116077   108773    -7304     
+ Misses      71352    70011    -1341     
+ Partials    10730    10050     -680     
Files with missing lines Coverage Δ
sei-db/common/utils/path.go 85.96% <100.00%> (+0.51%) ⬆️
sei-db/config/ss_config.go 100.00% <ø> (ø)
sei-db/db_engine/types/types.go 50.00% <ø> (ø)
sei-cosmos/storev2/rootmulti/store.go 69.16% <91.30%> (+0.73%) ⬆️
sei-db/state_db/ss/cosmos/store.go 82.43% <66.66%> (-2.19%) ⬇️
sei-db/wal/changelog.go 75.00% <65.21%> (-25.00%) ⬇️
sei-db/state_db/ss/snapshot/manager.go 56.80% <42.85%> (+0.17%) ⬆️
sei-db/state_db/ss/composite/store.go 70.98% <53.57%> (-1.73%) ⬇️
sei-db/common/utils/clone.go 53.48% <53.48%> (ø)
sei-db/db_engine/pebbledb/mvcc/db.go 67.21% <44.61%> (-2.32%) ⬇️
... and 1 more

... and 132 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.