Skip to content

feat: add env-driven timeout for buildx builder pod readiness#377

Merged
Ash-exp merged 4 commits into
mainfrom
feat/buildx-builder-pod-wait-timeout
Mar 31, 2026
Merged

feat: add env-driven timeout for buildx builder pod readiness#377
Ash-exp merged 4 commits into
mainfrom
feat/buildx-builder-pod-wait-timeout

Conversation

@Ash-exp

@Ash-exp Ash-exp commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

Ash-exp added 3 commits March 30, 2026 13:28
- Add BuildxBuilderPodWaitDurationSecs to CommonWorkflowRequest (JSON field)
- Add BuildxK8sClientFactory type+field for testability; default wraps newBuildxK8sClient
- Extract waitForBuilderPods as a package-level helper (testable)
- Add initial pod liveness wait in setupBuildxBuilder after RegisterBuilderPods
  to eliminate false-positive BuilderPodDeletedError from pod startup latency
- executeDockerReBuild: use factory for k8s client, buffered done channel (size 1)
  to prevent goroutine leak, context.WithTimeout instead of time.After
- Fix pre-existing GitManager_test.go broken CloneAndCheckout call signature
- Tests (Groups A-D, F-G): 15 unit tests covering duration computation,
  executeDockerReBuild error paths, waitForBuilderPods, JSON compat
…ings.Contains in tests

- setupBuildxBuilder: replace direct newBuildxK8sClient call with
  impl.k8sClientFactory, making the initial build path consistent with
  executeDockerReBuild and testable without a live k8s cluster
- buildx_rebuild_test.go: replace hand-rolled contains() helper with
  strings.Contains from stdlib
@github-actions

Copy link
Copy Markdown

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP }404).\n

prakash100198
prakash100198 previously approved these changes Mar 30, 2026
vikramdevtron
vikramdevtron previously approved these changes Mar 30, 2026
@Ash-exp Ash-exp merged commit fc73a0c into main Mar 31, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Make buildx Flags Configurable

3 participants