Quantcast

[JIRA] (JENKINS-14773) Warnings plugin has renumbered internally - breaks builds!

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14773) Warnings plugin has renumbered internally - breaks builds!

JIRA noreply@jenkins-ci.org
Issue Type: Bug Bug
Assignee: Ulli Hafner
Components: warnings
Created: 13/Aug/12 1:38 PM
Description:

We have some jobs where we fail builds if there are new warnings. After upgrading to warnings-4.13, it appears that the "MSBuild" parser has changed its internal number from 25 to 27, causing all warnings to be counted as New, thus failing every single build since the upgrade.
I think the renumbering is to blame because I can see in my logs that a request for a file called "compiler-27-warnings.xml" fails. Such a file is indeed present in the new builds, whereas the old builds instead have a file called "compiler-25-warnings.xml". I also have files called "compiler-1-warnings.xml" (dynamic parser) and "compiler-warnings.xml" (all parsers combined).
So it looks to me that MSBuild has changed value (an enum, perhaps?). This breaks all our builds. We can probably save them by re-configuring to not check for new warnings, build once, and then re-enable the check, but I don't really want to do that every time new parsers are added to the plugin!
So may I suggest that it be written explicitly in the plugin code that existing parsers under no circumstances should change number?
Or that the filenames be based on something a little more "predictable" than an enum? Or perhaps the file with all warnings could be used instead?

Environment: Jenkins 1.476, warnings 4.13
Project: Jenkins
Priority: Major Major
Reporter: torbent
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14773) Warnings plugin has renumbered internally - breaks builds!

JIRA noreply@jenkins-ci.org
torbent commented on Bug JENKINS-14773

Also (but I don't know if it's the same root cause), for the dynamic parser it reports (e.g.) 48 new warnings, but when following the link to those new warnings, I get an empty list.
There are no messages in my Jenkins log for this.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14773) Warnings plugin has renumbered internally - breaks builds!

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
torbent commented on Bug JENKINS-14773

So, even after the "don't check - check again" cycle and a couple of successful builds, the plugin behaved badly (counting wildly) so I reverted to the previous version, which in our case turned out to be 4.6.
It still doesn't count just right, but I'll make a new issue for that.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Loading...