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

Warnings Plugin Doubling my Warnings Count

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: warnings-plugin
    • Labels:
      None
    • Environment:
      XP-32, Hudson running from .war file, building a .NET project
    • Similar Issues:

      Description

      I have a .NET project built via rake task that outputs the msbuild.log to a file. The warnings plugin is set to parse that file. It reports double the number of warnings that are actually in the log file.

      The breakdown of warnings generated in the warnings details is correct, however the graph on the project page reports double the number of warnings.

        Attachments

          Activity

          Hide
          drulli Ulli Hafner added a comment -

          Which parsers are you using?

          Can you please attach one of the parsed log files (with expected #warnings)?
          Is there any chance that the file with the warnings is found twice in your workspace? The plug-in counts the totals based on the found warnings, however the breakdown uses a set which eleminates dplicates.

          Show
          drulli Ulli Hafner added a comment - Which parsers are you using? Can you please attach one of the parsed log files (with expected #warnings)? Is there any chance that the file with the warnings is found twice in your workspace? The plug-in counts the totals based on the found warnings, however the breakdown uses a set which eleminates dplicates.
          Hide
          drulli Ulli Hafner added a comment -

          Are you additionally parsing the console log?

          Show
          drulli Ulli Hafner added a comment - Are you additionally parsing the console log?
          Hide
          drulli Ulli Hafner added a comment -

          Are there any comments from the plug-in in the console log?

          E.g.,
          [WARNINGS] Parsing warnings in console log...
          [WARNINGS] Using set difference to compute new warnings
          [WARNINGS] Setting build status to UNSTABLE since total number of annotations exceeds the threshold 0: [HIGH, NORMAL, LOW]

          Show
          drulli Ulli Hafner added a comment - Are there any comments from the plug-in in the console log? E.g., [WARNINGS] Parsing warnings in console log... [WARNINGS] Using set difference to compute new warnings [WARNINGS] Setting build status to UNSTABLE since total number of annotations exceeds the threshold 0: [HIGH, NORMAL, LOW]
          Hide
          jthigpen jthigpen added a comment -

          I am using the msbuild parser. I will attach one of the log files.

          There is only one copy of the msbuild.log file and the search path I use is **/build/msbuild.log

          Console log parsing is unchecked.

          [WARNINGS] Parsing warnings in files: **/build/msbuild.log
          [WARNINGS] Successfully parsed file E:\hudson\jobs\Network Discovery\workspace\KND\build\msbuild.log of module build with 150 warnings.

          Those are the only 2 [WARNINGS] lines in the log.

          It started happening after I upgraded hudson, but I do not know from which version to which.

          Show
          jthigpen jthigpen added a comment - I am using the msbuild parser. I will attach one of the log files. There is only one copy of the msbuild.log file and the search path I use is **/build/msbuild.log Console log parsing is unchecked. [WARNINGS] Parsing warnings in files: **/build/msbuild.log [WARNINGS] Successfully parsed file E:\hudson\jobs\Network Discovery\workspace\KND\build\msbuild.log of module build with 150 warnings. Those are the only 2 [WARNINGS] lines in the log. It started happening after I upgraded hudson, but I do not know from which version to which.
          Hide
          jthigpen jthigpen added a comment -

          Here is the msbuild.log logfile.

          Show
          jthigpen jthigpen added a comment - Here is the msbuild.log logfile.
          Hide
          drulli Ulli Hafner added a comment -

          Ok, now I understand. Every warning is contained twice in your log file. Is there a special script that collects the warnings at the tail of the log, or is this the default behavior of the msbuild?

          Seems that I already need a set to compute the warnings totals. Currently this is done after that.

          Show
          drulli Ulli Hafner added a comment - Ok, now I understand. Every warning is contained twice in your log file. Is there a special script that collects the warnings at the tail of the log, or is this the default behavior of the msbuild? Seems that I already need a set to compute the warnings totals. Currently this is done after that.

            People

            • Assignee:
              drulli Ulli Hafner
              Reporter:
              jthigpen jthigpen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: