From a48823319a519eead4ca0a48765c7a94944476fc Mon Sep 17 00:00:00 2001 From: "denis.bilenko" Date: Thu, 12 Nov 2026 12:07:24 +0000 Subject: [PATCH] acceptance: name OIDC discovery as the unretried auth request Follow-up to #7507 review: the SDK retries the M2M token exchange; only the OIDC endpoint discovery GET is not retried on timeout. Co-authored-by: Isaac --- acceptance/internal/prepare_server.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/acceptance/internal/prepare_server.go b/acceptance/internal/prepare_server.go index 23ed1118142..6fca1f6f0ec 100644 --- a/acceptance/internal/prepare_server.go +++ b/acceptance/internal/prepare_server.go @@ -94,11 +94,11 @@ func lookupEnv(testEnv []string, key string) (string, bool) { } // cloudWorkspaceState caches the cloud workspace client shared by all tests in -// the process. Resolving auth per test repeats OIDC discovery and the token -// exchange for every test. When the workspace is briefly slow, those requests -// time out, and the SDK's default auth chain hides the timeout behind a -// "cannot configure default credentials" error. Auth resolution is not retried -// the way regular API calls are, so every test running at that moment fails. +// the process. Resolving auth per test repeats the OIDC endpoint discovery GET +// for every test. The SDK retries the token exchange, but not a timed-out +// discovery request. When the workspace is briefly slow, discovery times out, +// the SDK's default auth chain hides the timeout behind a "cannot configure +// default credentials" error, and every test starting at that moment fails. // A shared client resolves auth once and refreshes its token in the background. var cloudWorkspaceState struct { mu sync.Mutex