-
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
task results reassertion #2701
Comments
Hey @pritidesai ! I think I'm missing a bit of context for this one: is this about changing the error "reason" fields in Status conditions? |
yes changing the reason field from generic |
/area api |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. 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. |
/remove-lifecycle rotten |
@vdemeester: Reopened this issue. 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. |
@pritidesai looking at this more closely would you say #3497 is a duplicate of this issue? It sounds like this issue is about trying to add more validation around expectations for Task results? |
This issue is about documenting and implementing the expected behavior in cases such as
Yup, we can close this as a duplicate of #3497 |
TaskResultsNotProduced
: TaskRun for a task should result in failure if task results are not populated. Tasks are declared successful today even before initializing task results from container status.updateTaskRunResourceResult
is executed when ataskRun
is declared successful. TaskRun is declared complete and successful here, we should add a check on task results even before updatingtaskRun.status
.InvalidTaskResultReference
: Task execution order is set such that the task producing a result is executed before the task referencing that result. In case of a failure of a referenced task, pipeline exits without executing the rest of the pipeline tasks. But when a referenced task succeeds and does not instantiate the result, the task referencing that result is not executed and pipeline results in failure. Pipeline exits withPipelineValidationFailed
since the result did not exist. ReplacePipelineValidationFailed
with something more specificInvalidTaskResultReference
.An example of such task and pipeline execution here.
I think, we might not even get to this kind of error if
TaskResultsNotProduced
is implemented.MissingTaskResultReference
: A task might be set to produce task results but these results are not referenced in any of the pipeline tasks. This scenario is ignored today, does not impact task execution order and does not produce any failure. Pipeline should result in failure if task results are not referenced at all.Please feel free to suggest better naming if these does not make sense.
The text was updated successfully, but these errors were encountered: