Skip to content

fix(python): tolerate Cloud Run cold starts with 503s - #281

Open
AgraVator wants to merge 2 commits into
grpc:mainfrom
AgraVator:fix-csm-outbound-cloudrun-503
Open

AgraVator wants to merge 2 commits into
grpc:mainfrom
AgraVator:fix-csm-outbound-cloudrun-503

Conversation

@AgraVator

@AgraVator AgraVator commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

In Cloud Run CSM Outbound tests, the server container may return 503 errors (Connection reset / HTTP 503) for the initial few RPCs while the container is scaling from zero and warming up.

This wraps assertSuccessfulRpcs in an exponential retry loop to allow the Cloud Run connection to warm up naturally, eliminating the flakes.

https://b.corp.google.com/issues/553291126

Test Run

In Cloud Run CSM Outbound tests, the server container may return 503 errors (Connection reset / HTTP 503) for the initial few RPCs while the container is scaling from zero and warming up.

This wraps assertSuccessfulRpcs in an exponential retry loop to allow the Cloud Run connection to warm up naturally, eliminating the flakes.
@AgraVator
AgraVator requested a review from a team as a code owner August 31, 2026 07:00

This branch has not been deployed

No deployments
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