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

xUnit reports yield duplicated "Test Result Trend" charts

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • xunit-plugin
    • None
    • Ubuntu 12.04, I'm using Jenkins 1.588 and xUnit 1.92. Using xUnit to interface with output from Boost Test.

      When using xUnit to interpret Boost Test XML log files in a Freestyle Project, Jenkins serves up duplicated "Test Result Trend" charts on the project page.

      Interesting behavior of note that made it seem like an xUnit issue to me:

      1. if I turn on the xUnit post-build reporting and perform a build, I get two identical "Test Result Trend" charts pointing to the same link.
      2. If then configure the project by deleting the xUnit post-build action and refresh the browser before rebuilding I only see one "Test Result Trend" chart, even if I navigate away from the project page and then back.
      3. If I then rebuild in the "no reporting" state, then as expected I get no charts.

      The resulting junitResult.xml file in my builds looks like:

      <result plugin="junit@1.2">
      <suites>
      <suite>
      <file>/var/lib/jenkins/jobs/host_common/workspace/generatedJUnitFiles/BoostTest/TEST-682740763.xml</file>
      <name>MergedTestSuite</name>
      <duration>0.0</duration>
      <cases>
      <case>
      <duration>0.0</duration>
      <className>testHostCommon./var/lib/jenkins/jobs/host_common/workspace/erTools/src/test/testPack</className>
      <testName>testPack</testName>
      <skipped>false</skipped>
      <stdout> [Info] - check 1 == 1 passed == [File] - /var/lib/jenkins/jobs/host_common/workspace/erTools/src/test/testPack.cpp == [Line] - 8 </stdout>
      <failedSince>0</failedSince>
      </case>
      </cases>
      </suite>
      </suites>
      <duration>0.0</duration>
      <keepLongStdio>true</keepLongStdio>
      </result>

          [JENKINS-25527] xUnit reports yield duplicated "Test Result Trend" charts

          Sorry – meant to add that this looked different than JENKINS-24608 as that issue seemed to be directly related to the Matrix Project plugin.

          Watertight Door added a comment - Sorry – meant to add that this looked different than JENKINS-24608 as that issue seemed to be directly related to the Matrix Project plugin.

          Jason Davis added a comment - - edited

          Experiencing the same problem after upgrading to v1.92 (I only performed plugin upgrades) - however, I noticed the issue with existing reports. The duplicate chart appeared right after restarting Jenkins and before any builds occurred. I'm generating mstest results in a freestyle project on a windows host and slave. jenkins version is 1.585. Downgrading to v1.91 didn't help resolve the duplicate test result charts issue.

          ---------
          False alarm - just noticed the problem in another project not using xUnit and reverting the Junit plugin (which I had also upgraded) to the previous version resolved the problem.

          Jason Davis added a comment - - edited Experiencing the same problem after upgrading to v1.92 (I only performed plugin upgrades) - however, I noticed the issue with existing reports. The duplicate chart appeared right after restarting Jenkins and before any builds occurred. I'm generating mstest results in a freestyle project on a windows host and slave. jenkins version is 1.585. Downgrading to v1.91 didn't help resolve the duplicate test result charts issue. --------- False alarm - just noticed the problem in another project not using xUnit and reverting the Junit plugin (which I had also upgraded) to the previous version resolved the problem.

          pascal_martin added a comment -

          pascal_martin added a comment - I think is related to this issue https://issues.jenkins-ci.org/browse/JENKINS-26077?focusedCommentId=220058&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-220058 I downgrade junit plugin to 1.0 and no more duplicate for me

          sweetfa added a comment -

          I have the same issue in an MSBuild project using Galio mbUnit

          sweetfa added a comment - I have the same issue in an MSBuild project using Galio mbUnit

          Tim Schneider added a comment -

          Is this issue going to make it to the commit stage? I can test if needed.

          Tim Schneider added a comment - Is this issue going to make it to the commit stage? I can test if needed.

            gbois Gregory Boissinot
            wtdoor95 Watertight Door
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: