Skip to content

Conversation

@DrJosh9000
Copy link
Contributor

@DrJosh9000 DrJosh9000 commented Oct 22, 2025

Description

Following testing with #3547, I found that the k8s socket client is declared lost. Turns out I added this bug in #3534: https://github.com/buildkite/agent/pull/3534/files#diff-51d41708fc2008e12931e74e692c6f91783e8bcf211364ea4c89813866c89f2aR174-R182

Context

Fix one more bug for https://linear.app/buildkite/issue/PS-1220

Changes

Put the sleep and subsequent exit in a goroutine, to unblock the StatusLoop, so that the server side doesn't time out and consider the client side lost.

Testing

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

Disclosures / Credits

Wet noodles in a skull

@DrJosh9000 DrJosh9000 requested a review from a team October 22, 2025 02:43
@DrJosh9000 DrJosh9000 enabled auto-merge October 22, 2025 02:43
Copy link
Member

@wolfeidau wolfeidau left a comment

Choose a reason for hiding this comment

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

Seems legit 👍🏻

@DrJosh9000 DrJosh9000 merged commit 1181c64 into main Oct 22, 2025
1 check passed
@DrJosh9000 DrJosh9000 deleted the ps-1220-k8s-bootstrap-oninterrupt-fix branch October 22, 2025 02:45
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.

3 participants