[JIRA] (JENKINS-58403) Issue marked as new when the issue did exist in a previous build but on a different line

15 views
Skip to first unread message

juliehirani@hotmail.com (JIRA)

unread,
Jul 9, 2019, 7:36:03 AM7/9/19
to jenkinsc...@googlegroups.com
Julie Shamji created an issue
 
Jenkins / Improvement JENKINS-58403
Issue marked as new when the issue did exist in a previous build but on a different line
Issue Type: Improvement Improvement
Assignee: Ulli Hafner
Components: warnings-ng-plugin
Created: 2019-07-09 11:35
Priority: Minor Minor
Reporter: Julie Shamji

We have an issue which existed for a while, which is logged as which shows the issue is 24 days old:

 

 

In the next build, a change has been made to this file which moved this method to a new line, but the method remained unchanged. It is now logged as:

 

 

Are the new issues identified by line number or the line of code? The latter would be better as it is not a new issue even though it has moved lines.

 

This issue is a check style issue but this probably applies to all plugins.

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

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 9, 2019, 4:18:01 PM7/9/19
to jenkinsc...@googlegroups.com
Ulli Hafner commented on Improvement JENKINS-58403
 
Re: Issue marked as new when the issue did exist in a previous build but on a different line

The comparison is using a two pass algorithm: in the first pass the properties of the warning are compared. If one property differs (e.g., line number) then this warning is moved to a second pass. In the second pass, the actual code is compared. This is currently done by checking the context above and below the warning (5 lines). Did the content (or whitespace) in the surrounding lines change?

juliehirani@hotmail.com (JIRA)

unread,
Jul 10, 2019, 6:03:03 AM7/10/19
to jenkinsc...@googlegroups.com

I can confirm that there were no whitespace changes on this line.

There were new lines added within 5 lines of this change.

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 10, 2019, 6:09:06 AM7/10/19
to jenkinsc...@googlegroups.com
Ulli Hafner closed an issue as Duplicate
 
Change By: Ulli Hafner
Status: Open Closed
Resolution: Duplicate

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 10, 2019, 6:10:02 AM7/10/19
to jenkinsc...@googlegroups.com

juliehirani@hotmail.com (JIRA)

unread,
Jul 10, 2019, 6:12:02 AM7/10/19
to jenkinsc...@googlegroups.com

This has been marked as a duplicate, Could you tell me which record this is a duplicate of so I can keep track of its progress please?

juliehirani@hotmail.com (JIRA)

unread,
Jul 10, 2019, 6:13:02 AM7/10/19
to jenkinsc...@googlegroups.com
Julie Shamji updated an issue
 
Change By: Julie Shamji
Comment:
This has been marked as a duplicate, Could you tell me which record this is a duplicate of so I can keep track of its progress please?
Reply all
Reply to author
Forward
0 new messages