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

warnings-plugin counts wrong

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: warnings-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.476, warnings 4.6 and 4.13
    • Similar Issues:

      Description

      This has been seen both with MSBuild, GCC, and custom parsers.
      A build has e.g. 82 warnings, up from 65. On the build status page, it's reported as 28 new warnings and 11 fixed. When clicking through, I might get actual lists of 18 new and 1 fixed - that was the case the other day.
      Today, when I look at that build, it apparently has forgotten all warnings and display any of them.
      The custom parser has a tendency to report that all warnings are both new and fixed. At least it's e.g. 10 warnings, 10 new, 10 fixed. These warnings are given at file level, so I let them have line number 0. This used to work fine.

      My users are rather impatient with regards to this, so it's hard to get a good consistent view of what's happening when I change something, but I'll try to see if I can get some "better" info.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          src/main/java/hudson/plugins/analysis/core/AbstractAnnotationParser.java
          src/main/java/hudson/plugins/analysis/util/model/AbstractAnnotation.java
          http://jenkins-ci.org/commit/analysis-core-plugin/7e5f781771b50a3e24b5c10f66fd72000a001adc
          Log:
          [FIXED JENKINS-14821]: Fixed equals method.

          Compare: https://github.com/jenkinsci/analysis-core-plugin/compare/13d87628c1c5...7e5f781771b5

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/hudson/plugins/analysis/core/AbstractAnnotationParser.java src/main/java/hudson/plugins/analysis/util/model/AbstractAnnotation.java http://jenkins-ci.org/commit/analysis-core-plugin/7e5f781771b50a3e24b5c10f66fd72000a001adc Log: [FIXED JENKINS-14821] : Fixed equals method. Compare: https://github.com/jenkinsci/analysis-core-plugin/compare/13d87628c1c5...7e5f781771b5
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          pom.xml
          src/test/java/hudson/plugins/warnings/WarningsDifferencerTest.java
          src/test/resources/hudson/plugins/warnings/issue14821.txt
          http://jenkins-ci.org/commit/warnings-plugin/9152a9d243197a2522b547b082e05e8fbd57d92a
          Log:
          [FIXED JENKINS-14821]: Fixed equals method.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: pom.xml src/test/java/hudson/plugins/warnings/WarningsDifferencerTest.java src/test/resources/hudson/plugins/warnings/issue14821.txt http://jenkins-ci.org/commit/warnings-plugin/9152a9d243197a2522b547b082e05e8fbd57d92a Log: [FIXED JENKINS-14821] : Fixed equals method.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          pom.xml
          http://jenkins-ci.org/commit/warnings-plugin/cff6a886ae0fc74760b03623099bbac8dac313dc
          Log:
          JENKINS-14821: Upgrade to analysis-core 1.47.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: pom.xml http://jenkins-ci.org/commit/warnings-plugin/cff6a886ae0fc74760b03623099bbac8dac313dc Log: JENKINS-14821 : Upgrade to analysis-core 1.47.
          Hide
          torbent torbent added a comment -

          Works for us now (well, for some time). Thanks for fixing.

          Show
          torbent torbent added a comment - Works for us now (well, for some time). Thanks for fixing.
          Hide
          drulli Ulli Hafner added a comment -

          Integrated in Jenkins Analysis Plug-ins (Compile) #609
          [FIXED JENKINS-14821]: Fixed equals method. (Revision 7e5f781771b50a3e24b5c10f66fd72000a001adc)

          Result = SUCCESS

          Show
          drulli Ulli Hafner added a comment - Integrated in Jenkins Analysis Plug-ins (Compile) #609 [FIXED JENKINS-14821] : Fixed equals method. (Revision 7e5f781771b50a3e24b5c10f66fd72000a001adc) Result = SUCCESS

            People

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

              Dates

              • Created:
                Updated:
                Resolved: