Repository navigation
Conversation
Regression test report ✅Commit: Selected 18 changed tests (limit=20, 0 not selected) 18 tests: regression=18 unreleased=0 coverage=0 failing=0
TestAccept/cmd/sandbox/config/update-name: branch ✅ | main (5b9a0b6) ❌ | latest (v1.28.0) ❌main (5b9a0b6): latest (v1.28.0): same output as main (5b9a0b6) TestAccept/cmd/sandbox/create/with-name: branch ✅ | main (5b9a0b6) ❌ | latest (v1.28.0) ❌main (5b9a0b6): latest (v1.28.0): same output as main (5b9a0b6) TestAccept/cmd/sandbox/default/not-found: branch ✅ | main (5b9a0b6) ❌ | latest (v1.28.0) ❌main (5b9a0b6): latest (v1.28.0): same output as main (5b9a0b6) TestAccept/cmd/sandbox/default/set: branch ✅ | main (5b9a0b6) ❌ | latest (v1.28.0) ❌main (5b9a0b6): latest (v1.28.0): same output as main (5b9a0b6) TestAccept/cmd/sandbox/delete/no-tty-no-auto-approve: branch ✅ | main (5b9a0b6) ❌ | latest (v1.28.0) ❌main (5b9a0b6): latest (v1.28.0): same output as main (5b9a0b6) TestAccept/cmd/sandbox/delete/not-found: branch ✅ | main (5b9a0b6) ❌ | latest (v1.28.0) ❌main (5b9a0b6): latest (v1.28.0): same output as main (5b9a0b6) TestAccept/cmd/sandbox/delete/success: branch ✅ | main (5b9a0b6) ❌ | latest (v1.28.0) ❌main (5b9a0b6): latest (v1.28.0): same output as main (5b9a0b6) TestAccept/cmd/sandbox/forward/forward: branch ✅ | main (5b9a0b6) ❌ | latest (v1.28.0) ❌main (5b9a0b6): latest (v1.28.0): TestAccept/cmd/sandbox/forward/not-found: branch ✅ | main (5b9a0b6) ❌ | latest (v1.28.0) ❌main (5b9a0b6): latest (v1.28.0): TestAccept/cmd/sandbox/list/empty: branch ✅ | main (5b9a0b6) ❌ | latest (v1.28.0) ❌main (5b9a0b6): latest (v1.28.0): same output as main (5b9a0b6) TestAccept/cmd/sandbox/list/json: branch ✅ | main (5b9a0b6) ❌ | latest (v1.28.0) ❌main (5b9a0b6): latest (v1.28.0): same output as main (5b9a0b6) TestAccept/cmd/sandbox/list/region-unavailable: branch ✅ | main (5b9a0b6) ❌ | latest (v1.28.0) ❌main (5b9a0b6): latest (v1.28.0): same output as main (5b9a0b6) TestAccept/cmd/sandbox/list/with-entries: branch ✅ | main (5b9a0b6) ❌ | latest (v1.28.0) ❌main (5b9a0b6): latest (v1.28.0): same output as main (5b9a0b6) TestAccept/cmd/sandbox/start/already-running: branch ✅ | main (5b9a0b6) ❌ | latest (v1.28.0) ❌main (5b9a0b6): latest (v1.28.0): same output as main (5b9a0b6) TestAccept/cmd/sandbox/status/json: branch ✅ | main (5b9a0b6) ❌ | latest (v1.28.0) ❌main (5b9a0b6): latest (v1.28.0): same output as main (5b9a0b6) TestAccept/cmd/sandbox/status/not-found: branch ✅ | main (5b9a0b6) ❌ | latest (v1.28.0) ❌main (5b9a0b6): latest (v1.28.0): same output as main (5b9a0b6) TestAccept/cmd/sandbox/status/running: branch ✅ | main (5b9a0b6) ❌ | latest (v1.28.0) ❌main (5b9a0b6): latest (v1.28.0): same output as main (5b9a0b6) TestAccept/cmd/sandbox/stop/success: branch ✅ | main (5b9a0b6) ❌ | latest (v1.28.0) ❌main (5b9a0b6): latest (v1.28.0): same output as main (5b9a0b6) |
There was a problem hiding this comment.
Automated review at 2b5d1b2. Each finding was verified against the code.
Not ready yet: 1 blocking issue(s), tagged [blocking].
This PR moves the sandbox lifecycle commands (create, list, status, config, start, stop, delete) from the legacy gateway endpoints to the SDK's public Sandbox API, and adds a readiness wait to create. The transport swap looks sound and is well covered by HTTP contract tests. The way CLI flags and outputs map onto the public resource changes behavior in ways the description doesn't mention. The main one: --no-autostop=false now overwrites a user's configured idle timeout with 10m. Smaller ones: conflicting auto-stop flags are resolved silently, unnamed sandboxes report their ID as name, and any unmapped state becomes "Unknown", which the wait loops never treat as terminal.
Questions
createnow generatessandbox-<uuid>IDs (44 characters), where the server used to issue short ones likehappy-panda-1234. Users type these IDs intossh,start,stopandconfig, and every help example still uses the short form. Is this format intended? Could the request omitSandboxIdso the server picks it, or use a shorter random suffix if the goal is only to know the ID after a timed-out create? (non-blocking)--idle-timeout 0used to be documented as "clear and revert to the manager's default (10m)". It now sends0sto the public API, which disables idle auto-stop, and only the help text changed. Scripts that pass 0 to reset would leave compute running. Should 0 map todefaultAutoStopSecs, leaving--no-autostopas the only way to disable, or should the new meaning stay and be called out in the changelog? (non-blocking)- Lifecycle responses no longer carry a gateway host. That makes
createResponse.GatewayHost,sandboxEntry.GatewayHost, thesetGatewayHostcalls in create/start/config/status/list, and the related comments in list.go and state.go dead code.removeSandboxstill deletes the profile'sGatewayHostsentry, and now onlyregisterwrites it back. Should this PR remove that plumbing, or should it go in a follow-up? (non-blocking)
|
Addressed the verified review feedback in 33229a8. The create path records accepted IDs once and labels its readiness wait as provisioning; the release note now calls out the actual output/ID changes. Added HTTP regressions for existing name/state/auto-stop mappings. Formatting, checks, full lint, sandbox unit/acceptance tests and affected race tests pass. On the general questions:
The eight inline comments have individual dispositions; this does not substitute for owner approval. Public regression coverage: timeout/reset and flag precedence, name/state/auto-stop read compatibility, provisioning and cancellation, and generated ID with typed errors. |
Changes
Use the Go SDK's public Sandbox API for sandbox create, list, status, configuration, start, stop and delete. Preserve CLI status names and JSON field names, wait for creation readiness, and retain accepted sandbox IDs when readiness fails or is cancelled. Omit unavailable gateway-only fields and clarify existing auto-stop behavior in help.
Why
Lifecycle commands still use legacy gateway endpoints, while SSH addresses public Sandbox API resources. The supported SDK lifecycle methods let these commands manage both new and existing sandboxes alongside SSH port forwarding.
Tests
Full Go unit/tools tests and acceptance suite; formatting, checks and full lint; affected sandbox and SSH race tests. HTTP contract tests cover public routes, payloads, pagination, update masks, lifecycle states, errors and cancellation. End-to-end lifecycle, SSH, SCP and SFTP checks passed for both creation paths, including stop/start persistence and cleanup.
This PR was written by Codex.