Skip to content

A-1050 and A-1060: Make checkout retry attempt configurable, increasing default retry#3822

Merged
zhming0 merged 1 commit intomainfrom
ming/a-1050-and-a-1060
Apr 14, 2026
Merged

A-1050 and A-1060: Make checkout retry attempt configurable, increasing default retry#3822
zhming0 merged 1 commit intomainfrom
ming/a-1050-and-a-1060

Conversation

@zhming0
Copy link
Copy Markdown
Contributor

@zhming0 zhming0 commented Apr 14, 2026

Description

Git checkout operation sometimes are subject to the mercy of network stability, a DNS blip can last for 30s+. Our current retry strategy is static and try 3 times, once every 2s. This may not capture some transient network failure scenarios and can be frustrating.

Git checkout errors, apart from initial pipeline setup, can arguably all be categorized as transient errors. So I reckon we should do two things:

  1. Make the retry configurable.
  2. Increase the default retry so that it will retry in the span of 30s (5 attempts, with exponential backoff)

Context

A-1050 and A-1060

Testing

  • Tests have run locally (with go test ./...). Buildkite employees may check this if the pipeline has run automatically.
  • Code is formatted (with go tool gofumpt -extra -w .)

Disclosures / Credits

Me and a LLM donkey

@zhming0 zhming0 requested review from a team as code owners April 14, 2026 04:19
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c354802c97

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread clicommand/global.go Outdated
Comment thread internal/job/checkout.go
Copy link
Copy Markdown
Contributor

@swebb swebb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Low risk. 90% of this PR is simply argument handling. I had one question but I don't think it's a blocker.

@zhming0 zhming0 force-pushed the ming/a-1050-and-a-1060 branch from c354802 to 8c4d79b Compare April 14, 2026 05:20
@zhming0 zhming0 enabled auto-merge April 14, 2026 05:20
@zhming0 zhming0 merged commit 951b6b8 into main Apr 14, 2026
3 checks passed
@zhming0 zhming0 deleted the ming/a-1050-and-a-1060 branch April 14, 2026 05:25
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.

2 participants