You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #168 we add DAG based execution for Pipelines instead of executing Tasks in the order they are declared.
The DAG is created based on the from and runAfter clauses. It is possible that these can be used to create Graphs which cannot actually execute and complete, e.g. infinite loops, etc.
If a user tries to create a Pipeline which contains an invalid graph, the creation should immediately fail with an informative error.
Actual Behavior
The logic in pkg/reconciler/v1alpha1/pipeline/resources/dag.go to traverse the DAG does some validation, but only at runtime.
The validateFrom function will validate the from clause, but it does not assume a graph, and it doesn't validate the runAfter clause at all.
Expected Behavior
In #168 we add DAG based execution for Pipelines instead of executing Tasks in the order they are declared.
The DAG is created based on the
from
andrunAfter
clauses. It is possible that these can be used to create Graphs which cannot actually execute and complete, e.g. infinite loops, etc.If a user tries to create a
Pipeline
which contains an invalid graph, the creation should immediately fail with an informative error.Actual Behavior
pkg/reconciler/v1alpha1/pipeline/resources/dag.go
to traverse the DAG does some validation, but only at runtime.validateFrom
function will validate thefrom
clause, but it does not assume a graph, and it doesn't validate therunAfter
clause at all.Steps to Reproduce the Problem
PipelineRun
that tries to use thisPipeline
, you should get an error(Note this is not the only invalid Pipeline, part of the work in this issue to find all the cases to cover)
Additional Info
At the time of this issue creation, #473 which implements the graph is still being reviewed (not merged yet)
The text was updated successfully, but these errors were encountered: