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

Superfluous INFO messages in console output

    Details

    • Similar Issues:

      Description

      During its work, the xUnit plugin prints an INFO message on the concole output for each file it processes.

      [xUnit] [INFO] - Converting ......xml

      That's rather annoying and I would like to have it stop doing that.

        Attachments

          Activity

          torbent torbent created issue -
          Hide
          torbent torbent added a comment -

          It's especially annoying because we have upwards of 300 unittest files. When a build fails, all we get in our emails is a list of these (in that context useless) messages.

          Show
          torbent torbent added a comment - It's especially annoying because we have upwards of 300 unittest files. When a build fails, all we get in our emails is a list of these (in that context useless) messages.
          torbent torbent made changes -
          Field Original Value New Value
          Priority Minor [ 4 ] Major [ 3 ]
          gbois Gregory Boissinot made changes -
          Issue Type Bug [ 1 ] Improvement [ 4 ]
          Priority Major [ 3 ] Minor [ 4 ]
          gbois Gregory Boissinot made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Hide
          gbois Gregory Boissinot added a comment -

          Fix available in trunk.
          Have you got the possibility to build the version and test it?

          Show
          gbois Gregory Boissinot added a comment - Fix available in trunk. Have you got the possibility to build the version and test it?
          Hide
          gbois Gregory Boissinot added a comment -

          The new procedure for showing the details:
          Manage Jenkins > System Log > Add new log recorder.
          Give a name as 'xUnit Logger' and add the following loggers:

          • com.thalesgroup.hudson.plugins.xunit.service.XUnitConversionService for a severity as 'all'
          • com.thalesgroup.hudson.plugins.xunit.service.XUnitValidationService for a severity as 'all'
          Show
          gbois Gregory Boissinot added a comment - The new procedure for showing the details: Manage Jenkins > System Log > Add new log recorder. Give a name as 'xUnit Logger' and add the following loggers: com.thalesgroup.hudson.plugins.xunit.service.XUnitConversionService for a severity as 'all' com.thalesgroup.hudson.plugins.xunit.service.XUnitValidationService for a severity as 'all'
          Hide
          torbent torbent added a comment -

          Sounds fine to me. And no, I don't have the possibility to build and test plugins, sorry.

          Show
          torbent torbent added a comment - Sounds fine to me. And no, I don't have the possibility to build and test plugins, sorry.
          Hide
          gbois Gregory Boissinot added a comment -

          Available with xUnit 1.15

          Show
          gbois Gregory Boissinot added a comment - Available with xUnit 1.15
          gbois Gregory Boissinot made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          tapiomtr tapiomtr added a comment - - edited

          I'l try that, but nothing find out from the xUnit logger view? xUnit 1.15 installed.
          Here is the content of the xUnit Logger view:

          <?xml version='1.0' encoding='UTF-8'?>
          <log>
          <name>xUnit Logger</name>
          <targets>
          <target>
          <name>com.thalesgroup.hudson.plugins.xunit.service.XUnitConversionService</name>
          <level>-2147483648</level>
          </target>
          <target>
          <name>com.thalesgroup.hudson.plugins.xunit.service.XUnitValidationServic</name>
          <level>-2147483648</level>
          </target>
          </targets>
          </log>

          Show
          tapiomtr tapiomtr added a comment - - edited I'l try that, but nothing find out from the xUnit logger view? xUnit 1.15 installed. Here is the content of the xUnit Logger view: <?xml version='1.0' encoding='UTF-8'?> <log> <name>xUnit Logger</name> <targets> <target> <name>com.thalesgroup.hudson.plugins.xunit.service.XUnitConversionService</name> <level>-2147483648</level> </target> <target> <name>com.thalesgroup.hudson.plugins.xunit.service.XUnitValidationServic</name> <level>-2147483648</level> </target> </targets> </log>
          Hide
          gbois Gregory Boissinot added a comment -

          Sorry for not getting back to you for that before.
          The new logger is : com.thalesgroup.hudson.plugins.xunit.service.XUnitService

          Show
          gbois Gregory Boissinot added a comment - Sorry for not getting back to you for that before. The new logger is : com.thalesgroup.hudson.plugins.xunit.service.XUnitService
          Hide
          torbent torbent added a comment -

          I've been slow to convert the affected jobs to Jenkins, but I can confirm that the superfluous INFOs have gone. Haven't checked the new Logger.

          Show
          torbent torbent added a comment - I've been slow to convert the affected jobs to Jenkins, but I can confirm that the superfluous INFOs have gone. Haven't checked the new Logger.
          torbent torbent made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Wolfgang Schell
          Path:
          src/main/java/org/jenkinsci/plugins/xunit/service/XUnitConversionService.java
          http://jenkins-ci.org/commit/xunit-plugin/098d76f8012a33f93bec1531b9cfd47a08b6a5ae
          Log:
          Skip log message which spams log output on console

          As already described in old issue JENKINS-7612 (https://issues.jenkins-ci.org/browse/JENKINS-7612) we get a couple of hundred of lines of console output in our Jenkins build (basically one line per test class!):

          [xUnit] [INFO] - Converting '/var/buildlocal/jenkins/jobs/gerrit-ci-job/workspace@3/platform/target/test-results/myproject/TEST-com.company.Testcase12345.xml' .

          The workarounds mentioned in JENKINS-7612 didn't work for us (I guess they might have worked for some ancient version) and looking at the code of src/main/java/org/jenkinsci/plugins/xunit/service/XUnitLog.java its clear that there is no filtering. IMHO this log information provides no value at all so this change removes it to avoid spamming the build output.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Wolfgang Schell Path: src/main/java/org/jenkinsci/plugins/xunit/service/XUnitConversionService.java http://jenkins-ci.org/commit/xunit-plugin/098d76f8012a33f93bec1531b9cfd47a08b6a5ae Log: Skip log message which spams log output on console As already described in old issue JENKINS-7612 ( https://issues.jenkins-ci.org/browse/JENKINS-7612 ) we get a couple of hundred of lines of console output in our Jenkins build (basically one line per test class!): [xUnit] [INFO] - Converting '/var/buildlocal/jenkins/jobs/gerrit-ci-job/workspace@3/platform/target/test-results/myproject/TEST-com.company.Testcase12345.xml' . The workarounds mentioned in JENKINS-7612 didn't work for us (I guess they might have worked for some ancient version) and looking at the code of src/main/java/org/jenkinsci/plugins/xunit/service/XUnitLog.java its clear that there is no filtering. IMHO this log information provides no value at all so this change removes it to avoid spamming the build output.
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 137711 ] JNJira + In-Review [ 204576 ]

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              torbent torbent
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: