-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Consolidate Results validation + add Results to Run status #292
Consolidate Results validation + add Results to Run status #292
Conversation
Since currently the only kind of result is `log`, we can remove that key. We change change this if we decide to have other kinds of results later.
a01e6f4
to
864024d
Compare
864024d
to
4f516ee
Compare
It turned out TaskRun and PipelienRun were using slightly different logic for validating the results config, even tho it should be the same for both. Now they share the logic and in both cases the config is optional.
In the interests in keeping our spec as lean and simple as it can possibly be, at the moment there is no reason why our Results config needs to have a name, so let's remove it. This is the last unnecessary field we have in our yamls that I'm aware of, so this fixes tektoncd#138
When a user kicks off a run, they will provide an endpoint to upload logs to (initial implementation will be in #107). The corresponding fields in `status` will indicate where the logs actually got uplaoded to. Once we actually get to #107, and especially once we start supporting endpoints other than GCS, we may find this isn't useful and remove it. Fixes tektoncd#146
4f516ee
to
a7b0e3a
Compare
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.
SGTM 🐯
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bobcatfish, vdemeester The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Yeah, that seems fine to me for now, but I know I'm going to want to eventually have more possible types. |
Super cool @abayer ! If you feel like writing up an issue or doc with some details about what types you'd like to see that would be super cool! No worries if it's too premature. and p.s. @tejal29 would be a good contact to continue to discuss the results design |
If it's optional in the spec, it should probably be optional in the Status, since the behaviour would probably be not to upload the logs anywhere if no endpoint is provided. Possibly in the future these could become mandator, depending how we design the results store interface.
Ready for another look @pivotal-nader-ziada ! |
The following is the coverage report on pkg/.
|
/lgtm /meow space :D |
@pivotal-nader-ziada: Bad category. Please see https://api.thecatapi.com/api/categories/list In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
nooooo /meow space |
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
When a user kicks off a run, they will provide an endpoint to upload logs to (initial implementation will be in #107). The corresponding fields in
status
will indicate where the logs actually got uplaoded to.Once we actually get to #107, and especially once we start supporting endpoints other than GCS, we may find this isn't useful and remove it.
As a bonus:
name
field fromResults
In the interests in keeping our spec as lean and simple as it can possibly be, at the moment there is no reason why our Results config needs to have a name, so let's remove it. This is the last unnecessary field we have in our yamls that I'm aware of, so this fixes Concise Yaml for pipeline declaration. #138
It turned out TaskRun and PipelienRun were using slightly different logic for validating the results config, even tho it should be the same for both. Now they share the logic and in both cases the config is optional.
log
keySince currently the only kind of result is
log
, we can remove that key. We change change this if we decide to have other kinds of results later.Fixes #146
Fixes #138