Uploaded image for project: 'OpenShift Dev Console'
  1. OpenShift Dev Console
  2. ODC-5160

Crash when rerun a Pipeline which has a PipelineRun in progress

XMLWordPrintable

    • ODC Sprint 194
    • High

      Description of problem:

      When starting a Pipeline multiple times the console crashes sometimes with this JavaScript error:

      TypeError: Cannot read property 'spec' of null
          at getPipelineTasks (pipeline-utils.ts:197)
          at getTopologyNodesEdges (utils.ts:230)
          at PipelineVisualization (PipelineVisualization.tsx:22)
      

      I expect an issue that happen because the Pipeline or PipelineRun was updated from a previous PipelineRun.

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

      1. Install Pipelines Operator (tested with 1.1.2)

      Steps to Reproduce

      1. Import a Git Deployment and enable "Add Pipeline" option
      2. Open the Pipelines overview and select on right hand side the action menu entry "Start Last Run"
      3. Repeat step 2 multiple times until you get an error.

      Actual results:

      Frontend crash, see JavaScript error above

      Expected results:

      Opens the PipelineRun successfully similar to the first "Start Last Run" call.

      Reproducibility (Always/Intermittent/Only Once):

      Always (not the first time when starting the last run, but happens "Always" after 2-4 new tries.)

      Build Details:

      1. Pipelines Operator 1.1.2
      2. console master (dfba93b36a085136220f17c280a02a4198abf274)

      Additional info:

      Release branches not tested yet.

              karthik.jk Karthik Jeeyar
              cjerolim Christoph Jerolimov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: