-
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
fix: clean results when taskrun retries #7126
fix: clean results when taskrun retries #7126
Conversation
Hi @cugykw. 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. |
The following is the coverage report on the affected files.
|
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.
/ok-to-test
The following is the coverage report on the affected files.
|
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.
it makes sense to me to clean results before a retry attempt, would like to hear from other @tektoncd/core-maintainers though
please update the documentation with this change:
Line 742 in e35a4db
- `status.StartTime` and `status.PodName` are unset to trigger another retry attempt. |
also wondering if there's a way for us to checkpoint workspaces before a taskrun then reset to that state on retry attempts, but this can be figured out in future work -- maybe for now we just document that workspaces may be corrupted on retry so the task needs to handle that itself
41596ca
to
bfc0c4e
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jerop 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 |
That one is going to be a problem (at least in our current architecture) as we cannot really do anything here. Today, it kind-of falls down to the way the Task behave (and thus on the author of the task to make sure not to modify the workspace or in a indempotent way or something…) |
Makes sense, we can just document that Tasks authors need to make sure that Workspaces are handled during retries In the meantime, we can move forward with this fix for Results |
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
Changes
Fixes #7125 .
Prior to this PR, after retrying taskrun, the task results of the last run will be retained, which may cause the running situation to be inconsistent with the results.
After this commit, the taskrun will clean up the last task results before retrying.
/kind bug
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes