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

Multiple Test Reports Graphs and Links in Job Page

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • junit-plugin, xunit-plugin
    • Jenkins version 1.594
      JUnit Plugin Version - 1.3
      xUnit Plugin Version - 1.92
      All the above are latest at the time of posting this issue.

      I've upgraded Jenkins from 1.575 to 1.594. After updating, then I open the job page, I see 2 graphs and links for the test reports. Though test reports are correct and available, there are 2 instance of it pointing to the same URLs.

      I use xUnit plugin to publish my JUnit reports as I needed a way to change the build status based on the test PASS/FAIL count that I wanted which I was not able to do in JUnit plugin.

      Also, all the builds are not shown in the graphs. In the reference image attached, I've been using both Cobertura and xUnit for all the builds, but test graph starts only from build #322 while it should've started from build #291 as in the Cobertura graph.

      I've attached the screen shot of the job page and config page for reference.

      And the config.xml has the following content under the publishers tag

      <publishers>
      <xunit plugin="xunit@1.90"></>
      <hudson.plugins.cobertura.CoberturaPublisher plugin="cobertura@1.9.5"></>
      <hudson.tasks.ArtifactArchiver></>
      </publishers>

      Removed tag contents for brevity.

          [JENKINS-26077] Multiple Test Reports Graphs and Links in Job Page

          Jesse Glick added a comment -

          all the builds are not shown in the graphs

          Probably unrelated; see JENKINS-25340.

          Jesse Glick added a comment - all the builds are not shown in the graphs Probably unrelated; see JENKINS-25340 .

          Jesse Glick added a comment -

          The issue is that while JUnitResultArchiver removed its getProjectActions override in favor of implementing SimpleBuildStep.LastBuildAction, XUnitPublisher continues to implement getProjectAction, so both are used and two TestResultProjectAction instances are included in Job.getAllActions.

          Jesse Glick added a comment - The issue is that while JUnitResultArchiver removed its getProjectActions override in favor of implementing SimpleBuildStep.LastBuildAction , XUnitPublisher continues to implement getProjectAction , so both are used and two TestResultProjectAction instances are included in Job.getAllActions .

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/java/hudson/tasks/junit/TestResultAction.java
          http://jenkins-ci.org/commit/junit-plugin/081305a2f7bfc25a6dee20f6b1e617fa6dcd2a70
          Log:
          [FIXED JENKINS-26077] Be sure not to add two copies of TestResultProjectAction to the job.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/hudson/tasks/junit/TestResultAction.java http://jenkins-ci.org/commit/junit-plugin/081305a2f7bfc25a6dee20f6b1e617fa6dcd2a70 Log: [FIXED JENKINS-26077] Be sure not to add two copies of TestResultProjectAction to the job.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/java/hudson/tasks/junit/TestResultAction.java
          http://jenkins-ci.org/commit/junit-plugin/49139a4854e7eb596980e95d22e16f7c7258e877
          Log:
          Merge pull request #18 from jglick/duplicated-TestResultProjectAction-JENKINS-26077

          JENKINS-26077 Duplicated TestResultProjectAction

          Compare: https://github.com/jenkinsci/junit-plugin/compare/4e0eaee03105...49139a4854e7

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/hudson/tasks/junit/TestResultAction.java http://jenkins-ci.org/commit/junit-plugin/49139a4854e7eb596980e95d22e16f7c7258e877 Log: Merge pull request #18 from jglick/duplicated-TestResultProjectAction- JENKINS-26077 JENKINS-26077 Duplicated TestResultProjectAction Compare: https://github.com/jenkinsci/junit-plugin/compare/4e0eaee03105...49139a4854e7

          Jacek Tomaka added a comment -

          Thank You for that fix! It was annoying me for a while now. Great job!

          Jacek Tomaka added a comment - Thank You for that fix! It was annoying me for a while now. Great job!

          Vivekanand SV added a comment -

          Thanks for the fix, its working perfectly.

          Vivekanand SV added a comment - Thanks for the fix, its working perfectly.

          Still experiencing this issue on JUnit Plugin v1.6, Jenkins 1.590.

          Shawn Scrivner added a comment - Still experiencing this issue on JUnit Plugin v1.6, Jenkins 1.590.

          barbara added a comment -

          Still also experiencing this issue.

          Configuration :
          Jenkins 1.651.1
          JUnit Plugin 1.2-beta-4
          Xunit Plugin 1.101

          barbara added a comment - Still also experiencing this issue. Configuration : Jenkins 1.651.1 JUnit Plugin 1.2-beta-4 Xunit Plugin 1.101

          Ashish Rathi added a comment -

          This issue has still not been resolved,
          I am using XUnit plugin and JUnit component.
          I can see multiple "Latest Test Result" links,along with Multiple graphs.
          Also the graphs have no data,where as the test cases can be seen by clicking on the "Latest Test Result" link.
          Also the Test Result Trend has always the latest build number only and is always empty,

          Ashish Rathi added a comment - This issue has still not been resolved, I am using XUnit plugin and JUnit component. I can see multiple "Latest Test Result" links,along with Multiple graphs. Also the graphs have no data,where as the test cases can be seen by clicking on the "Latest Test Result" link. Also the Test Result Trend has always the latest build number only and is always empty,

          Nikolas Falco added a comment - - edited

          I can not replicate what ashu3112 wrote with recent version of XUnit 3 plugin

          Nikolas Falco added a comment - - edited I can not replicate what ashu3112 wrote with recent version of XUnit 3 plugin

            nfalco Nikolas Falco
            svvivek Vivekanand SV
            Votes:
            18 Vote for this issue
            Watchers:
            26 Start watching this issue

              Created:
              Updated:
              Resolved: