Skip to content

Conversation

@DrJosh9000
Copy link
Contributor

@DrJosh9000 DrJosh9000 commented Dec 4, 2025

Description

Instead of passing agent output directly to os.Stderr, capture in a buffer and log once during cleanup. This keeps the agent logs in one chunk separate from the test logs.

Context

https://buildkite-corp.slack.com/archives/C061U5PG9K5/p1764821554921599?thread_ts=1764817320.578409&cid=C061U5PG9K5

Changes

Per the description.

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

I did not use AI tools at all

@DrJosh9000 DrJosh9000 force-pushed the log-agent-logs-separately branch from 944ef02 to 20fb020 Compare December 4, 2025 05:26
@DrJosh9000 DrJosh9000 requested a review from a team December 4, 2025 05:59
Copy link
Contributor

@moskyb moskyb left a comment

Choose a reason for hiding this comment

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

awesome!

@DrJosh9000 DrJosh9000 merged commit 3cf00bd into main Dec 4, 2025
2 checks passed
@DrJosh9000 DrJosh9000 deleted the log-agent-logs-separately branch December 4, 2025 06:00
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