-
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
Remove Results Field for PipelineRuns and TaskRuns #1268
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: danielhelfand 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 |
Hi @danielhelfand. Thanks for your PR. I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/ok-to-test |
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
Addressed build/test issues. Should be ready for a review. Thanks! |
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.
/lgtm
Is this a backwards compatible change? Or has it already been placed into deprecated state for some number of releases? Removal of fields has tripped us up a little bit before - thinking of the "Trigger" field that got removed from TaskRuns at the same time as the validation webhook started rejecting resources with unknown fields. |
@sbwsg I am unaware if the field has been deprecated and if there has been notice given, but this will break users who are using the According to your policy, it looks like you like to give a full release notice. I saw the issue was targeted for 0.7.0. |
Update To Original CommentThe fact that this can be set, in general, is a breaking change and it's not fair to assume this is not used. Any guidance on how to best introduce this gracefully would be appreciated. There's also the matter on what to do with result_types.go and its tests, as it appears it was created to supplement |
I wonder if a good approach here might be to log a warning to indicate that the field is deprecated as of 0.7.0, document it as part of the 0.7.0 release notes, and then remove it completely in 0.8.0? I'm not sure if the warning part is possible though - @vdemeester @bobcatfish any thoughts on this? |
Yeah, we can definitely call it out in the release notes, and maybe log a warning in the controller logs though I'm not sure how useful that will be. |
I can agree with the idea that logging, at least in the ways we could, would probably not be the best way to communicate this. What if we announced the 0.7.0 release notes this field will be deprecated and also add in code comments to |
sounds good to me |
@sbwsg Thanks for your help. I'll close this now and we can revisit it in 0.8.0. I can open a pr with comments announcing the deprecation in 0.8.0. |
Closes #1243
This pull request removes the
Results
field forpipelineruns
andtaskruns
from the Tekton pipeline API.I also touched up some language in
api_compatibility_policy.md
after noticing some typos when reading it over.Changes
Removes all
Results *Results
references throughout the project.Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
Reviewer Notes
If API changes
are included, additive changes
must be approved by at least two OWNERS
and backwards incompatible changes
must be approved by more than 50% of the OWNERS,
and they must first be added
in a backwards compatible way.
Release Notes