When Expressions not scoped to the task when results is missing too #7029
Labels
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
Expected Behavior
Not sure if this is the expected behavior, I just thought that this was pretty confusing for my scenario, let me know what you think.
I have PipelineRun that runs something like this:
This PipelineRun is generated and quite big/complex, so I tried to simplify as much as possible, to something like this:
What do I expected:
Actual Behavior
What actually happened:
Debugging what happened, I first noticed in the
status
:This is confusing since this feature-flag used to have default "true" value and I didn't change it. But AFAIK this is just a visibility problem since this feature flag doesn't actually exist anymore.
Looking at the skipped tasks:
So here it lies the problem:
push-app2
was skipped due to results being missing, instead of when expressions.. So the deploy was skipped too, since the parent was skipped not due to when expressions.From what I could gather, this happens because we evaluate first the results references then the when expressions here
So what happened was that
push-app2
was skipped for the "wrong" reason sodeploy
was unexpectedly skipped.Steps to Reproduce the Problem
Additional Info
Kubernetes version:
Output of
kubectl version -o yaml | yq .serverVersion
:Tekton Pipeline version:
Output of
tkn version
orkubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'
The text was updated successfully, but these errors were encountered: