• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • blueocean-plugin
    • None

      With the update to BlueOcean Aggregator 1.27.0 the amount of failed tests is no longer shown on the overview page. Previously that number was displayed right on top of the "Tests" tab on the BlueOcean headline.

      That's a big step backwards especially if there's a pipeline with a lot of separate steps. Now you need explicitly click on "Tests" to open the test results to get the amount of failed tests.

      Unfortunately I can't say exactly which version previously was installed but AFAIR it was a version equal or newer than 1.25.7.

          [JENKINS-70421] Amount of failed tests not shown on overview

          Marc added a comment -

          I observed the same behaviour and it really makes the latest version of blue ocean hard to use in our company. Unfortunately, it's no option to go back.

           

          I did some research on the react app and why the numbers would not show up and at least I found the commit that introduced the changes that break the visualization of the badge:

          https://github.com/jenkinsci/blueocean-plugin/commit/099bbff6a13ec7709a22049c7c4b0f99bc9ec83d#diff-ec0ff8f682c839d764d2b34fc487aea5047901f884475b11e2a9eaefe618f515

           

          It seems the store of the application is queried with the wrong URL, somewhere around these lines: https://github.com/jenkinsci/blueocean-plugin/commit/099bbff6a13ec7709a22049c7c4b0f99bc9ec83d#diff-ec0ff8f682c839d764d2b34fc487aea5047901f884475b11e2a9eaefe618f515R94-R97

           

          I will debug the javascript of blue ocean a little later and extend the information in this ticket. I'd be very happy to see this issue fixed.

          Marc added a comment - I observed the same behaviour and it really makes the latest version of blue ocean hard to use in our company. Unfortunately, it's no option to go back.   I did some research on the react app and why the numbers would not show up and at least I found the commit that introduced the changes that break the visualization of the badge: https://github.com/jenkinsci/blueocean-plugin/commit/099bbff6a13ec7709a22049c7c4b0f99bc9ec83d#diff-ec0ff8f682c839d764d2b34fc487aea5047901f884475b11e2a9eaefe618f515   It seems the store of the application is queried with the wrong URL, somewhere around these lines: https://github.com/jenkinsci/blueocean-plugin/commit/099bbff6a13ec7709a22049c7c4b0f99bc9ec83d#diff-ec0ff8f682c839d764d2b34fc487aea5047901f884475b11e2a9eaefe618f515R94-R97   I will debug the javascript of blue ocean a little later and extend the information in this ticket. I'd be very happy to see this issue fixed.

          Marc added a comment -

          This could also be easily fixed together with JENKINS-50905

          Marc added a comment - This could also be easily fixed together with JENKINS-50905

          Marc added a comment -

           

          Based on the watches (top right) you can see that the test results are read properly - but they are not within the run. Unfortunately the menubar item tries to display the badge based on the current run... (see https://github.com/jenkinsci/blueocean-plugin/blob/cef3a856598b4c6d0a062768d7769e22e7299e68/blueocean-dashboard/src/main/js/components/RunDetailsTests.jsx#L61C126-L61C126)

          I guess the test results can simply be forwarded to the menu item by merging the information into one object, because new ResultRun(...) exptects an object including test results.

          I verified this by simply using a debugger watch to alter the run-Variable before it was fed into the constructor of ResultRun and magically my numbers appeared

           

          https://github.com/jenkinsci/blueocean-plugin/blob/cef3a856598b4c6d0a062768d7769e22e7299e68/blueocean-dashboard/src/main/js/components/RunDetails.jsx#L159

           

          I will attempt to create a PR for this easy fix

          Marc added a comment -   Based on the watches (top right) you can see that the test results are read properly - but they are not within the run. Unfortunately the menubar item tries to display the badge based on the current run... (see https://github.com/jenkinsci/blueocean-plugin/blob/cef3a856598b4c6d0a062768d7769e22e7299e68/blueocean-dashboard/src/main/js/components/RunDetailsTests.jsx#L61C126-L61C126) I guess the test results can simply be forwarded to the menu item by merging the information into one object, because new ResultRun(...) exptects an object including test results. I verified this by simply using a debugger watch to alter the run-Variable before it was fed into the constructor of ResultRun and magically my numbers appeared   https://github.com/jenkinsci/blueocean-plugin/blob/cef3a856598b4c6d0a062768d7769e22e7299e68/blueocean-dashboard/src/main/js/components/RunDetails.jsx#L159   I will attempt to create a PR for this easy fix

          L. G. added a comment -

          We recently noticed the same behaviour and we also can't go back using previous plugin versions.

          Just upvoted for this issue, thanks upfront to anyone who can fix it.

          L. G. added a comment - We recently noticed the same behaviour and we also can't go back using previous plugin versions. Just upvoted for this issue, thanks upfront to anyone who can fix it.

          Marc added a comment -

          I fixed this issue and created a PR that was already merged into master https://github.com/jenkinsci/blueocean-plugin/pull/2537

          Now we just have to wait until master ships to the plugin registry again.

          Marc added a comment - I fixed this issue and created a PR that was already merged into master https://github.com/jenkinsci/blueocean-plugin/pull/2537 Now we just have to wait until master ships to the plugin registry again.

            Unassigned Unassigned
            swf Yves Schumann
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: