[JIRA] (JENKINS-56737) Java compiler warnings parser can't cope with Maven timestamps in log

2 views
Skip to first unread message

cristalp@java.net (JIRA)

unread,
Mar 25, 2019, 6:05:02 AM3/25/19
to jenkinsc...@googlegroups.com
cristalp created an issue
 
Jenkins / Bug JENKINS-56737
Java compiler warnings parser can't cope with Maven timestamps in log
Issue Type: Bug Bug
Assignee: Ulli Hafner
Components: analysis-model-api-plugin
Created: 2019-03-25 10:04
Priority: Minor Minor
Reporter: cristalp

We switched on Maven timestamps in our log, since it's a handy way to check build times.

In Maven, this is done by editing conf/logging/simplelogger.properties and setting org.slf4j.simpleLogger.showDateTime=true

This results in compiler warnings like this:

08:52:34.395 [WARNING] /my/path/to/workspace/src/main/java/my/package/TemporalJsonSeqFiling.java:[86,76] redundant cast to long

( given that the date/time format is org.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss.SSS )

Taking a look at the source code, it seems that JAVAC_WARNING_PATTERN does a full match of the line, which does not accept that something could exist before [WARNING] .

We use other parsers for Checkstyle, PMD etc. and they work fine.

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

ullrich.hafner@gmail.com (JIRA)

unread,
Mar 25, 2019, 5:45:02 PM3/25/19
to jenkinsc...@googlegroups.com
Ulli Hafner commented on Bug JENKINS-56737
 
Re: Java compiler warnings parser can't cope with Maven timestamps in log

It does allow something in front of [WARNING] but that must be included in brackets. It is quite hard to solve that in general since the logger format could be changed to something completely different...

But I think it should be possible to improve that regex to ignore everything before [WARNING].

ullrich.hafner@gmail.com (JIRA)

unread,
Mar 25, 2019, 5:46:02 PM3/25/19
to jenkinsc...@googlegroups.com
Ulli Hafner updated an issue
 
Change By: Ulli Hafner
Component/s: analysis-model
Component/s: analysis-model-api-plugin
Labels: help-wanted newbie-friendly

ullrich.hafner@gmail.com (JIRA)

unread,
Mar 25, 2019, 5:47:02 PM3/25/19
to jenkinsc...@googlegroups.com
Ulli Hafner assigned an issue to Unassigned
Change By: Ulli Hafner
Assignee: Ulli Hafner

tobiasschaffner87@outlook.com (JIRA)

unread,
Mar 31, 2019, 11:01:02 AM3/31/19
to jenkinsc...@googlegroups.com

ullrich.hafner@gmail.com (JIRA)

unread,
Apr 2, 2019, 5:33:02 AM4/2/19
to jenkinsc...@googlegroups.com
Ulli Hafner started work on Bug JENKINS-56737
 
Change By: Ulli Hafner
Status: Open In Progress

ullrich.hafner@gmail.com (JIRA)

unread,
Apr 2, 2019, 5:35:08 AM4/2/19
to jenkinsc...@googlegroups.com

cristalp@java.net (JIRA)

unread,
Apr 3, 2019, 4:01:01 AM4/3/19
to jenkinsc...@googlegroups.com

ullrich.hafner@gmail.com (JIRA)

unread,
May 8, 2019, 6:20:12 PM5/8/19
to jenkinsc...@googlegroups.com
Change By: Ulli Hafner
Status: Fixed but Unreleased Resolved
Released As: 5.0.0 (analysis-model and warnings-ng)
Reply all
Reply to author
Forward
0 new messages