Skip to content

fix: configure allocation timeouts and recover transient failures - #2

Merged
lw-liuwang merged 1 commit into
mainfrom
fix-assignment-timeout-recovery
Oct 20, 2026
Merged

lw-liuwang merged 1 commit into
mainfrom
fix-assignment-timeout-recovery

Conversation

@lw-liuwang

@lw-liuwang lw-liuwang commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

Allocation requests can fail with a read timeout or transient HTTP 502/503/504, leaving users uncertain whether a runtime was created. This change adds configurable HTTP timeouts and bounded retries, reconciling uncertain allocations through a GET with the same notebook hash before resubmitting to avoid duplicate runtimes.

The existing Windows SSH support from #1 is retained. This is the timeout recovery change already merged upstream in googlecolab#172.

Validation on the combined main + timeout recovery tree (native Windows, Python 3.12):

  • Full suite: 362 passed, 15 failed, 2 skipped. The 15 failures match the existing Windows baseline: help-output parsing, temporary-file locking, and headless REPL console tests.
  • Client and all SSH regression tests: 140 passed.
  • Ruff passed for the changed client and test files and the Windows SSH implementation/integration files; git diff --check passed.
  • Live Colab CPU allocation, native Windows OpenSSH remote execution (windows-ssh-ok), and runtime cleanup passed. Final sessions query found no active assignments.
  • Session management design documentation includes timeout configuration and reconciliation behavior.

@lw-liuwang
lw-liuwang merged commit 5a0d36e into main Oct 20, 2026
3 checks passed
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