-
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
using WhenExpressions, skipped task runs #3188
Comments
@r0bj quick questions, what are the logs for pod |
@vdemeester Logs are:
My observation is that this issue is related to tasks that use other tasks as an input to WhenExpressions. Tasks which use params as an input seems work ok - they skipped and do not run, as expected. |
Tasks with when expressions using variables that evaluated to false were mistakenly were mistakenly executed because we missed an additional check to validate that the task should be skipped after variable replacement. Fixes tektoncd#3188
Tasks with when expressions using variables that evaluated to false were mistakenly were mistakenly executed because we missed an additional check to validate that the task should be skipped after variable replacement. Fixes tektoncd#3188
Tasks with when expressions using variables that evaluated to false were mistakenly executed because it missed an additional check to validate that the task should be skipped after variable replacement. Fixes tektoncd#3188
Quick update: @jerop is working on these and we'll make a 0.16.1 release (https://github.com/tektoncd/pipeline/milestone/34) once these are fixed. Thanks for the quick report @r0bj ! |
Tasks with when expressions using variables that evaluated to false were mistakenly executed because it missed an additional check to validate that the task should be skipped after variable replacement. Fixes tektoncd#3188
Tasks with when expressions using variables that evaluated to false were mistakenly executed because it missed an additional check to validate that the task should be skipped after variable replacement. Fixes #3188
Tasks with when expressions using variables that evaluated to false were mistakenly executed because it missed an additional check to validate that the task should be skipped after variable replacement. Fixes tektoncd#3188
Quick update: since there are a few issues, we're aiming to have fixes for all 3 in 0.16.2 on Monday |
Tasks with when expressions using variables that evaluated to false were mistakenly executed because it missed an additional check to validate that the task should be skipped after variable replacement. Fixes tektoncd#3188 (cherry picked from commit c12b843)
Tasks with when expressions using variables that evaluated to false were mistakenly executed because it missed an additional check to validate that the task should be skipped after variable replacement. Fixes tektoncd#3188 (cherry picked from commit c12b843)
Okay 0.16.2 is up now (https://github.com/tektoncd/pipeline/releases/tag/v0.16.2) please let us know if you still run into problems! |
Expected Behavior
According to documentation https://tekton.dev/docs/pipelines/pipelines/#guard-task-execution-using-whenexpressions
"If any of the WhenExpressions evaluate to False, the Task is not run and the Task is listed in the Skipped Tasks section of the PipelineRunStatus."
Actual Behavior
WhenExpressions evaluate to False but Task runs.
Steps to Reproduce the Problem
Example from https://github.com/tektoncd/pipeline/blob/master/examples/v1beta1/pipelineruns/pipelinerun-with-when-expressions.yaml with one modification in line 63 ("exists" -> "some-value"):
Note: Task
echo-file-exists
should be skipped due to WhenExpressions but was executed.Additional Info
The text was updated successfully, but these errors were encountered: