Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silence Job API Log Group #2690

Merged
merged 1 commit into from
Mar 12, 2024
Merged

Silence Job API Log Group #2690

merged 1 commit into from
Mar 12, 2024

Conversation

triarius
Copy link
Contributor

@triarius triarius commented Mar 12, 2024

Description

The Job API prints a log group whenever it starts, which is usually once
per job, but can be more than on agent-stack-k8s. However, I think the
Job API should be transparent to the user: it is not that relevant to
them unless they are developing against it, which should the minority of
the time they are using buildkite. This removes the log group appearing in
the job logs unless debug is enabled.

Context

This is a screenshot showing multiple job api log groups in a k8s job. It's a bit spammy.
Screenshot 2024-03-12 at 20-52-30 test-testsshrepoclone-018e31fe-9738-43c7-8bbc-08cf2424a0b6 #1 · Buildkite Kubernetes Stack

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 ./...)

The Job API prints a log group whenever it starts, which is usually once
per job, but can be more than on agent-stack-k8s. However, I think the
Job API should be transparent to the user: it is not that relevant to
them unless they are developing against it, which should the minority of
the time they are using buildkite. This removes the log group appearing in
the job logs unless debug is enabled.
@triarius triarius requested a review from a team March 12, 2024 09:54
Copy link
Contributor

@DrJosh9000 DrJosh9000 left a comment

Choose a reason for hiding this comment

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

LGTM, and I think I agree

@triarius triarius merged commit f242077 into main Mar 12, 2024
1 check passed
@triarius triarius deleted the triarius/more-silent-job-api branch March 12, 2024 23:49
@triarius triarius mentioned this pull request Mar 20, 2024
2 tasks
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.

None yet

2 participants