Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-63338

History graph keeps loading forever when there are duplicate labels in the build history

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • echarts-api-plugin
    • None
    • Jenkins 2.251, JUnit Plugin 1.30

      Following the recent migration of the history graph to ECharts now the graph does not show in case there are duplicated labels among builds. The graph keeps loading forever and there is this stack trace being printed to the Jenkins log:

       

      2020-08-07 12:25:30.733+0000 [id=16816] WARNING h.i.i.InstallUncaughtExceptionHandler#handleException: Caught unhandled exception with ID bf2b67fe-daed-40c4-ba05-a1097921d2ed
      java.lang.IllegalStateException: Label already registered: Release 0.4.1
       at edu.hm.hafner.echarts.LinesDataSet.add(LinesDataSet.java:67)
       at edu.hm.hafner.echarts.LinesDataSet.add(LinesDataSet.java:90)
       at edu.hm.hafner.echarts.SeriesBuilder.createDataSetPerBuildNumber(SeriesBuilder.java:148)
       at edu.hm.hafner.echarts.SeriesBuilder.createDataSet(SeriesBuilder.java:82)
       at hudson.tasks.test.TestResultTrendChart.create(TestResultTrendChart.java:14)
       at hudson.tasks.test.TestResultProjectAction.createChartModel(TestResultProjectAction.java:111)
       at hudson.tasks.test.TestResultProjectAction.getBuildTrendModel(TestResultProjectAction.java:182)
       at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
       at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
       at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
       at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)
       at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145)
       at org.kohsuke.stapler.MetaClass$JavaScriptProxyMethodDispatcher.doDispatch(MetaClass.java:637)
       at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
       at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766)
       
      

      In order to reproduce: run several builds, then edit the build information for at least two of them setting the same DisplayName for both.

            Unassigned Unassigned
            gjanohp Guillermo Jano
            Votes:
            8 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: