Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove check for snapshot enabled locally #2876

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

cweld510
Copy link
Contributor

@cweld510 cweld510 commented Feb 14, 2025

Removes a local check in Sandbox._experimental_snapshot that verifies snapshots are enabled for the sandbox before snapshotting. We don't correctly hydrate the field we're checking correctly, and we also verify on the server.

This fixes the issue quickly, for now. I've created a ticket to add back the local check (and add a test) once I figure out hydration.

Changelog

  • Fixes a bug where sandboxes returned from Sandbox.list() were not snapshottable even if they were created with _experimental_enable_snapshot.

@cweld510
Copy link
Contributor Author

@prbot approve

Copy link

@modal-pr-review-automation modal-pr-review-automation bot left a comment

Choose a reason for hiding this comment

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

Approved 👍. @thundergolfer will follow-up review this.

@cweld510
Copy link
Contributor Author

@prbot automerge

@modal-pr-review-automation
Copy link

Some required workflows are pending. Will automerge once they complete successfully.

@cweld510 cweld510 force-pushed the cweld/remove-local-enable-snapshot-check branch from d13ba5d to 686d3d1 Compare February 14, 2025 21:45
@modal-pr-review-automation
Copy link

Cannot automerge PR because it has new commits.

@cweld510 cweld510 merged commit b36b367 into main Feb 14, 2025
24 checks passed
@cweld510 cweld510 deleted the cweld/remove-local-enable-snapshot-check branch February 14, 2025 22:32
Copy link
Contributor

@thundergolfer thundergolfer left a comment

Choose a reason for hiding this comment

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

LGTM

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