Skip to content

fix: sb polling fixes#1699

Merged
luke-lombardi merged 8 commits into
mainfrom
ll/polling-fixes
Jun 18, 2026
Merged

fix: sb polling fixes#1699
luke-lombardi merged 8 commits into
mainfrom
ll/polling-fixes

Conversation

@luke-lombardi

@luke-lombardi luke-lombardi commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary by cubic

Stabilizes sandbox polling and restore. Makes process manager readiness reliable, fixes restore timing, improves exec streaming/logs, and auto-creates local S3 buckets in dev.

  • Bug Fixes

    • Process manager readiness: TCP probe + Ready RPC with backoff; try container IP then published address; classify/transient errors; evict and retry client; record failure stats; cache container address map on the instance.
    • Exec streaming: stream sandbox exec output; ack log chunks after writing; handle early stream close; surface early-exit errors; keep logs buffered on event write failure.
    • Process listing: wait for the manager; add /proc scan fallback for restored sandboxes to include missing PIDs.
    • Restore flow (gVisor): wait for runtime state and only signal Started after PID; nudge restored process manager with SIGWINCH; clean up restore on failure/cancel; worker polls restored runtime until it exits.
    • runc: map “not found” to a typed error.
    • Docker-in-Docker: treat user stop or teardown as cancel during startup; run cgroup setup and IPv4 enable via streamed exec.
    • Storage/Gateway: add EnsureBucket; ensure local S3 buckets exist for dev endpoints on object head/create.
    • Sandbox status/API: ping runtime for running containers; evict client and retry on transient connect; return stable pending/stopping/running states.
    • SDK: retry exec only on explicit readiness errors, including “process manager failed to become ready”.
  • Dependencies

    • Bump github.com/beam-cloud/goproc to v0.1.11.

Written for commit 5f1cf5a. Summary will update on new commits.

Review in cubic

@luke-lombardi luke-lombardi merged commit d7c6ca8 into main Jun 18, 2026
3 of 4 checks passed
@luke-lombardi luke-lombardi deleted the ll/polling-fixes branch June 18, 2026 19:40
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