apigee / devrel

Common solutions and tools developed for Apigee
Apache License 2.0
181 stars 159 forks source link

Reduce noise in nightly log file #622

Closed danistrebel closed 1 year ago

danistrebel commented 1 year ago

The log file is quite long at the moment making it hard to find the reason for failing nightlies

$ LOG_LINES=$(cat $LOG_FILE | wc -l)                                                                                                                                                                                                      
$ echo $LOG_LINES                                                                                                                                                                                                                         
   45536

Upon visual inspection there are a still a lot of MVN transfer process logs (can be disabled in mvn > 3.6.1)

$ MVNTP_LINES=$(cat $LOG_FILE | grep "Progress (" | wc -l)
$ echo "$MVNTP_LINES ($(($MVNTP_LINES*100 / $LOG_LINES))%)"                                                                                                                                                                               
   20818 (45%)

Even though the TP logs are disabled in Sackmesser the following projects still emit verbose TP logs:

danistrebel commented 1 year ago

Looks like it worked. Checking tonight's nightly log

$ cat $LOG_FILE_AFTER_PR | wc -l

20577