• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • blueocean-plugin
    • None
    • Jenkins:2.74
      Blue Ocean: 1.2.0
    • Blue Ocean 1.2, Blue Ocean 1.3

      After recent upgrade to 1.2.0 the existing views are broken with the following error. Not sure if it is going to be the same problem for the new runs, yet to try out. Appreciate some inputs?

      Error rendering PipelineRunGraph: TypeError: Cannot read property 'name' of undefined
      

          [JENKINS-46436] Blue Ocean: Error rendering PipelineRunGraph

          Naresh Rayapati created issue -
          Naresh Rayapati made changes -
          Description Original: After recent upgrade to 1.2.0 the existing view are broken with the following error. Not sure it is going to be the same problem for the new runs, yet to try out.

          {code}
          Error rendering PipelineRunGraph: TypeError: Cannot read property 'name' of undefined
          {code}
          New: After recent upgrade to 1.2.0 the existing views are broken with the following error. Not sure if it is going to be the same problem for the new runs, yet to try out.
          {code:java}
          Error rendering PipelineRunGraph: TypeError: Cannot read property 'name' of undefined
          {code}
          Naresh Rayapati made changes -
          Description Original: After recent upgrade to 1.2.0 the existing views are broken with the following error. Not sure if it is going to be the same problem for the new runs, yet to try out.
          {code:java}
          Error rendering PipelineRunGraph: TypeError: Cannot read property 'name' of undefined
          {code}
          New: After recent upgrade to 1.2.0 the existing views are broken with the following error. Not sure if it is going to be the same problem for the new runs, yet to try out. Appreciate some inputs?
          {code:java}
          Error rendering PipelineRunGraph: TypeError: Cannot read property 'name' of undefined
          {code}
          Naresh Rayapati made changes -
          Issue Type Original: New Feature [ 2 ] New: Bug [ 1 ]

          Michael Neale added a comment -

          nrayapati unfortunately not enough information. Are all your plugins up to date? Can you share a Jenkinsfile that makes this happen (possibly a reduced down one?) - that would be ideal. Ie create a new job, get it to fail in this way - then should be easy to find/fix. 

           

          Also some more errors from the browser console. 

          Michael Neale added a comment - nrayapati unfortunately not enough information. Are all your plugins up to date? Can you share a Jenkinsfile that makes this happen (possibly a reduced down one?) - that would be ideal. Ie create a new job, get it to fail in this way - then should be easy to find/fix.    Also some more errors from the browser console. 
          Michael Neale made changes -
          Epic Link New: JENKINS-35761 [ 171656 ]
          Michael Neale made changes -
          Sprint New: Blue Ocean 1.2 [ 376 ]

          Sorry for not providing much information above, I was trying to reproduce with some simple example as I can't share the original pipeline code earlier. 

          • Yes all the plugins are up to date. 
          • Here is the basic example, Looks like it is the problem when we have more stages, looks like the hard limit of 100 is causing some issues.
          • And also attaching the browser console log for reference. I tried on safari, firefox and chrome, same error.

          Pipeline:

          def stepsForParallel = [:]
          
          for(int i =0; i < 10; i++) {
              stepsForParallel[i] = { echo i.toString() }
          }
          
          parallel stepsForParallel
          
          stepsForParallel = [:]
          for(int i =0; i < 20; i++) {
              stepsForParallel[i] = { echo i.toString() }
          }
          
          parallel stepsForParallel
          
          stepsForParallel = [:]
          for(int i =0; i < 20; i++) {
              stepsForParallel[i] = { echo i.toString() }
          }
          
          parallel stepsForParallel
          stepsForParallel = [:]
          for(int i =0; i < 20; i++) {
              stepsForParallel[i] = { echo i.toString() }
          }
          
          parallel stepsForParallel
          stepsForParallel = [:]
          for(int i =0; i < 50; i++) {
              stepsForParallel[i] = { echo i.toString() }
          }
          
          parallel stepsForParallel
          
          

          Console Error: (Chrome)

          Browser configuration of @jenkins-cd/logging is explained at https://tfennelly.github.io/jenkins-js-logging/index.html#browser-config
          jenkins-js-extension.js:48152 [Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive.
          componentDidMount @ jenkins-js-extension.js:48152
          target.(anonymous function) @ jenkins-js-extension.js:8385
          notifyAll @ blueocean.js:112436
          close @ blueocean.js:124530
          closeAll @ blueocean.js:127928
          perform @ blueocean.js:127875
          perform @ blueocean.js:127862
          perform @ blueocean.js:125753
          flushBatchedUpdates @ blueocean.js:125836
          closeAll @ blueocean.js:127928
          perform @ blueocean.js:127875
          batchedUpdates @ blueocean.js:121545
          enqueueUpdate @ blueocean.js:125864
          enqueueUpdate @ blueocean.js:125472
          enqueueForceUpdate @ blueocean.js:125605
          ReactComponent.forceUpdate @ blueocean.js:116984
          (anonymous) @ jenkins-js-extension.js:8417
          Reaction.runReaction @ jenkins-js-extension.js:10989
          runReactions @ blueocean.js:97771
          transactionEnd @ blueocean.js:97843
          executeAction @ blueocean.js:97094
          res @ blueocean.js:97062
          (anonymous) @ blueocean.js:6679
          tryCatch @ blueocean.js:72595
          invokeCallback @ blueocean.js:72610
          publish @ blueocean.js:72578
          flush @ blueocean.js:72306
          blueocean.js:49307 error rendering PipelineRunGraph TypeError: Cannot read property 'name' of undefined
              at blueocean.js:10137
              at Array.map (<anonymous>)
              at PipelineGraph.createNodeColumns (blueocean.js:10133)
              at PipelineGraph.stagesUpdated (blueocean.js:10014)
              at PipelineGraph.componentWillMount (blueocean.js:9966)
              at ReactCompositeComponentWrapper.performInitialMount (blueocean.js:117744)
              at ReactCompositeComponentWrapper.mountComponent (blueocean.js:117651)
              at Object.mountComponent (blueocean.js:124664)
              at ReactDOMComponent.mountChildren (blueocean.js:123542)
              at ReactDOMComponent._createInitialChildren (blueocean.js:119118)
          blueocean.js:49307 error rendering PipelineRunGraph TypeError: Cannot read property 'name' of undefined
              at blueocean.js:10137
              at Array.map (<anonymous>)
              at PipelineGraph.createNodeColumns (blueocean.js:10133)
              at PipelineGraph.stagesUpdated (blueocean.js:10014)
              at PipelineGraph.componentWillMount (blueocean.js:9966)
              at ReactCompositeComponentWrapper.performInitialMount (blueocean.js:117744)
              at ReactCompositeComponentWrapper.mountComponent (blueocean.js:117651)
              at Object.mountComponent (blueocean.js:124664)
              at ReactDOMComponent.mountChildren (blueocean.js:123542)
              at ReactDOMComponent._createInitialChildren (blueocean.js:119118)
          

          Let me know if you need more information please. Thanks for looking into this.

          Naresh Rayapati added a comment - Sorry for not providing much information above, I was trying to reproduce with some simple example as I can't share the original pipeline code earlier.  Yes all the plugins are up to date.  Here is the basic example, Looks like it is the problem when we have more stages, looks like the hard limit of 100 is causing some issues. And also attaching the browser console log for reference. I tried on safari, firefox and chrome, same error. Pipeline: def stepsForParallel = [:] for ( int i =0; i < 10; i++) { stepsForParallel[i] = { echo i.toString() } } parallel stepsForParallel stepsForParallel = [:] for ( int i =0; i < 20; i++) { stepsForParallel[i] = { echo i.toString() } } parallel stepsForParallel stepsForParallel = [:] for ( int i =0; i < 20; i++) { stepsForParallel[i] = { echo i.toString() } } parallel stepsForParallel stepsForParallel = [:] for ( int i =0; i < 20; i++) { stepsForParallel[i] = { echo i.toString() } } parallel stepsForParallel stepsForParallel = [:] for ( int i =0; i < 50; i++) { stepsForParallel[i] = { echo i.toString() } } parallel stepsForParallel Console Error: (Chrome) Browser configuration of @jenkins-cd/logging is explained at https: //tfennelly.github.io/jenkins-js-logging/index.html#browser-config jenkins-js-extension.js:48152 [Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive. componentDidMount @ jenkins-js-extension.js:48152 target.(anonymous function) @ jenkins-js-extension.js:8385 notifyAll @ blueocean.js:112436 close @ blueocean.js:124530 closeAll @ blueocean.js:127928 perform @ blueocean.js:127875 perform @ blueocean.js:127862 perform @ blueocean.js:125753 flushBatchedUpdates @ blueocean.js:125836 closeAll @ blueocean.js:127928 perform @ blueocean.js:127875 batchedUpdates @ blueocean.js:121545 enqueueUpdate @ blueocean.js:125864 enqueueUpdate @ blueocean.js:125472 enqueueForceUpdate @ blueocean.js:125605 ReactComponent.forceUpdate @ blueocean.js:116984 (anonymous) @ jenkins-js-extension.js:8417 Reaction.runReaction @ jenkins-js-extension.js:10989 runReactions @ blueocean.js:97771 transactionEnd @ blueocean.js:97843 executeAction @ blueocean.js:97094 res @ blueocean.js:97062 (anonymous) @ blueocean.js:6679 tryCatch @ blueocean.js:72595 invokeCallback @ blueocean.js:72610 publish @ blueocean.js:72578 flush @ blueocean.js:72306 blueocean.js:49307 error rendering PipelineRunGraph TypeError: Cannot read property 'name' of undefined at blueocean.js:10137 at Array.map (<anonymous>) at PipelineGraph.createNodeColumns (blueocean.js:10133) at PipelineGraph.stagesUpdated (blueocean.js:10014) at PipelineGraph.componentWillMount (blueocean.js:9966) at ReactCompositeComponentWrapper.performInitialMount (blueocean.js:117744) at ReactCompositeComponentWrapper.mountComponent (blueocean.js:117651) at Object .mountComponent (blueocean.js:124664) at ReactDOMComponent.mountChildren (blueocean.js:123542) at ReactDOMComponent._createInitialChildren (blueocean.js:119118) blueocean.js:49307 error rendering PipelineRunGraph TypeError: Cannot read property 'name' of undefined at blueocean.js:10137 at Array.map (<anonymous>) at PipelineGraph.createNodeColumns (blueocean.js:10133) at PipelineGraph.stagesUpdated (blueocean.js:10014) at PipelineGraph.componentWillMount (blueocean.js:9966) at ReactCompositeComponentWrapper.performInitialMount (blueocean.js:117744) at ReactCompositeComponentWrapper.mountComponent (blueocean.js:117651) at Object .mountComponent (blueocean.js:124664) at ReactDOMComponent.mountChildren (blueocean.js:123542) at ReactDOMComponent._createInitialChildren (blueocean.js:119118) Let me know if you need more information please. Thanks for looking into this.
          Naresh Rayapati made changes -
          Attachment New: Chrome Error.png [ 39454 ]
          Michael Neale made changes -
          Assignee New: Josh McDonald [ sophistifunk ]

            cliffmeyers Cliff Meyers
            nrayapati Naresh Rayapati
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: