Skip to content

Generate a warning when cache is specified on self-hosted jobs#3743

Merged
CerealBoy merged 1 commit intomainfrom
feat/warn-with-cache-self-hosted
Mar 9, 2026
Merged

Generate a warning when cache is specified on self-hosted jobs#3743
CerealBoy merged 1 commit intomainfrom
feat/warn-with-cache-self-hosted

Conversation

@CerealBoy
Copy link
Member

Description

When we allow for cache configuration to be present on self-hosted jobs, we also want to highlight this in the job log output for any job that has this configuration present. While there's no explicit action that needs to be taken, nor does the presence of the config change anything for the job executing, we do want to surface that there is unsupported configuration for the job being executed.

Screenshot 2026-03-09 at 10 46 21

An example of the output for a job with these changes included.

Context

Part of PS-1743

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 used amp to implement this. Before committing and pushing I ran through the changes locally, both running Jobs and the tests. I double-checked the tests against our other tests for having them match the same style we use here.

@CerealBoy CerealBoy requested review from a team as code owners March 9, 2026 00:20
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.

Makes sense 👍🏻

@CerealBoy CerealBoy merged commit 264d32d into main Mar 9, 2026
2 checks passed
@CerealBoy CerealBoy deleted the feat/warn-with-cache-self-hosted branch March 9, 2026 01:10
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