-
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
Invalidate passing Results
between Finally Tasks
#4132
Conversation
Today, passing `Results` between `Finally Tasks` through `when` expressions is not invalidated This change invalidates passing `Results` between `Finally Tasks` through `when` expressions `Finally Tasks` should be executed in parallel after all `Tasks` are done, therefore we cannot have dependencies between `Finally Tasks` A `Pipeline` that passes a `Result` from one `Finally Task` to another `Finally Task` should fail due to validation error Further details in: - [TEP-0004: Task Results in Final Tasks](https://github.com/tektoncd/community/blob/main/teps/0004-task-results-in-final-tasks.md) - [Documentation: Consuming Results in Finally Tasks](https://github.com/tektoncd/pipeline/blob/main/docs/pipelines.md#consuming-task-execution-results-in-finally) This change also refactors the invalidation of `Finally Tasks` to ensure that we capture all the reasons to fail due to invalidation instead of only one reason -- to ensure all invalid syntax in `Finally Tasks` are reported to the user at the first execution Fixes tektoncd#4130
a5e75c2
to
beeb23a
Compare
/retest |
/test pull-tekton-pipeline-integration-tests |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 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 |
/lgtm |
/easycla |
@jerop I think the only way to force EasyCLA is to close/re-open (or force push) |
@vdemeester aah i see, thank you! |
Well, it failed miserably… seems like we have a problem with EasyCLA 🤔 |
Today, passing
Results
betweenFinally Tasks
throughwhen
expressions is not invalidated
This change invalidates passing
Results
betweenFinally Tasks
throughwhen
expressionsFinally Tasks
should be executed in parallel after allTasks
aredone, therefore we cannot have dependencies between
Finally Tasks
A
Pipeline
that passes aResult
from oneFinally Task
to anotherFinally Task
should fail due to validation errorFurther details in:
This change also refactors the invalidation of
Finally Tasks
to ensurethat we capture all the reasons to fail due to invalidation instead of
only one reason -- to ensure all invalid syntax in
Finally Tasks
arereported to the user at the first execution
Fixes #4130
Changes
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
Release Notes
/kind bug