[JIRA] (JENKINS-56613) MSBuild parser reports errors when message contains tool instead of file

3 views
Skip to first unread message

lipinski@jam-software.com (JIRA)

unread,
Mar 19, 2019, 4:17:02 AM3/19/19
to jenkinsc...@googlegroups.com
Artur Lipinski created an issue
 
Jenkins / Bug JENKINS-56613
MSBuild parser reports errors when message contains tool instead of file
Issue Type: Bug Bug
Assignee: Ulli Hafner
Components: warnings-ng-plugin
Created: 2019-03-19 08:16
Environment: Jenkins: 2.164.1
warnings-ng: 4.0.0
Priority: Minor Minor
Reporter: Artur Lipinski

 

In some of our jobs we have seen messages like:

13:19:52 [MSBuild] [ERROR] - '//INTRANET/Releases/SmartTranslator/ConsoleTranslator.exe', IO exception has been thrown: java.io.UncheckedIOException: java.nio.charset.UnmappableCharacterException: Input length = 1
17:19:33 [MSBuild] [-ERROR-] - 'rs', IO exception has been thrown: java.nio.file.NoSuchFileException: rs
17:19:33 [MSBuild] [-ERROR-] - 'NMAKE', IO exception has been thrown: java.nio.file.NoSuchFileException: NMAKE

The source of them seem to be these lines in the output:

16:43:02 \\INTRANET\Releases\SmartTranslator\ConsoleTranslator.exe: Warning ST: Could not translate string 'Expand f&olders larger than:'.
17:19:23 NMAKE : fatal error U1077: '.\Tests.exe' : return code '0x1'
17:19:23 NMAKE : fatal error U1077: '"C:\Program Files (x86)\Utils\NMAKE.EXE"' : return code '0x2'
16:55:11 rs: error 002: Renaming the File  was not possible. Message: The process cannot access the file '...' because it is being used by another process.

The problem for us is, that we also use the console parser plugin. When another tool reports a warning, the MSBuild parser reports an error because it has a problem with the tool and the job fails due to our configuration of the console parser plugin. As a workaround we currently execute the console parser plugin before the warnings-ng plugin.

Based on https://blogs.msdn.microsoft.com/msbuild/2006/11/02/msbuild-visual-studio-aware-error-messages-and-message-formats/ tool names are valid.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

ullrich.hafner@gmail.com (JIRA)

unread,
Mar 19, 2019, 4:31:02 AM3/19/19
to jenkinsc...@googlegroups.com
Ulli Hafner commented on Bug JENKINS-56613
 
Re: MSBuild parser reports errors when message contains tool instead of file

Can you please describe in more detail what the expected behavior should be?

lipinski@jam-software.com (JIRA)

unread,
Mar 19, 2019, 5:40:03 AM3/19/19
to jenkinsc...@googlegroups.com

We would expect that the MSBuild parser does not report any errors when a MSBuild warning contains a tool name instead of a file name.

From what we have seen, the tool name seems to be always just the name without an extension or path (the ConsoleTranslator.exe in the example above is an inhouse project and we can correct it). Would it be a sufficient solution to decide on the format of the tool/file name what the behavior should be? If the name does not contain a path or extension it is a tool and the parser treats it like this. Meaning that it will not report any errors because the file was not found or cannot be parsed with the used charset. In all other cases the parser treats the name as a filename and continues with the current behavior. The only edge case of this solution we can currently think of would be that a file has no extension and is located in the current working directory (no path information).

ullrich.hafner@gmail.com (JIRA)

unread,
Mar 20, 2019, 7:15:05 AM3/20/19
to jenkinsc...@googlegroups.com
Ulli Hafner assigned an issue to Unassigned
 
Change By: Ulli Hafner
Component/s: analysis-model
Component/s: warnings-ng-plugin
Labels: help-wanted newbie-friendly
Assignee: Ulli Hafner

ullrich.hafner@gmail.com (JIRA)

unread,
Mar 22, 2020, 1:04:03 PM3/22/20
to jenkinsc...@googlegroups.com
Ulli Hafner updated an issue
Change By: Ulli Hafner
Labels: help-wanted newbie-friendly testing-course
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

ullrich.hafner@gmail.com (JIRA)

unread,
Apr 29, 2020, 10:41:04 AM4/29/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages