Repository navigation
Prevent resources from emitting empty versions - #9293
Merged
Merged
Conversation
…tion Signed-off-by: IvanChalukov <[email protected]>
taylorsilva
requested changes
Sep 10, 2025
taylorsilva
left a comment
Member
There was a problem hiding this comment.
I am good with this being the solution to #9279. Thank you Ivan! Only one suggestion, then I'm happy to merge this in.
…s function Signed-off-by: IvanChalukov <[email protected]>
IvanChalukov
marked this pull request as ready for review
September 10, 2025 16:20
Contributor
Author
|
One more note: this is technically a breaking change for anyone using resources that emit empty versions(I hope no one is doing this). It’s probably worth calling out in the upcoming release notes. |
Member
|
That is a fair point. I'll make sure it's listed under breaking changes. |
Kump3r
approved these changes
Sep 12, 2025
Kump3r
left a comment
Contributor
There was a problem hiding this comment.
Tested with local Concourse:
Without the change (code from master):

With the change (code from PR):

Also I see the following info message in the logs:
web-1 | {"timestamp":"2025-09-12T10:55:59.811931047Z","level":"info","source":"atc","message":"atc.tracker-imb.run.errored","data":{"build":"check","error":"save versions: resource output version is empty. Version must contain at least one key-value pair","pipeline":"test-empty","pre_build_id":12,"resource":"mock","session":"23.11","team":"main"}}
LGTM!
taylorsilva
approved these changes
Sep 12, 2025
This was referenced Jun 29, 2026
aliculPix4D
added a commit
to Pix4D/s3-resource-simple
that referenced
this pull request
Jul 1, 2026
- Concourse v8.X doesn't allow emiting the empty version: concourse/concourse#9293
This was referenced Sep 11, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes proposed by this PR
closes #9279
Resources should not be allowed to emit empty versions (
{}). Currently, Concourse accepts them, which results in confusing behavior:This PR filters out empty versions before they are persisted and provide a clear error message in the UI, so users know their resource is misconfigured and can update its configuration.
Notes to reviewer
To validate it: