Repository navigation
fix(gcp): raise cloudbuild poll retry budget from 3 to 5 attempts - #2344
Merged
Merged
Conversation
The GCP smoketest hit this transient-auth path for real: a GitHub Actions OIDC token-endpoint hiccup outlasted the 3-attempt budget added in #2184, so a single flake still aborted the deploy. More headroom costs a few extra seconds of backoff on an already multi-minute build poll. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pollBuildWithRetryincloudbuild.goalready retries transient gRPC/auth errors during cloudbuild polling (added across Try to fix the random deadline exceeded error #2119 and fix(gcp): retry cloudbuild poll once on transient per-RPC auth 503 #2184), but the budget was only 3 attempts with a short 500ms/1s backoff.cli-smoketests.ymlruns inDefangLabs/defang-mvp: this exact failure mode —isTransientAuthErrorcorrectly matching aper-RPC creds failedGitHub Actions OIDC token-endpoint hiccup — showed up once (see run #44787185675), and it exhausted all 3 retries while the hiccup was still ongoing.pollBuildMaxAttemptsfrom 3 to 5, giving a few more seconds of exponential backoff before giving up, consistent with the function's stated intent ("a single flake doesn't abort an in-flight deploy").Test plan
go test -race -short ./pkg/clouds/gcp/...(existingTestPollBuildWithRetry_*suite references the constant directly, so it adapts automatically)nix develop --command make pre-push(full repo test suite) passesmake lintcurrently fails onmainitself due to ~20 pre-existing gosec findings (G101/G117/G122/G705) in unrelated files, unrelated to this change — appears to be golangci-lint/gosec version drift, not something this PR introduces or fixes. Confirmed identical failure on unmodifiedmain.🤖 Generated with Claude Code
Summary by CodeRabbit