lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Rowe (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (LUCENE-4092) Check what's Jenkins pattern for e-mailing log fragments (so that it includes failures).
Date Sun, 17 Jun 2012 01:38:42 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-4092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13296183#comment-13296183
] 

Steven Rowe edited comment on LUCENE-4092 at 6/17/12 1:36 AM:
--------------------------------------------------------------

Here is the *Editable Email Notification*/*Default Content* configuration I applied to all
non-Maven ASF Jenkins jobs (modulo whitespace in front of the trailing line-continuation backslashes):

*edit*: BUILD_LOG_REGEX -> BUILD_LOG_MULTILINE_REGEX

{noformat}
Build: ${BUILD_URL}

${FAILED_TESTS}

Build Log:
${BUILD_LOG_MULTILINE_REGEX,regex="(?x:                                                  
                                   \
# Compilation failures                                                                   
                         \
(?:.*\\[javac\\].*\\r?\\n)*.*\\[javac\\]\\s+[1-9]\\d*\\s+error.*\\r?\\n                  
                         \
# Test failures                                                                          
                         \
|.*\\[junit4\\]\\s*Suite:.*[\\r\\n]+.*\\[junit4\\]\\s*(?!Completed)(?!IGNOR)\\S(?s:.*?)<<<\\s*FAILURES!
           \
# Source file license problems                                                           
                         \
|.*rat-sources:.*(?:\\r?\\n.*\\[echo\\].*)*\\s+[1-9]\\d*\\s+Unknown\\s+Licenses.*\\r?\\n(?:.*\\[echo\\].*\\r?\\n)*
\
# Third-party dependency license problems - include 2 preceding lines and 1 following line
                        \
|(?:.*\\r?\\n){2}.*\\[licenses\\]\\s+MISSING\\s+sha1(?:.*\\r?\\n){2}                     
                         \
# Javadoc warnings                                                                       
                         \
|(?:.*\\[javadoc\\].*\\r?\\n)*.*\\[javadoc\\]\\s*[1-9]\\d*\\s+warnings.*\\r?\\n          
                         \
# Other javadocs problems: broken links and missing javadocs                             
                         \
|.*javadocs-lint:.*\\r?\\n(?:.*\\[echo\\].*\\r?\\n)*                                     
                         \
# Thread dumps - include 1 preceding line and the remainder of the log                   
                         \
|.*\\r?\\n.*Full thread dump(?s:.*)                                                      
                         \
# Jenkins problems - include the remainder of the log                                    
                         \
|.*(?:FATAL|ERROR):(?s:.*)                                                               
                         \
# Include the Ant call stack - include the remainder of the log                          
                         \
|.*BUILD\\s+FAILED(?s:.*)                                                                
                         \
)"}
{noformat}

                
      was (Author: steve_rowe):
    Here is the *Editable Email Notification*/*Default Content* configuration I applied to
all non-Maven ASF Jenkins jobs (modulo whitespace in front of the trailing line-continuation
backslashes):

{noformat}
Build: ${BUILD_URL}

${FAILED_TESTS}

Build Log:
${BUILD_LOG_REGEX,regex="(?x:                                                            
                         \
# Compilation failures                                                                   
                         \
(?:.*\\[javac\\].*\\r?\\n)*.*\\[javac\\]\\s+[1-9]\\d*\\s+error.*\\r?\\n                  
                         \
# Test failures                                                                          
                         \
|.*\\[junit4\\]\\s*Suite:.*[\\r\\n]+.*\\[junit4\\]\\s*(?!Completed)(?!IGNOR)\\S(?s:.*?)<<<\\s*FAILURES!
           \
# Source file license problems                                                           
                         \
|.*rat-sources:.*(?:\\r?\\n.*\\[echo\\].*)*\\s+[1-9]\\d*\\s+Unknown\\s+Licenses.*\\r?\\n(?:.*\\[echo\\].*\\r?\\n)*
\
# Third-party dependency license problems - include 2 preceding lines and 1 following line
                        \
|(?:.*\\r?\\n){2}.*\\[licenses\\]\\s+MISSING\\s+sha1(?:.*\\r?\\n){2}                     
                         \
# Javadoc warnings                                                                       
                         \
|(?:.*\\[javadoc\\].*\\r?\\n)*.*\\[javadoc\\]\\s*[1-9]\\d*\\s+warnings.*\\r?\\n          
                         \
# Other javadocs problems: broken links and missing javadocs                             
                         \
|.*javadocs-lint:.*\\r?\\n(?:.*\\[echo\\].*\\r?\\n)*                                     
                         \
# Thread dumps - include 1 preceding line and the remainder of the log                   
                         \
|.*\\r?\\n.*Full thread dump(?s:.*)                                                      
                         \
# Jenkins problems - include the remainder of the log                                    
                         \
|.*(?:FATAL|ERROR):(?s:.*)                                                               
                         \
# Include the Ant call stack - include the remainder of the log                          
                         \
|.*BUILD\\s+FAILED(?s:.*)                                                                
                         \
)"}
{noformat}

                  
> Check what's Jenkins pattern for e-mailing log fragments (so that it includes failures).
> ----------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4092
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4092
>             Project: Lucene - Java
>          Issue Type: Sub-task
>          Components: general/test
>            Reporter: Dawid Weiss
>            Assignee: Steven Rowe
>            Priority: Trivial
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message