Skip to content

Implement snapshots#67

Open
TanmayArya-1p wants to merge 4 commits intosdslabs:refactorfrom
TanmayArya-1p:snapshot
Open

Implement snapshots#67
TanmayArya-1p wants to merge 4 commits intosdslabs:refactorfrom
TanmayArya-1p:snapshot

Conversation

@TanmayArya-1p
Copy link
Member

Addresses #38

@TanmayArya-1p TanmayArya-1p mentioned this pull request Jan 28, 2026
16 tasks
}

#[test]
fn test_create_and_load_snapshot() {
Copy link
Member Author

Choose a reason for hiding this comment

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

these tests give an overview of how the snapshots api is to be used

Copy link
Collaborator

@4adex 4adex left a comment

Choose a reason for hiding this comment

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

Fix error handling in these certain places

.lock()
.unwrap()
.add_snapshot(&snapshot_path)
.unwrap();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Propagate error or panic if needed but don't use excessive unwraps. Also check other unwraps in engine. (unwraps are okay in tests only)

"Storage checkpoint was not properly made".to_string(),
))?
.to_str()
.unwrap()
Copy link
Collaborator

Choose a reason for hiding this comment

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

use ok or instead of unwrap

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.

2 participants