Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-8190

PipelineRun validates successfully without any Tasks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • Tekton Pipelines
    • False
    • Hide

      None

      Show
      None
    • False

      Description of problem:

      A PipelineRun which has no tasks can is validated without any warnings or errors. This Pipeline is effectively a no-op. 

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

      Create the attached pipelinerun

      Actual results:

      The pipeline run is created and completed with 0 tasks

      Expected results:

      The pipelinerun fails validation with an error like "no tasks"

      Reproducibility (Always/Intermittent/Only Once): always

      Acceptance criteria: 

      Whatever validation is changed should be consistent wherever appropriate. If there are other places where a list of Tasks in a Pipeline spec seems like a non-optional requirement, they should enforce the requirement consistently.

       

      Definition of Done:

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

      Upstream issue: https://github.com/tektoncd/pipeline/issues/8905

       *

              Unassigned Unassigned
              rh-ee-athorp Andrew Thorp
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: