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

msbuild parser does not recognize linker warnings

      The msbuild parser already recognizes linker errors but not warnings (see JENKINS-3582).

      LINK : fatal error LNK1181: cannot open input file 'TestLib.lib'

      is correctly detected (see regression test in MsBuildParserTest.java). Warnings like 

      LINK : warning LNK4217: symbol 'XYZ' defined in 'abc.obj' is imported by 'def.obj' in function 'FGH'
      LINK : warning LNK4286: symbol 'XYZ' defined in 'abc.obj' is imported by 'def.obj'

       are not recognized. The issues seems to be in the regexp

      (.*)\\s*:.*error\\s*(LNK[0-9]+):\\s*(.*)
      

      in file https://github.com/jenkinsci/analysis-model/blob/master/src/main/java/edu/hm/hafner/analysis/parser/MsBuildParser.java#L27 that only detects errors not warnings.

       

       

          [JENKINS-63580] msbuild parser does not recognize linker warnings

          Stephan Pöhlsen created issue -
          Stephan Pöhlsen made changes -
          Description Original: The msbuild parser already recognizes linker errors but not warnings (see JENKINS-3582).

          {{LINK : fatal error LNK1181: cannot open input file 'TestLib.lib'}}

          is correctly detected (see regression test in MsBuildParserTest.java). Warnings like 

          {{LINK : warning LNK4217: symbol 'XYZ' defined in 'abc.obj' is imported by 'def.obj' in function 'FGH'}}
          {{LINK : warning LNK4286: symbol 'XYZ' defined in 'abc.obj' is imported by 'def.obj'}}

           are not recognized. The issues seems to be in the regexp

          {{(.*)\\s*:.*error\\s*(LNK[0-9]+):\\s*(.*)}}

          in file [https://github.com/jenkinsci/analysis-model/blob/master/src/main/java/edu/hm/hafner/analysis/parser/MsBuildParser.java#L27] that only detects errors not warnings.

           

           
          New: The msbuild parser already recognizes linker errors but not warnings (see JENKINS-3582).

          {{LINK : fatal error LNK1181: cannot open input file 'TestLib.lib'}}

          is correctly detected (see regression test in MsBuildParserTest.java). Warnings like 

          {{LINK : warning LNK4217: symbol 'XYZ' defined in 'abc.obj' is imported by 'def.obj' in function 'FGH'}}
          {{LINK : warning LNK4286: symbol 'XYZ' defined in 'abc.obj' is imported by 'def.obj'}}

           are not recognized. The issues seems to be in the regexp

          {noformat}
          (.*)\\s*:.*error\\s*(LNK[0-9]+):\\s*(.*)
          {noformat}

          in file [https://github.com/jenkinsci/analysis-model/blob/master/src/main/java/edu/hm/hafner/analysis/parser/MsBuildParser.java#L27] that only detects errors not warnings.

           

           
          Ulli Hafner made changes -
          Assignee Original: Ulli Hafner [ drulli ]
          Labels New: help-wanted
          Ulli Hafner made changes -
          Labels Original: help-wanted New: help-wanted newbie-friendly
          Ulli Hafner made changes -
          Labels Original: help-wanted newbie-friendly New: help-wanted newbie-friendly tdd testing-course
          Ulli Hafner made changes -
          Epic Link New: JENKINS-66992 [ 213344 ]
          Ulli Hafner made changes -
          Rank New: Ranked higher
          katharina Winkler made changes -
          Assignee New: katharina Winkler [ hm_kwinkler22 ]
          katharina Winkler made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Ulli Hafner made changes -
          Epic Link Original: JENKINS-66992 [ 213344 ]
          Labels Original: help-wanted newbie-friendly tdd testing-course New: help-wanted newbie-friendly
          Ulli Hafner made changes -
          Status Original: In Progress [ 3 ] New: Open [ 1 ]

            pyatizbyantsevia Ilya Pyatizbyantsev
            poehlsen Stephan Pöhlsen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: