Retry transient exec-server startup failures (#38020)

## Why

A retryable failure during the initial remote exec-server connection left the
environment disconnected on subsequent readiness checks.

## What changed

Route retryable startup errors through the existing reconnect path. This lets
later `get()` and `wait_until_ready()` calls establish a replacement client,
while concurrent callers share the same reconnect attempt.

## Testing

Add a WebSocket test that fails the initial handshake, then verifies that later
readiness and client requests share a successful replacement connection.

GitOrigin-RevId: 82d425af0a73331884439b4350a7a1052d4ae865
This commit is contained in:
richardopenai authored and copyberry committed 2026-08-11 15:33:52 +00:00
1 parent 279b93242c
commit 4c5fc230a9
3 files changed
+82 -4

No files matched your search

+1 -1
View File
@@ -770,7 +770,7 @@ impl ExecServerClient {
}
}
fn is_retryable_recovery_error(error: &ExecServerError) -> bool {
pub(super) fn is_retryable_recovery_error(error: &ExecServerError) -> bool {
is_transport_closed_error(error)
|| matches!(
error,