-
Notifications
You must be signed in to change notification settings - Fork 113
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
WIP: Surface BuildRun Results List under Status #787
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the direction this is going, but I think we might want to surface the Git commit SHA and built image digest as specific typed fields in the status, since we expect these to be pretty common and highly used.
Other strategies might produce other results, and we should surface those as best we can, but source and output image information seems different to me.
We have the option of exposing this information in results
and in typed fields, if we want to. Or we can extract it from the TaskRun's .status.results
and filter it out of the BuildRun's .status.results
if we want.
@@ -54,6 +54,8 @@ type BuildRunStatus struct { | |||
// +optional | |||
LatestTaskRunRef *string `json:"latestTaskRunRef,omitempty"` | |||
|
|||
BuildResults []BuildResult `json:"results,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about Results []Result
, to match the yaml field name?
I also thought about how we could represent the data in the BuildRun status. Just to summarize, I see us eventually having three kinds of results:
To store this in the BuildRun status, there are two options:
status:
sources:
- name: default # the Git source from spec.source
git:
commit-sha: abcd
commit-author: qu1queee # assumes that we eventually expand what a Git source provides
- name: license-file # an HTTP source from spec.sources
http:
size: 3278 # assumes that an HTTP source has a size result
output-image:
digest: sha:30213102
size: 302173
results:
- name: the-custom-buildstrategy-defined-result
value: some-value I actually do not suggest to necessarily change what you have. Approach (1) is also fine with me. |
78c7a32
to
4777c31
Compare
late response here ( my bad ). I decided to move this into a SHIP, to allow more people to provide feedback on a proposal. This might delay even more the implementation, but I prefer to go this path. |
Related SHIP shipwright-io/community#13 , closing as I cannot work on this one at the moment. |
Feel free to take this item anyone. |
Changes
Adding
BuildResults
to the BuildRun Status object. This should allow us to surface valuable data to users, under theBuildResults
list.Today we are already producing Tekton results, such as:
which are available at a TaskRun level, under
.status.taskResults
, but not at theBuildRun
level.Submitter Checklist
See the contributor guide
for details on coding conventions, github and prow interactions, and the code review process.
Release Notes