Skip to content

feat: add sandbox expiry - #6

Merged
BhautikChudasama merged 1 commit into
mainfrom
feat/sandbox-expiry
Nov 23, 2026
Merged

BhautikChudasama merged 1 commit into
mainfrom
feat/sandbox-expiry

Conversation

@BhautikChudasama

@BhautikChudasama BhautikChudasama commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Devin Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Devin Review found 3 potential issues.

Devin Review

Comment on lines +116 to +117
assertEquals(java.time.Instant.parse("2026-11-23T12:10:00Z"), sandbox.data().expiresAt());
assertTrue(sandbox.data().sigtermBeforeExpiry());

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔍 Expiry tests stop at creation

The create test covers CreateSandboxResponse only. No contract test checks that lookup or refresh retains expiry through SandboxData.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +274 to +276
snapshotId,
timeoutMinutes,
sigtermBeforeExpiry);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔍 Server-only expiry validation

build() accepts out-of-range lifetimes and requests for SIGTERM without a lifetime. The SDK sends both without checking them locally.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +26 to +28
@JsonProperty("snapshot_id") String snapshotId,
@JsonProperty("timeout_minutes") Integer timeoutMinutes,
@JsonProperty("sigterm_before_expiry") Boolean sigtermBeforeExpiry) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📝 Info: Snapshot constructor compatibility gap

The expiry components replace the snapshot-aware constructors on CreateSandboxRequest, CreateSandboxResponse, and SandboxData. Only the older overloads remain.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

@BhautikChudasama
BhautikChudasama merged commit 1a8caea into main Nov 23, 2026
7 checks passed
@BhautikChudasama
BhautikChudasama deleted the feat/sandbox-expiry branch November 23, 2026 07:38
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