Skip to content

feat: add outcome and errors to build.finished - #321

Open
sol-duara wants to merge 1 commit into
cdevents:mainfrom
Sol-Duara-Inc:feat/build-finished-outcome
Open

feat: add outcome and errors to build.finished#321
sol-duara wants to merge 1 commit into
cdevents:mainfrom
Sol-Duara-Inc:feat/build-finished-outcome

Conversation

@sol-duara

Copy link
Copy Markdown

The build finished section of continuous-integration.md states that the event "will eventually contain the finished status, success, error or failure", but no such field was ever added to the schema. Because subject.content sets additionalProperties: false, producers currently have no conforming way to report whether a build succeeded.

Every other event representing the completion of an execution - pipelinerun.finished, taskrun.finished, testcaserun.finished and testsuiterun.finished - already defines outcome with the enum success, failure, cancel, error. build.finished was the only one without it.

This mirrors pipelinerun.finished exactly, adding both outcome and errors. Neither is added to required, so the change is backward compatible: events that omit outcome continue to validate.

Revives #179, which made the same change but was closed for staleness after a rebase request rather than on merit. Relates to #109.

Changes

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

@sol-duara
sol-duara requested a review from a team as a code owner July 29, 2026 02:48
The build finished section of continuous-integration.md states that the
event "will eventually contain the finished status, success, error or
failure", but no such field was ever added to the schema. Because
subject.content sets additionalProperties: false, producers currently
have no conforming way to report whether a build succeeded.

Every other event representing the completion of an execution -
pipelinerun.finished, taskrun.finished, testcaserun.finished and
testsuiterun.finished - already defines outcome with the enum success,
failure, cancel, error. build.finished was the only one without it.

This mirrors pipelinerun.finished exactly, adding both outcome and
errors. Neither is added to required, so the change is backward
compatible: events that omit outcome continue to validate.

Adding fields is a structural, backward compatible change, so the event
version is bumped to a new minor draft (0.3.0 -> 0.4.0-draft) per the
versioning policy, using tools/event-version.sh -u build.finished -s.

Revives cdevents#179, which made the same change but was closed for staleness
after a rebase request rather than on merit. Relates to cdevents#109.

Signed-off-by: Dadisi Sanyika <dadisi@solduara.com>
@sol-duara
sol-duara force-pushed the feat/build-finished-outcome branch from 753a453 to 8d75c70 Compare July 29, 2026 18:02
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.

1 participant