Build failed in Jenkins: sling-org-apache-sling-commons-cache-portal-1.8 #36

2018-03-12 Thread Apache Jenkins Server
See 


--
Started by upstream project "sling-org-apache-sling-commons-cache-api-1.8" 
build number 19
originally caused by:
 Started by timer
[EnvInject] - Loading node environment variables.
Building remotely on H23 (ubuntu xenial) in workspace 

 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url 
 > https://github.com/apache/sling-org-apache-sling-commons-cache-portal.git # 
 > timeout=10
Fetching upstream changes from 
https://github.com/apache/sling-org-apache-sling-commons-cache-portal.git
 > git --version # timeout=10
 > git fetch --tags --progress 
 > https://github.com/apache/sling-org-apache-sling-commons-cache-portal.git 
 > +refs/heads/*:refs/remotes/origin/*
 > git rev-parse origin/master^{commit} # timeout=10
Checking out Revision 089669d5985d5bec28f306e3a048b32fc1b5c601 (origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 089669d5985d5bec28f306e3a048b32fc1b5c601
Commit message: "SLING-7213 - Add a default .gitignore file to every module"
 > git rev-list --no-walk 089669d5985d5bec28f306e3a048b32fc1b5c601 # timeout=10
Parsing POMs
Established TCP socket on 39537
maven33-agent.jar already up to date
maven33-interceptor.jar already up to date
maven3-interceptor-commons.jar already up to date
[sling-org-apache-sling-commons-cache-portal-1.8] $ 
/home/jenkins/tools/java/latest1.8/bin/java -Xmx2g -Xms256m -cp 
/home/jenkins/jenkins-slave/maven33-agent.jar:/home/jenkins/tools/maven/apache-maven-3.3.9/boot/plexus-classworlds-2.5.2.jar:/home/jenkins/tools/maven/apache-maven-3.3.9/conf/logging
 jenkins.maven3.agent.Maven33Main /home/jenkins/tools/maven/apache-maven-3.3.9 
/home/jenkins/jenkins-slave/slave.jar 
/home/jenkins/jenkins-slave/maven33-interceptor.jar 
/home/jenkins/jenkins-slave/maven3-interceptor-commons.jar 39537
<===[JENKINS REMOTING CAPACITY]===>   channel started
Executing Maven:  -B -f 

 -Dmaven.repo.local=/home/jenkins/jenkins-slave/maven-repositories/1 -U clean 
deploy
[INFO] Scanning for projects...
[INFO] 
[INFO] 
[INFO] Building Apache Sling Cache Portal Cache 0.1-SNAPSHOT
[INFO] 
[INFO] Downloading: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.commons.cache.api/0.1-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.commons.cache.api/0.1-SNAPSHOT/maven-metadata.xml
 (1010 B at 2.6 KB/sec)
[INFO] Downloading: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.commons.cache.api/0.1-SNAPSHOT/org.apache.sling.commons.cache.api-0.1-20180312.084428-25.pom
[INFO] Downloaded: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.commons.cache.api/0.1-SNAPSHOT/org.apache.sling.commons.cache.api-0.1-20180312.084428-25.pom
 (3 KB at 8.8 KB/sec)
[INFO] Downloading: 
http://repository.apache.org/snapshots/org/apache/sling/portal/org.apache.sling.portal.container/0.6.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloading: 
http://repository.apache.org/snapshots/org/apache/sling/portal/org.apache.sling.portal.container/0.6.0-SNAPSHOT/org.apache.sling.portal.container-0.6.0-SNAPSHOT.pom
[WARNING] The POM for 
org.apache.sling.portal:org.apache.sling.portal.container:jar:0.6.0-SNAPSHOT is 
missing, no dependency information available
[INFO] Downloading: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.commons.cache.api/0.1-SNAPSHOT/org.apache.sling.commons.cache.api-0.1-20180312.084428-25.jar
[INFO] Downloading: 
http://repository.apache.org/snapshots/org/apache/sling/portal/org.apache.sling.portal.container/0.6.0-SNAPSHOT/org.apache.sling.portal.container-0.6.0-SNAPSHOT.jar
[INFO] Downloaded: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.commons.cache.api/0.1-SNAPSHOT/org.apache.sling.commons.cache.api-0.1-20180312.084428-25.jar
 (12 KB at 38.4 KB/sec)
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[INFO] 
[INFO] BUILD FAILURE
[INFO] 
[INFO] Total time: 8.900 s
[INFO] Finished at: 2018-03-12T08:45:16+00:00
[INFO] Final Memory: 15M/290M
[INFO] 
Waiting for Jenkins to finish collecting data
[ERROR] Failed to execute goal on project 
org.apache.sling.commons.cache.p

Jenkins build is still unstable: sling-org-apache-sling-commons-cache-ehcache-1.8 #71

2018-03-12 Thread Apache Jenkins Server
See 




Jenkins build is still unstable: sling-org-apache-sling-launchpad-contrib-testing-1.8 #20

2018-03-12 Thread Apache Jenkins Server
See 




[sling-org-apache-sling-commons-log] branch master updated: SLING-7529 - implemented layout inheritance in log encoder (#3)

2018-03-12 Thread chetanm
This is an automated email from the ASF dual-hosted git repository.

chetanm pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-log.git


The following commit(s) were added to refs/heads/master by this push:
 new 2de638f  SLING-7529 - implemented layout inheritance in log encoder 
(#3)
2de638f is described below

commit 2de638f3d2f533fa14bf5c3b526778dfc50d3c30
Author: Fryderyk Wysocki 
AuthorDate: Mon Mar 12 10:02:50 2018 +0100

SLING-7529 - implemented layout inheritance in log encoder (#3)
---
 .../internal/util/LoggerSpecificEncoder.java   |  22 ++-
 .../util/AbstractPatternLayoutWrapper.java | 177 +
 .../internal/util/LoggerSpecificEncoderTest.java   | 118 ++
 3 files changed, 312 insertions(+), 5 deletions(-)

diff --git 
a/src/main/java/org/apache/sling/commons/log/logback/internal/util/LoggerSpecificEncoder.java
 
b/src/main/java/org/apache/sling/commons/log/logback/internal/util/LoggerSpecificEncoder.java
index 702acf8..996a5b0 100644
--- 
a/src/main/java/org/apache/sling/commons/log/logback/internal/util/LoggerSpecificEncoder.java
+++ 
b/src/main/java/org/apache/sling/commons/log/logback/internal/util/LoggerSpecificEncoder.java
@@ -45,12 +45,24 @@ public class LoggerSpecificEncoder extends 
PatternLayoutEncoderBase getLayout(String loggerName) {
-// TODO Handle layout inheritance wrt logger names
-Layout layout = layoutByCategory.get(loggerName);
-if (layout == null) {
-layout = defaultLayout;
+String bestMatchLayoutKey = getBestMatchLayoutKey(loggerName);
+return layoutByCategory.getOrDefault(bestMatchLayoutKey, 
defaultLayout);
+}
+
+private String getBestMatchLayoutKey(String loggerName) {
+if (layoutByCategory.containsKey(loggerName)) {
+// fastpath for exact name match
+return loggerName;
+}
+String bestMatch = loggerName;
+int bestMatchLength = 0;
+for (String layoutKey : layoutByCategory.keySet()) {
+if (loggerName.startsWith(layoutKey) && 
loggerName.charAt(layoutKey.length()) == '.' && layoutKey.length() > 
bestMatchLength) {
+bestMatch = layoutKey;
+bestMatchLength = layoutKey.length();
+}
 }
-return layout;
+return bestMatch;
 }
 
 private byte[] convertToBytes(String s) {
diff --git 
a/src/test/java/org/apache/sling/commons/log/logback/internal/util/AbstractPatternLayoutWrapper.java
 
b/src/test/java/org/apache/sling/commons/log/logback/internal/util/AbstractPatternLayoutWrapper.java
new file mode 100644
index 000..93ed24f
--- /dev/null
+++ 
b/src/test/java/org/apache/sling/commons/log/logback/internal/util/AbstractPatternLayoutWrapper.java
@@ -0,0 +1,177 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.sling.commons.log.logback.internal.util;
+
+import ch.qos.logback.classic.PatternLayout;
+import ch.qos.logback.classic.spi.ILoggingEvent;
+import ch.qos.logback.core.Context;
+import ch.qos.logback.core.pattern.PostCompileProcessor;
+import ch.qos.logback.core.status.Status;
+
+import java.util.Map;
+
+/**
+ * Abstract wrapper for {@link PatternLayout} class. Can be extended to 
implement 'Decorator' design pattern.
+ *
+ * @apiNote This has probably no use outside of testing
+ */
+public abstract class AbstractPatternLayoutWrapper extends PatternLayout {
+
+protected final PatternLayout wrapped;
+
+protected AbstractPatternLayoutWrapper(final PatternLayout wrapped) {
+this.wrapped = wrapped;
+}
+
+@Override
+public String doLayout(final ILoggingEvent event) {
+return wrapped.doLayout(event);
+}
+
+@Override
+public String getFileHeader() {
+return wrapped.getFileHeader();
+}
+
+@Override
+public String getPresentationHeader() {
+return wrapped.getPresentationHeader();
+}
+
+@Override
+public String getPresentationFooter() {
+return wrapped.getPresentationFooter();
+}
+
+@Override
+public String getFileFooter() {
+return wrapped.getFileFooter();
+}
+
+

Jenkins build became unstable: sling-org-apache-sling-karaf-launchpad-oak-tar-integration-tests-1.8 #53

2018-03-12 Thread Apache Jenkins Server
See 




Jenkins build is still unstable: sling-org-apache-sling-launchpad-testing-war-1.8 #72

2018-03-12 Thread Apache Jenkins Server
See 




Build failed in Jenkins: sling-org-apache-sling-launchpad-testing-10 #38

2018-03-12 Thread Apache Jenkins Server
See 


--
[...truncated 2.30 KB...]
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 8325d11b2c094ab9fef235abc07e6f1c7c915f50
Commit message: "SLING-7353 Update to Sling Parent 33"
 > git rev-list --no-walk 8325d11b2c094ab9fef235abc07e6f1c7c915f50 # timeout=10
Parsing POMs
Established TCP socket on 43815
maven33-agent.jar already up to date
maven33-interceptor.jar already up to date
maven3-interceptor-commons.jar already up to date
[sling-org-apache-sling-launchpad-testing-10] $ 
/home/jenkins/tools/java/jdk-10-ea+36/bin/java -Xmx2g -Xms256m -cp 
/home/jenkins/jenkins-slave/maven33-agent.jar:/home/jenkins/tools/maven/apache-maven-3.3.9/boot/plexus-classworlds-2.5.2.jar:/home/jenkins/tools/maven/apache-maven-3.3.9/conf/logging
 jenkins.maven3.agent.Maven33Main /home/jenkins/tools/maven/apache-maven-3.3.9 
/home/jenkins/jenkins-slave/slave.jar 
/home/jenkins/jenkins-slave/maven33-interceptor.jar 
/home/jenkins/jenkins-slave/maven3-interceptor-commons.jar 43815
<===[JENKINS REMOTING CAPACITY]===>   channel started
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by hudson.remoting.RemoteClassLoader 
(file:/home/jenkins/jenkins-slave/slave.jar) to method 
java.lang.ClassLoader.getClassLoadingLock(java.lang.String)
WARNING: Please consider reporting this to the maintainers of 
hudson.remoting.RemoteClassLoader
WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations
WARNING: All illegal access operations will be denied in a future release
Executing Maven:  -B -f 

 -Dmaven.repo.local=/home/jenkins/jenkins-slave/maven-repositories/1 -U clean 
verify
[INFO] Scanning for projects...
[INFO] Downloading: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.launchpad.test-bundles/0.0.5-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.launchpad.test-bundles/0.0.5-SNAPSHOT/maven-metadata.xml
 (1023 B at 2.4 KB/sec)
[INFO] Downloading: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.launchpad.test-bundles/0.0.5-SNAPSHOT/org.apache.sling.launchpad.test-bundles-0.0.5-20180306.224939-11.txt
[INFO] Downloaded: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.launchpad.test-bundles/0.0.5-SNAPSHOT/org.apache.sling.launchpad.test-bundles-0.0.5-20180306.224939-11.txt
 (2 KB at 5.0 KB/sec)
[INFO] Downloading: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.starter/11-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.starter/11-SNAPSHOT/maven-metadata.xml
 (2 KB at 4.6 KB/sec)
[INFO] Downloading: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.starter/11-SNAPSHOT/org.apache.sling.starter-11-20180310.065852-21-slingfeature.txt
[INFO] Downloaded: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.starter/11-SNAPSHOT/org.apache.sling.starter-11-20180310.065852-21-slingfeature.txt
 (31 KB at 94.4 KB/sec)
[INFO] Extended Maven classpath (scope 'provided') by the dependencies 
extracted from the Sling model.
[INFO] 
[INFO] 
[INFO] Building Apache Sling Launchpad Testing 11-SNAPSHOT
[INFO] 
[INFO] Downloading: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.launchpad.integration-tests/1.0.7-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.launchpad.integration-tests/1.0.7-SNAPSHOT/maven-metadata.xml
 (2 KB at 3.1 KB/sec)
[INFO] Downloading: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.launchpad.integration-tests/1.0.7-SNAPSHOT/org.apache.sling.launchpad.integration-tests-1.0.7-20180313.044155-27.pom
[INFO] Downloaded: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.launchpad.integration-tests/1.0.7-SNAPSHOT/org.apache.sling.launchpad.integration-tests-1.0.7-20180313.044155-27.pom
 (12 KB at 37.6 KB/sec)
[INFO] Downloading: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.junit.teleporter/1.0.17-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.junit.teleporter/1.0.17-SNAPSHOT/maven-metadata.xml
 (1021 B at 3.2 KB/sec)
[INFO] Downloading: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.junit.teleporter/1.0.17-SNAPSHOT/org.apache.sling.junit.telepo

Jenkins build is still unstable: sling-org-apache-sling-launchpad-testing-1.8 #72

2018-03-12 Thread Apache Jenkins Server
See 




Jenkins build is still unstable: sling-org-apache-sling-launchpad-testing-9 #70

2018-03-12 Thread Apache Jenkins Server
See 




Jenkins build is still unstable: sling-org-apache-sling-commons-cache-ehcache-1.8 #72

2018-03-12 Thread Apache Jenkins Server
See 




[sling-org-apache-sling-api] branch master updated: [maven-release-plugin] prepare release org.apache.sling.api-2.17.0

2018-03-12 Thread cziegeler
This is an automated email from the ASF dual-hosted git repository.

cziegeler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-api.git


The following commit(s) were added to refs/heads/master by this push:
 new 1c99d56  [maven-release-plugin] prepare release 
org.apache.sling.api-2.17.0
1c99d56 is described below

commit 1c99d5668f67c9a92b6d714f865e7afcbb48700c
Author: Carsten Ziegeler 
AuthorDate: Tue Mar 13 07:31:37 2018 +0100

[maven-release-plugin] prepare release org.apache.sling.api-2.17.0
---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 02b83b8..a3d1eb0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
 
 
 org.apache.sling.api
-2.16.5-SNAPSHOT
+2.17.0
 bundle
 
 Apache Sling API
@@ -47,7 +47,7 @@
 
scm:git:https://gitbox.apache.org/repos/asf/sling-org-apache-sling-api.git
 
scm:git:https://gitbox.apache.org/repos/asf/sling-org-apache-sling-api.git
 
https://gitbox.apache.org/repos/asf?p=sling-org-apache-sling-api.git
-  HEAD
+  org.apache.sling.api-2.17.0
   
 
 

-- 
To stop receiving notification emails like this one, please contact
cziege...@apache.org.


[sling-org-apache-sling-api] annotated tag org.apache.sling.api-2.17.0 created (now 728c855)

2018-03-12 Thread cziegeler
This is an automated email from the ASF dual-hosted git repository.

cziegeler pushed a change to annotated tag org.apache.sling.api-2.17.0
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-api.git.


  at 728c855  (tag)
 tagging 1c99d5668f67c9a92b6d714f865e7afcbb48700c (commit)
 replaces org.apache.sling.api-2.16.4
  by Carsten Ziegeler
  on Tue Mar 13 07:31:56 2018 +0100

- Log -
[maven-release-plugin] copy for tag org.apache.sling.api-2.17.0
---

No new revisions were added by this update.

-- 
To stop receiving notification emails like this one, please contact
cziege...@apache.org.


[sling-org-apache-sling-api] branch master updated: [maven-release-plugin] prepare for next development iteration

2018-03-12 Thread cziegeler
This is an automated email from the ASF dual-hosted git repository.

cziegeler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-api.git


The following commit(s) were added to refs/heads/master by this push:
 new 70c9a02  [maven-release-plugin] prepare for next development iteration
70c9a02 is described below

commit 70c9a023e5e64cd97c100bb38934c857bf3c235a
Author: Carsten Ziegeler 
AuthorDate: Tue Mar 13 07:32:08 2018 +0100

[maven-release-plugin] prepare for next development iteration
---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index a3d1eb0..04c64a9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
 
 
 org.apache.sling.api
-2.17.0
+2.17.1-SNAPSHOT
 bundle
 
 Apache Sling API
@@ -47,7 +47,7 @@
 
scm:git:https://gitbox.apache.org/repos/asf/sling-org-apache-sling-api.git
 
scm:git:https://gitbox.apache.org/repos/asf/sling-org-apache-sling-api.git
 
https://gitbox.apache.org/repos/asf?p=sling-org-apache-sling-api.git
-  org.apache.sling.api-2.17.0
+  HEAD
   
 
 

-- 
To stop receiving notification emails like this one, please contact
cziege...@apache.org.