Skip to content

Commit

Permalink
Reduce CI logging (#654)
Browse files Browse the repository at this point in the history
* Upgrade logback, filter junit and surefire from stacktraces

* Remove most DEBUG-level test logging

* Remove Maven Downloading/Downloaded messages (unless warnings)
  • Loading branch information
chrisgresty authored Apr 20, 2020
1 parent 3da7848 commit 53b7053
Show file tree
Hide file tree
Showing 17 changed files with 76 additions and 19 deletions.
7 changes: 5 additions & 2 deletions components/api/src/test/resources/conf/logback/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n%ex{full,
org.junit,
org.apache.maven.surefire}
</pattern>
</encoder>
</appender>

<root level="DEBUG">
<root level="INFO">
<appender-ref ref="STDOUT"/>
</root>
</configuration>
5 changes: 4 additions & 1 deletion components/client/src/test/integration/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n%ex{full,
org.junit,
org.apache.maven.surefire}
</pattern>
</encoder>
</appender>

Expand Down
4 changes: 3 additions & 1 deletion components/client/src/test/unit/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n%ex{full,
org.junit,
org.apache.maven.surefire}</pattern>
</encoder>
</appender>

Expand Down
5 changes: 4 additions & 1 deletion components/common/src/test/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n%ex{full,
org.junit,
org.apache.maven.surefire}
</pattern>
</encoder>
</appender>

Expand Down
7 changes: 5 additions & 2 deletions components/proxy/src/test/resources/conf/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n%ex{full,
org.junit,
org.apache.maven.surefire}
</pattern>
</encoder>
</appender>

<root level="DEBUG">
<root level="INFO">
<appender-ref ref="STDOUT"/>
</root>
</configuration>
5 changes: 4 additions & 1 deletion components/proxy/src/test/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n%ex{full,
org.junit,
org.apache.maven.surefire}
</pattern>
</encoder>
</appender>

Expand Down
7 changes: 5 additions & 2 deletions components/server/src/test/resources/conf/logback/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n%ex{full,
org.junit,
org.apache.maven.surefire}
</pattern>
</encoder>
</appender>

<root level="DEBUG">
<root level="INFO">
<appender-ref ref="STDOUT"/>
</root>
</configuration>
5 changes: 4 additions & 1 deletion components/server/src/test/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n%ex{full,
org.junit,
org.apache.maven.surefire}
</pattern>
</encoder>
</appender>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
<java-uuid-generator.version>3.1.5</java-uuid-generator.version>

<!-- Logging Versions -->
<logback.version>1.1.2</logback.version>
<logback.version>1.1.10</logback.version>
<slf4j.version>1.7.30</slf4j.version>

<scala.version>2.12</scala.version>
Expand Down
16 changes: 16 additions & 0 deletions support/testsupport/src/test/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n%ex{full,
org.junit,
org.apache.maven.surefire}
</pattern>
</encoder>
</appender>

<root level="INFO">
<appender-ref ref="STDOUT"/>
</root>
</configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
<configuration scan="true" scanPeriod="10000">
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n%ex{full,
org.junit,
org.apache.maven.surefire}
</pattern>
</encoder>
</appender>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
<configuration scan="true" scanPeriod="10000">
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n%ex{full,
org.junit,
org.apache.maven.surefire}
</pattern>
</encoder>
</appender>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
<configuration scan="true" scanPeriod="10000">
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n%ex{full,
org.junit,
org.apache.maven.surefire}
</pattern>
</encoder>
</appender>

Expand Down
5 changes: 4 additions & 1 deletion system-tests/e2e-suite/src/test/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n%ex{full,
org.junit,
org.apache.maven.surefire}
</pattern>
</encoder>
</appender>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
<configuration scan="true" scanPeriod="10000">
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n%ex{full,
org.junit,
org.apache.maven.surefire}
</pattern>
</encoder>
</appender>

Expand Down
5 changes: 4 additions & 1 deletion system-tests/ft-suite/src/test/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n%ex{full,
org.junit,
org.apache.maven.surefire}
</pattern>
</encoder>
</appender>

Expand Down
2 changes: 1 addition & 1 deletion travis/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ mvn install -B -U -P macosx,release -DskipTests=true -Dmaven.test.skip=true -Dgp

function deploySnapshot() {
echo "Deploying snapshot to sonatype"
mvn deploy --settings travis/mvn-settings.xml -B -U -P sonatype-oss-release,linux -DskipTests=true -Dmaven.test.skip=true -Dgpg.skip=true
mvn deploy --settings travis/mvn-settings.xml -B -U -P sonatype-oss-release,linux -DskipTests=true -Dmaven.test.skip=true -Dgpg.skip=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
}

if [[ -n "$TRAVIS_TAG" ]]; then
Expand Down

0 comments on commit 53b7053

Please sign in to comment.