You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Konrad Windszus <ko...@gmx.de> on 2017/03/16 12:31:15 UTC

PaxExam based ITs create folders outside target

Hi,
it seems that PaxExam based ITs may create folders outside the target folder (see https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/)
For Validation the folder sling/repository/index/lucene-1488547426482/data was obviously created by PaxExam.

Usually the repository lives below https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/paxexam/ValidationServiceIT/sling/repository/

I also sometimes have seen this locally but I fail to reproduce it reliably.
Does anyone have an idea, why the lucene index is there?
Seems that PaxExam relies on relative paths somehow, which are sometimes relative to target and sometimes to the project root.

Thanks for any help
Konrad

> On 16 Mar 2017, at 12:11, Apache Jenkins Server <je...@builds.apache.org> wrote:
> 
> See <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/55/display/redirect?page=changes>
> 
> Changes:
> 
> [kwin] fix some more warnings
> 
> ------------------------------------------
> Started by an SCM change
> Started by upstream project "sling-bundles-extensions-validation-test-services-1.8" build number 28
> originally caused by:
> Started by upstream project "sling-bundles-extensions-validation-api-1.8" build number 25
> originally caused by:
>  Started by an SCM change
> [EnvInject] - Loading node environment variables.
> Building remotely on H23 (ubuntu) in workspace <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/>
> Updating https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/validation/core at revision '2017-03-16T11:10:09.674 +0000'
> U         src/test/java/org/apache/sling/validation/impl/model/MergedValidationModelTest.java
> U         src/test/java/org/apache/sling/validation/impl/resourcemodel/ResourceValidationModelProviderImplTest.java
> U         src/test/java/org/apache/sling/validation/impl/ValidationServiceImplTest.java
> U         src/main/java/org/apache/sling/validation/impl/ValidationServiceImpl.java
> At revision 1787158
> 
> Parsing POMs
> Established TCP socket on 34822
> maven33-agent.jar already up to date
> maven33-interceptor.jar already up to date
> maven3-interceptor-commons.jar already up to date
> [sling-bundles-extensions-validation-core-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 34822
> <===[JENKINS REMOTING CAPACITY]===>   channel started
> Executing Maven:  -B -f <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/pom.xml> -Dmaven.repo.local=/home/jenkins/jenkins-slave/maven-repositories/0 -U clean deploy
> [INFO] Scanning for projects...
> [INFO]                                                                         
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Apache Sling Validation Framework Core Implementation 1.0.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.api/1.0.0-SNAPSHOT/maven-metadata.xml
> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.api/1.0.0-SNAPSHOT/maven-metadata.xml (1023 B at 2.2 KB/sec)
> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20170316.110912-1580.pom
> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20170316.110912-1580.pom (3 KB at 7.5 KB/sec)
> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.test-services/1.0.0-SNAPSHOT/maven-metadata.xml
> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.test-services/1.0.0-SNAPSHOT/maven-metadata.xml (2 KB at 2.7 KB/sec)
> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test-services-1.0.0-20170316.110958-1573.pom
> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test-services-1.0.0-20170316.110958-1573.pom (5 KB at 12.2 KB/sec)
> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.testing.paxexam/0.0.3-SNAPSHOT/maven-metadata.xml
> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.testing.paxexam/0.0.3-SNAPSHOT/maven-metadata.xml (1016 B at 2.5 KB/sec)
> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-20170313.172758-24.pom
> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-20170313.172758-24.pom (6 KB at 13.1 KB/sec)
> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20170316.110912-1580.jar
> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test-services-1.0.0-20170316.110958-1573.jar
> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-20170313.172758-24.jar
> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20170316.110912-1580.jar (22 KB at 47.2 KB/sec)
> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test-services-1.0.0-20170316.110958-1573.jar (22 KB at 48.4 KB/sec)
> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-20170313.172758-24.jar (31 KB at 65.6 KB/sec)
> [INFO] 
> [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ org.apache.sling.validation.core ---
> [INFO] Deleting <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target>
> [INFO] 
> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @ org.apache.sling.validation.core ---
> [INFO] 
> [INFO] --- maven-antrun-plugin:1.8:run (set-bundle-required-execution-environment) @ org.apache.sling.validation.core ---
> [INFO] Executing tasks
> 
> main:
> Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.8 from sling.java.version=8
> [INFO] Executed tasks
> [INFO] 
> [INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) @ org.apache.sling.validation.core ---
> [INFO] 
> [INFO] --- maven-remote-resources-plugin:1.5:process (default) @ org.apache.sling.validation.core ---
> [INFO] 
> [INFO] --- depends-maven-plugin:1.3.1:generate-depends-file (default) @ org.apache.sling.validation.core ---
> [INFO] Created: <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/classes/META-INF/maven/dependencies.properties>
> [INFO] 
> [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ org.apache.sling.validation.core ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 1 resource
> [INFO] Copying 3 resources
> [INFO] Copying 3 resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ org.apache.sling.validation.core ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 19 source files to <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/classes>
> [INFO] 
> [INFO] --- maven-bundle-plugin:3.2.0:manifest (scr-metadata) @ org.apache.sling.validation.core ---
> [INFO] 
> [INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ org.apache.sling.validation.core ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 2 resources
> [INFO] Copying 3 resources
> [INFO] Copying 3 resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ org.apache.sling.validation.core ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 18 source files to <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/test-classes>
> [INFO] 
> [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ org.apache.sling.validation.core ---
> [INFO] Surefire report directory: <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/surefire-reports>
> 
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running org.apache.sling.validation.impl.ValidationServiceImplTest
> Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.913 sec - in org.apache.sling.validation.impl.ValidationServiceImplTest
> Running org.apache.sling.validation.impl.resourcemodel.ResourceValidationModelProviderImplTest
> Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.449 sec - in org.apache.sling.validation.impl.resourcemodel.ResourceValidationModelProviderImplTest
> Running org.apache.sling.validation.impl.model.MergedValidationModelTest
> Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec <<< FAILURE! - in org.apache.sling.validation.impl.model.MergedValidationModelTest
> testOverwritingChildrenAndResourceProperties(org.apache.sling.validation.impl.model.MergedValidationModelTest)  Time elapsed: 0.003 sec  <<< FAILURE!
> java.lang.AssertionError: 
> Expected: iterable over [<[ResourceProperty with namePattern=overwrittenNameToOverwrite, ResourceProperty with namePattern=originalNameNotOverwritten]>] in any order
>     but: Not matched: <ResourcePropertyImpl [name=nameNotOverwritten, isMultiple=false, isRequired=true, validators=[], namePattern=originalNameNotOverwritten]>
> 	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
> 	at org.junit.Assert.assertThat(Assert.java:956)
> 	at org.junit.Assert.assertThat(Assert.java:923)
> 	at org.apache.sling.validation.impl.model.MergedValidationModelTest.testOverwritingChildrenAndResourceProperties(MergedValidationModelTest.java:85)
> 
> Running org.apache.sling.validation.impl.util.ValidatorTypeUtilTest
> Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec - in org.apache.sling.validation.impl.util.ValidatorTypeUtilTest
> Running org.apache.sling.validation.impl.ValidationModelRetrieverImplTest
> [main] INFO org.apache.sling.validation.impl.ValidationModelRetrieverImpl - A Validator for the same id 'DateValidator' is already registered with class 'ValidatorWithSeverity [validator=org.apache.sling.validation.impl.util.examplevalidators.DateValidator@492691d7, severity=1]' from bundle 1 and has a higher service ranking
> [main] INFO org.apache.sling.validation.impl.ValidationModelRetrieverImpl - Overwriting already existing validator ValidatorWithSeverity [validator=org.apache.sling.validation.impl.util.examplevalidators.DateValidator@74589991, severity=1] from bundle 1 with validator org.apache.sling.validation.impl.util.examplevalidators.StringValidator@146dfe6 from bundle 1, because it has the same id 'DateValidator' and a higher service ranking
> Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.059 sec - in org.apache.sling.validation.impl.ValidationModelRetrieverImplTest
> 
> Results :
> 
> Failed tests: 
>  MergedValidationModelTest.testOverwritingChildrenAndResourceProperties:85 
> Expected: iterable over [<[ResourceProperty with namePattern=overwrittenNameToOverwrite, ResourceProperty with namePattern=originalNameNotOverwritten]>] in any order
>     but: Not matched: <ResourcePropertyImpl [name=nameNotOverwritten, isMultiple=false, isRequired=true, validators=[], namePattern=originalNameNotOverwritten]>
> 
> Tests run: 59, Failures: 1, Errors: 0, Skipped: 0
> 
> [ERROR] There are test failures.
> 
> Please refer to <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/surefire-reports> for the individual test results.
> [JENKINS] Recording test results
> [INFO] 
> [INFO] --- animal-sniffer-maven-plugin:1.15:check (default) @ org.apache.sling.validation.core ---
> [INFO] Checking unresolved references to org.codehaus.mojo.signature:java18:1.0
> [INFO] 
> [INFO] --- maven-bundle-plugin:3.2.0:bundle (default-bundle) @ org.apache.sling.validation.core ---
> [INFO] 
> [INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) > generate-sources @ org.apache.sling.validation.core >>>
> [INFO] 
> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @ org.apache.sling.validation.core ---
> [INFO] 
> [INFO] --- maven-antrun-plugin:1.8:run (set-bundle-required-execution-environment) @ org.apache.sling.validation.core ---
> [INFO] Executing tasks
> 
> main:
> Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.8 from sling.java.version=8
> [INFO] Executed tasks
> [WARNING] Failed to getClass for org.apache.maven.plugins.source.SourceJarMojo
> [INFO] 
> [INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) < generate-sources @ org.apache.sling.validation.core <<<
> [INFO] 
> [INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @ org.apache.sling.validation.core ---
> [INFO] Building jar: <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/org.apache.sling.validation.core-1.0.0-SNAPSHOT-sources.jar>
> [INFO] 
> [INFO] --- maven-site-plugin:3.5.1:attach-descriptor (attach-descriptor) @ org.apache.sling.validation.core ---
> [INFO] 
> [INFO] --- maven-failsafe-plugin:2.18.1:integration-test (default) @ org.apache.sling.validation.core ---
> [INFO] Failsafe report directory: <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/failsafe-reports>
> 
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running org.apache.sling.validation.core.it.tests.ValidationServiceIT
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 21.543 sec - in org.apache.sling.validation.core.it.tests.ValidationServiceIT
> 
> Results :
> 
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
> 
> [JENKINS] Recording test results
> [INFO] 
> [INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default) @ org.apache.sling.validation.core ---
> [INFO] Checking legal files in: org.apache.sling.validation.core-1.0.0-SNAPSHOT.jar
> [INFO] Checking legal files in: org.apache.sling.validation.core-1.0.0-SNAPSHOT-sources.jar
> [INFO] 
> [INFO] --- apache-rat-plugin:0.11:check (default) @ org.apache.sling.validation.core ---
> [INFO] 51 implicit excludes (use -debug for more details).
> [INFO] Exclude: DEPENDENCIES
> [INFO] Exclude: src/main/appended-resources/META-INF/*
> [INFO] Exclude: velocity.log
> [INFO] Exclude: target/*
> [INFO] Exclude: README.md
> [INFO] Exclude: maven-eclipse.xml
> [INFO] Exclude: .*
> [INFO] Exclude: .*/**
> [INFO] Exclude: **/*.json
> [INFO] Exclude: DEPENDENCIES
> [INFO] Exclude: **/*.rej
> [INFO] Exclude: hs_err_*.log
> [INFO] Exclude: **/repository/index/*/index-details.txt
> [INFO] 54 resources included (use -debug for more details)
> [INFO] Rat check: Summary of files. Unapproved: 4 unknown: 4 generated: 0 approved: 40 licence.
> [JENKINS] Archiving disabled
> [JENKINS] Archiving disabled[INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 51.740 s
> [INFO] Finished at: 2017-03-16T11:11:10+00:00
> 
> [INFO] Final Memory: 51M/598M
> [INFO] ------------------------------------------------------------------------
> Waiting for Jenkins to finish collecting data
> [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check (default) on project org.apache.sling.validation.core: Too many files with unapproved license: 4 See RAT report in: <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/rat.txt> -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> channel stopped
> Recording test results


Re: PaxExam based ITs create folders outside target

Posted by Konrad Windszus <ko...@gmx.de>.
> On 29 Mar 2017, at 15:12, Oliver Lietz <ap...@oliverlietz.de> wrote:
> 
> On Wednesday 29 March 2017 14:48:06 Oliver Lietz wrote:
>> On Wednesday 29 March 2017 14:37:58 Konrad Windszus wrote:
>>> This is still not 100% fixed.
>>> The Jenkins Workspace still contains the folder
>>> https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8
>>> /
>>> ws/sling/repository/index/indexWriterDir/ outside of target. That folder
>>> must have been created by PaxExam after I wiped out the workspace in the
>>> Jenkins Job on the 16th of March. @Oli: Do you have any idea?
>> 
>> Will have a look...
> 
> I cannot reproduce locally and Rat didn't complain on Jenkins. The ZIP from 
> that workspace doesn't contain the _empty_ directory – either omitted when 
> archived or possible display issue on Jenkins?
> 
> Grepping for sling/repository/index in testing.log didn't reveal any 
> configuration issues either.
> 
> Jenkins page refreshed, sling/repository/index is gone. Did you wipe out 
> workspace again, Konrad?
No, but I assume the last build was executed on another Jenkins node where the workspace has been wiped out. It ss probably an issue with Jenkins Slaves (wiping of the workspace probably has not been properly propagated to all Slaves). Thanks for having a look and let's see whether that occurs in the future again.
> 
> Regards,
> O.
> 
>> O.
>> 
>>> Thanks,
>>> Konrad
>>> 
>>>> On 16 Mar 2017, at 13:55, Oliver Lietz <ap...@oliverlietz.de> wrote:
>>>> 
>>>> On Thursday 16 March 2017 13:31:15 Konrad Windszus wrote:
>>>>> Hi,
>>>> 
>>>> Hi Konrad,
>>>> 
>>>>> it seems that PaxExam based ITs may create folders outside the target
>>>>> folder (see
>>>>> https://builds.apache.org/job/sling-bundles-extensions-validation-core-> > >> 1.
>>>>> 8/
>>>>> ws/) For Validation the folder
>>>>> sling/repository/index/lucene-1488547426482/data was obviously created
>>>>> by
>>>>> PaxExam.
>>>>> 
>>>>> Usually the repository lives below
>>>>> https://builds.apache.org/job/sling-bundles-extensions-validation-core-> > >> 1.
>>>>> 8/
>>>>> ws/target/paxexam/ValidationServiceIT/sling/repository/
>>>>> 
>>>>> I also sometimes have seen this locally but I fail to reproduce it
>>>>> reliably. Does anyone have an idea, why the lucene index is there?
>>>> 
>>>> that happend when configuration changed for LuceneIndexProviderService
>>>> during container start and should be fixed in r1786426.
>>>> 
>>>>> Seems that PaxExam relies on relative paths somehow, which are
>>>>> sometimes
>>>>> relative to target and sometimes to the project root.
>>>> 
>>>> No, in the above case configuration from Option slingLaunchpadOak was
>>>> present first and configuration with workingDirectory kicked in later.
>>>> 
>>>> Regards,
>>>> O.
>>>> 
>>>>> Thanks for any help
>>>>> Konrad
>>>>> 
>>>>>> On 16 Mar 2017, at 12:11, Apache Jenkins Server
>>>>>> <je...@builds.apache.org> wrote:
>>>>>> 
>>>>>> See
>>>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
>>>>>> e-> >>> 1 .8/55/display/redirect?page=changes>
>>>>>> 
>>>>>> Changes:
>>>>>> 
>>>>>> [kwin] fix some more warnings
>>>>>> 
>>>>>> ------------------------------------------
>>>>>> Started by an SCM change
>>>>>> Started by upstream project
>>>>>> "sling-bundles-extensions-validation-test-services-1.8" build number
>>>>>> 28
>>>>>> originally caused by:
>>>>>> Started by upstream project
>>>>>> "sling-bundles-extensions-validation-api-1.8"
>>>>>> build number 25>
>>>>>> originally caused by:
>>>>>> Started by an SCM change
>>>>>> 
>>>>>> [EnvInject] - Loading node environment variables.
>>>>>> Building remotely on H23 (ubuntu) in workspace
>>>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
>>>>>> e-> >>> 1 .8/ws/> Updating
>>>>>> https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/valida
>>>>>> ti
>>>>>> o
>>>>>> n/core at revision '2017-03-16T11:10:09.674 +0000' U
>>>>>> src/test/java/org/apache/sling/validation/impl/model/MergedValidationM
>>>>>> od
>>>>>> e
>>>>>> lTest.java U
>>>>>> src/test/java/org/apache/sling/validation/impl/resourcemodel/ResourceV
>>>>>> al
>>>>>> i
>>>>>> dationModelProviderImplTest.java U
>>>>>> src/test/java/org/apache/sling/validation/impl/ValidationServiceImplTe
>>>>>> st
>>>>>> .
>>>>>> java U
>>>>>> src/main/java/org/apache/sling/validation/impl/ValidationServiceImpl.j
>>>>>> av
>>>>>> a
>>>>>> At revision 1787158
>>>>>> 
>>>>>> Parsing POMs
>>>>>> Established TCP socket on 34822
>>>>>> maven33-agent.jar already up to date
>>>>>> maven33-interceptor.jar already up to date
>>>>>> maven3-interceptor-commons.jar already up to date
>>>>>> [sling-bundles-extensions-validation-core-1.8] $
>>>>>> /home/jenkins/tools/java/latest1.8/bin/java -Xmx2g -Xms256m -cp
>>>>>> /home/jenkins/jenkins-slave/maven33-agent.jar:/home/jenkins/tools/mave
>>>>>> n/
>>>>>> a
>>>>>> pache-maven-3.3.9/boot/plexus-classworlds-2.5.2.jar:/home/jenkins/tool
>>>>>> s/
>>>>>> ma
>>>>>> ven/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 34822
>>>>>> <===[JENKINS REMOTING CAPACITY]===>   channel started
>>>>>> Executing Maven:  -B -f
>>>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
>>>>>> e-> >>> 1 .8/ws/pom.xml>
>>>>>> -Dmaven.repo.local=/home/jenkins/jenkins-slave/maven-repositories/0 -U
>>>>>> clean deploy [INFO] Scanning for projects...
>>>>>> [INFO]
>>>>>> [INFO]
>>>>>> ----------------------------------------------------------------------
>>>>>> --
>>>>>> [INFO] Building Apache Sling Validation Framework Core Implementation
>>>>>> 1.0.0-SNAPSHOT [INFO]
>>>>>> ----------------------------------------------------------------------
>>>>>> --
>>>>>> [INFO] Downloading:
>>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
>>>>>> ng
>>>>>> .
>>>>>> validation.api/1.0.0-SNAPSHOT/maven-metadata.xml [INFO] Downloaded:
>>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
>>>>>> ng
>>>>>> .
>>>>>> validation.api/1.0.0-SNAPSHOT/maven-metadata.xml (1023 B at 2.2
>>>>>> KB/sec)
>>>>>> [INFO] Downloading:
>>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
>>>>>> ng
>>>>>> .
>>>>>> validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20
>>>>>> 17
>>>>>> 03
>>>>>> 16.110912-1580.pom [INFO] Downloaded:
>>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
>>>>>> ng
>>>>>> .
>>>>>> validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20
>>>>>> 17
>>>>>> 03
>>>>>> 16.110912-1580.pom (3 KB at 7.5 KB/sec) [INFO] Downloading:
>>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
>>>>>> ng
>>>>>> .
>>>>>> validation.test-services/1.0.0-SNAPSHOT/maven-metadata.xml [INFO]
>>>>>> Downloaded:
>>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
>>>>>> ng
>>>>>> .
>>>>>> validation.test-services/1.0.0-SNAPSHOT/maven-metadata.xml (2 KB at
>>>>>> 2.7
>>>>>> KB/sec) [INFO] Downloading:
>>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
>>>>>> ng
>>>>>> .
>>>>>> validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.te
>>>>>> st
>>>>>> -s
>>>>>> ervices-1.0.0-20170316.110958-1573.pom [INFO] Downloaded:
>>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
>>>>>> ng
>>>>>> .
>>>>>> validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.te
>>>>>> st
>>>>>> -s
>>>>>> ervices-1.0.0-20170316.110958-1573.pom (5 KB at 12.2 KB/sec) [INFO]
>>>>>> Downloading:
>>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
>>>>>> ng
>>>>>> .
>>>>>> testing.paxexam/0.0.3-SNAPSHOT/maven-metadata.xml [INFO] Downloaded:
>>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
>>>>>> ng
>>>>>> .
>>>>>> testing.paxexam/0.0.3-SNAPSHOT/maven-metadata.xml (1016 B at 2.5
>>>>>> KB/sec)
>>>>>> [INFO] Downloading:
>>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
>>>>>> ng
>>>>>> .
>>>>>> testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-
>>>>>> 20
>>>>>> 17
>>>>>> 0313.172758-24.pom [INFO] Downloaded:
>>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
>>>>>> ng
>>>>>> .
>>>>>> testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-
>>>>>> 20
>>>>>> 17
>>>>>> 0313.172758-24.pom (6 KB at 13.1 KB/sec) [INFO] Downloading:
>>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
>>>>>> ng
>>>>>> .
>>>>>> validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20
>>>>>> 17
>>>>>> 03
>>>>>> 16.110912-1580.jar [INFO] Downloading:
>>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
>>>>>> ng
>>>>>> .
>>>>>> validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.te
>>>>>> st
>>>>>> -s
>>>>>> ervices-1.0.0-20170316.110958-1573.jar [INFO] Downloading:
>>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
>>>>>> ng
>>>>>> .
>>>>>> testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-
>>>>>> 20
>>>>>> 17
>>>>>> 0313.172758-24.jar [INFO] Downloaded:
>>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
>>>>>> ng
>>>>>> .
>>>>>> validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20
>>>>>> 17
>>>>>> 03
>>>>>> 16.110912-1580.jar (22 KB at 47.2 KB/sec) [INFO] Downloaded:
>>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
>>>>>> ng
>>>>>> .
>>>>>> validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.te
>>>>>> st
>>>>>> -s
>>>>>> ervices-1.0.0-20170316.110958-1573.jar (22 KB at 48.4 KB/sec) [INFO]
>>>>>> Downloaded:
>>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
>>>>>> ng
>>>>>> .
>>>>>> testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-
>>>>>> 20
>>>>>> 17
>>>>>> 0313.172758-24.jar (31 KB at 65.6 KB/sec) [INFO]
>>>>>> [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @
>>>>>> org.apache.sling.validation.core --- [INFO] Deleting
>>>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
>>>>>> e-> >>> 1 .8/ws/target> [INFO]
>>>>>> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @
>>>>>> org.apache.sling.validation.core --- [INFO]
>>>>>> [INFO] --- maven-antrun-plugin:1.8:run
>>>>>> (set-bundle-required-execution-environment) @
>>>>>> org.apache.sling.validation.core --- [INFO] Executing tasks
>>>>>> 
>>>>>> main:
>>>>>> Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.8 from
>>>>>> sling.java.version=8 [INFO] Executed tasks
>>>>>> [INFO]
>>>>>> [INFO] --- maven-remote-resources-plugin:1.5:process
>>>>>> (process-resource-bundles) @ org.apache.sling.validation.core ---
>>>>>> [INFO]
>>>>>> [INFO] --- maven-remote-resources-plugin:1.5:process (default) @
>>>>>> org.apache.sling.validation.core --- [INFO]
>>>>>> [INFO] --- depends-maven-plugin:1.3.1:generate-depends-file (default)
>>>>>> @
>>>>>> org.apache.sling.validation.core --- [INFO] Created:
>>>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
>>>>>> e-> >>> 1 .8/ws/target/classes/META-INF/maven/dependencies.properties>
>>>>>> [INFO] [INFO] --- maven-resources-plugin:2.7:resources
>>>>>> (default-resources) @ org.apache.sling.validation.core --- [INFO]
>>>>>> Using 'UTF-8' encoding to copy filtered resources.
>>>>>> [INFO] Copying 1 resource
>>>>>> [INFO] Copying 3 resources
>>>>>> [INFO] Copying 3 resources
>>>>>> [INFO]
>>>>>> [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @
>>>>>> org.apache.sling.validation.core --- [INFO] Changes detected -
>>>>>> recompiling the module!
>>>>>> [INFO] Compiling 19 source files to
>>>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
>>>>>> e-> >>> 1 .8/ws/target/classes> [INFO]
>>>>>> [INFO] --- maven-bundle-plugin:3.2.0:manifest (scr-metadata) @
>>>>>> org.apache.sling.validation.core --- [INFO]
>>>>>> [INFO] --- maven-resources-plugin:2.7:testResources
>>>>>> (default-testResources) @ org.apache.sling.validation.core --- [INFO]
>>>>>> Using 'UTF-8' encoding to copy filtered resources.
>>>>>> [INFO] Copying 2 resources
>>>>>> [INFO] Copying 3 resources
>>>>>> [INFO] Copying 3 resources
>>>>>> [INFO]
>>>>>> [INFO] --- maven-compiler-plugin:3.5.1:testCompile
>>>>>> (default-testCompile)
>>>>>> @
>>>>>> org.apache.sling.validation.core --- [INFO] Changes detected -
>>>>>> recompiling the module!
>>>>>> [INFO] Compiling 18 source files to
>>>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
>>>>>> e-> >>> 1 .8/ws/target/test-classes> [INFO]
>>>>>> [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @
>>>>>> org.apache.sling.validation.core --- [INFO] Surefire report directory:
>>>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
>>>>>> e-> >>> 1 .8/ws/target/surefire-reports>
>>>>>> 
>>>>>> -------------------------------------------------------
>>>>>> T E S T S
>>>>>> -------------------------------------------------------
>>>>>> Running org.apache.sling.validation.impl.ValidationServiceImplTest
>>>>>> Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.913
>>>>>> sec
>>>>>> - in org.apache.sling.validation.impl.ValidationServiceImplTest
>>>>>> Running
>>>>>> org.apache.sling.validation.impl.resourcemodel.ResourceValidationModel
>>>>>> Pr
>>>>>> o
>>>>>> viderImplTest Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time
>>>>>> elapsed: 0.449 sec - in
>>>>>> org.apache.sling.validation.impl.resourcemodel.ResourceValidationModel
>>>>>> Pr
>>>>>> o
>>>>>> viderImplTest Running
>>>>>> org.apache.sling.validation.impl.model.MergedValidationModelTest Tests
>>>>>> run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
>>>>>> <<<
>>>>>> FAILURE! - in
>>>>>> org.apache.sling.validation.impl.model.MergedValidationModelTest
>>>>>> testOverwritingChildrenAndResourceProperties(org.apache.sling.validati
>>>>>> on
>>>>>> .
>>>>>> impl.model.MergedValidationModelTest)  Time elapsed: 0.003 sec  <<<
>>>>>> FAILURE! java.lang.AssertionError:
>>>>>> Expected: iterable over [<[ResourceProperty with
>>>>>> namePattern=overwrittenNameToOverwrite, ResourceProperty with
>>>>>> namePattern=originalNameNotOverwritten]>] in any order>
>>>>>> 
>>>>>>   but: Not matched: <ResourcePropertyImpl [name=nameNotOverwritten,
>>>>>>   isMultiple=false, isRequired=true, validators=[],
>>>>>>   namePattern=originalNameNotOverwritten]>>
>>>>>> 	
>>>>>> 	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
>>>>>> 	at org.junit.Assert.assertThat(Assert.java:956)
>>>>>> 	at org.junit.Assert.assertThat(Assert.java:923)
>>>>>> 	at
>> 
>> org.apache.sling.validation.impl.model.MergedValidationModelTest.testOv
>> 
>>>>>> 	e
>> 
>> rwritingChildrenAndResourceProperties(MergedValidationModelTest.java:85
>> 
>>>>>> 	)>
>>>>>> 
>>>>>> Running org.apache.sling.validation.impl.util.ValidatorTypeUtilTest
>>>>>> Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005
>>>>>> sec
>>>>>> - in org.apache.sling.validation.impl.util.ValidatorTypeUtilTest
>>>>>> Running
>>>>>> org.apache.sling.validation.impl.ValidationModelRetrieverImplTest
>>>>>> [main]
>>>>>> INFO org.apache.sling.validation.impl.ValidationModelRetrieverImpl - A
>>>>>> Validator for the same id 'DateValidator' is already registered with
>>>>>> class 'ValidatorWithSeverity
>>>>>> [validator=org.apache.sling.validation.impl.util.examplevalidators.Dat
>>>>>> eV
>>>>>> a
>>>>>> lidator@492691d7, severity=1]' from bundle 1 and has a higher service
>>>>>> ranking [main] INFO
>>>>>> org.apache.sling.validation.impl.ValidationModelRetrieverImpl -
>>>>>> Overwriting already existing validator ValidatorWithSeverity
>>>>>> [validator=org.apache.sling.validation.impl.util.examplevalidators.Dat
>>>>>> eV
>>>>>> a
>>>>>> lidator@74589991, severity=1] from bundle 1 with validator
>>>>>> org.apache.sling.validation.impl.util.examplevalidators.StringValidato
>>>>>> r@
>>>>>> 1
>>>>>> 46dfe6 from bundle 1, because it has the same id 'DateValidator' and a
>>>>>> higher service ranking Tests run: 12, Failures: 0, Errors: 0, Skipped:
>>>>>> 0,
>>>>>> Time elapsed: 0.059 sec - in
>>>>>> org.apache.sling.validation.impl.ValidationModelRetrieverImplTest
>>>>>> 
>>>>>> Results :
>>>>>> 
>>>>>> Failed tests:
>>>>>> MergedValidationModelTest.testOverwritingChildrenAndResourceProperties
>>>>>> :8
>>>>>> 5
>>>>>> 
>>>>>> Expected: iterable over [<[ResourceProperty with
>>>>>> namePattern=overwrittenNameToOverwrite, ResourceProperty with
>>>>>> namePattern=originalNameNotOverwritten]>] in any order>
>>>>>> 
>>>>>>   but: Not matched: <ResourcePropertyImpl [name=nameNotOverwritten,
>>>>>>   isMultiple=false, isRequired=true, validators=[],
>>>>>>   namePattern=originalNameNotOverwritten]>>
>>>>>> 
>>>>>> Tests run: 59, Failures: 1, Errors: 0, Skipped: 0
>>>>>> 
>>>>>> [ERROR] There are test failures.
>>>>>> 
>>>>>> Please refer to
>>>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
>>>>>> e-> >>> 1 .8/ws/target/surefire-reports> for the individual test
>>>>>> results.
>>>>>> [JENKINS]
>>>>>> Recording test results
>>>>>> [INFO]
>>>>>> [INFO] --- animal-sniffer-maven-plugin:1.15:check (default) @
>>>>>> org.apache.sling.validation.core --- [INFO] Checking unresolved
>>>>>> references to org.codehaus.mojo.signature:java18:1.0 [INFO]
>>>>>> [INFO] --- maven-bundle-plugin:3.2.0:bundle (default-bundle) @
>>>>>> org.apache.sling.validation.core --- [INFO]
>>>>>> [INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) >
>>>>>> generate-sources @ org.apache.sling.validation.core >>> [INFO]
>>>>>> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @
>>>>>> org.apache.sling.validation.core --- [INFO]
>>>>>> [INFO] --- maven-antrun-plugin:1.8:run
>>>>>> (set-bundle-required-execution-environment) @
>>>>>> org.apache.sling.validation.core --- [INFO] Executing tasks
>>>>>> 
>>>>>> main:
>>>>>> Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.8 from
>>>>>> sling.java.version=8 [INFO] Executed tasks
>>>>>> [WARNING] Failed to getClass for
>>>>>> org.apache.maven.plugins.source.SourceJarMojo [INFO]
>>>>>> [INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) <
>>>>>> generate-sources @ org.apache.sling.validation.core <<< [INFO]
>>>>>> [INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @
>>>>>> org.apache.sling.validation.core --- [INFO] Building jar:
>>>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
>>>>>> e-> >>> 1
>>>>>> .8/ws/target/org.apache.sling.validation.core-1.0.0-SNAPSHOT-sources.
>>>>>> jar
>>>>>> 
>>>>>> [INFO]
>>>>>> [INFO] --- maven-site-plugin:3.5.1:attach-descriptor
>>>>>> (attach-descriptor)
>>>>>> @
>>>>>> org.apache.sling.validation.core --- [INFO]
>>>>>> [INFO] --- maven-failsafe-plugin:2.18.1:integration-test (default) @
>>>>>> org.apache.sling.validation.core --- [INFO] Failsafe report directory:
>>>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
>>>>>> e-> >>> 1 .8/ws/target/failsafe-reports>
>>>>>> 
>>>>>> -------------------------------------------------------
>>>>>> T E S T S
>>>>>> -------------------------------------------------------
>>>>>> Running org.apache.sling.validation.core.it.tests.ValidationServiceIT
>>>>>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 21.543
>>>>>> sec
>>>>>> - in org.apache.sling.validation.core.it.tests.ValidationServiceIT
>>>>>> 
>>>>>> Results :
>>>>>> 
>>>>>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
>>>>>> 
>>>>>> [JENKINS] Recording test results
>>>>>> [INFO]
>>>>>> [INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default)
>>>>>> @
>>>>>> org.apache.sling.validation.core --- [INFO] Checking legal files in:
>>>>>> org.apache.sling.validation.core-1.0.0-SNAPSHOT.jar [INFO] Checking
>>>>>> legal
>>>>>> files in: org.apache.sling.validation.core-1.0.0-SNAPSHOT-sources.jar
>>>>>> [INFO]
>>>>>> [INFO] --- apache-rat-plugin:0.11:check (default) @
>>>>>> org.apache.sling.validation.core --- [INFO] 51 implicit excludes (use
>>>>>> -debug for more details).
>>>>>> [INFO] Exclude: DEPENDENCIES
>>>>>> [INFO] Exclude: src/main/appended-resources/META-INF/*
>>>>>> [INFO] Exclude: velocity.log
>>>>>> [INFO] Exclude: target/*
>>>>>> [INFO] Exclude: README.md
>>>>>> [INFO] Exclude: maven-eclipse.xml
>>>>>> [INFO] Exclude: .*
>>>>>> [INFO] Exclude: .*/**
>>>>>> [INFO] Exclude: **/*.json
>>>>>> [INFO] Exclude: DEPENDENCIES
>>>>>> [INFO] Exclude: **/*.rej
>>>>>> [INFO] Exclude: hs_err_*.log
>>>>>> [INFO] Exclude: **/repository/index/*/index-details.txt
>>>>>> [INFO] 54 resources included (use -debug for more details)
>>>>>> [INFO] Rat check: Summary of files. Unapproved: 4 unknown: 4
>>>>>> generated:
>>>>>> 0
>>>>>> approved: 40 licence. [JENKINS] Archiving disabled
>>>>>> [JENKINS] Archiving disabled[INFO]
>>>>>> ----------------------------------------------------------------------
>>>>>> --
>>>>>> [INFO] BUILD FAILURE
>>>>>> [INFO]
>>>>>> ----------------------------------------------------------------------
>>>>>> --
>>>>>> [INFO] Total time: 51.740 s
>>>>>> [INFO] Finished at: 2017-03-16T11:11:10+00:00
>>>>>> 
>>>>>> [INFO] Final Memory: 51M/598M
>>>>>> [INFO]
>>>>>> ----------------------------------------------------------------------
>>>>>> --
>>>>>> Waiting for Jenkins to finish collecting data
>>>>>> [ERROR] Failed to execute goal
>>>>>> org.apache.rat:apache-rat-plugin:0.11:check
>>>>>> (default) on project org.apache.sling.validation.core: Too many files
>>>>>> with unapproved license: 4 See RAT report in:
>>>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
>>>>>> e-> >>> 1 .8/ws/target/rat.txt> -> [Help 1] [ERROR]
>>>>>> [ERROR] To see the full stack trace of the errors, re-run Maven with
>>>>>> the
>>>>>> -e switch. [ERROR] Re-run Maven using the -X switch to enable full
>>>>>> debug
>>>>>> logging. [ERROR]
>>>>>> [ERROR] For more information about the errors and possible solutions,
>>>>>> please read the following articles: [ERROR] [Help 1]
>>>>>> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>>>>>> channel stopped
>>>>>> Recording test results
> 


Re: PaxExam based ITs create folders outside target

Posted by Oliver Lietz <ap...@oliverlietz.de>.
On Wednesday 29 March 2017 14:48:06 Oliver Lietz wrote:
> On Wednesday 29 March 2017 14:37:58 Konrad Windszus wrote:
> > This is still not 100% fixed.
> > The Jenkins Workspace still contains the folder
> > https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8
> > /
> > ws/sling/repository/index/indexWriterDir/ outside of target. That folder
> > must have been created by PaxExam after I wiped out the workspace in the
> > Jenkins Job on the 16th of March. @Oli: Do you have any idea?
> 
> Will have a look...

I cannot reproduce locally and Rat didn't complain on Jenkins. The ZIP from 
that workspace doesn't contain the _empty_ directory – either omitted when 
archived or possible display issue on Jenkins?

Grepping for sling/repository/index in testing.log didn't reveal any 
configuration issues either.

Jenkins page refreshed, sling/repository/index is gone. Did you wipe out 
workspace again, Konrad?

Regards,
O.

> O.
> 
> > Thanks,
> > Konrad
> > 
> > > On 16 Mar 2017, at 13:55, Oliver Lietz <ap...@oliverlietz.de> wrote:
> > > 
> > > On Thursday 16 March 2017 13:31:15 Konrad Windszus wrote:
> > >> Hi,
> > > 
> > > Hi Konrad,
> > > 
> > >> it seems that PaxExam based ITs may create folders outside the target
> > >> folder (see
> > >> https://builds.apache.org/job/sling-bundles-extensions-validation-core-> > >> 1.
> > >> 8/
> > >> ws/) For Validation the folder
> > >> sling/repository/index/lucene-1488547426482/data was obviously created
> > >> by
> > >> PaxExam.
> > >> 
> > >> Usually the repository lives below
> > >> https://builds.apache.org/job/sling-bundles-extensions-validation-core-> > >> 1.
> > >> 8/
> > >> ws/target/paxexam/ValidationServiceIT/sling/repository/
> > >> 
> > >> I also sometimes have seen this locally but I fail to reproduce it
> > >> reliably. Does anyone have an idea, why the lucene index is there?
> > > 
> > > that happend when configuration changed for LuceneIndexProviderService
> > > during container start and should be fixed in r1786426.
> > > 
> > >> Seems that PaxExam relies on relative paths somehow, which are
> > >> sometimes
> > >> relative to target and sometimes to the project root.
> > > 
> > > No, in the above case configuration from Option slingLaunchpadOak was
> > > present first and configuration with workingDirectory kicked in later.
> > > 
> > > Regards,
> > > O.
> > > 
> > >> Thanks for any help
> > >> Konrad
> > >> 
> > >>> On 16 Mar 2017, at 12:11, Apache Jenkins Server
> > >>> <je...@builds.apache.org> wrote:
> > >>> 
> > >>> See
> > >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
> > >>> e-> >>> 1 .8/55/display/redirect?page=changes>
> > >>> 
> > >>> Changes:
> > >>> 
> > >>> [kwin] fix some more warnings
> > >>> 
> > >>> ------------------------------------------
> > >>> Started by an SCM change
> > >>> Started by upstream project
> > >>> "sling-bundles-extensions-validation-test-services-1.8" build number
> > >>> 28
> > >>> originally caused by:
> > >>> Started by upstream project
> > >>> "sling-bundles-extensions-validation-api-1.8"
> > >>> build number 25>
> > >>> originally caused by:
> > >>> Started by an SCM change
> > >>> 
> > >>> [EnvInject] - Loading node environment variables.
> > >>> Building remotely on H23 (ubuntu) in workspace
> > >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
> > >>> e-> >>> 1 .8/ws/> Updating
> > >>> https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/valida
> > >>> ti
> > >>> o
> > >>> n/core at revision '2017-03-16T11:10:09.674 +0000' U
> > >>> src/test/java/org/apache/sling/validation/impl/model/MergedValidationM
> > >>> od
> > >>> e
> > >>> lTest.java U
> > >>> src/test/java/org/apache/sling/validation/impl/resourcemodel/ResourceV
> > >>> al
> > >>> i
> > >>> dationModelProviderImplTest.java U
> > >>> src/test/java/org/apache/sling/validation/impl/ValidationServiceImplTe
> > >>> st
> > >>> .
> > >>> java U
> > >>> src/main/java/org/apache/sling/validation/impl/ValidationServiceImpl.j
> > >>> av
> > >>> a
> > >>> At revision 1787158
> > >>> 
> > >>> Parsing POMs
> > >>> Established TCP socket on 34822
> > >>> maven33-agent.jar already up to date
> > >>> maven33-interceptor.jar already up to date
> > >>> maven3-interceptor-commons.jar already up to date
> > >>> [sling-bundles-extensions-validation-core-1.8] $
> > >>> /home/jenkins/tools/java/latest1.8/bin/java -Xmx2g -Xms256m -cp
> > >>> /home/jenkins/jenkins-slave/maven33-agent.jar:/home/jenkins/tools/mave
> > >>> n/
> > >>> a
> > >>> pache-maven-3.3.9/boot/plexus-classworlds-2.5.2.jar:/home/jenkins/tool
> > >>> s/
> > >>> ma
> > >>> ven/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 34822
> > >>> <===[JENKINS REMOTING CAPACITY]===>   channel started
> > >>> Executing Maven:  -B -f
> > >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
> > >>> e-> >>> 1 .8/ws/pom.xml>
> > >>> -Dmaven.repo.local=/home/jenkins/jenkins-slave/maven-repositories/0 -U
> > >>> clean deploy [INFO] Scanning for projects...
> > >>> [INFO]
> > >>> [INFO]
> > >>> ----------------------------------------------------------------------
> > >>> --
> > >>> [INFO] Building Apache Sling Validation Framework Core Implementation
> > >>> 1.0.0-SNAPSHOT [INFO]
> > >>> ----------------------------------------------------------------------
> > >>> --
> > >>> [INFO] Downloading:
> > >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> > >>> ng
> > >>> .
> > >>> validation.api/1.0.0-SNAPSHOT/maven-metadata.xml [INFO] Downloaded:
> > >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> > >>> ng
> > >>> .
> > >>> validation.api/1.0.0-SNAPSHOT/maven-metadata.xml (1023 B at 2.2
> > >>> KB/sec)
> > >>> [INFO] Downloading:
> > >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> > >>> ng
> > >>> .
> > >>> validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20
> > >>> 17
> > >>> 03
> > >>> 16.110912-1580.pom [INFO] Downloaded:
> > >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> > >>> ng
> > >>> .
> > >>> validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20
> > >>> 17
> > >>> 03
> > >>> 16.110912-1580.pom (3 KB at 7.5 KB/sec) [INFO] Downloading:
> > >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> > >>> ng
> > >>> .
> > >>> validation.test-services/1.0.0-SNAPSHOT/maven-metadata.xml [INFO]
> > >>> Downloaded:
> > >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> > >>> ng
> > >>> .
> > >>> validation.test-services/1.0.0-SNAPSHOT/maven-metadata.xml (2 KB at
> > >>> 2.7
> > >>> KB/sec) [INFO] Downloading:
> > >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> > >>> ng
> > >>> .
> > >>> validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.te
> > >>> st
> > >>> -s
> > >>> ervices-1.0.0-20170316.110958-1573.pom [INFO] Downloaded:
> > >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> > >>> ng
> > >>> .
> > >>> validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.te
> > >>> st
> > >>> -s
> > >>> ervices-1.0.0-20170316.110958-1573.pom (5 KB at 12.2 KB/sec) [INFO]
> > >>> Downloading:
> > >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> > >>> ng
> > >>> .
> > >>> testing.paxexam/0.0.3-SNAPSHOT/maven-metadata.xml [INFO] Downloaded:
> > >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> > >>> ng
> > >>> .
> > >>> testing.paxexam/0.0.3-SNAPSHOT/maven-metadata.xml (1016 B at 2.5
> > >>> KB/sec)
> > >>> [INFO] Downloading:
> > >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> > >>> ng
> > >>> .
> > >>> testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-
> > >>> 20
> > >>> 17
> > >>> 0313.172758-24.pom [INFO] Downloaded:
> > >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> > >>> ng
> > >>> .
> > >>> testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-
> > >>> 20
> > >>> 17
> > >>> 0313.172758-24.pom (6 KB at 13.1 KB/sec) [INFO] Downloading:
> > >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> > >>> ng
> > >>> .
> > >>> validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20
> > >>> 17
> > >>> 03
> > >>> 16.110912-1580.jar [INFO] Downloading:
> > >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> > >>> ng
> > >>> .
> > >>> validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.te
> > >>> st
> > >>> -s
> > >>> ervices-1.0.0-20170316.110958-1573.jar [INFO] Downloading:
> > >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> > >>> ng
> > >>> .
> > >>> testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-
> > >>> 20
> > >>> 17
> > >>> 0313.172758-24.jar [INFO] Downloaded:
> > >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> > >>> ng
> > >>> .
> > >>> validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20
> > >>> 17
> > >>> 03
> > >>> 16.110912-1580.jar (22 KB at 47.2 KB/sec) [INFO] Downloaded:
> > >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> > >>> ng
> > >>> .
> > >>> validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.te
> > >>> st
> > >>> -s
> > >>> ervices-1.0.0-20170316.110958-1573.jar (22 KB at 48.4 KB/sec) [INFO]
> > >>> Downloaded:
> > >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> > >>> ng
> > >>> .
> > >>> testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-
> > >>> 20
> > >>> 17
> > >>> 0313.172758-24.jar (31 KB at 65.6 KB/sec) [INFO]
> > >>> [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @
> > >>> org.apache.sling.validation.core --- [INFO] Deleting
> > >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
> > >>> e-> >>> 1 .8/ws/target> [INFO]
> > >>> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @
> > >>> org.apache.sling.validation.core --- [INFO]
> > >>> [INFO] --- maven-antrun-plugin:1.8:run
> > >>> (set-bundle-required-execution-environment) @
> > >>> org.apache.sling.validation.core --- [INFO] Executing tasks
> > >>> 
> > >>> main:
> > >>> Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.8 from
> > >>> sling.java.version=8 [INFO] Executed tasks
> > >>> [INFO]
> > >>> [INFO] --- maven-remote-resources-plugin:1.5:process
> > >>> (process-resource-bundles) @ org.apache.sling.validation.core ---
> > >>> [INFO]
> > >>> [INFO] --- maven-remote-resources-plugin:1.5:process (default) @
> > >>> org.apache.sling.validation.core --- [INFO]
> > >>> [INFO] --- depends-maven-plugin:1.3.1:generate-depends-file (default)
> > >>> @
> > >>> org.apache.sling.validation.core --- [INFO] Created:
> > >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
> > >>> e-> >>> 1 .8/ws/target/classes/META-INF/maven/dependencies.properties>
> > >>> [INFO] [INFO] --- maven-resources-plugin:2.7:resources
> > >>> (default-resources) @ org.apache.sling.validation.core --- [INFO]
> > >>> Using 'UTF-8' encoding to copy filtered resources.
> > >>> [INFO] Copying 1 resource
> > >>> [INFO] Copying 3 resources
> > >>> [INFO] Copying 3 resources
> > >>> [INFO]
> > >>> [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @
> > >>> org.apache.sling.validation.core --- [INFO] Changes detected -
> > >>> recompiling the module!
> > >>> [INFO] Compiling 19 source files to
> > >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
> > >>> e-> >>> 1 .8/ws/target/classes> [INFO]
> > >>> [INFO] --- maven-bundle-plugin:3.2.0:manifest (scr-metadata) @
> > >>> org.apache.sling.validation.core --- [INFO]
> > >>> [INFO] --- maven-resources-plugin:2.7:testResources
> > >>> (default-testResources) @ org.apache.sling.validation.core --- [INFO]
> > >>> Using 'UTF-8' encoding to copy filtered resources.
> > >>> [INFO] Copying 2 resources
> > >>> [INFO] Copying 3 resources
> > >>> [INFO] Copying 3 resources
> > >>> [INFO]
> > >>> [INFO] --- maven-compiler-plugin:3.5.1:testCompile
> > >>> (default-testCompile)
> > >>> @
> > >>> org.apache.sling.validation.core --- [INFO] Changes detected -
> > >>> recompiling the module!
> > >>> [INFO] Compiling 18 source files to
> > >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
> > >>> e-> >>> 1 .8/ws/target/test-classes> [INFO]
> > >>> [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @
> > >>> org.apache.sling.validation.core --- [INFO] Surefire report directory:
> > >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
> > >>> e-> >>> 1 .8/ws/target/surefire-reports>
> > >>> 
> > >>> -------------------------------------------------------
> > >>> T E S T S
> > >>> -------------------------------------------------------
> > >>> Running org.apache.sling.validation.impl.ValidationServiceImplTest
> > >>> Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.913
> > >>> sec
> > >>> - in org.apache.sling.validation.impl.ValidationServiceImplTest
> > >>> Running
> > >>> org.apache.sling.validation.impl.resourcemodel.ResourceValidationModel
> > >>> Pr
> > >>> o
> > >>> viderImplTest Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time
> > >>> elapsed: 0.449 sec - in
> > >>> org.apache.sling.validation.impl.resourcemodel.ResourceValidationModel
> > >>> Pr
> > >>> o
> > >>> viderImplTest Running
> > >>> org.apache.sling.validation.impl.model.MergedValidationModelTest Tests
> > >>> run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
> > >>> <<<
> > >>> FAILURE! - in
> > >>> org.apache.sling.validation.impl.model.MergedValidationModelTest
> > >>> testOverwritingChildrenAndResourceProperties(org.apache.sling.validati
> > >>> on
> > >>> .
> > >>> impl.model.MergedValidationModelTest)  Time elapsed: 0.003 sec  <<<
> > >>> FAILURE! java.lang.AssertionError:
> > >>> Expected: iterable over [<[ResourceProperty with
> > >>> namePattern=overwrittenNameToOverwrite, ResourceProperty with
> > >>> namePattern=originalNameNotOverwritten]>] in any order>
> > >>> 
> > >>>    but: Not matched: <ResourcePropertyImpl [name=nameNotOverwritten,
> > >>>    isMultiple=false, isRequired=true, validators=[],
> > >>>    namePattern=originalNameNotOverwritten]>>
> > >>> 	
> > >>> 	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
> > >>> 	at org.junit.Assert.assertThat(Assert.java:956)
> > >>> 	at org.junit.Assert.assertThat(Assert.java:923)
> > >>> 	at
> 
> org.apache.sling.validation.impl.model.MergedValidationModelTest.testOv
> 
> > >>> 	e
> 
> rwritingChildrenAndResourceProperties(MergedValidationModelTest.java:85
> 
> > >>> 	)>
> > >>> 
> > >>> Running org.apache.sling.validation.impl.util.ValidatorTypeUtilTest
> > >>> Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005
> > >>> sec
> > >>> - in org.apache.sling.validation.impl.util.ValidatorTypeUtilTest
> > >>> Running
> > >>> org.apache.sling.validation.impl.ValidationModelRetrieverImplTest
> > >>> [main]
> > >>> INFO org.apache.sling.validation.impl.ValidationModelRetrieverImpl - A
> > >>> Validator for the same id 'DateValidator' is already registered with
> > >>> class 'ValidatorWithSeverity
> > >>> [validator=org.apache.sling.validation.impl.util.examplevalidators.Dat
> > >>> eV
> > >>> a
> > >>> lidator@492691d7, severity=1]' from bundle 1 and has a higher service
> > >>> ranking [main] INFO
> > >>> org.apache.sling.validation.impl.ValidationModelRetrieverImpl -
> > >>> Overwriting already existing validator ValidatorWithSeverity
> > >>> [validator=org.apache.sling.validation.impl.util.examplevalidators.Dat
> > >>> eV
> > >>> a
> > >>> lidator@74589991, severity=1] from bundle 1 with validator
> > >>> org.apache.sling.validation.impl.util.examplevalidators.StringValidato
> > >>> r@
> > >>> 1
> > >>> 46dfe6 from bundle 1, because it has the same id 'DateValidator' and a
> > >>> higher service ranking Tests run: 12, Failures: 0, Errors: 0, Skipped:
> > >>> 0,
> > >>> Time elapsed: 0.059 sec - in
> > >>> org.apache.sling.validation.impl.ValidationModelRetrieverImplTest
> > >>> 
> > >>> Results :
> > >>> 
> > >>> Failed tests:
> > >>> MergedValidationModelTest.testOverwritingChildrenAndResourceProperties
> > >>> :8
> > >>> 5
> > >>> 
> > >>> Expected: iterable over [<[ResourceProperty with
> > >>> namePattern=overwrittenNameToOverwrite, ResourceProperty with
> > >>> namePattern=originalNameNotOverwritten]>] in any order>
> > >>> 
> > >>>    but: Not matched: <ResourcePropertyImpl [name=nameNotOverwritten,
> > >>>    isMultiple=false, isRequired=true, validators=[],
> > >>>    namePattern=originalNameNotOverwritten]>>
> > >>> 
> > >>> Tests run: 59, Failures: 1, Errors: 0, Skipped: 0
> > >>> 
> > >>> [ERROR] There are test failures.
> > >>> 
> > >>> Please refer to
> > >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
> > >>> e-> >>> 1 .8/ws/target/surefire-reports> for the individual test
> > >>> results.
> > >>> [JENKINS]
> > >>> Recording test results
> > >>> [INFO]
> > >>> [INFO] --- animal-sniffer-maven-plugin:1.15:check (default) @
> > >>> org.apache.sling.validation.core --- [INFO] Checking unresolved
> > >>> references to org.codehaus.mojo.signature:java18:1.0 [INFO]
> > >>> [INFO] --- maven-bundle-plugin:3.2.0:bundle (default-bundle) @
> > >>> org.apache.sling.validation.core --- [INFO]
> > >>> [INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) >
> > >>> generate-sources @ org.apache.sling.validation.core >>> [INFO]
> > >>> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @
> > >>> org.apache.sling.validation.core --- [INFO]
> > >>> [INFO] --- maven-antrun-plugin:1.8:run
> > >>> (set-bundle-required-execution-environment) @
> > >>> org.apache.sling.validation.core --- [INFO] Executing tasks
> > >>> 
> > >>> main:
> > >>> Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.8 from
> > >>> sling.java.version=8 [INFO] Executed tasks
> > >>> [WARNING] Failed to getClass for
> > >>> org.apache.maven.plugins.source.SourceJarMojo [INFO]
> > >>> [INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) <
> > >>> generate-sources @ org.apache.sling.validation.core <<< [INFO]
> > >>> [INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @
> > >>> org.apache.sling.validation.core --- [INFO] Building jar:
> > >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
> > >>> e-> >>> 1
> > >>> .8/ws/target/org.apache.sling.validation.core-1.0.0-SNAPSHOT-sources.
> > >>> jar
> > >>> 
> > >>> [INFO]
> > >>> [INFO] --- maven-site-plugin:3.5.1:attach-descriptor
> > >>> (attach-descriptor)
> > >>> @
> > >>> org.apache.sling.validation.core --- [INFO]
> > >>> [INFO] --- maven-failsafe-plugin:2.18.1:integration-test (default) @
> > >>> org.apache.sling.validation.core --- [INFO] Failsafe report directory:
> > >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
> > >>> e-> >>> 1 .8/ws/target/failsafe-reports>
> > >>> 
> > >>> -------------------------------------------------------
> > >>> T E S T S
> > >>> -------------------------------------------------------
> > >>> Running org.apache.sling.validation.core.it.tests.ValidationServiceIT
> > >>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 21.543
> > >>> sec
> > >>> - in org.apache.sling.validation.core.it.tests.ValidationServiceIT
> > >>> 
> > >>> Results :
> > >>> 
> > >>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
> > >>> 
> > >>> [JENKINS] Recording test results
> > >>> [INFO]
> > >>> [INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default)
> > >>> @
> > >>> org.apache.sling.validation.core --- [INFO] Checking legal files in:
> > >>> org.apache.sling.validation.core-1.0.0-SNAPSHOT.jar [INFO] Checking
> > >>> legal
> > >>> files in: org.apache.sling.validation.core-1.0.0-SNAPSHOT-sources.jar
> > >>> [INFO]
> > >>> [INFO] --- apache-rat-plugin:0.11:check (default) @
> > >>> org.apache.sling.validation.core --- [INFO] 51 implicit excludes (use
> > >>> -debug for more details).
> > >>> [INFO] Exclude: DEPENDENCIES
> > >>> [INFO] Exclude: src/main/appended-resources/META-INF/*
> > >>> [INFO] Exclude: velocity.log
> > >>> [INFO] Exclude: target/*
> > >>> [INFO] Exclude: README.md
> > >>> [INFO] Exclude: maven-eclipse.xml
> > >>> [INFO] Exclude: .*
> > >>> [INFO] Exclude: .*/**
> > >>> [INFO] Exclude: **/*.json
> > >>> [INFO] Exclude: DEPENDENCIES
> > >>> [INFO] Exclude: **/*.rej
> > >>> [INFO] Exclude: hs_err_*.log
> > >>> [INFO] Exclude: **/repository/index/*/index-details.txt
> > >>> [INFO] 54 resources included (use -debug for more details)
> > >>> [INFO] Rat check: Summary of files. Unapproved: 4 unknown: 4
> > >>> generated:
> > >>> 0
> > >>> approved: 40 licence. [JENKINS] Archiving disabled
> > >>> [JENKINS] Archiving disabled[INFO]
> > >>> ----------------------------------------------------------------------
> > >>> --
> > >>> [INFO] BUILD FAILURE
> > >>> [INFO]
> > >>> ----------------------------------------------------------------------
> > >>> --
> > >>> [INFO] Total time: 51.740 s
> > >>> [INFO] Finished at: 2017-03-16T11:11:10+00:00
> > >>> 
> > >>> [INFO] Final Memory: 51M/598M
> > >>> [INFO]
> > >>> ----------------------------------------------------------------------
> > >>> --
> > >>> Waiting for Jenkins to finish collecting data
> > >>> [ERROR] Failed to execute goal
> > >>> org.apache.rat:apache-rat-plugin:0.11:check
> > >>> (default) on project org.apache.sling.validation.core: Too many files
> > >>> with unapproved license: 4 See RAT report in:
> > >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
> > >>> e-> >>> 1 .8/ws/target/rat.txt> -> [Help 1] [ERROR]
> > >>> [ERROR] To see the full stack trace of the errors, re-run Maven with
> > >>> the
> > >>> -e switch. [ERROR] Re-run Maven using the -X switch to enable full
> > >>> debug
> > >>> logging. [ERROR]
> > >>> [ERROR] For more information about the errors and possible solutions,
> > >>> please read the following articles: [ERROR] [Help 1]
> > >>> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > >>> channel stopped
> > >>> Recording test results


Re: PaxExam based ITs create folders outside target

Posted by Oliver Lietz <ap...@oliverlietz.de>.
On Wednesday 29 March 2017 14:37:58 Konrad Windszus wrote:
> This is still not 100% fixed.
> The Jenkins Workspace still contains the folder
> https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/
> ws/sling/repository/index/indexWriterDir/ outside of target. That folder
> must have been created by PaxExam after I wiped out the workspace in the
> Jenkins Job on the 16th of March. @Oli: Do you have any idea?

Will have a look...

O.

> Thanks,
> Konrad
> 
> > On 16 Mar 2017, at 13:55, Oliver Lietz <ap...@oliverlietz.de> wrote:
> > 
> > On Thursday 16 March 2017 13:31:15 Konrad Windszus wrote:
> >> Hi,
> > 
> > Hi Konrad,
> > 
> >> it seems that PaxExam based ITs may create folders outside the target
> >> folder (see
> >> https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.
> >> 8/
> >> ws/) For Validation the folder
> >> sling/repository/index/lucene-1488547426482/data was obviously created by
> >> PaxExam.
> >> 
> >> Usually the repository lives below
> >> https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.
> >> 8/
> >> ws/target/paxexam/ValidationServiceIT/sling/repository/
> >> 
> >> I also sometimes have seen this locally but I fail to reproduce it
> >> reliably. Does anyone have an idea, why the lucene index is there?
> > 
> > that happend when configuration changed for LuceneIndexProviderService
> > during container start and should be fixed in r1786426.
> > 
> >> Seems that PaxExam relies on relative paths somehow, which are sometimes
> >> relative to target and sometimes to the project root.
> > 
> > No, in the above case configuration from Option slingLaunchpadOak was
> > present first and configuration with workingDirectory kicked in later.
> > 
> > Regards,
> > O.
> > 
> >> Thanks for any help
> >> Konrad
> >> 
> >>> On 16 Mar 2017, at 12:11, Apache Jenkins Server
> >>> <je...@builds.apache.org> wrote:
> >>> 
> >>> See
> >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >>> 1
> >>> .8/55/display/redirect?page=changes>
> >>> 
> >>> Changes:
> >>> 
> >>> [kwin] fix some more warnings
> >>> 
> >>> ------------------------------------------
> >>> Started by an SCM change
> >>> Started by upstream project
> >>> "sling-bundles-extensions-validation-test-services-1.8" build number 28
> >>> originally caused by:
> >>> Started by upstream project
> >>> "sling-bundles-extensions-validation-api-1.8"
> >>> build number 25>
> >>> originally caused by:
> >>> Started by an SCM change
> >>> 
> >>> [EnvInject] - Loading node environment variables.
> >>> Building remotely on H23 (ubuntu) in workspace
> >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >>> 1
> >>> .8/ws/> Updating
> >>> https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/validati
> >>> o
> >>> n/core at revision '2017-03-16T11:10:09.674 +0000' U
> >>> src/test/java/org/apache/sling/validation/impl/model/MergedValidationMod
> >>> e
> >>> lTest.java U
> >>> src/test/java/org/apache/sling/validation/impl/resourcemodel/ResourceVal
> >>> i
> >>> dationModelProviderImplTest.java U
> >>> src/test/java/org/apache/sling/validation/impl/ValidationServiceImplTest
> >>> .
> >>> java U
> >>> src/main/java/org/apache/sling/validation/impl/ValidationServiceImpl.jav
> >>> a
> >>> At revision 1787158
> >>> 
> >>> Parsing POMs
> >>> Established TCP socket on 34822
> >>> maven33-agent.jar already up to date
> >>> maven33-interceptor.jar already up to date
> >>> maven3-interceptor-commons.jar already up to date
> >>> [sling-bundles-extensions-validation-core-1.8] $
> >>> /home/jenkins/tools/java/latest1.8/bin/java -Xmx2g -Xms256m -cp
> >>> /home/jenkins/jenkins-slave/maven33-agent.jar:/home/jenkins/tools/maven/
> >>> a
> >>> pache-maven-3.3.9/boot/plexus-classworlds-2.5.2.jar:/home/jenkins/tools/
> >>> ma
> >>> ven/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 34822
> >>> <===[JENKINS REMOTING CAPACITY]===>   channel started
> >>> Executing Maven:  -B -f
> >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >>> 1
> >>> .8/ws/pom.xml>
> >>> -Dmaven.repo.local=/home/jenkins/jenkins-slave/maven-repositories/0 -U
> >>> clean deploy [INFO] Scanning for projects...
> >>> [INFO]
> >>> [INFO]
> >>> ------------------------------------------------------------------------
> >>> [INFO] Building Apache Sling Validation Framework Core Implementation
> >>> 1.0.0-SNAPSHOT [INFO]
> >>> ------------------------------------------------------------------------
> >>> [INFO] Downloading:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >>> .
> >>> validation.api/1.0.0-SNAPSHOT/maven-metadata.xml [INFO] Downloaded:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >>> .
> >>> validation.api/1.0.0-SNAPSHOT/maven-metadata.xml (1023 B at 2.2 KB/sec)
> >>> [INFO] Downloading:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >>> .
> >>> validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-2017
> >>> 03
> >>> 16.110912-1580.pom [INFO] Downloaded:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >>> .
> >>> validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-2017
> >>> 03
> >>> 16.110912-1580.pom (3 KB at 7.5 KB/sec) [INFO] Downloading:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >>> .
> >>> validation.test-services/1.0.0-SNAPSHOT/maven-metadata.xml [INFO]
> >>> Downloaded:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >>> .
> >>> validation.test-services/1.0.0-SNAPSHOT/maven-metadata.xml (2 KB at 2.7
> >>> KB/sec) [INFO] Downloading:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >>> .
> >>> validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test
> >>> -s
> >>> ervices-1.0.0-20170316.110958-1573.pom [INFO] Downloaded:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >>> .
> >>> validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test
> >>> -s
> >>> ervices-1.0.0-20170316.110958-1573.pom (5 KB at 12.2 KB/sec) [INFO]
> >>> Downloading:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >>> .
> >>> testing.paxexam/0.0.3-SNAPSHOT/maven-metadata.xml [INFO] Downloaded:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >>> .
> >>> testing.paxexam/0.0.3-SNAPSHOT/maven-metadata.xml (1016 B at 2.5 KB/sec)
> >>> [INFO] Downloading:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >>> .
> >>> testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-20
> >>> 17
> >>> 0313.172758-24.pom [INFO] Downloaded:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >>> .
> >>> testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-20
> >>> 17
> >>> 0313.172758-24.pom (6 KB at 13.1 KB/sec) [INFO] Downloading:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >>> .
> >>> validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-2017
> >>> 03
> >>> 16.110912-1580.jar [INFO] Downloading:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >>> .
> >>> validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test
> >>> -s
> >>> ervices-1.0.0-20170316.110958-1573.jar [INFO] Downloading:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >>> .
> >>> testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-20
> >>> 17
> >>> 0313.172758-24.jar [INFO] Downloaded:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >>> .
> >>> validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-2017
> >>> 03
> >>> 16.110912-1580.jar (22 KB at 47.2 KB/sec) [INFO] Downloaded:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >>> .
> >>> validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test
> >>> -s
> >>> ervices-1.0.0-20170316.110958-1573.jar (22 KB at 48.4 KB/sec) [INFO]
> >>> Downloaded:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >>> .
> >>> testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-20
> >>> 17
> >>> 0313.172758-24.jar (31 KB at 65.6 KB/sec) [INFO]
> >>> [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @
> >>> org.apache.sling.validation.core --- [INFO] Deleting
> >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >>> 1
> >>> .8/ws/target> [INFO]
> >>> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @
> >>> org.apache.sling.validation.core --- [INFO]
> >>> [INFO] --- maven-antrun-plugin:1.8:run
> >>> (set-bundle-required-execution-environment) @
> >>> org.apache.sling.validation.core --- [INFO] Executing tasks
> >>> 
> >>> main:
> >>> Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.8 from
> >>> sling.java.version=8 [INFO] Executed tasks
> >>> [INFO]
> >>> [INFO] --- maven-remote-resources-plugin:1.5:process
> >>> (process-resource-bundles) @ org.apache.sling.validation.core --- [INFO]
> >>> [INFO] --- maven-remote-resources-plugin:1.5:process (default) @
> >>> org.apache.sling.validation.core --- [INFO]
> >>> [INFO] --- depends-maven-plugin:1.3.1:generate-depends-file (default) @
> >>> org.apache.sling.validation.core --- [INFO] Created:
> >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >>> 1
> >>> .8/ws/target/classes/META-INF/maven/dependencies.properties> [INFO]
> >>> [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @
> >>> org.apache.sling.validation.core --- [INFO] Using 'UTF-8' encoding to
> >>> copy filtered resources.
> >>> [INFO] Copying 1 resource
> >>> [INFO] Copying 3 resources
> >>> [INFO] Copying 3 resources
> >>> [INFO]
> >>> [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @
> >>> org.apache.sling.validation.core --- [INFO] Changes detected -
> >>> recompiling the module!
> >>> [INFO] Compiling 19 source files to
> >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >>> 1
> >>> .8/ws/target/classes> [INFO]
> >>> [INFO] --- maven-bundle-plugin:3.2.0:manifest (scr-metadata) @
> >>> org.apache.sling.validation.core --- [INFO]
> >>> [INFO] --- maven-resources-plugin:2.7:testResources
> >>> (default-testResources) @ org.apache.sling.validation.core --- [INFO]
> >>> Using 'UTF-8' encoding to copy filtered resources.
> >>> [INFO] Copying 2 resources
> >>> [INFO] Copying 3 resources
> >>> [INFO] Copying 3 resources
> >>> [INFO]
> >>> [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile)
> >>> @
> >>> org.apache.sling.validation.core --- [INFO] Changes detected -
> >>> recompiling the module!
> >>> [INFO] Compiling 18 source files to
> >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >>> 1
> >>> .8/ws/target/test-classes> [INFO]
> >>> [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @
> >>> org.apache.sling.validation.core --- [INFO] Surefire report directory:
> >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >>> 1
> >>> .8/ws/target/surefire-reports>
> >>> 
> >>> -------------------------------------------------------
> >>> T E S T S
> >>> -------------------------------------------------------
> >>> Running org.apache.sling.validation.impl.ValidationServiceImplTest
> >>> Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.913
> >>> sec
> >>> - in org.apache.sling.validation.impl.ValidationServiceImplTest Running
> >>> org.apache.sling.validation.impl.resourcemodel.ResourceValidationModelPr
> >>> o
> >>> viderImplTest Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time
> >>> elapsed: 0.449 sec - in
> >>> org.apache.sling.validation.impl.resourcemodel.ResourceValidationModelPr
> >>> o
> >>> viderImplTest Running
> >>> org.apache.sling.validation.impl.model.MergedValidationModelTest Tests
> >>> run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec <<<
> >>> FAILURE! - in
> >>> org.apache.sling.validation.impl.model.MergedValidationModelTest
> >>> testOverwritingChildrenAndResourceProperties(org.apache.sling.validation
> >>> .
> >>> impl.model.MergedValidationModelTest)  Time elapsed: 0.003 sec  <<<
> >>> FAILURE! java.lang.AssertionError:
> >>> Expected: iterable over [<[ResourceProperty with
> >>> namePattern=overwrittenNameToOverwrite, ResourceProperty with
> >>> namePattern=originalNameNotOverwritten]>] in any order>
> >>> 
> >>>    but: Not matched: <ResourcePropertyImpl [name=nameNotOverwritten,
> >>>    isMultiple=false, isRequired=true, validators=[],
> >>>    namePattern=originalNameNotOverwritten]>>
> >>> 	
> >>> 	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
> >>> 	at org.junit.Assert.assertThat(Assert.java:956)
> >>> 	at org.junit.Assert.assertThat(Assert.java:923)
> >>> 	at
> >>> 	
org.apache.sling.validation.impl.model.MergedValidationModelTest.testOv
> >>> 	e
> >>> 	
rwritingChildrenAndResourceProperties(MergedValidationModelTest.java:85
> >>> 	)>
> >>> 
> >>> Running org.apache.sling.validation.impl.util.ValidatorTypeUtilTest
> >>> Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005
> >>> sec
> >>> - in org.apache.sling.validation.impl.util.ValidatorTypeUtilTest Running
> >>> org.apache.sling.validation.impl.ValidationModelRetrieverImplTest [main]
> >>> INFO org.apache.sling.validation.impl.ValidationModelRetrieverImpl - A
> >>> Validator for the same id 'DateValidator' is already registered with
> >>> class 'ValidatorWithSeverity
> >>> [validator=org.apache.sling.validation.impl.util.examplevalidators.DateV
> >>> a
> >>> lidator@492691d7, severity=1]' from bundle 1 and has a higher service
> >>> ranking [main] INFO
> >>> org.apache.sling.validation.impl.ValidationModelRetrieverImpl -
> >>> Overwriting already existing validator ValidatorWithSeverity
> >>> [validator=org.apache.sling.validation.impl.util.examplevalidators.DateV
> >>> a
> >>> lidator@74589991, severity=1] from bundle 1 with validator
> >>> org.apache.sling.validation.impl.util.examplevalidators.StringValidator@
> >>> 1
> >>> 46dfe6 from bundle 1, because it has the same id 'DateValidator' and a
> >>> higher service ranking Tests run: 12, Failures: 0, Errors: 0, Skipped:
> >>> 0,
> >>> Time elapsed: 0.059 sec - in
> >>> org.apache.sling.validation.impl.ValidationModelRetrieverImplTest
> >>> 
> >>> Results :
> >>> 
> >>> Failed tests:
> >>> MergedValidationModelTest.testOverwritingChildrenAndResourceProperties:8
> >>> 5
> >>> 
> >>> Expected: iterable over [<[ResourceProperty with
> >>> namePattern=overwrittenNameToOverwrite, ResourceProperty with
> >>> namePattern=originalNameNotOverwritten]>] in any order>
> >>> 
> >>>    but: Not matched: <ResourcePropertyImpl [name=nameNotOverwritten,
> >>>    isMultiple=false, isRequired=true, validators=[],
> >>>    namePattern=originalNameNotOverwritten]>>
> >>> 
> >>> Tests run: 59, Failures: 1, Errors: 0, Skipped: 0
> >>> 
> >>> [ERROR] There are test failures.
> >>> 
> >>> Please refer to
> >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >>> 1
> >>> .8/ws/target/surefire-reports> for the individual test results.
> >>> [JENKINS]
> >>> Recording test results
> >>> [INFO]
> >>> [INFO] --- animal-sniffer-maven-plugin:1.15:check (default) @
> >>> org.apache.sling.validation.core --- [INFO] Checking unresolved
> >>> references to org.codehaus.mojo.signature:java18:1.0 [INFO]
> >>> [INFO] --- maven-bundle-plugin:3.2.0:bundle (default-bundle) @
> >>> org.apache.sling.validation.core --- [INFO]
> >>> [INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) >
> >>> generate-sources @ org.apache.sling.validation.core >>> [INFO]
> >>> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @
> >>> org.apache.sling.validation.core --- [INFO]
> >>> [INFO] --- maven-antrun-plugin:1.8:run
> >>> (set-bundle-required-execution-environment) @
> >>> org.apache.sling.validation.core --- [INFO] Executing tasks
> >>> 
> >>> main:
> >>> Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.8 from
> >>> sling.java.version=8 [INFO] Executed tasks
> >>> [WARNING] Failed to getClass for
> >>> org.apache.maven.plugins.source.SourceJarMojo [INFO]
> >>> [INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) <
> >>> generate-sources @ org.apache.sling.validation.core <<< [INFO]
> >>> [INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @
> >>> org.apache.sling.validation.core --- [INFO] Building jar:
> >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >>> 1
> >>> .8/ws/target/org.apache.sling.validation.core-1.0.0-SNAPSHOT-sources.jar
> >>> >
> >>> [INFO]
> >>> [INFO] --- maven-site-plugin:3.5.1:attach-descriptor (attach-descriptor)
> >>> @
> >>> org.apache.sling.validation.core --- [INFO]
> >>> [INFO] --- maven-failsafe-plugin:2.18.1:integration-test (default) @
> >>> org.apache.sling.validation.core --- [INFO] Failsafe report directory:
> >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >>> 1
> >>> .8/ws/target/failsafe-reports>
> >>> 
> >>> -------------------------------------------------------
> >>> T E S T S
> >>> -------------------------------------------------------
> >>> Running org.apache.sling.validation.core.it.tests.ValidationServiceIT
> >>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 21.543
> >>> sec
> >>> - in org.apache.sling.validation.core.it.tests.ValidationServiceIT
> >>> 
> >>> Results :
> >>> 
> >>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
> >>> 
> >>> [JENKINS] Recording test results
> >>> [INFO]
> >>> [INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default) @
> >>> org.apache.sling.validation.core --- [INFO] Checking legal files in:
> >>> org.apache.sling.validation.core-1.0.0-SNAPSHOT.jar [INFO] Checking
> >>> legal
> >>> files in: org.apache.sling.validation.core-1.0.0-SNAPSHOT-sources.jar
> >>> [INFO]
> >>> [INFO] --- apache-rat-plugin:0.11:check (default) @
> >>> org.apache.sling.validation.core --- [INFO] 51 implicit excludes (use
> >>> -debug for more details).
> >>> [INFO] Exclude: DEPENDENCIES
> >>> [INFO] Exclude: src/main/appended-resources/META-INF/*
> >>> [INFO] Exclude: velocity.log
> >>> [INFO] Exclude: target/*
> >>> [INFO] Exclude: README.md
> >>> [INFO] Exclude: maven-eclipse.xml
> >>> [INFO] Exclude: .*
> >>> [INFO] Exclude: .*/**
> >>> [INFO] Exclude: **/*.json
> >>> [INFO] Exclude: DEPENDENCIES
> >>> [INFO] Exclude: **/*.rej
> >>> [INFO] Exclude: hs_err_*.log
> >>> [INFO] Exclude: **/repository/index/*/index-details.txt
> >>> [INFO] 54 resources included (use -debug for more details)
> >>> [INFO] Rat check: Summary of files. Unapproved: 4 unknown: 4 generated:
> >>> 0
> >>> approved: 40 licence. [JENKINS] Archiving disabled
> >>> [JENKINS] Archiving disabled[INFO]
> >>> ------------------------------------------------------------------------
> >>> [INFO] BUILD FAILURE
> >>> [INFO]
> >>> ------------------------------------------------------------------------
> >>> [INFO] Total time: 51.740 s
> >>> [INFO] Finished at: 2017-03-16T11:11:10+00:00
> >>> 
> >>> [INFO] Final Memory: 51M/598M
> >>> [INFO]
> >>> ------------------------------------------------------------------------
> >>> Waiting for Jenkins to finish collecting data
> >>> [ERROR] Failed to execute goal
> >>> org.apache.rat:apache-rat-plugin:0.11:check
> >>> (default) on project org.apache.sling.validation.core: Too many files
> >>> with unapproved license: 4 See RAT report in:
> >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >>> 1
> >>> .8/ws/target/rat.txt> -> [Help 1] [ERROR]
> >>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> >>> -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug
> >>> logging. [ERROR]
> >>> [ERROR] For more information about the errors and possible solutions,
> >>> please read the following articles: [ERROR] [Help 1]
> >>> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> >>> channel stopped
> >>> Recording test results


Re: PaxExam based ITs create folders outside target

Posted by Konrad Windszus <ko...@gmx.de>.
This is still not 100% fixed.
The Jenkins Workspace still contains the folder https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/sling/repository/index/indexWriterDir/ outside of target.
That folder must have been created by PaxExam after I wiped out the workspace in the Jenkins Job on the 16th of March.
@Oli: Do you have any idea?
Thanks,
Konrad

> On 16 Mar 2017, at 13:55, Oliver Lietz <ap...@oliverlietz.de> wrote:
> 
> On Thursday 16 March 2017 13:31:15 Konrad Windszus wrote:
>> Hi,
> 
> Hi Konrad,
> 
>> it seems that PaxExam based ITs may create folders outside the target folder
>> (see
>> https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/
>> ws/) For Validation the folder
>> sling/repository/index/lucene-1488547426482/data was obviously created by
>> PaxExam.
>> 
>> Usually the repository lives below
>> https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/
>> ws/target/paxexam/ValidationServiceIT/sling/repository/
>> 
>> I also sometimes have seen this locally but I fail to reproduce it reliably.
>> Does anyone have an idea, why the lucene index is there?
> 
> that happend when configuration changed for LuceneIndexProviderService during 
> container start and should be fixed in r1786426.
> 
>> Seems that PaxExam relies on relative paths somehow, which are sometimes
>> relative to target and sometimes to the project root.
> 
> No, in the above case configuration from Option slingLaunchpadOak was present 
> first and configuration with workingDirectory kicked in later.
> 
> Regards,
> O.
> 
>> Thanks for any help
>> Konrad
>> 
>>> On 16 Mar 2017, at 12:11, Apache Jenkins Server
>>> <je...@builds.apache.org> wrote:
>>> 
>>> See
>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
>>> .8/55/display/redirect?page=changes>
>>> 
>>> Changes:
>>> 
>>> [kwin] fix some more warnings
>>> 
>>> ------------------------------------------
>>> Started by an SCM change
>>> Started by upstream project
>>> "sling-bundles-extensions-validation-test-services-1.8" build number 28
>>> originally caused by:
>>> Started by upstream project "sling-bundles-extensions-validation-api-1.8"
>>> build number 25> 
>>> originally caused by:
>>> Started by an SCM change
>>> 
>>> [EnvInject] - Loading node environment variables.
>>> Building remotely on H23 (ubuntu) in workspace
>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
>>> .8/ws/> Updating
>>> https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/validatio
>>> n/core at revision '2017-03-16T11:10:09.674 +0000' U        
>>> src/test/java/org/apache/sling/validation/impl/model/MergedValidationMode
>>> lTest.java U        
>>> src/test/java/org/apache/sling/validation/impl/resourcemodel/ResourceVali
>>> dationModelProviderImplTest.java U        
>>> src/test/java/org/apache/sling/validation/impl/ValidationServiceImplTest.
>>> java U        
>>> src/main/java/org/apache/sling/validation/impl/ValidationServiceImpl.java
>>> At revision 1787158
>>> 
>>> Parsing POMs
>>> Established TCP socket on 34822
>>> maven33-agent.jar already up to date
>>> maven33-interceptor.jar already up to date
>>> maven3-interceptor-commons.jar already up to date
>>> [sling-bundles-extensions-validation-core-1.8] $
>>> /home/jenkins/tools/java/latest1.8/bin/java -Xmx2g -Xms256m -cp
>>> /home/jenkins/jenkins-slave/maven33-agent.jar:/home/jenkins/tools/maven/a
>>> pache-maven-3.3.9/boot/plexus-classworlds-2.5.2.jar:/home/jenkins/tools/ma
>>> ven/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 34822
>>> <===[JENKINS REMOTING CAPACITY]===>   channel started
>>> Executing Maven:  -B -f
>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
>>> .8/ws/pom.xml>
>>> -Dmaven.repo.local=/home/jenkins/jenkins-slave/maven-repositories/0 -U
>>> clean deploy [INFO] Scanning for projects...
>>> [INFO]
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Building Apache Sling Validation Framework Core Implementation
>>> 1.0.0-SNAPSHOT [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Downloading:
>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
>>> validation.api/1.0.0-SNAPSHOT/maven-metadata.xml [INFO] Downloaded:
>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
>>> validation.api/1.0.0-SNAPSHOT/maven-metadata.xml (1023 B at 2.2 KB/sec)
>>> [INFO] Downloading:
>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
>>> validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-201703
>>> 16.110912-1580.pom [INFO] Downloaded:
>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
>>> validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-201703
>>> 16.110912-1580.pom (3 KB at 7.5 KB/sec) [INFO] Downloading:
>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
>>> validation.test-services/1.0.0-SNAPSHOT/maven-metadata.xml [INFO]
>>> Downloaded:
>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
>>> validation.test-services/1.0.0-SNAPSHOT/maven-metadata.xml (2 KB at 2.7
>>> KB/sec) [INFO] Downloading:
>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
>>> validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test-s
>>> ervices-1.0.0-20170316.110958-1573.pom [INFO] Downloaded:
>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
>>> validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test-s
>>> ervices-1.0.0-20170316.110958-1573.pom (5 KB at 12.2 KB/sec) [INFO]
>>> Downloading:
>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
>>> testing.paxexam/0.0.3-SNAPSHOT/maven-metadata.xml [INFO] Downloaded:
>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
>>> testing.paxexam/0.0.3-SNAPSHOT/maven-metadata.xml (1016 B at 2.5 KB/sec)
>>> [INFO] Downloading:
>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
>>> testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-2017
>>> 0313.172758-24.pom [INFO] Downloaded:
>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
>>> testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-2017
>>> 0313.172758-24.pom (6 KB at 13.1 KB/sec) [INFO] Downloading:
>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
>>> validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-201703
>>> 16.110912-1580.jar [INFO] Downloading:
>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
>>> validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test-s
>>> ervices-1.0.0-20170316.110958-1573.jar [INFO] Downloading:
>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
>>> testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-2017
>>> 0313.172758-24.jar [INFO] Downloaded:
>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
>>> validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-201703
>>> 16.110912-1580.jar (22 KB at 47.2 KB/sec) [INFO] Downloaded:
>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
>>> validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test-s
>>> ervices-1.0.0-20170316.110958-1573.jar (22 KB at 48.4 KB/sec) [INFO]
>>> Downloaded:
>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
>>> testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-2017
>>> 0313.172758-24.jar (31 KB at 65.6 KB/sec) [INFO]
>>> [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @
>>> org.apache.sling.validation.core --- [INFO] Deleting
>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
>>> .8/ws/target> [INFO]
>>> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @
>>> org.apache.sling.validation.core --- [INFO]
>>> [INFO] --- maven-antrun-plugin:1.8:run
>>> (set-bundle-required-execution-environment) @
>>> org.apache.sling.validation.core --- [INFO] Executing tasks
>>> 
>>> main:
>>> Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.8 from
>>> sling.java.version=8 [INFO] Executed tasks
>>> [INFO]
>>> [INFO] --- maven-remote-resources-plugin:1.5:process
>>> (process-resource-bundles) @ org.apache.sling.validation.core --- [INFO]
>>> [INFO] --- maven-remote-resources-plugin:1.5:process (default) @
>>> org.apache.sling.validation.core --- [INFO]
>>> [INFO] --- depends-maven-plugin:1.3.1:generate-depends-file (default) @
>>> org.apache.sling.validation.core --- [INFO] Created:
>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
>>> .8/ws/target/classes/META-INF/maven/dependencies.properties> [INFO]
>>> [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @
>>> org.apache.sling.validation.core --- [INFO] Using 'UTF-8' encoding to
>>> copy filtered resources.
>>> [INFO] Copying 1 resource
>>> [INFO] Copying 3 resources
>>> [INFO] Copying 3 resources
>>> [INFO]
>>> [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @
>>> org.apache.sling.validation.core --- [INFO] Changes detected -
>>> recompiling the module!
>>> [INFO] Compiling 19 source files to
>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
>>> .8/ws/target/classes> [INFO]
>>> [INFO] --- maven-bundle-plugin:3.2.0:manifest (scr-metadata) @
>>> org.apache.sling.validation.core --- [INFO]
>>> [INFO] --- maven-resources-plugin:2.7:testResources
>>> (default-testResources) @ org.apache.sling.validation.core --- [INFO]
>>> Using 'UTF-8' encoding to copy filtered resources.
>>> [INFO] Copying 2 resources
>>> [INFO] Copying 3 resources
>>> [INFO] Copying 3 resources
>>> [INFO]
>>> [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @
>>> org.apache.sling.validation.core --- [INFO] Changes detected -
>>> recompiling the module!
>>> [INFO] Compiling 18 source files to
>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
>>> .8/ws/target/test-classes> [INFO]
>>> [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @
>>> org.apache.sling.validation.core --- [INFO] Surefire report directory:
>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
>>> .8/ws/target/surefire-reports>
>>> 
>>> -------------------------------------------------------
>>> T E S T S
>>> -------------------------------------------------------
>>> Running org.apache.sling.validation.impl.ValidationServiceImplTest
>>> Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.913 sec
>>> - in org.apache.sling.validation.impl.ValidationServiceImplTest Running
>>> org.apache.sling.validation.impl.resourcemodel.ResourceValidationModelPro
>>> viderImplTest Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time
>>> elapsed: 0.449 sec - in
>>> org.apache.sling.validation.impl.resourcemodel.ResourceValidationModelPro
>>> viderImplTest Running
>>> org.apache.sling.validation.impl.model.MergedValidationModelTest Tests
>>> run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec <<<
>>> FAILURE! - in
>>> org.apache.sling.validation.impl.model.MergedValidationModelTest
>>> testOverwritingChildrenAndResourceProperties(org.apache.sling.validation.
>>> impl.model.MergedValidationModelTest)  Time elapsed: 0.003 sec  <<<
>>> FAILURE! java.lang.AssertionError:
>>> Expected: iterable over [<[ResourceProperty with
>>> namePattern=overwrittenNameToOverwrite, ResourceProperty with
>>> namePattern=originalNameNotOverwritten]>] in any order> 
>>>    but: Not matched: <ResourcePropertyImpl [name=nameNotOverwritten,
>>>    isMultiple=false, isRequired=true, validators=[],
>>>    namePattern=originalNameNotOverwritten]>> 	
>>> 	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
>>> 	at org.junit.Assert.assertThat(Assert.java:956)
>>> 	at org.junit.Assert.assertThat(Assert.java:923)
>>> 	at
>>> 	org.apache.sling.validation.impl.model.MergedValidationModelTest.testOve
>>> 	rwritingChildrenAndResourceProperties(MergedValidationModelTest.java:85)> 
>>> Running org.apache.sling.validation.impl.util.ValidatorTypeUtilTest
>>> Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec
>>> - in org.apache.sling.validation.impl.util.ValidatorTypeUtilTest Running
>>> org.apache.sling.validation.impl.ValidationModelRetrieverImplTest [main]
>>> INFO org.apache.sling.validation.impl.ValidationModelRetrieverImpl - A
>>> Validator for the same id 'DateValidator' is already registered with
>>> class 'ValidatorWithSeverity
>>> [validator=org.apache.sling.validation.impl.util.examplevalidators.DateVa
>>> lidator@492691d7, severity=1]' from bundle 1 and has a higher service
>>> ranking [main] INFO
>>> org.apache.sling.validation.impl.ValidationModelRetrieverImpl -
>>> Overwriting already existing validator ValidatorWithSeverity
>>> [validator=org.apache.sling.validation.impl.util.examplevalidators.DateVa
>>> lidator@74589991, severity=1] from bundle 1 with validator
>>> org.apache.sling.validation.impl.util.examplevalidators.StringValidator@1
>>> 46dfe6 from bundle 1, because it has the same id 'DateValidator' and a
>>> higher service ranking Tests run: 12, Failures: 0, Errors: 0, Skipped: 0,
>>> Time elapsed: 0.059 sec - in
>>> org.apache.sling.validation.impl.ValidationModelRetrieverImplTest
>>> 
>>> Results :
>>> 
>>> Failed tests:
>>> MergedValidationModelTest.testOverwritingChildrenAndResourceProperties:85
>>> 
>>> Expected: iterable over [<[ResourceProperty with
>>> namePattern=overwrittenNameToOverwrite, ResourceProperty with
>>> namePattern=originalNameNotOverwritten]>] in any order> 
>>>    but: Not matched: <ResourcePropertyImpl [name=nameNotOverwritten,
>>>    isMultiple=false, isRequired=true, validators=[],
>>>    namePattern=originalNameNotOverwritten]>> 
>>> Tests run: 59, Failures: 1, Errors: 0, Skipped: 0
>>> 
>>> [ERROR] There are test failures.
>>> 
>>> Please refer to
>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
>>> .8/ws/target/surefire-reports> for the individual test results. [JENKINS]
>>> Recording test results
>>> [INFO]
>>> [INFO] --- animal-sniffer-maven-plugin:1.15:check (default) @
>>> org.apache.sling.validation.core --- [INFO] Checking unresolved
>>> references to org.codehaus.mojo.signature:java18:1.0 [INFO]
>>> [INFO] --- maven-bundle-plugin:3.2.0:bundle (default-bundle) @
>>> org.apache.sling.validation.core --- [INFO]
>>> [INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) >
>>> generate-sources @ org.apache.sling.validation.core >>> [INFO]
>>> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @
>>> org.apache.sling.validation.core --- [INFO]
>>> [INFO] --- maven-antrun-plugin:1.8:run
>>> (set-bundle-required-execution-environment) @
>>> org.apache.sling.validation.core --- [INFO] Executing tasks
>>> 
>>> main:
>>> Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.8 from
>>> sling.java.version=8 [INFO] Executed tasks
>>> [WARNING] Failed to getClass for
>>> org.apache.maven.plugins.source.SourceJarMojo [INFO]
>>> [INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) <
>>> generate-sources @ org.apache.sling.validation.core <<< [INFO]
>>> [INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @
>>> org.apache.sling.validation.core --- [INFO] Building jar:
>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
>>> .8/ws/target/org.apache.sling.validation.core-1.0.0-SNAPSHOT-sources.jar>
>>> [INFO]
>>> [INFO] --- maven-site-plugin:3.5.1:attach-descriptor (attach-descriptor) @
>>> org.apache.sling.validation.core --- [INFO]
>>> [INFO] --- maven-failsafe-plugin:2.18.1:integration-test (default) @
>>> org.apache.sling.validation.core --- [INFO] Failsafe report directory:
>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
>>> .8/ws/target/failsafe-reports>
>>> 
>>> -------------------------------------------------------
>>> T E S T S
>>> -------------------------------------------------------
>>> Running org.apache.sling.validation.core.it.tests.ValidationServiceIT
>>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 21.543 sec
>>> - in org.apache.sling.validation.core.it.tests.ValidationServiceIT
>>> 
>>> Results :
>>> 
>>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
>>> 
>>> [JENKINS] Recording test results
>>> [INFO]
>>> [INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default) @
>>> org.apache.sling.validation.core --- [INFO] Checking legal files in:
>>> org.apache.sling.validation.core-1.0.0-SNAPSHOT.jar [INFO] Checking legal
>>> files in: org.apache.sling.validation.core-1.0.0-SNAPSHOT-sources.jar
>>> [INFO]
>>> [INFO] --- apache-rat-plugin:0.11:check (default) @
>>> org.apache.sling.validation.core --- [INFO] 51 implicit excludes (use
>>> -debug for more details).
>>> [INFO] Exclude: DEPENDENCIES
>>> [INFO] Exclude: src/main/appended-resources/META-INF/*
>>> [INFO] Exclude: velocity.log
>>> [INFO] Exclude: target/*
>>> [INFO] Exclude: README.md
>>> [INFO] Exclude: maven-eclipse.xml
>>> [INFO] Exclude: .*
>>> [INFO] Exclude: .*/**
>>> [INFO] Exclude: **/*.json
>>> [INFO] Exclude: DEPENDENCIES
>>> [INFO] Exclude: **/*.rej
>>> [INFO] Exclude: hs_err_*.log
>>> [INFO] Exclude: **/repository/index/*/index-details.txt
>>> [INFO] 54 resources included (use -debug for more details)
>>> [INFO] Rat check: Summary of files. Unapproved: 4 unknown: 4 generated: 0
>>> approved: 40 licence. [JENKINS] Archiving disabled
>>> [JENKINS] Archiving disabled[INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 51.740 s
>>> [INFO] Finished at: 2017-03-16T11:11:10+00:00
>>> 
>>> [INFO] Final Memory: 51M/598M
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> Waiting for Jenkins to finish collecting data
>>> [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check
>>> (default) on project org.apache.sling.validation.core: Too many files
>>> with unapproved license: 4 See RAT report in:
>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
>>> .8/ws/target/rat.txt> -> [Help 1] [ERROR]
>>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>>> -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug
>>> logging. [ERROR]
>>> [ERROR] For more information about the errors and possible solutions,
>>> please read the following articles: [ERROR] [Help 1]
>>> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>>> channel stopped
>>> Recording test results
> 


Re: PaxExam based ITs create folders outside target

Posted by Oliver Lietz <ap...@oliverlietz.de>.
On Thursday 16 March 2017 13:31:15 Konrad Windszus wrote:
> Hi,

Hi Konrad,

> it seems that PaxExam based ITs may create folders outside the target folder
> (see
> https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/
> ws/) For Validation the folder
> sling/repository/index/lucene-1488547426482/data was obviously created by
> PaxExam.
> 
> Usually the repository lives below
> https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/
> ws/target/paxexam/ValidationServiceIT/sling/repository/
> 
> I also sometimes have seen this locally but I fail to reproduce it reliably.
> Does anyone have an idea, why the lucene index is there?

that happend when configuration changed for LuceneIndexProviderService during 
container start and should be fixed in r1786426.

> Seems that PaxExam relies on relative paths somehow, which are sometimes
> relative to target and sometimes to the project root.

No, in the above case configuration from Option slingLaunchpadOak was present 
first and configuration with workingDirectory kicked in later.

Regards,
O.

> Thanks for any help
> Konrad
> 
> > On 16 Mar 2017, at 12:11, Apache Jenkins Server
> > <je...@builds.apache.org> wrote:
> > 
> > See
> > <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
> > .8/55/display/redirect?page=changes>
> > 
> > Changes:
> > 
> > [kwin] fix some more warnings
> > 
> > ------------------------------------------
> > Started by an SCM change
> > Started by upstream project
> > "sling-bundles-extensions-validation-test-services-1.8" build number 28
> > originally caused by:
> > Started by upstream project "sling-bundles-extensions-validation-api-1.8"
> > build number 25> 
> > originally caused by:
> >  Started by an SCM change
> > 
> > [EnvInject] - Loading node environment variables.
> > Building remotely on H23 (ubuntu) in workspace
> > <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
> > .8/ws/> Updating
> > https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/validatio
> > n/core at revision '2017-03-16T11:10:09.674 +0000' U        
> > src/test/java/org/apache/sling/validation/impl/model/MergedValidationMode
> > lTest.java U        
> > src/test/java/org/apache/sling/validation/impl/resourcemodel/ResourceVali
> > dationModelProviderImplTest.java U        
> > src/test/java/org/apache/sling/validation/impl/ValidationServiceImplTest.
> > java U        
> > src/main/java/org/apache/sling/validation/impl/ValidationServiceImpl.java
> > At revision 1787158
> > 
> > Parsing POMs
> > Established TCP socket on 34822
> > maven33-agent.jar already up to date
> > maven33-interceptor.jar already up to date
> > maven3-interceptor-commons.jar already up to date
> > [sling-bundles-extensions-validation-core-1.8] $
> > /home/jenkins/tools/java/latest1.8/bin/java -Xmx2g -Xms256m -cp
> > /home/jenkins/jenkins-slave/maven33-agent.jar:/home/jenkins/tools/maven/a
> > pache-maven-3.3.9/boot/plexus-classworlds-2.5.2.jar:/home/jenkins/tools/ma
> > ven/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 34822
> > <===[JENKINS REMOTING CAPACITY]===>   channel started
> > Executing Maven:  -B -f
> > <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
> > .8/ws/pom.xml>
> > -Dmaven.repo.local=/home/jenkins/jenkins-slave/maven-repositories/0 -U
> > clean deploy [INFO] Scanning for projects...
> > [INFO]
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Building Apache Sling Validation Framework Core Implementation
> > 1.0.0-SNAPSHOT [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Downloading:
> > http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
> > validation.api/1.0.0-SNAPSHOT/maven-metadata.xml [INFO] Downloaded:
> > http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
> > validation.api/1.0.0-SNAPSHOT/maven-metadata.xml (1023 B at 2.2 KB/sec)
> > [INFO] Downloading:
> > http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
> > validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-201703
> > 16.110912-1580.pom [INFO] Downloaded:
> > http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
> > validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-201703
> > 16.110912-1580.pom (3 KB at 7.5 KB/sec) [INFO] Downloading:
> > http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
> > validation.test-services/1.0.0-SNAPSHOT/maven-metadata.xml [INFO]
> > Downloaded:
> > http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
> > validation.test-services/1.0.0-SNAPSHOT/maven-metadata.xml (2 KB at 2.7
> > KB/sec) [INFO] Downloading:
> > http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
> > validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test-s
> > ervices-1.0.0-20170316.110958-1573.pom [INFO] Downloaded:
> > http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
> > validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test-s
> > ervices-1.0.0-20170316.110958-1573.pom (5 KB at 12.2 KB/sec) [INFO]
> > Downloading:
> > http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
> > testing.paxexam/0.0.3-SNAPSHOT/maven-metadata.xml [INFO] Downloaded:
> > http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
> > testing.paxexam/0.0.3-SNAPSHOT/maven-metadata.xml (1016 B at 2.5 KB/sec)
> > [INFO] Downloading:
> > http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
> > testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-2017
> > 0313.172758-24.pom [INFO] Downloaded:
> > http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
> > testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-2017
> > 0313.172758-24.pom (6 KB at 13.1 KB/sec) [INFO] Downloading:
> > http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
> > validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-201703
> > 16.110912-1580.jar [INFO] Downloading:
> > http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
> > validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test-s
> > ervices-1.0.0-20170316.110958-1573.jar [INFO] Downloading:
> > http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
> > testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-2017
> > 0313.172758-24.jar [INFO] Downloaded:
> > http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
> > validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-201703
> > 16.110912-1580.jar (22 KB at 47.2 KB/sec) [INFO] Downloaded:
> > http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
> > validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test-s
> > ervices-1.0.0-20170316.110958-1573.jar (22 KB at 48.4 KB/sec) [INFO]
> > Downloaded:
> > http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.
> > testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-2017
> > 0313.172758-24.jar (31 KB at 65.6 KB/sec) [INFO]
> > [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @
> > org.apache.sling.validation.core --- [INFO] Deleting
> > <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
> > .8/ws/target> [INFO]
> > [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @
> > org.apache.sling.validation.core --- [INFO]
> > [INFO] --- maven-antrun-plugin:1.8:run
> > (set-bundle-required-execution-environment) @
> > org.apache.sling.validation.core --- [INFO] Executing tasks
> > 
> > main:
> > Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.8 from
> > sling.java.version=8 [INFO] Executed tasks
> > [INFO]
> > [INFO] --- maven-remote-resources-plugin:1.5:process
> > (process-resource-bundles) @ org.apache.sling.validation.core --- [INFO]
> > [INFO] --- maven-remote-resources-plugin:1.5:process (default) @
> > org.apache.sling.validation.core --- [INFO]
> > [INFO] --- depends-maven-plugin:1.3.1:generate-depends-file (default) @
> > org.apache.sling.validation.core --- [INFO] Created:
> > <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
> > .8/ws/target/classes/META-INF/maven/dependencies.properties> [INFO]
> > [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @
> > org.apache.sling.validation.core --- [INFO] Using 'UTF-8' encoding to
> > copy filtered resources.
> > [INFO] Copying 1 resource
> > [INFO] Copying 3 resources
> > [INFO] Copying 3 resources
> > [INFO]
> > [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @
> > org.apache.sling.validation.core --- [INFO] Changes detected -
> > recompiling the module!
> > [INFO] Compiling 19 source files to
> > <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
> > .8/ws/target/classes> [INFO]
> > [INFO] --- maven-bundle-plugin:3.2.0:manifest (scr-metadata) @
> > org.apache.sling.validation.core --- [INFO]
> > [INFO] --- maven-resources-plugin:2.7:testResources
> > (default-testResources) @ org.apache.sling.validation.core --- [INFO]
> > Using 'UTF-8' encoding to copy filtered resources.
> > [INFO] Copying 2 resources
> > [INFO] Copying 3 resources
> > [INFO] Copying 3 resources
> > [INFO]
> > [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @
> > org.apache.sling.validation.core --- [INFO] Changes detected -
> > recompiling the module!
> > [INFO] Compiling 18 source files to
> > <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
> > .8/ws/target/test-classes> [INFO]
> > [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @
> > org.apache.sling.validation.core --- [INFO] Surefire report directory:
> > <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
> > .8/ws/target/surefire-reports>
> > 
> > -------------------------------------------------------
> > T E S T S
> > -------------------------------------------------------
> > Running org.apache.sling.validation.impl.ValidationServiceImplTest
> > Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.913 sec
> > - in org.apache.sling.validation.impl.ValidationServiceImplTest Running
> > org.apache.sling.validation.impl.resourcemodel.ResourceValidationModelPro
> > viderImplTest Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time
> > elapsed: 0.449 sec - in
> > org.apache.sling.validation.impl.resourcemodel.ResourceValidationModelPro
> > viderImplTest Running
> > org.apache.sling.validation.impl.model.MergedValidationModelTest Tests
> > run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec <<<
> > FAILURE! - in
> > org.apache.sling.validation.impl.model.MergedValidationModelTest
> > testOverwritingChildrenAndResourceProperties(org.apache.sling.validation.
> > impl.model.MergedValidationModelTest)  Time elapsed: 0.003 sec  <<<
> > FAILURE! java.lang.AssertionError:
> > Expected: iterable over [<[ResourceProperty with
> > namePattern=overwrittenNameToOverwrite, ResourceProperty with
> > namePattern=originalNameNotOverwritten]>] in any order> 
> >     but: Not matched: <ResourcePropertyImpl [name=nameNotOverwritten,
> >     isMultiple=false, isRequired=true, validators=[],
> >     namePattern=originalNameNotOverwritten]>> 	
> > 	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
> > 	at org.junit.Assert.assertThat(Assert.java:956)
> > 	at org.junit.Assert.assertThat(Assert.java:923)
> > 	at
> > 	org.apache.sling.validation.impl.model.MergedValidationModelTest.testOve
> > 	rwritingChildrenAndResourceProperties(MergedValidationModelTest.java:85)> 
> > Running org.apache.sling.validation.impl.util.ValidatorTypeUtilTest
> > Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec
> > - in org.apache.sling.validation.impl.util.ValidatorTypeUtilTest Running
> > org.apache.sling.validation.impl.ValidationModelRetrieverImplTest [main]
> > INFO org.apache.sling.validation.impl.ValidationModelRetrieverImpl - A
> > Validator for the same id 'DateValidator' is already registered with
> > class 'ValidatorWithSeverity
> > [validator=org.apache.sling.validation.impl.util.examplevalidators.DateVa
> > lidator@492691d7, severity=1]' from bundle 1 and has a higher service
> > ranking [main] INFO
> > org.apache.sling.validation.impl.ValidationModelRetrieverImpl -
> > Overwriting already existing validator ValidatorWithSeverity
> > [validator=org.apache.sling.validation.impl.util.examplevalidators.DateVa
> > lidator@74589991, severity=1] from bundle 1 with validator
> > org.apache.sling.validation.impl.util.examplevalidators.StringValidator@1
> > 46dfe6 from bundle 1, because it has the same id 'DateValidator' and a
> > higher service ranking Tests run: 12, Failures: 0, Errors: 0, Skipped: 0,
> > Time elapsed: 0.059 sec - in
> > org.apache.sling.validation.impl.ValidationModelRetrieverImplTest
> > 
> > Results :
> > 
> > Failed tests:
> >  MergedValidationModelTest.testOverwritingChildrenAndResourceProperties:85
> > 
> > Expected: iterable over [<[ResourceProperty with
> > namePattern=overwrittenNameToOverwrite, ResourceProperty with
> > namePattern=originalNameNotOverwritten]>] in any order> 
> >     but: Not matched: <ResourcePropertyImpl [name=nameNotOverwritten,
> >     isMultiple=false, isRequired=true, validators=[],
> >     namePattern=originalNameNotOverwritten]>> 
> > Tests run: 59, Failures: 1, Errors: 0, Skipped: 0
> > 
> > [ERROR] There are test failures.
> > 
> > Please refer to
> > <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
> > .8/ws/target/surefire-reports> for the individual test results. [JENKINS]
> > Recording test results
> > [INFO]
> > [INFO] --- animal-sniffer-maven-plugin:1.15:check (default) @
> > org.apache.sling.validation.core --- [INFO] Checking unresolved
> > references to org.codehaus.mojo.signature:java18:1.0 [INFO]
> > [INFO] --- maven-bundle-plugin:3.2.0:bundle (default-bundle) @
> > org.apache.sling.validation.core --- [INFO]
> > [INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) >
> > generate-sources @ org.apache.sling.validation.core >>> [INFO]
> > [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @
> > org.apache.sling.validation.core --- [INFO]
> > [INFO] --- maven-antrun-plugin:1.8:run
> > (set-bundle-required-execution-environment) @
> > org.apache.sling.validation.core --- [INFO] Executing tasks
> > 
> > main:
> > Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.8 from
> > sling.java.version=8 [INFO] Executed tasks
> > [WARNING] Failed to getClass for
> > org.apache.maven.plugins.source.SourceJarMojo [INFO]
> > [INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) <
> > generate-sources @ org.apache.sling.validation.core <<< [INFO]
> > [INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @
> > org.apache.sling.validation.core --- [INFO] Building jar:
> > <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
> > .8/ws/target/org.apache.sling.validation.core-1.0.0-SNAPSHOT-sources.jar>
> > [INFO]
> > [INFO] --- maven-site-plugin:3.5.1:attach-descriptor (attach-descriptor) @
> > org.apache.sling.validation.core --- [INFO]
> > [INFO] --- maven-failsafe-plugin:2.18.1:integration-test (default) @
> > org.apache.sling.validation.core --- [INFO] Failsafe report directory:
> > <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
> > .8/ws/target/failsafe-reports>
> > 
> > -------------------------------------------------------
> > T E S T S
> > -------------------------------------------------------
> > Running org.apache.sling.validation.core.it.tests.ValidationServiceIT
> > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 21.543 sec
> > - in org.apache.sling.validation.core.it.tests.ValidationServiceIT
> > 
> > Results :
> > 
> > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
> > 
> > [JENKINS] Recording test results
> > [INFO]
> > [INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default) @
> > org.apache.sling.validation.core --- [INFO] Checking legal files in:
> > org.apache.sling.validation.core-1.0.0-SNAPSHOT.jar [INFO] Checking legal
> > files in: org.apache.sling.validation.core-1.0.0-SNAPSHOT-sources.jar
> > [INFO]
> > [INFO] --- apache-rat-plugin:0.11:check (default) @
> > org.apache.sling.validation.core --- [INFO] 51 implicit excludes (use
> > -debug for more details).
> > [INFO] Exclude: DEPENDENCIES
> > [INFO] Exclude: src/main/appended-resources/META-INF/*
> > [INFO] Exclude: velocity.log
> > [INFO] Exclude: target/*
> > [INFO] Exclude: README.md
> > [INFO] Exclude: maven-eclipse.xml
> > [INFO] Exclude: .*
> > [INFO] Exclude: .*/**
> > [INFO] Exclude: **/*.json
> > [INFO] Exclude: DEPENDENCIES
> > [INFO] Exclude: **/*.rej
> > [INFO] Exclude: hs_err_*.log
> > [INFO] Exclude: **/repository/index/*/index-details.txt
> > [INFO] 54 resources included (use -debug for more details)
> > [INFO] Rat check: Summary of files. Unapproved: 4 unknown: 4 generated: 0
> > approved: 40 licence. [JENKINS] Archiving disabled
> > [JENKINS] Archiving disabled[INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 51.740 s
> > [INFO] Finished at: 2017-03-16T11:11:10+00:00
> > 
> > [INFO] Final Memory: 51M/598M
> > [INFO]
> > ------------------------------------------------------------------------
> > Waiting for Jenkins to finish collecting data
> > [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check
> > (default) on project org.apache.sling.validation.core: Too many files
> > with unapproved license: 4 See RAT report in:
> > <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
> > .8/ws/target/rat.txt> -> [Help 1] [ERROR]
> > [ERROR] To see the full stack trace of the errors, re-run Maven with the
> > -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug
> > logging. [ERROR]
> > [ERROR] For more information about the errors and possible solutions,
> > please read the following articles: [ERROR] [Help 1]
> > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > channel stopped
> > Recording test results


Re: PaxExam based ITs create folders outside target

Posted by Oliver Lietz <ap...@oliverlietz.de>.
On Thursday 16 March 2017 15:21:32 Konrad Windszus wrote:
> Some javadocs in
> https://github.com/apache/sling/blob/trunk/testing/org.apache.sling.testing
> .paxexam/src/main/java/org/apache/sling/testing/paxexam/SlingOptions.java#L8
> 62 would be really helpful, which explain under which circumstances you have
> to use the methods with the workingDirectory and when you are allowed to
> use the methods without.

As explained in SLING-6653 you can use slingLaunchpadOakTar and 
slingLaunchpadOakMongo options without a working directory pointing below 
target, but you have to clean up yourself then. I've added a note to README.

> IIUC paxexam is purely for testing, therefore you
> should always use absolute paths (because you cannot rely on
> repository.home being set correctly).

Again, you can do whatever you like and Testing PaxExam provides a method 
workingDirectory() to construct an absolute path below project's 
basedir/target which can be used for options slingLaunchpadOakTar and 
slingLaunchpadOakMongo with parameter workingDirectory (and httpPort and 
mongouri). That way is shown in the README. When not using those launchpad 
options but configuring a custom one you can even set repository.home and use 
that instead of course. Why do you think it's not reliable?

Regards,
O.

> Konrad
> 
> > On 16 Mar 2017, at 14:11, Oliver Lietz <ap...@oliverlietz.de> wrote:
> > 
> > On Thursday 16 March 2017 13:54:23 Konrad Windszus wrote:
> >> Probably this commit
> >> https://github.com/apache/sling/blame/trunk/testing/org.apache.sling.test
> >> in
> >> g.paxexam/src/main/java/org/apache/sling/testing/paxexam/SlingOptions.jav
> >> a#L 645 is not correct. The localIndexDir should be IMHO set as absolute
> >> path (not relative!) This is done correctly in
> >> https://github.com/apache/sling/blame/trunk/testing/org.apache.sling.test
> >> in
> >> g.paxexam/src/main/java/org/apache/sling/testing/paxexam/SlingOptions.jav
> >> a#L 879. I am also not getting why the configuration is set two times.
> >> IMHO this should be set only once in the slingLaunchpadOak() with an
> >> absolute path!
> > 
> > No, relative paths are fine for Sling home in normal deployments but not
> > in
> > testing (because directories are not created under target). Therefore
> > configuration moved to sling-launchpad-oak-tar (slingLaunchpadOakTar) and
> > sling-launchpad-oak-mongo (slingLaunchpadOakMongo). You usually don't use
> > those options but slingLaunchpadOakTar(String, int) with configured
> > working
> > directory and HTTP port.
> > 
> > Regards,
> > O.
> > 
> >>> On 16 Mar 2017, at 13:45, Konrad Windszus <ko...@gmx.de> wrote:
> >>> 
> >>> Maybe this is related to
> >>> https://issues.apache.org/jira/browse/SLING-4649?focusedCommentId=145088
> >>> 5
> >>> 7&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#
> >>> co
> >>> mment-14508857. It seems that the Lucene index relies on a framework
> >>> property (named repository.home) if this is not explicitly configured.
> >>> Seems that Karaf does not support setting that, therefore the Lucene
> >>> index is created in the wrong directory (and sometime not correctly
> >>> removed). I am still failing to reproduce locally though
> >>> Konrad
> >>> 
> >>>> On 16 Mar 2017, at 13:31, Konrad Windszus <ko...@gmx.de> wrote:
> >>>> 
> >>>> Hi,
> >>>> it seems that PaxExam based ITs may create folders outside the target
> >>>> folder (see
> >>>> https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >>>> 1
> >>>> .8/ws/) For Validation the folder
> >>>> sling/repository/index/lucene-1488547426482/data was obviously created
> >>>> by PaxExam.
> >>>> 
> >>>> Usually the repository lives below
> >>>> https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >>>> 1
> >>>> .8/ws/target/paxexam/ValidationServiceIT/sling/repository/
> >>>> 
> >>>> I also sometimes have seen this locally but I fail to reproduce it
> >>>> reliably. Does anyone have an idea, why the lucene index is there?
> >>>> Seems that PaxExam relies on relative paths somehow, which are
> >>>> sometimes
> >>>> relative to target and sometimes to the project root.
> >>>> 
> >>>> Thanks for any help
> >>>> Konrad
> >>>> 
> >>>>> On 16 Mar 2017, at 12:11, Apache Jenkins Server
> >>>>> <je...@builds.apache.org> wrote:
> >>>>> 
> >>>>> See
> >>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
> >>>>> e
> >>>>> -1.8/55/display/redirect?page=changes>
> >>>>> 
> >>>>> Changes:
> >>>>> 
> >>>>> [kwin] fix some more warnings
> >>>>> 
> >>>>> ------------------------------------------
> >>>>> Started by an SCM change
> >>>>> Started by upstream project
> >>>>> "sling-bundles-extensions-validation-test-services-1.8" build number
> >>>>> 28
> >>>>> originally caused by:
> >>>>> Started by upstream project
> >>>>> "sling-bundles-extensions-validation-api-1.8" build number 25
> >>>>> originally caused by:
> >>>>> Started by an SCM change
> >>>>> [EnvInject] - Loading node environment variables.
> >>>>> Building remotely on H23 (ubuntu) in workspace
> >>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
> >>>>> e
> >>>>> -1.8/ws/> Updating
> >>>>> https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/valida
> >>>>> t
> >>>>> ion/core at revision '2017-03-16T11:10:09.674 +0000' U
> >>>>> src/test/java/org/apache/sling/validation/impl/model/MergedValidationM
> >>>>> o
> >>>>> delTest.java U
> >>>>> src/test/java/org/apache/sling/validation/impl/resourcemodel/ResourceV
> >>>>> a
> >>>>> lidationModelProviderImplTest.java U
> >>>>> src/test/java/org/apache/sling/validation/impl/ValidationServiceImplTe
> >>>>> s
> >>>>> t.java U
> >>>>> src/main/java/org/apache/sling/validation/impl/ValidationServiceImpl.j
> >>>>> a
> >>>>> va At revision 1787158
> >>>>> 
> >>>>> Parsing POMs
> >>>>> Established TCP socket on 34822
> >>>>> maven33-agent.jar already up to date
> >>>>> maven33-interceptor.jar already up to date
> >>>>> maven3-interceptor-commons.jar already up to date
> >>>>> [sling-bundles-extensions-validation-core-1.8] $
> >>>>> /home/jenkins/tools/java/latest1.8/bin/java -Xmx2g -Xms256m -cp
> >>>>> /home/jenkins/jenkins-slave/maven33-agent.jar:/home/jenkins/tools/mave
> >>>>> n
> >>>>> /apache-maven-3.3.9/boot/plexus-classworlds-2.5.2.jar:/home/jenkins/to
> >>>>> ol
> >>>>> s/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 34822
> >>>>> <===[JENKINS REMOTING CAPACITY]===>   channel started
> >>>>> Executing Maven:  -B -f
> >>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
> >>>>> e
> >>>>> -1.8/ws/pom.xml>
> >>>>> -Dmaven.repo.local=/home/jenkins/jenkins-slave/maven-repositories/0 -U
> >>>>> clean deploy [INFO] Scanning for projects...
> >>>>> [INFO]
> >>>>> [INFO]
> >>>>> ----------------------------------------------------------------------
> >>>>> -
> >>>>> - [INFO] Building Apache Sling Validation Framework Core
> >>>>> Implementation
> >>>>> 1.0.0-SNAPSHOT [INFO]
> >>>>> ----------------------------------------------------------------------
> >>>>> -
> >>>>> - [INFO] Downloading:
> >>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> >>>>> n
> >>>>> g.validation.api/1.0.0-SNAPSHOT/maven-metadata.xml [INFO] Downloaded:
> >>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> >>>>> n
> >>>>> g.validation.api/1.0.0-SNAPSHOT/maven-metadata.xml (1023 B at 2.2
> >>>>> KB/sec) [INFO] Downloading:
> >>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> >>>>> n
> >>>>> g.validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-
> >>>>> 20
> >>>>> 170316.110912-1580.pom [INFO] Downloaded:
> >>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> >>>>> n
> >>>>> g.validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-
> >>>>> 20
> >>>>> 170316.110912-1580.pom (3 KB at 7.5 KB/sec) [INFO] Downloading:
> >>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> >>>>> n
> >>>>> g.validation.test-services/1.0.0-SNAPSHOT/maven-metadata.xml [INFO]
> >>>>> Downloaded:
> >>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> >>>>> n
> >>>>> g.validation.test-services/1.0.0-SNAPSHOT/maven-metadata.xml (2 KB at
> >>>>> 2.7 KB/sec) [INFO] Downloading:
> >>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> >>>>> n
> >>>>> g.validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.
> >>>>> te
> >>>>> st-services-1.0.0-20170316.110958-1573.pom [INFO] Downloaded:
> >>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> >>>>> n
> >>>>> g.validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.
> >>>>> te
> >>>>> st-services-1.0.0-20170316.110958-1573.pom (5 KB at 12.2 KB/sec)
> >>>>> [INFO]
> >>>>> Downloading:
> >>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> >>>>> n
> >>>>> g.testing.paxexam/0.0.3-SNAPSHOT/maven-metadata.xml [INFO] Downloaded:
> >>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> >>>>> n
> >>>>> g.testing.paxexam/0.0.3-SNAPSHOT/maven-metadata.xml (1016 B at 2.5
> >>>>> KB/sec) [INFO] Downloading:
> >>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> >>>>> n
> >>>>> g.testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.
> >>>>> 3-
> >>>>> 20170313.172758-24.pom [INFO] Downloaded:
> >>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> >>>>> n
> >>>>> g.testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.
> >>>>> 3-
> >>>>> 20170313.172758-24.pom (6 KB at 13.1 KB/sec) [INFO] Downloading:
> >>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> >>>>> n
> >>>>> g.validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-
> >>>>> 20
> >>>>> 170316.110912-1580.jar [INFO] Downloading:
> >>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> >>>>> n
> >>>>> g.validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.
> >>>>> te
> >>>>> st-services-1.0.0-20170316.110958-1573.jar [INFO] Downloading:
> >>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> >>>>> n
> >>>>> g.testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.
> >>>>> 3-
> >>>>> 20170313.172758-24.jar [INFO] Downloaded:
> >>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> >>>>> n
> >>>>> g.validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-
> >>>>> 20
> >>>>> 170316.110912-1580.jar (22 KB at 47.2 KB/sec) [INFO] Downloaded:
> >>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> >>>>> n
> >>>>> g.validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.
> >>>>> te
> >>>>> st-services-1.0.0-20170316.110958-1573.jar (22 KB at 48.4 KB/sec)
> >>>>> [INFO]
> >>>>> Downloaded:
> >>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sli
> >>>>> n
> >>>>> g.testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.
> >>>>> 3-
> >>>>> 20170313.172758-24.jar (31 KB at 65.6 KB/sec) [INFO]
> >>>>> [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @
> >>>>> org.apache.sling.validation.core --- [INFO] Deleting
> >>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
> >>>>> e
> >>>>> -1.8/ws/target> [INFO]
> >>>>> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @
> >>>>> org.apache.sling.validation.core --- [INFO]
> >>>>> [INFO] --- maven-antrun-plugin:1.8:run
> >>>>> (set-bundle-required-execution-environment) @
> >>>>> org.apache.sling.validation.core --- [INFO] Executing tasks
> >>>>> 
> >>>>> main:
> >>>>> Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.8 from
> >>>>> sling.java.version=8 [INFO] Executed tasks
> >>>>> [INFO]
> >>>>> [INFO] --- maven-remote-resources-plugin:1.5:process
> >>>>> (process-resource-bundles) @ org.apache.sling.validation.core ---
> >>>>> [INFO]
> >>>>> [INFO] --- maven-remote-resources-plugin:1.5:process (default) @
> >>>>> org.apache.sling.validation.core --- [INFO]
> >>>>> [INFO] --- depends-maven-plugin:1.3.1:generate-depends-file (default)
> >>>>> @
> >>>>> org.apache.sling.validation.core --- [INFO] Created:
> >>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
> >>>>> e
> >>>>> -1.8/ws/target/classes/META-INF/maven/dependencies.properties> [INFO]
> >>>>> [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @
> >>>>> org.apache.sling.validation.core --- [INFO] Using 'UTF-8' encoding to
> >>>>> copy filtered resources.
> >>>>> [INFO] Copying 1 resource
> >>>>> [INFO] Copying 3 resources
> >>>>> [INFO] Copying 3 resources
> >>>>> [INFO]
> >>>>> [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @
> >>>>> org.apache.sling.validation.core --- [INFO] Changes detected -
> >>>>> recompiling the module!
> >>>>> [INFO] Compiling 19 source files to
> >>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
> >>>>> e
> >>>>> -1.8/ws/target/classes> [INFO]
> >>>>> [INFO] --- maven-bundle-plugin:3.2.0:manifest (scr-metadata) @
> >>>>> org.apache.sling.validation.core --- [INFO]
> >>>>> [INFO] --- maven-resources-plugin:2.7:testResources
> >>>>> (default-testResources) @ org.apache.sling.validation.core --- [INFO]
> >>>>> Using 'UTF-8' encoding to copy filtered resources.
> >>>>> [INFO] Copying 2 resources
> >>>>> [INFO] Copying 3 resources
> >>>>> [INFO] Copying 3 resources
> >>>>> [INFO]
> >>>>> [INFO] --- maven-compiler-plugin:3.5.1:testCompile
> >>>>> (default-testCompile)
> >>>>> @ org.apache.sling.validation.core --- [INFO] Changes detected -
> >>>>> recompiling the module!
> >>>>> [INFO] Compiling 18 source files to
> >>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
> >>>>> e
> >>>>> -1.8/ws/target/test-classes> [INFO]
> >>>>> [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @
> >>>>> org.apache.sling.validation.core --- [INFO] Surefire report directory:
> >>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
> >>>>> e
> >>>>> -1.8/ws/target/surefire-reports>
> >>>>> 
> >>>>> -------------------------------------------------------
> >>>>> T E S T S
> >>>>> -------------------------------------------------------
> >>>>> Running org.apache.sling.validation.impl.ValidationServiceImplTest
> >>>>> Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.913
> >>>>> sec - in org.apache.sling.validation.impl.ValidationServiceImplTest
> >>>>> Running
> >>>>> org.apache.sling.validation.impl.resourcemodel.ResourceValidationModel
> >>>>> P
> >>>>> roviderImplTest Tests run: 13, Failures: 0, Errors: 0, Skipped: 0,
> >>>>> Time
> >>>>> elapsed: 0.449 sec - in
> >>>>> org.apache.sling.validation.impl.resourcemodel.ResourceValidationModel
> >>>>> P
> >>>>> roviderImplTest Running
> >>>>> org.apache.sling.validation.impl.model.MergedValidationModelTest Tests
> >>>>> run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
> >>>>> <<<
> >>>>> FAILURE! - in
> >>>>> org.apache.sling.validation.impl.model.MergedValidationModelTest
> >>>>> testOverwritingChildrenAndResourceProperties(org.apache.sling.validati
> >>>>> o
> >>>>> n.impl.model.MergedValidationModelTest)  Time elapsed: 0.003 sec  <<<
> >>>>> FAILURE! java.lang.AssertionError:
> >>>>> Expected: iterable over [<[ResourceProperty with
> >>>>> namePattern=overwrittenNameToOverwrite, ResourceProperty with
> >>>>> namePattern=originalNameNotOverwritten]>] in any order>>>
> >>>>> 
> >>>>>  but: Not matched: <ResourcePropertyImpl [name=nameNotOverwritten,
> >>>>>  isMultiple=false, isRequired=true, validators=[],
> >>>>>  namePattern=originalNameNotOverwritten]>>>>
> >>>>>  
> >>>>> 	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
> >>>>> 	at org.junit.Assert.assertThat(Assert.java:956)
> >>>>> 	at org.junit.Assert.assertThat(Assert.java:923)
> >>>>> 	at
> >>>>> 	
org.apache.sling.validation.impl.model.MergedValidationModelTest.test
> >>>>> 	O
> > 
> > verwritingChildrenAndResourceProperties(MergedValidationModelTest.java:
> >>>>> 	85)>>>
> >>>>> 
> >>>>> Running org.apache.sling.validation.impl.util.ValidatorTypeUtilTest
> >>>>> Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005
> >>>>> sec - in org.apache.sling.validation.impl.util.ValidatorTypeUtilTest
> >>>>> Running
> >>>>> org.apache.sling.validation.impl.ValidationModelRetrieverImplTest
> >>>>> [main] INFO
> >>>>> org.apache.sling.validation.impl.ValidationModelRetrieverImpl - A
> >>>>> Validator for the same id 'DateValidator' is already registered with
> >>>>> class 'ValidatorWithSeverity
> >>>>> [validator=org.apache.sling.validation.impl.util.examplevalidators.Dat
> >>>>> e
> >>>>> Validator@492691d7, severity=1]' from bundle 1 and has a higher
> >>>>> service
> >>>>> ranking [main] INFO
> >>>>> org.apache.sling.validation.impl.ValidationModelRetrieverImpl -
> >>>>> Overwriting already existing validator ValidatorWithSeverity
> >>>>> [validator=org.apache.sling.validation.impl.util.examplevalidators.Dat
> >>>>> e
> >>>>> Validator@74589991, severity=1] from bundle 1 with validator
> >>>>> org.apache.sling.validation.impl.util.examplevalidators.StringValidato
> >>>>> r
> >>>>> @146dfe6 from bundle 1, because it has the same id 'DateValidator' and
> >>>>> a
> >>>>> higher service ranking Tests run: 12, Failures: 0, Errors: 0, Skipped:
> >>>>> 0, Time elapsed: 0.059 sec - in
> >>>>> org.apache.sling.validation.impl.ValidationModelRetrieverImplTest
> >>>>> 
> >>>>> Results :
> >>>>> 
> >>>>> Failed tests:
> >>>>> MergedValidationModelTest.testOverwritingChildrenAndResourceProperties
> >>>>> :8
> >>>>> 5
> >>>>> Expected: iterable over [<[ResourceProperty with
> >>>>> namePattern=overwrittenNameToOverwrite, ResourceProperty with
> >>>>> namePattern=originalNameNotOverwritten]>] in any order>>>
> >>>>> 
> >>>>>  but: Not matched: <ResourcePropertyImpl [name=nameNotOverwritten,
> >>>>>  isMultiple=false, isRequired=true, validators=[],
> >>>>>  namePattern=originalNameNotOverwritten]>>>>
> >>>>> 
> >>>>> Tests run: 59, Failures: 1, Errors: 0, Skipped: 0
> >>>>> 
> >>>>> [ERROR] There are test failures.
> >>>>> 
> >>>>> Please refer to
> >>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
> >>>>> e
> >>>>> -1.8/ws/target/surefire-reports> for the individual test results.
> >>>>> [JENKINS] Recording test results
> >>>>> [INFO]
> >>>>> [INFO] --- animal-sniffer-maven-plugin:1.15:check (default) @
> >>>>> org.apache.sling.validation.core --- [INFO] Checking unresolved
> >>>>> references to org.codehaus.mojo.signature:java18:1.0 [INFO]
> >>>>> [INFO] --- maven-bundle-plugin:3.2.0:bundle (default-bundle) @
> >>>>> org.apache.sling.validation.core --- [INFO]
> >>>>> [INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) >
> >>>>> generate-sources @ org.apache.sling.validation.core >>> [INFO]
> >>>>> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @
> >>>>> org.apache.sling.validation.core --- [INFO]
> >>>>> [INFO] --- maven-antrun-plugin:1.8:run
> >>>>> (set-bundle-required-execution-environment) @
> >>>>> org.apache.sling.validation.core --- [INFO] Executing tasks
> >>>>> 
> >>>>> main:
> >>>>> Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.8 from
> >>>>> sling.java.version=8 [INFO] Executed tasks
> >>>>> [WARNING] Failed to getClass for
> >>>>> org.apache.maven.plugins.source.SourceJarMojo [INFO]
> >>>>> [INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) <
> >>>>> generate-sources @ org.apache.sling.validation.core <<< [INFO]
> >>>>> [INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @
> >>>>> org.apache.sling.validation.core --- [INFO] Building jar:
> >>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
> >>>>> e
> >>>>> -1.8/ws/target/org.apache.sling.validation.core-1.0.0-SNAPSHOT-sources
> >>>>> .j
> >>>>> ar> [INFO]
> >>>>> [INFO] --- maven-site-plugin:3.5.1:attach-descriptor
> >>>>> (attach-descriptor)
> >>>>> @ org.apache.sling.validation.core --- [INFO]
> >>>>> [INFO] --- maven-failsafe-plugin:2.18.1:integration-test (default) @
> >>>>> org.apache.sling.validation.core --- [INFO] Failsafe report directory:
> >>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
> >>>>> e
> >>>>> -1.8/ws/target/failsafe-reports>
> >>>>> 
> >>>>> -------------------------------------------------------
> >>>>> T E S T S
> >>>>> -------------------------------------------------------
> >>>>> Running org.apache.sling.validation.core.it.tests.ValidationServiceIT
> >>>>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 21.543
> >>>>> sec - in org.apache.sling.validation.core.it.tests.ValidationServiceIT
> >>>>> 
> >>>>> Results :
> >>>>> 
> >>>>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
> >>>>> 
> >>>>> [JENKINS] Recording test results
> >>>>> [INFO]
> >>>>> [INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default)
> >>>>> @
> >>>>> org.apache.sling.validation.core --- [INFO] Checking legal files in:
> >>>>> org.apache.sling.validation.core-1.0.0-SNAPSHOT.jar [INFO] Checking
> >>>>> legal files in:
> >>>>> org.apache.sling.validation.core-1.0.0-SNAPSHOT-sources.jar [INFO]
> >>>>> [INFO] --- apache-rat-plugin:0.11:check (default) @
> >>>>> org.apache.sling.validation.core --- [INFO] 51 implicit excludes (use
> >>>>> -debug for more details).
> >>>>> [INFO] Exclude: DEPENDENCIES
> >>>>> [INFO] Exclude: src/main/appended-resources/META-INF/*
> >>>>> [INFO] Exclude: velocity.log
> >>>>> [INFO] Exclude: target/*
> >>>>> [INFO] Exclude: README.md
> >>>>> [INFO] Exclude: maven-eclipse.xml
> >>>>> [INFO] Exclude: .*
> >>>>> [INFO] Exclude: .*/**
> >>>>> [INFO] Exclude: **/*.json
> >>>>> [INFO] Exclude: DEPENDENCIES
> >>>>> [INFO] Exclude: **/*.rej
> >>>>> [INFO] Exclude: hs_err_*.log
> >>>>> [INFO] Exclude: **/repository/index/*/index-details.txt
> >>>>> [INFO] 54 resources included (use -debug for more details)
> >>>>> [INFO] Rat check: Summary of files. Unapproved: 4 unknown: 4
> >>>>> generated:
> >>>>> 0 approved: 40 licence. [JENKINS] Archiving disabled
> >>>>> [JENKINS] Archiving disabled[INFO]
> >>>>> ----------------------------------------------------------------------
> >>>>> -
> >>>>> - [INFO] BUILD FAILURE
> >>>>> [INFO]
> >>>>> ----------------------------------------------------------------------
> >>>>> -
> >>>>> - [INFO] Total time: 51.740 s
> >>>>> [INFO] Finished at: 2017-03-16T11:11:10+00:00
> >>>>> 
> >>>>> [INFO] Final Memory: 51M/598M
> >>>>> [INFO]
> >>>>> ----------------------------------------------------------------------
> >>>>> -
> >>>>> - Waiting for Jenkins to finish collecting data
> >>>>> [ERROR] Failed to execute goal
> >>>>> org.apache.rat:apache-rat-plugin:0.11:check (default) on project
> >>>>> org.apache.sling.validation.core: Too many files with unapproved
> >>>>> license: 4 See RAT report in:
> >>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-cor
> >>>>> e
> >>>>> -1.8/ws/target/rat.txt> -> [Help 1] [ERROR]
> >>>>> [ERROR] To see the full stack trace of the errors, re-run Maven with
> >>>>> the
> >>>>> -e switch. [ERROR] Re-run Maven using the -X switch to enable full
> >>>>> debug logging. [ERROR]
> >>>>> [ERROR] For more information about the errors and possible solutions,
> >>>>> please read the following articles: [ERROR] [Help 1]
> >>>>> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> >>>>> channel stopped
> >>>>> Recording test results



Re: PaxExam based ITs create folders outside target

Posted by Konrad Windszus <ko...@gmx.de>.
Some javadocs in https://github.com/apache/sling/blob/trunk/testing/org.apache.sling.testing.paxexam/src/main/java/org/apache/sling/testing/paxexam/SlingOptions.java#L862 would be really helpful, which explain under which circumstances you have to use the methods with the workingDirectory and when you are allowed to use the methods without.
IIUC paxexam is purely for testing, therefore you should always use absolute paths (because you cannot rely on repository.home being set correctly).
Konrad

> On 16 Mar 2017, at 14:11, Oliver Lietz <ap...@oliverlietz.de> wrote:
> 
> On Thursday 16 March 2017 13:54:23 Konrad Windszus wrote:
>> Probably this commit
>> https://github.com/apache/sling/blame/trunk/testing/org.apache.sling.testin
>> g.paxexam/src/main/java/org/apache/sling/testing/paxexam/SlingOptions.java#L
>> 645 is not correct. The localIndexDir should be IMHO set as absolute path
>> (not relative!) This is done correctly in
>> https://github.com/apache/sling/blame/trunk/testing/org.apache.sling.testin
>> g.paxexam/src/main/java/org/apache/sling/testing/paxexam/SlingOptions.java#L
>> 879. I am also not getting why the configuration is set two times.
>> IMHO this should be set only once in the slingLaunchpadOak() with an
>> absolute path!
> 
> No, relative paths are fine for Sling home in normal deployments but not in 
> testing (because directories are not created under target). Therefore 
> configuration moved to sling-launchpad-oak-tar (slingLaunchpadOakTar) and 
> sling-launchpad-oak-mongo (slingLaunchpadOakMongo). You usually don't use 
> those options but slingLaunchpadOakTar(String, int) with configured working 
> directory and HTTP port.
> 
> Regards,
> O.
> 
>>> On 16 Mar 2017, at 13:45, Konrad Windszus <ko...@gmx.de> wrote:
>>> 
>>> Maybe this is related to
>>> https://issues.apache.org/jira/browse/SLING-4649?focusedCommentId=1450885
>>> 7&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#co
>>> mment-14508857. It seems that the Lucene index relies on a framework
>>> property (named repository.home) if this is not explicitly configured.
>>> Seems that Karaf does not support setting that, therefore the Lucene
>>> index is created in the wrong directory (and sometime not correctly
>>> removed). I am still failing to reproduce locally though
>>> Konrad
>>> 
>>>> On 16 Mar 2017, at 13:31, Konrad Windszus <ko...@gmx.de> wrote:
>>>> 
>>>> Hi,
>>>> it seems that PaxExam based ITs may create folders outside the target
>>>> folder (see
>>>> https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
>>>> .8/ws/) For Validation the folder
>>>> sling/repository/index/lucene-1488547426482/data was obviously created
>>>> by PaxExam.
>>>> 
>>>> Usually the repository lives below
>>>> https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
>>>> .8/ws/target/paxexam/ValidationServiceIT/sling/repository/
>>>> 
>>>> I also sometimes have seen this locally but I fail to reproduce it
>>>> reliably. Does anyone have an idea, why the lucene index is there?
>>>> Seems that PaxExam relies on relative paths somehow, which are sometimes
>>>> relative to target and sometimes to the project root.
>>>> 
>>>> Thanks for any help
>>>> Konrad
>>>> 
>>>>> On 16 Mar 2017, at 12:11, Apache Jenkins Server
>>>>> <je...@builds.apache.org> wrote:
>>>>> 
>>>>> See
>>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core
>>>>> -1.8/55/display/redirect?page=changes>
>>>>> 
>>>>> Changes:
>>>>> 
>>>>> [kwin] fix some more warnings
>>>>> 
>>>>> ------------------------------------------
>>>>> Started by an SCM change
>>>>> Started by upstream project
>>>>> "sling-bundles-extensions-validation-test-services-1.8" build number 28
>>>>> originally caused by:
>>>>> Started by upstream project
>>>>> "sling-bundles-extensions-validation-api-1.8" build number 25
>>>>> originally caused by:
>>>>> Started by an SCM change
>>>>> [EnvInject] - Loading node environment variables.
>>>>> Building remotely on H23 (ubuntu) in workspace
>>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core
>>>>> -1.8/ws/> Updating
>>>>> https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/validat
>>>>> ion/core at revision '2017-03-16T11:10:09.674 +0000' U        
>>>>> src/test/java/org/apache/sling/validation/impl/model/MergedValidationMo
>>>>> delTest.java U        
>>>>> src/test/java/org/apache/sling/validation/impl/resourcemodel/ResourceVa
>>>>> lidationModelProviderImplTest.java U        
>>>>> src/test/java/org/apache/sling/validation/impl/ValidationServiceImplTes
>>>>> t.java U        
>>>>> src/main/java/org/apache/sling/validation/impl/ValidationServiceImpl.ja
>>>>> va At revision 1787158
>>>>> 
>>>>> Parsing POMs
>>>>> Established TCP socket on 34822
>>>>> maven33-agent.jar already up to date
>>>>> maven33-interceptor.jar already up to date
>>>>> maven3-interceptor-commons.jar already up to date
>>>>> [sling-bundles-extensions-validation-core-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/tool
>>>>> s/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 34822
>>>>> <===[JENKINS REMOTING CAPACITY]===>   channel started
>>>>> Executing Maven:  -B -f
>>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core
>>>>> -1.8/ws/pom.xml>
>>>>> -Dmaven.repo.local=/home/jenkins/jenkins-slave/maven-repositories/0 -U
>>>>> clean deploy [INFO] Scanning for projects...
>>>>> [INFO]
>>>>> [INFO]
>>>>> -----------------------------------------------------------------------
>>>>> - [INFO] Building Apache Sling Validation Framework Core Implementation
>>>>> 1.0.0-SNAPSHOT [INFO]
>>>>> -----------------------------------------------------------------------
>>>>> - [INFO] Downloading:
>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
>>>>> g.validation.api/1.0.0-SNAPSHOT/maven-metadata.xml [INFO] Downloaded:
>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
>>>>> g.validation.api/1.0.0-SNAPSHOT/maven-metadata.xml (1023 B at 2.2
>>>>> KB/sec) [INFO] Downloading:
>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
>>>>> g.validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20
>>>>> 170316.110912-1580.pom [INFO] Downloaded:
>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
>>>>> g.validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20
>>>>> 170316.110912-1580.pom (3 KB at 7.5 KB/sec) [INFO] Downloading:
>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
>>>>> g.validation.test-services/1.0.0-SNAPSHOT/maven-metadata.xml [INFO]
>>>>> Downloaded:
>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
>>>>> g.validation.test-services/1.0.0-SNAPSHOT/maven-metadata.xml (2 KB at
>>>>> 2.7 KB/sec) [INFO] Downloading:
>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
>>>>> g.validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.te
>>>>> st-services-1.0.0-20170316.110958-1573.pom [INFO] Downloaded:
>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
>>>>> g.validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.te
>>>>> st-services-1.0.0-20170316.110958-1573.pom (5 KB at 12.2 KB/sec) [INFO]
>>>>> Downloading:
>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
>>>>> g.testing.paxexam/0.0.3-SNAPSHOT/maven-metadata.xml [INFO] Downloaded:
>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
>>>>> g.testing.paxexam/0.0.3-SNAPSHOT/maven-metadata.xml (1016 B at 2.5
>>>>> KB/sec) [INFO] Downloading:
>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
>>>>> g.testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-
>>>>> 20170313.172758-24.pom [INFO] Downloaded:
>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
>>>>> g.testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-
>>>>> 20170313.172758-24.pom (6 KB at 13.1 KB/sec) [INFO] Downloading:
>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
>>>>> g.validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20
>>>>> 170316.110912-1580.jar [INFO] Downloading:
>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
>>>>> g.validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.te
>>>>> st-services-1.0.0-20170316.110958-1573.jar [INFO] Downloading:
>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
>>>>> g.testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-
>>>>> 20170313.172758-24.jar [INFO] Downloaded:
>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
>>>>> g.validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20
>>>>> 170316.110912-1580.jar (22 KB at 47.2 KB/sec) [INFO] Downloaded:
>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
>>>>> g.validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.te
>>>>> st-services-1.0.0-20170316.110958-1573.jar (22 KB at 48.4 KB/sec) [INFO]
>>>>> Downloaded:
>>>>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
>>>>> g.testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-
>>>>> 20170313.172758-24.jar (31 KB at 65.6 KB/sec) [INFO]
>>>>> [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @
>>>>> org.apache.sling.validation.core --- [INFO] Deleting
>>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core
>>>>> -1.8/ws/target> [INFO]
>>>>> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @
>>>>> org.apache.sling.validation.core --- [INFO]
>>>>> [INFO] --- maven-antrun-plugin:1.8:run
>>>>> (set-bundle-required-execution-environment) @
>>>>> org.apache.sling.validation.core --- [INFO] Executing tasks
>>>>> 
>>>>> main:
>>>>> Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.8 from
>>>>> sling.java.version=8 [INFO] Executed tasks
>>>>> [INFO]
>>>>> [INFO] --- maven-remote-resources-plugin:1.5:process
>>>>> (process-resource-bundles) @ org.apache.sling.validation.core ---
>>>>> [INFO]
>>>>> [INFO] --- maven-remote-resources-plugin:1.5:process (default) @
>>>>> org.apache.sling.validation.core --- [INFO]
>>>>> [INFO] --- depends-maven-plugin:1.3.1:generate-depends-file (default) @
>>>>> org.apache.sling.validation.core --- [INFO] Created:
>>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core
>>>>> -1.8/ws/target/classes/META-INF/maven/dependencies.properties> [INFO]
>>>>> [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @
>>>>> org.apache.sling.validation.core --- [INFO] Using 'UTF-8' encoding to
>>>>> copy filtered resources.
>>>>> [INFO] Copying 1 resource
>>>>> [INFO] Copying 3 resources
>>>>> [INFO] Copying 3 resources
>>>>> [INFO]
>>>>> [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @
>>>>> org.apache.sling.validation.core --- [INFO] Changes detected -
>>>>> recompiling the module!
>>>>> [INFO] Compiling 19 source files to
>>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core
>>>>> -1.8/ws/target/classes> [INFO]
>>>>> [INFO] --- maven-bundle-plugin:3.2.0:manifest (scr-metadata) @
>>>>> org.apache.sling.validation.core --- [INFO]
>>>>> [INFO] --- maven-resources-plugin:2.7:testResources
>>>>> (default-testResources) @ org.apache.sling.validation.core --- [INFO]
>>>>> Using 'UTF-8' encoding to copy filtered resources.
>>>>> [INFO] Copying 2 resources
>>>>> [INFO] Copying 3 resources
>>>>> [INFO] Copying 3 resources
>>>>> [INFO]
>>>>> [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile)
>>>>> @ org.apache.sling.validation.core --- [INFO] Changes detected -
>>>>> recompiling the module!
>>>>> [INFO] Compiling 18 source files to
>>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core
>>>>> -1.8/ws/target/test-classes> [INFO]
>>>>> [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @
>>>>> org.apache.sling.validation.core --- [INFO] Surefire report directory:
>>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core
>>>>> -1.8/ws/target/surefire-reports>
>>>>> 
>>>>> -------------------------------------------------------
>>>>> T E S T S
>>>>> -------------------------------------------------------
>>>>> Running org.apache.sling.validation.impl.ValidationServiceImplTest
>>>>> Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.913
>>>>> sec - in org.apache.sling.validation.impl.ValidationServiceImplTest
>>>>> Running
>>>>> org.apache.sling.validation.impl.resourcemodel.ResourceValidationModelP
>>>>> roviderImplTest Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time
>>>>> elapsed: 0.449 sec - in
>>>>> org.apache.sling.validation.impl.resourcemodel.ResourceValidationModelP
>>>>> roviderImplTest Running
>>>>> org.apache.sling.validation.impl.model.MergedValidationModelTest Tests
>>>>> run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec <<<
>>>>> FAILURE! - in
>>>>> org.apache.sling.validation.impl.model.MergedValidationModelTest
>>>>> testOverwritingChildrenAndResourceProperties(org.apache.sling.validatio
>>>>> n.impl.model.MergedValidationModelTest)  Time elapsed: 0.003 sec  <<<
>>>>> FAILURE! java.lang.AssertionError:
>>>>> Expected: iterable over [<[ResourceProperty with
>>>>> namePattern=overwrittenNameToOverwrite, ResourceProperty with
>>>>> namePattern=originalNameNotOverwritten]>] in any order>>> 
>>>>>  but: Not matched: <ResourcePropertyImpl [name=nameNotOverwritten,
>>>>>  isMultiple=false, isRequired=true, validators=[],
>>>>>  namePattern=originalNameNotOverwritten]>>>> 	
>>>>> 	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
>>>>> 	at org.junit.Assert.assertThat(Assert.java:956)
>>>>> 	at org.junit.Assert.assertThat(Assert.java:923)
>>>>> 	at
>>>>> 	org.apache.sling.validation.impl.model.MergedValidationModelTest.testO
>>>>> 	
> verwritingChildrenAndResourceProperties(MergedValidationModelTest.java:
>>>>> 	85)>>> 
>>>>> Running org.apache.sling.validation.impl.util.ValidatorTypeUtilTest
>>>>> Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005
>>>>> sec - in org.apache.sling.validation.impl.util.ValidatorTypeUtilTest
>>>>> Running
>>>>> org.apache.sling.validation.impl.ValidationModelRetrieverImplTest
>>>>> [main] INFO
>>>>> org.apache.sling.validation.impl.ValidationModelRetrieverImpl - A
>>>>> Validator for the same id 'DateValidator' is already registered with
>>>>> class 'ValidatorWithSeverity
>>>>> [validator=org.apache.sling.validation.impl.util.examplevalidators.Date
>>>>> Validator@492691d7, severity=1]' from bundle 1 and has a higher service
>>>>> ranking [main] INFO
>>>>> org.apache.sling.validation.impl.ValidationModelRetrieverImpl -
>>>>> Overwriting already existing validator ValidatorWithSeverity
>>>>> [validator=org.apache.sling.validation.impl.util.examplevalidators.Date
>>>>> Validator@74589991, severity=1] from bundle 1 with validator
>>>>> org.apache.sling.validation.impl.util.examplevalidators.StringValidator
>>>>> @146dfe6 from bundle 1, because it has the same id 'DateValidator' and a
>>>>> higher service ranking Tests run: 12, Failures: 0, Errors: 0, Skipped:
>>>>> 0, Time elapsed: 0.059 sec - in
>>>>> org.apache.sling.validation.impl.ValidationModelRetrieverImplTest
>>>>> 
>>>>> Results :
>>>>> 
>>>>> Failed tests:
>>>>> MergedValidationModelTest.testOverwritingChildrenAndResourceProperties:8
>>>>> 5
>>>>> Expected: iterable over [<[ResourceProperty with
>>>>> namePattern=overwrittenNameToOverwrite, ResourceProperty with
>>>>> namePattern=originalNameNotOverwritten]>] in any order>>> 
>>>>>  but: Not matched: <ResourcePropertyImpl [name=nameNotOverwritten,
>>>>>  isMultiple=false, isRequired=true, validators=[],
>>>>>  namePattern=originalNameNotOverwritten]>>>> 
>>>>> Tests run: 59, Failures: 1, Errors: 0, Skipped: 0
>>>>> 
>>>>> [ERROR] There are test failures.
>>>>> 
>>>>> Please refer to
>>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core
>>>>> -1.8/ws/target/surefire-reports> for the individual test results.
>>>>> [JENKINS] Recording test results
>>>>> [INFO]
>>>>> [INFO] --- animal-sniffer-maven-plugin:1.15:check (default) @
>>>>> org.apache.sling.validation.core --- [INFO] Checking unresolved
>>>>> references to org.codehaus.mojo.signature:java18:1.0 [INFO]
>>>>> [INFO] --- maven-bundle-plugin:3.2.0:bundle (default-bundle) @
>>>>> org.apache.sling.validation.core --- [INFO]
>>>>> [INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) >
>>>>> generate-sources @ org.apache.sling.validation.core >>> [INFO]
>>>>> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @
>>>>> org.apache.sling.validation.core --- [INFO]
>>>>> [INFO] --- maven-antrun-plugin:1.8:run
>>>>> (set-bundle-required-execution-environment) @
>>>>> org.apache.sling.validation.core --- [INFO] Executing tasks
>>>>> 
>>>>> main:
>>>>> Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.8 from
>>>>> sling.java.version=8 [INFO] Executed tasks
>>>>> [WARNING] Failed to getClass for
>>>>> org.apache.maven.plugins.source.SourceJarMojo [INFO]
>>>>> [INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) <
>>>>> generate-sources @ org.apache.sling.validation.core <<< [INFO]
>>>>> [INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @
>>>>> org.apache.sling.validation.core --- [INFO] Building jar:
>>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core
>>>>> -1.8/ws/target/org.apache.sling.validation.core-1.0.0-SNAPSHOT-sources.j
>>>>> ar> [INFO]
>>>>> [INFO] --- maven-site-plugin:3.5.1:attach-descriptor (attach-descriptor)
>>>>> @ org.apache.sling.validation.core --- [INFO]
>>>>> [INFO] --- maven-failsafe-plugin:2.18.1:integration-test (default) @
>>>>> org.apache.sling.validation.core --- [INFO] Failsafe report directory:
>>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core
>>>>> -1.8/ws/target/failsafe-reports>
>>>>> 
>>>>> -------------------------------------------------------
>>>>> T E S T S
>>>>> -------------------------------------------------------
>>>>> Running org.apache.sling.validation.core.it.tests.ValidationServiceIT
>>>>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 21.543
>>>>> sec - in org.apache.sling.validation.core.it.tests.ValidationServiceIT
>>>>> 
>>>>> Results :
>>>>> 
>>>>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
>>>>> 
>>>>> [JENKINS] Recording test results
>>>>> [INFO]
>>>>> [INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default) @
>>>>> org.apache.sling.validation.core --- [INFO] Checking legal files in:
>>>>> org.apache.sling.validation.core-1.0.0-SNAPSHOT.jar [INFO] Checking
>>>>> legal files in:
>>>>> org.apache.sling.validation.core-1.0.0-SNAPSHOT-sources.jar [INFO]
>>>>> [INFO] --- apache-rat-plugin:0.11:check (default) @
>>>>> org.apache.sling.validation.core --- [INFO] 51 implicit excludes (use
>>>>> -debug for more details).
>>>>> [INFO] Exclude: DEPENDENCIES
>>>>> [INFO] Exclude: src/main/appended-resources/META-INF/*
>>>>> [INFO] Exclude: velocity.log
>>>>> [INFO] Exclude: target/*
>>>>> [INFO] Exclude: README.md
>>>>> [INFO] Exclude: maven-eclipse.xml
>>>>> [INFO] Exclude: .*
>>>>> [INFO] Exclude: .*/**
>>>>> [INFO] Exclude: **/*.json
>>>>> [INFO] Exclude: DEPENDENCIES
>>>>> [INFO] Exclude: **/*.rej
>>>>> [INFO] Exclude: hs_err_*.log
>>>>> [INFO] Exclude: **/repository/index/*/index-details.txt
>>>>> [INFO] 54 resources included (use -debug for more details)
>>>>> [INFO] Rat check: Summary of files. Unapproved: 4 unknown: 4 generated:
>>>>> 0 approved: 40 licence. [JENKINS] Archiving disabled
>>>>> [JENKINS] Archiving disabled[INFO]
>>>>> -----------------------------------------------------------------------
>>>>> - [INFO] BUILD FAILURE
>>>>> [INFO]
>>>>> -----------------------------------------------------------------------
>>>>> - [INFO] Total time: 51.740 s
>>>>> [INFO] Finished at: 2017-03-16T11:11:10+00:00
>>>>> 
>>>>> [INFO] Final Memory: 51M/598M
>>>>> [INFO]
>>>>> -----------------------------------------------------------------------
>>>>> - Waiting for Jenkins to finish collecting data
>>>>> [ERROR] Failed to execute goal
>>>>> org.apache.rat:apache-rat-plugin:0.11:check (default) on project
>>>>> org.apache.sling.validation.core: Too many files with unapproved
>>>>> license: 4 See RAT report in:
>>>>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core
>>>>> -1.8/ws/target/rat.txt> -> [Help 1] [ERROR]
>>>>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>>>>> -e switch. [ERROR] Re-run Maven using the -X switch to enable full
>>>>> debug logging. [ERROR]
>>>>> [ERROR] For more information about the errors and possible solutions,
>>>>> please read the following articles: [ERROR] [Help 1]
>>>>> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>>>>> channel stopped
>>>>> Recording test results
> 


Re: PaxExam based ITs create folders outside target

Posted by Oliver Lietz <ap...@oliverlietz.de>.
On Thursday 16 March 2017 13:54:23 Konrad Windszus wrote:
> Probably this commit
> https://github.com/apache/sling/blame/trunk/testing/org.apache.sling.testin
> g.paxexam/src/main/java/org/apache/sling/testing/paxexam/SlingOptions.java#L
> 645 is not correct. The localIndexDir should be IMHO set as absolute path
> (not relative!) This is done correctly in
> https://github.com/apache/sling/blame/trunk/testing/org.apache.sling.testin
> g.paxexam/src/main/java/org/apache/sling/testing/paxexam/SlingOptions.java#L
> 879. I am also not getting why the configuration is set two times.
> IMHO this should be set only once in the slingLaunchpadOak() with an
> absolute path!

No, relative paths are fine for Sling home in normal deployments but not in 
testing (because directories are not created under target). Therefore 
configuration moved to sling-launchpad-oak-tar (slingLaunchpadOakTar) and 
sling-launchpad-oak-mongo (slingLaunchpadOakMongo). You usually don't use 
those options but slingLaunchpadOakTar(String, int) with configured working 
directory and HTTP port.

Regards,
O.

> > On 16 Mar 2017, at 13:45, Konrad Windszus <ko...@gmx.de> wrote:
> > 
> > Maybe this is related to
> > https://issues.apache.org/jira/browse/SLING-4649?focusedCommentId=1450885
> > 7&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#co
> > mment-14508857. It seems that the Lucene index relies on a framework
> > property (named repository.home) if this is not explicitly configured.
> > Seems that Karaf does not support setting that, therefore the Lucene
> > index is created in the wrong directory (and sometime not correctly
> > removed). I am still failing to reproduce locally though
> > Konrad
> > 
> >> On 16 Mar 2017, at 13:31, Konrad Windszus <ko...@gmx.de> wrote:
> >> 
> >> Hi,
> >> it seems that PaxExam based ITs may create folders outside the target
> >> folder (see
> >> https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
> >> .8/ws/) For Validation the folder
> >> sling/repository/index/lucene-1488547426482/data was obviously created
> >> by PaxExam.
> >> 
> >> Usually the repository lives below
> >> https://builds.apache.org/job/sling-bundles-extensions-validation-core-1
> >> .8/ws/target/paxexam/ValidationServiceIT/sling/repository/
> >> 
> >> I also sometimes have seen this locally but I fail to reproduce it
> >> reliably. Does anyone have an idea, why the lucene index is there?
> >> Seems that PaxExam relies on relative paths somehow, which are sometimes
> >> relative to target and sometimes to the project root.
> >> 
> >> Thanks for any help
> >> Konrad
> >> 
> >>> On 16 Mar 2017, at 12:11, Apache Jenkins Server
> >>> <je...@builds.apache.org> wrote:
> >>> 
> >>> See
> >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core
> >>> -1.8/55/display/redirect?page=changes>
> >>> 
> >>> Changes:
> >>> 
> >>> [kwin] fix some more warnings
> >>> 
> >>> ------------------------------------------
> >>> Started by an SCM change
> >>> Started by upstream project
> >>> "sling-bundles-extensions-validation-test-services-1.8" build number 28
> >>> originally caused by:
> >>> Started by upstream project
> >>> "sling-bundles-extensions-validation-api-1.8" build number 25
> >>> originally caused by:
> >>> Started by an SCM change
> >>> [EnvInject] - Loading node environment variables.
> >>> Building remotely on H23 (ubuntu) in workspace
> >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core
> >>> -1.8/ws/> Updating
> >>> https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/validat
> >>> ion/core at revision '2017-03-16T11:10:09.674 +0000' U        
> >>> src/test/java/org/apache/sling/validation/impl/model/MergedValidationMo
> >>> delTest.java U        
> >>> src/test/java/org/apache/sling/validation/impl/resourcemodel/ResourceVa
> >>> lidationModelProviderImplTest.java U        
> >>> src/test/java/org/apache/sling/validation/impl/ValidationServiceImplTes
> >>> t.java U        
> >>> src/main/java/org/apache/sling/validation/impl/ValidationServiceImpl.ja
> >>> va At revision 1787158
> >>> 
> >>> Parsing POMs
> >>> Established TCP socket on 34822
> >>> maven33-agent.jar already up to date
> >>> maven33-interceptor.jar already up to date
> >>> maven3-interceptor-commons.jar already up to date
> >>> [sling-bundles-extensions-validation-core-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/tool
> >>> s/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 34822
> >>> <===[JENKINS REMOTING CAPACITY]===>   channel started
> >>> Executing Maven:  -B -f
> >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core
> >>> -1.8/ws/pom.xml>
> >>> -Dmaven.repo.local=/home/jenkins/jenkins-slave/maven-repositories/0 -U
> >>> clean deploy [INFO] Scanning for projects...
> >>> [INFO]
> >>> [INFO]
> >>> -----------------------------------------------------------------------
> >>> - [INFO] Building Apache Sling Validation Framework Core Implementation
> >>> 1.0.0-SNAPSHOT [INFO]
> >>> -----------------------------------------------------------------------
> >>> - [INFO] Downloading:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
> >>> g.validation.api/1.0.0-SNAPSHOT/maven-metadata.xml [INFO] Downloaded:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
> >>> g.validation.api/1.0.0-SNAPSHOT/maven-metadata.xml (1023 B at 2.2
> >>> KB/sec) [INFO] Downloading:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
> >>> g.validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20
> >>> 170316.110912-1580.pom [INFO] Downloaded:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
> >>> g.validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20
> >>> 170316.110912-1580.pom (3 KB at 7.5 KB/sec) [INFO] Downloading:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
> >>> g.validation.test-services/1.0.0-SNAPSHOT/maven-metadata.xml [INFO]
> >>> Downloaded:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
> >>> g.validation.test-services/1.0.0-SNAPSHOT/maven-metadata.xml (2 KB at
> >>> 2.7 KB/sec) [INFO] Downloading:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
> >>> g.validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.te
> >>> st-services-1.0.0-20170316.110958-1573.pom [INFO] Downloaded:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
> >>> g.validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.te
> >>> st-services-1.0.0-20170316.110958-1573.pom (5 KB at 12.2 KB/sec) [INFO]
> >>> Downloading:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
> >>> g.testing.paxexam/0.0.3-SNAPSHOT/maven-metadata.xml [INFO] Downloaded:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
> >>> g.testing.paxexam/0.0.3-SNAPSHOT/maven-metadata.xml (1016 B at 2.5
> >>> KB/sec) [INFO] Downloading:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
> >>> g.testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-
> >>> 20170313.172758-24.pom [INFO] Downloaded:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
> >>> g.testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-
> >>> 20170313.172758-24.pom (6 KB at 13.1 KB/sec) [INFO] Downloading:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
> >>> g.validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20
> >>> 170316.110912-1580.jar [INFO] Downloading:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
> >>> g.validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.te
> >>> st-services-1.0.0-20170316.110958-1573.jar [INFO] Downloading:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
> >>> g.testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-
> >>> 20170313.172758-24.jar [INFO] Downloaded:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
> >>> g.validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20
> >>> 170316.110912-1580.jar (22 KB at 47.2 KB/sec) [INFO] Downloaded:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
> >>> g.validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.te
> >>> st-services-1.0.0-20170316.110958-1573.jar (22 KB at 48.4 KB/sec) [INFO]
> >>> Downloaded:
> >>> http://repository.apache.org/snapshots/org/apache/sling/org.apache.slin
> >>> g.testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-
> >>> 20170313.172758-24.jar (31 KB at 65.6 KB/sec) [INFO]
> >>> [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @
> >>> org.apache.sling.validation.core --- [INFO] Deleting
> >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core
> >>> -1.8/ws/target> [INFO]
> >>> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @
> >>> org.apache.sling.validation.core --- [INFO]
> >>> [INFO] --- maven-antrun-plugin:1.8:run
> >>> (set-bundle-required-execution-environment) @
> >>> org.apache.sling.validation.core --- [INFO] Executing tasks
> >>> 
> >>> main:
> >>> Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.8 from
> >>> sling.java.version=8 [INFO] Executed tasks
> >>> [INFO]
> >>> [INFO] --- maven-remote-resources-plugin:1.5:process
> >>> (process-resource-bundles) @ org.apache.sling.validation.core ---
> >>> [INFO]
> >>> [INFO] --- maven-remote-resources-plugin:1.5:process (default) @
> >>> org.apache.sling.validation.core --- [INFO]
> >>> [INFO] --- depends-maven-plugin:1.3.1:generate-depends-file (default) @
> >>> org.apache.sling.validation.core --- [INFO] Created:
> >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core
> >>> -1.8/ws/target/classes/META-INF/maven/dependencies.properties> [INFO]
> >>> [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @
> >>> org.apache.sling.validation.core --- [INFO] Using 'UTF-8' encoding to
> >>> copy filtered resources.
> >>> [INFO] Copying 1 resource
> >>> [INFO] Copying 3 resources
> >>> [INFO] Copying 3 resources
> >>> [INFO]
> >>> [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @
> >>> org.apache.sling.validation.core --- [INFO] Changes detected -
> >>> recompiling the module!
> >>> [INFO] Compiling 19 source files to
> >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core
> >>> -1.8/ws/target/classes> [INFO]
> >>> [INFO] --- maven-bundle-plugin:3.2.0:manifest (scr-metadata) @
> >>> org.apache.sling.validation.core --- [INFO]
> >>> [INFO] --- maven-resources-plugin:2.7:testResources
> >>> (default-testResources) @ org.apache.sling.validation.core --- [INFO]
> >>> Using 'UTF-8' encoding to copy filtered resources.
> >>> [INFO] Copying 2 resources
> >>> [INFO] Copying 3 resources
> >>> [INFO] Copying 3 resources
> >>> [INFO]
> >>> [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile)
> >>> @ org.apache.sling.validation.core --- [INFO] Changes detected -
> >>> recompiling the module!
> >>> [INFO] Compiling 18 source files to
> >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core
> >>> -1.8/ws/target/test-classes> [INFO]
> >>> [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @
> >>> org.apache.sling.validation.core --- [INFO] Surefire report directory:
> >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core
> >>> -1.8/ws/target/surefire-reports>
> >>> 
> >>> -------------------------------------------------------
> >>> T E S T S
> >>> -------------------------------------------------------
> >>> Running org.apache.sling.validation.impl.ValidationServiceImplTest
> >>> Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.913
> >>> sec - in org.apache.sling.validation.impl.ValidationServiceImplTest
> >>> Running
> >>> org.apache.sling.validation.impl.resourcemodel.ResourceValidationModelP
> >>> roviderImplTest Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time
> >>> elapsed: 0.449 sec - in
> >>> org.apache.sling.validation.impl.resourcemodel.ResourceValidationModelP
> >>> roviderImplTest Running
> >>> org.apache.sling.validation.impl.model.MergedValidationModelTest Tests
> >>> run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec <<<
> >>> FAILURE! - in
> >>> org.apache.sling.validation.impl.model.MergedValidationModelTest
> >>> testOverwritingChildrenAndResourceProperties(org.apache.sling.validatio
> >>> n.impl.model.MergedValidationModelTest)  Time elapsed: 0.003 sec  <<<
> >>> FAILURE! java.lang.AssertionError:
> >>> Expected: iterable over [<[ResourceProperty with
> >>> namePattern=overwrittenNameToOverwrite, ResourceProperty with
> >>> namePattern=originalNameNotOverwritten]>] in any order>>> 
> >>>   but: Not matched: <ResourcePropertyImpl [name=nameNotOverwritten,
> >>>   isMultiple=false, isRequired=true, validators=[],
> >>>   namePattern=originalNameNotOverwritten]>>>> 	
> >>> 	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
> >>> 	at org.junit.Assert.assertThat(Assert.java:956)
> >>> 	at org.junit.Assert.assertThat(Assert.java:923)
> >>> 	at
> >>> 	org.apache.sling.validation.impl.model.MergedValidationModelTest.testO
> >>> 	
verwritingChildrenAndResourceProperties(MergedValidationModelTest.java:
> >>> 	85)>>> 
> >>> Running org.apache.sling.validation.impl.util.ValidatorTypeUtilTest
> >>> Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005
> >>> sec - in org.apache.sling.validation.impl.util.ValidatorTypeUtilTest
> >>> Running
> >>> org.apache.sling.validation.impl.ValidationModelRetrieverImplTest
> >>> [main] INFO
> >>> org.apache.sling.validation.impl.ValidationModelRetrieverImpl - A
> >>> Validator for the same id 'DateValidator' is already registered with
> >>> class 'ValidatorWithSeverity
> >>> [validator=org.apache.sling.validation.impl.util.examplevalidators.Date
> >>> Validator@492691d7, severity=1]' from bundle 1 and has a higher service
> >>> ranking [main] INFO
> >>> org.apache.sling.validation.impl.ValidationModelRetrieverImpl -
> >>> Overwriting already existing validator ValidatorWithSeverity
> >>> [validator=org.apache.sling.validation.impl.util.examplevalidators.Date
> >>> Validator@74589991, severity=1] from bundle 1 with validator
> >>> org.apache.sling.validation.impl.util.examplevalidators.StringValidator
> >>> @146dfe6 from bundle 1, because it has the same id 'DateValidator' and a
> >>> higher service ranking Tests run: 12, Failures: 0, Errors: 0, Skipped:
> >>> 0, Time elapsed: 0.059 sec - in
> >>> org.apache.sling.validation.impl.ValidationModelRetrieverImplTest
> >>> 
> >>> Results :
> >>> 
> >>> Failed tests:
> >>> MergedValidationModelTest.testOverwritingChildrenAndResourceProperties:8
> >>> 5
> >>> Expected: iterable over [<[ResourceProperty with
> >>> namePattern=overwrittenNameToOverwrite, ResourceProperty with
> >>> namePattern=originalNameNotOverwritten]>] in any order>>> 
> >>>   but: Not matched: <ResourcePropertyImpl [name=nameNotOverwritten,
> >>>   isMultiple=false, isRequired=true, validators=[],
> >>>   namePattern=originalNameNotOverwritten]>>>> 
> >>> Tests run: 59, Failures: 1, Errors: 0, Skipped: 0
> >>> 
> >>> [ERROR] There are test failures.
> >>> 
> >>> Please refer to
> >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core
> >>> -1.8/ws/target/surefire-reports> for the individual test results.
> >>> [JENKINS] Recording test results
> >>> [INFO]
> >>> [INFO] --- animal-sniffer-maven-plugin:1.15:check (default) @
> >>> org.apache.sling.validation.core --- [INFO] Checking unresolved
> >>> references to org.codehaus.mojo.signature:java18:1.0 [INFO]
> >>> [INFO] --- maven-bundle-plugin:3.2.0:bundle (default-bundle) @
> >>> org.apache.sling.validation.core --- [INFO]
> >>> [INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) >
> >>> generate-sources @ org.apache.sling.validation.core >>> [INFO]
> >>> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @
> >>> org.apache.sling.validation.core --- [INFO]
> >>> [INFO] --- maven-antrun-plugin:1.8:run
> >>> (set-bundle-required-execution-environment) @
> >>> org.apache.sling.validation.core --- [INFO] Executing tasks
> >>> 
> >>> main:
> >>> Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.8 from
> >>> sling.java.version=8 [INFO] Executed tasks
> >>> [WARNING] Failed to getClass for
> >>> org.apache.maven.plugins.source.SourceJarMojo [INFO]
> >>> [INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) <
> >>> generate-sources @ org.apache.sling.validation.core <<< [INFO]
> >>> [INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @
> >>> org.apache.sling.validation.core --- [INFO] Building jar:
> >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core
> >>> -1.8/ws/target/org.apache.sling.validation.core-1.0.0-SNAPSHOT-sources.j
> >>> ar> [INFO]
> >>> [INFO] --- maven-site-plugin:3.5.1:attach-descriptor (attach-descriptor)
> >>> @ org.apache.sling.validation.core --- [INFO]
> >>> [INFO] --- maven-failsafe-plugin:2.18.1:integration-test (default) @
> >>> org.apache.sling.validation.core --- [INFO] Failsafe report directory:
> >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core
> >>> -1.8/ws/target/failsafe-reports>
> >>> 
> >>> -------------------------------------------------------
> >>> T E S T S
> >>> -------------------------------------------------------
> >>> Running org.apache.sling.validation.core.it.tests.ValidationServiceIT
> >>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 21.543
> >>> sec - in org.apache.sling.validation.core.it.tests.ValidationServiceIT
> >>> 
> >>> Results :
> >>> 
> >>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
> >>> 
> >>> [JENKINS] Recording test results
> >>> [INFO]
> >>> [INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default) @
> >>> org.apache.sling.validation.core --- [INFO] Checking legal files in:
> >>> org.apache.sling.validation.core-1.0.0-SNAPSHOT.jar [INFO] Checking
> >>> legal files in:
> >>> org.apache.sling.validation.core-1.0.0-SNAPSHOT-sources.jar [INFO]
> >>> [INFO] --- apache-rat-plugin:0.11:check (default) @
> >>> org.apache.sling.validation.core --- [INFO] 51 implicit excludes (use
> >>> -debug for more details).
> >>> [INFO] Exclude: DEPENDENCIES
> >>> [INFO] Exclude: src/main/appended-resources/META-INF/*
> >>> [INFO] Exclude: velocity.log
> >>> [INFO] Exclude: target/*
> >>> [INFO] Exclude: README.md
> >>> [INFO] Exclude: maven-eclipse.xml
> >>> [INFO] Exclude: .*
> >>> [INFO] Exclude: .*/**
> >>> [INFO] Exclude: **/*.json
> >>> [INFO] Exclude: DEPENDENCIES
> >>> [INFO] Exclude: **/*.rej
> >>> [INFO] Exclude: hs_err_*.log
> >>> [INFO] Exclude: **/repository/index/*/index-details.txt
> >>> [INFO] 54 resources included (use -debug for more details)
> >>> [INFO] Rat check: Summary of files. Unapproved: 4 unknown: 4 generated:
> >>> 0 approved: 40 licence. [JENKINS] Archiving disabled
> >>> [JENKINS] Archiving disabled[INFO]
> >>> -----------------------------------------------------------------------
> >>> - [INFO] BUILD FAILURE
> >>> [INFO]
> >>> -----------------------------------------------------------------------
> >>> - [INFO] Total time: 51.740 s
> >>> [INFO] Finished at: 2017-03-16T11:11:10+00:00
> >>> 
> >>> [INFO] Final Memory: 51M/598M
> >>> [INFO]
> >>> -----------------------------------------------------------------------
> >>> - Waiting for Jenkins to finish collecting data
> >>> [ERROR] Failed to execute goal
> >>> org.apache.rat:apache-rat-plugin:0.11:check (default) on project
> >>> org.apache.sling.validation.core: Too many files with unapproved
> >>> license: 4 See RAT report in:
> >>> <https://builds.apache.org/job/sling-bundles-extensions-validation-core
> >>> -1.8/ws/target/rat.txt> -> [Help 1] [ERROR]
> >>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> >>> -e switch. [ERROR] Re-run Maven using the -X switch to enable full
> >>> debug logging. [ERROR]
> >>> [ERROR] For more information about the errors and possible solutions,
> >>> please read the following articles: [ERROR] [Help 1]
> >>> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> >>> channel stopped
> >>> Recording test results


Re: PaxExam based ITs create folders outside target

Posted by Konrad Windszus <ko...@gmx.de>.
Probably this commit https://github.com/apache/sling/blame/trunk/testing/org.apache.sling.testing.paxexam/src/main/java/org/apache/sling/testing/paxexam/SlingOptions.java#L645
is not correct. The localIndexDir should be IMHO set as absolute path (not relative!) This is done correctly in https://github.com/apache/sling/blame/trunk/testing/org.apache.sling.testing.paxexam/src/main/java/org/apache/sling/testing/paxexam/SlingOptions.java#L879.
I am also not getting why the configuration is set two times.
IMHO this should be set only once in the slingLaunchpadOak() with an absolute path!

> On 16 Mar 2017, at 13:45, Konrad Windszus <ko...@gmx.de> wrote:
> 
> Maybe this is related to https://issues.apache.org/jira/browse/SLING-4649?focusedCommentId=14508857&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14508857.
> It seems that the Lucene index relies on a framework property (named repository.home) if this is not explicitly configured.
> Seems that Karaf does not support setting that, therefore the Lucene index is created in the wrong directory (and sometime not correctly removed).
> I am still failing to reproduce locally though
> Konrad
> 
> 
>> On 16 Mar 2017, at 13:31, Konrad Windszus <ko...@gmx.de> wrote:
>> 
>> Hi,
>> it seems that PaxExam based ITs may create folders outside the target folder (see https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/)
>> For Validation the folder sling/repository/index/lucene-1488547426482/data was obviously created by PaxExam.
>> 
>> Usually the repository lives below https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/paxexam/ValidationServiceIT/sling/repository/
>> 
>> I also sometimes have seen this locally but I fail to reproduce it reliably.
>> Does anyone have an idea, why the lucene index is there?
>> Seems that PaxExam relies on relative paths somehow, which are sometimes relative to target and sometimes to the project root.
>> 
>> Thanks for any help
>> Konrad
>> 
>>> On 16 Mar 2017, at 12:11, Apache Jenkins Server <je...@builds.apache.org> wrote:
>>> 
>>> See <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/55/display/redirect?page=changes>
>>> 
>>> Changes:
>>> 
>>> [kwin] fix some more warnings
>>> 
>>> ------------------------------------------
>>> Started by an SCM change
>>> Started by upstream project "sling-bundles-extensions-validation-test-services-1.8" build number 28
>>> originally caused by:
>>> Started by upstream project "sling-bundles-extensions-validation-api-1.8" build number 25
>>> originally caused by:
>>> Started by an SCM change
>>> [EnvInject] - Loading node environment variables.
>>> Building remotely on H23 (ubuntu) in workspace <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/>
>>> Updating https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/validation/core at revision '2017-03-16T11:10:09.674 +0000'
>>> U         src/test/java/org/apache/sling/validation/impl/model/MergedValidationModelTest.java
>>> U         src/test/java/org/apache/sling/validation/impl/resourcemodel/ResourceValidationModelProviderImplTest.java
>>> U         src/test/java/org/apache/sling/validation/impl/ValidationServiceImplTest.java
>>> U         src/main/java/org/apache/sling/validation/impl/ValidationServiceImpl.java
>>> At revision 1787158
>>> 
>>> Parsing POMs
>>> Established TCP socket on 34822
>>> maven33-agent.jar already up to date
>>> maven33-interceptor.jar already up to date
>>> maven3-interceptor-commons.jar already up to date
>>> [sling-bundles-extensions-validation-core-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 34822
>>> <===[JENKINS REMOTING CAPACITY]===>   channel started
>>> Executing Maven:  -B -f <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/pom.xml> -Dmaven.repo.local=/home/jenkins/jenkins-slave/maven-repositories/0 -U clean deploy
>>> [INFO] Scanning for projects...
>>> [INFO]                                                                         
>>> [INFO] ------------------------------------------------------------------------
>>> [INFO] Building Apache Sling Validation Framework Core Implementation 1.0.0-SNAPSHOT
>>> [INFO] ------------------------------------------------------------------------
>>> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.api/1.0.0-SNAPSHOT/maven-metadata.xml
>>> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.api/1.0.0-SNAPSHOT/maven-metadata.xml (1023 B at 2.2 KB/sec)
>>> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20170316.110912-1580.pom
>>> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20170316.110912-1580.pom (3 KB at 7.5 KB/sec)
>>> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.test-services/1.0.0-SNAPSHOT/maven-metadata.xml
>>> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.test-services/1.0.0-SNAPSHOT/maven-metadata.xml (2 KB at 2.7 KB/sec)
>>> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test-services-1.0.0-20170316.110958-1573.pom
>>> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test-services-1.0.0-20170316.110958-1573.pom (5 KB at 12.2 KB/sec)
>>> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.testing.paxexam/0.0.3-SNAPSHOT/maven-metadata.xml
>>> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.testing.paxexam/0.0.3-SNAPSHOT/maven-metadata.xml (1016 B at 2.5 KB/sec)
>>> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-20170313.172758-24.pom
>>> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-20170313.172758-24.pom (6 KB at 13.1 KB/sec)
>>> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20170316.110912-1580.jar
>>> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test-services-1.0.0-20170316.110958-1573.jar
>>> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-20170313.172758-24.jar
>>> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20170316.110912-1580.jar (22 KB at 47.2 KB/sec)
>>> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test-services-1.0.0-20170316.110958-1573.jar (22 KB at 48.4 KB/sec)
>>> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-20170313.172758-24.jar (31 KB at 65.6 KB/sec)
>>> [INFO] 
>>> [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ org.apache.sling.validation.core ---
>>> [INFO] Deleting <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target>
>>> [INFO] 
>>> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @ org.apache.sling.validation.core ---
>>> [INFO] 
>>> [INFO] --- maven-antrun-plugin:1.8:run (set-bundle-required-execution-environment) @ org.apache.sling.validation.core ---
>>> [INFO] Executing tasks
>>> 
>>> main:
>>> Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.8 from sling.java.version=8
>>> [INFO] Executed tasks
>>> [INFO] 
>>> [INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) @ org.apache.sling.validation.core ---
>>> [INFO] 
>>> [INFO] --- maven-remote-resources-plugin:1.5:process (default) @ org.apache.sling.validation.core ---
>>> [INFO] 
>>> [INFO] --- depends-maven-plugin:1.3.1:generate-depends-file (default) @ org.apache.sling.validation.core ---
>>> [INFO] Created: <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/classes/META-INF/maven/dependencies.properties>
>>> [INFO] 
>>> [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ org.apache.sling.validation.core ---
>>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>>> [INFO] Copying 1 resource
>>> [INFO] Copying 3 resources
>>> [INFO] Copying 3 resources
>>> [INFO] 
>>> [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ org.apache.sling.validation.core ---
>>> [INFO] Changes detected - recompiling the module!
>>> [INFO] Compiling 19 source files to <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/classes>
>>> [INFO] 
>>> [INFO] --- maven-bundle-plugin:3.2.0:manifest (scr-metadata) @ org.apache.sling.validation.core ---
>>> [INFO] 
>>> [INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ org.apache.sling.validation.core ---
>>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>>> [INFO] Copying 2 resources
>>> [INFO] Copying 3 resources
>>> [INFO] Copying 3 resources
>>> [INFO] 
>>> [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ org.apache.sling.validation.core ---
>>> [INFO] Changes detected - recompiling the module!
>>> [INFO] Compiling 18 source files to <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/test-classes>
>>> [INFO] 
>>> [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ org.apache.sling.validation.core ---
>>> [INFO] Surefire report directory: <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/surefire-reports>
>>> 
>>> -------------------------------------------------------
>>> T E S T S
>>> -------------------------------------------------------
>>> Running org.apache.sling.validation.impl.ValidationServiceImplTest
>>> Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.913 sec - in org.apache.sling.validation.impl.ValidationServiceImplTest
>>> Running org.apache.sling.validation.impl.resourcemodel.ResourceValidationModelProviderImplTest
>>> Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.449 sec - in org.apache.sling.validation.impl.resourcemodel.ResourceValidationModelProviderImplTest
>>> Running org.apache.sling.validation.impl.model.MergedValidationModelTest
>>> Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec <<< FAILURE! - in org.apache.sling.validation.impl.model.MergedValidationModelTest
>>> testOverwritingChildrenAndResourceProperties(org.apache.sling.validation.impl.model.MergedValidationModelTest)  Time elapsed: 0.003 sec  <<< FAILURE!
>>> java.lang.AssertionError: 
>>> Expected: iterable over [<[ResourceProperty with namePattern=overwrittenNameToOverwrite, ResourceProperty with namePattern=originalNameNotOverwritten]>] in any order
>>>   but: Not matched: <ResourcePropertyImpl [name=nameNotOverwritten, isMultiple=false, isRequired=true, validators=[], namePattern=originalNameNotOverwritten]>
>>> 	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
>>> 	at org.junit.Assert.assertThat(Assert.java:956)
>>> 	at org.junit.Assert.assertThat(Assert.java:923)
>>> 	at org.apache.sling.validation.impl.model.MergedValidationModelTest.testOverwritingChildrenAndResourceProperties(MergedValidationModelTest.java:85)
>>> 
>>> Running org.apache.sling.validation.impl.util.ValidatorTypeUtilTest
>>> Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec - in org.apache.sling.validation.impl.util.ValidatorTypeUtilTest
>>> Running org.apache.sling.validation.impl.ValidationModelRetrieverImplTest
>>> [main] INFO org.apache.sling.validation.impl.ValidationModelRetrieverImpl - A Validator for the same id 'DateValidator' is already registered with class 'ValidatorWithSeverity [validator=org.apache.sling.validation.impl.util.examplevalidators.DateValidator@492691d7, severity=1]' from bundle 1 and has a higher service ranking
>>> [main] INFO org.apache.sling.validation.impl.ValidationModelRetrieverImpl - Overwriting already existing validator ValidatorWithSeverity [validator=org.apache.sling.validation.impl.util.examplevalidators.DateValidator@74589991, severity=1] from bundle 1 with validator org.apache.sling.validation.impl.util.examplevalidators.StringValidator@146dfe6 from bundle 1, because it has the same id 'DateValidator' and a higher service ranking
>>> Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.059 sec - in org.apache.sling.validation.impl.ValidationModelRetrieverImplTest
>>> 
>>> Results :
>>> 
>>> Failed tests: 
>>> MergedValidationModelTest.testOverwritingChildrenAndResourceProperties:85 
>>> Expected: iterable over [<[ResourceProperty with namePattern=overwrittenNameToOverwrite, ResourceProperty with namePattern=originalNameNotOverwritten]>] in any order
>>>   but: Not matched: <ResourcePropertyImpl [name=nameNotOverwritten, isMultiple=false, isRequired=true, validators=[], namePattern=originalNameNotOverwritten]>
>>> 
>>> Tests run: 59, Failures: 1, Errors: 0, Skipped: 0
>>> 
>>> [ERROR] There are test failures.
>>> 
>>> Please refer to <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/surefire-reports> for the individual test results.
>>> [JENKINS] Recording test results
>>> [INFO] 
>>> [INFO] --- animal-sniffer-maven-plugin:1.15:check (default) @ org.apache.sling.validation.core ---
>>> [INFO] Checking unresolved references to org.codehaus.mojo.signature:java18:1.0
>>> [INFO] 
>>> [INFO] --- maven-bundle-plugin:3.2.0:bundle (default-bundle) @ org.apache.sling.validation.core ---
>>> [INFO] 
>>> [INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) > generate-sources @ org.apache.sling.validation.core >>>
>>> [INFO] 
>>> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @ org.apache.sling.validation.core ---
>>> [INFO] 
>>> [INFO] --- maven-antrun-plugin:1.8:run (set-bundle-required-execution-environment) @ org.apache.sling.validation.core ---
>>> [INFO] Executing tasks
>>> 
>>> main:
>>> Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.8 from sling.java.version=8
>>> [INFO] Executed tasks
>>> [WARNING] Failed to getClass for org.apache.maven.plugins.source.SourceJarMojo
>>> [INFO] 
>>> [INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) < generate-sources @ org.apache.sling.validation.core <<<
>>> [INFO] 
>>> [INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @ org.apache.sling.validation.core ---
>>> [INFO] Building jar: <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/org.apache.sling.validation.core-1.0.0-SNAPSHOT-sources.jar>
>>> [INFO] 
>>> [INFO] --- maven-site-plugin:3.5.1:attach-descriptor (attach-descriptor) @ org.apache.sling.validation.core ---
>>> [INFO] 
>>> [INFO] --- maven-failsafe-plugin:2.18.1:integration-test (default) @ org.apache.sling.validation.core ---
>>> [INFO] Failsafe report directory: <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/failsafe-reports>
>>> 
>>> -------------------------------------------------------
>>> T E S T S
>>> -------------------------------------------------------
>>> Running org.apache.sling.validation.core.it.tests.ValidationServiceIT
>>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 21.543 sec - in org.apache.sling.validation.core.it.tests.ValidationServiceIT
>>> 
>>> Results :
>>> 
>>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
>>> 
>>> [JENKINS] Recording test results
>>> [INFO] 
>>> [INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default) @ org.apache.sling.validation.core ---
>>> [INFO] Checking legal files in: org.apache.sling.validation.core-1.0.0-SNAPSHOT.jar
>>> [INFO] Checking legal files in: org.apache.sling.validation.core-1.0.0-SNAPSHOT-sources.jar
>>> [INFO] 
>>> [INFO] --- apache-rat-plugin:0.11:check (default) @ org.apache.sling.validation.core ---
>>> [INFO] 51 implicit excludes (use -debug for more details).
>>> [INFO] Exclude: DEPENDENCIES
>>> [INFO] Exclude: src/main/appended-resources/META-INF/*
>>> [INFO] Exclude: velocity.log
>>> [INFO] Exclude: target/*
>>> [INFO] Exclude: README.md
>>> [INFO] Exclude: maven-eclipse.xml
>>> [INFO] Exclude: .*
>>> [INFO] Exclude: .*/**
>>> [INFO] Exclude: **/*.json
>>> [INFO] Exclude: DEPENDENCIES
>>> [INFO] Exclude: **/*.rej
>>> [INFO] Exclude: hs_err_*.log
>>> [INFO] Exclude: **/repository/index/*/index-details.txt
>>> [INFO] 54 resources included (use -debug for more details)
>>> [INFO] Rat check: Summary of files. Unapproved: 4 unknown: 4 generated: 0 approved: 40 licence.
>>> [JENKINS] Archiving disabled
>>> [JENKINS] Archiving disabled[INFO] ------------------------------------------------------------------------
>>> [INFO] BUILD FAILURE
>>> [INFO] ------------------------------------------------------------------------
>>> [INFO] Total time: 51.740 s
>>> [INFO] Finished at: 2017-03-16T11:11:10+00:00
>>> 
>>> [INFO] Final Memory: 51M/598M
>>> [INFO] ------------------------------------------------------------------------
>>> Waiting for Jenkins to finish collecting data
>>> [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check (default) on project org.apache.sling.validation.core: Too many files with unapproved license: 4 See RAT report in: <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/rat.txt> -> [Help 1]
>>> [ERROR] 
>>> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
>>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>> [ERROR] 
>>> [ERROR] For more information about the errors and possible solutions, please read the following articles:
>>> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>>> channel stopped
>>> Recording test results
>> 
> 


Re: PaxExam based ITs create folders outside target

Posted by Oliver Lietz <ap...@oliverlietz.de>.
On Thursday 16 March 2017 13:45:44 Konrad Windszus wrote:
> Maybe this is related to
> https://issues.apache.org/jira/browse/SLING-4649?focusedCommentId=14508857&
> page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#commen
> t-14508857. It seems that the Lucene index relies on a framework property
> (named repository.home) if this is not explicitly configured. Seems that
> Karaf does not support setting that, therefore the Lucene index is created
> in the wrong directory (and sometime not correctly removed).

Karaf supports framework settings, but framework settings are just not 
convenient for users getting started with Sling's features.

> I am still
> failing to reproduce locally though

It's fixed.

Regards,
O.

> Konrad
> 
> > On 16 Mar 2017, at 13:31, Konrad Windszus <ko...@gmx.de> wrote:
> > 
> > Hi,
> > it seems that PaxExam based ITs may create folders outside the target
> > folder (see
> > https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.
> > 8/ws/) For Validation the folder
> > sling/repository/index/lucene-1488547426482/data was obviously created by
> > PaxExam.
> > 
> > Usually the repository lives below
> > https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.
> > 8/ws/target/paxexam/ValidationServiceIT/sling/repository/
> > 
> > I also sometimes have seen this locally but I fail to reproduce it
> > reliably. Does anyone have an idea, why the lucene index is there?
> > Seems that PaxExam relies on relative paths somehow, which are sometimes
> > relative to target and sometimes to the project root.
> > 
> > Thanks for any help
> > Konrad
> > 
> >> On 16 Mar 2017, at 12:11, Apache Jenkins Server
> >> <je...@builds.apache.org> wrote:
> >> 
> >> See
> >> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >> 1.8/55/display/redirect?page=changes>
> >> 
> >> Changes:
> >> 
> >> [kwin] fix some more warnings
> >> 
> >> ------------------------------------------
> >> Started by an SCM change
> >> Started by upstream project
> >> "sling-bundles-extensions-validation-test-services-1.8" build number 28
> >> originally caused by:
> >> Started by upstream project "sling-bundles-extensions-validation-api-1.8"
> >> build number 25 originally caused by:
> >> Started by an SCM change
> >> [EnvInject] - Loading node environment variables.
> >> Building remotely on H23 (ubuntu) in workspace
> >> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >> 1.8/ws/> Updating
> >> https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/validati
> >> on/core at revision '2017-03-16T11:10:09.674 +0000' U        
> >> src/test/java/org/apache/sling/validation/impl/model/MergedValidationMod
> >> elTest.java U        
> >> src/test/java/org/apache/sling/validation/impl/resourcemodel/ResourceVal
> >> idationModelProviderImplTest.java U        
> >> src/test/java/org/apache/sling/validation/impl/ValidationServiceImplTest
> >> .java U        
> >> src/main/java/org/apache/sling/validation/impl/ValidationServiceImpl.jav
> >> a At revision 1787158
> >> 
> >> Parsing POMs
> >> Established TCP socket on 34822
> >> maven33-agent.jar already up to date
> >> maven33-interceptor.jar already up to date
> >> maven3-interceptor-commons.jar already up to date
> >> [sling-bundles-extensions-validation-core-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 34822
> >> <===[JENKINS REMOTING CAPACITY]===>   channel started
> >> Executing Maven:  -B -f
> >> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >> 1.8/ws/pom.xml>
> >> -Dmaven.repo.local=/home/jenkins/jenkins-slave/maven-repositories/0 -U
> >> clean deploy [INFO] Scanning for projects...
> >> [INFO]
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Building Apache Sling Validation Framework Core Implementation
> >> 1.0.0-SNAPSHOT [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Downloading:
> >> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >> .validation.api/1.0.0-SNAPSHOT/maven-metadata.xml [INFO] Downloaded:
> >> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >> .validation.api/1.0.0-SNAPSHOT/maven-metadata.xml (1023 B at 2.2 KB/sec)
> >> [INFO] Downloading:
> >> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >> .validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-2017
> >> 0316.110912-1580.pom [INFO] Downloaded:
> >> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >> .validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-2017
> >> 0316.110912-1580.pom (3 KB at 7.5 KB/sec) [INFO] Downloading:
> >> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >> .validation.test-services/1.0.0-SNAPSHOT/maven-metadata.xml [INFO]
> >> Downloaded:
> >> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >> .validation.test-services/1.0.0-SNAPSHOT/maven-metadata.xml (2 KB at 2.7
> >> KB/sec) [INFO] Downloading:
> >> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >> .validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test
> >> -services-1.0.0-20170316.110958-1573.pom [INFO] Downloaded:
> >> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >> .validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test
> >> -services-1.0.0-20170316.110958-1573.pom (5 KB at 12.2 KB/sec) [INFO]
> >> Downloading:
> >> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >> .testing.paxexam/0.0.3-SNAPSHOT/maven-metadata.xml [INFO] Downloaded:
> >> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >> .testing.paxexam/0.0.3-SNAPSHOT/maven-metadata.xml (1016 B at 2.5 KB/sec)
> >> [INFO] Downloading:
> >> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >> .testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-20
> >> 170313.172758-24.pom [INFO] Downloaded:
> >> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >> .testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-20
> >> 170313.172758-24.pom (6 KB at 13.1 KB/sec) [INFO] Downloading:
> >> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >> .validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-2017
> >> 0316.110912-1580.jar [INFO] Downloading:
> >> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >> .validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test
> >> -services-1.0.0-20170316.110958-1573.jar [INFO] Downloading:
> >> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >> .testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-20
> >> 170313.172758-24.jar [INFO] Downloaded:
> >> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >> .validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-2017
> >> 0316.110912-1580.jar (22 KB at 47.2 KB/sec) [INFO] Downloaded:
> >> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >> .validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test
> >> -services-1.0.0-20170316.110958-1573.jar (22 KB at 48.4 KB/sec) [INFO]
> >> Downloaded:
> >> http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling
> >> .testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-20
> >> 170313.172758-24.jar (31 KB at 65.6 KB/sec) [INFO]
> >> [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @
> >> org.apache.sling.validation.core --- [INFO] Deleting
> >> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >> 1.8/ws/target> [INFO]
> >> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @
> >> org.apache.sling.validation.core --- [INFO]
> >> [INFO] --- maven-antrun-plugin:1.8:run
> >> (set-bundle-required-execution-environment) @
> >> org.apache.sling.validation.core --- [INFO] Executing tasks
> >> 
> >> main:
> >> Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.8 from
> >> sling.java.version=8 [INFO] Executed tasks
> >> [INFO]
> >> [INFO] --- maven-remote-resources-plugin:1.5:process
> >> (process-resource-bundles) @ org.apache.sling.validation.core --- [INFO]
> >> [INFO] --- maven-remote-resources-plugin:1.5:process (default) @
> >> org.apache.sling.validation.core --- [INFO]
> >> [INFO] --- depends-maven-plugin:1.3.1:generate-depends-file (default) @
> >> org.apache.sling.validation.core --- [INFO] Created:
> >> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >> 1.8/ws/target/classes/META-INF/maven/dependencies.properties> [INFO]
> >> [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @
> >> org.apache.sling.validation.core --- [INFO] Using 'UTF-8' encoding to
> >> copy filtered resources.
> >> [INFO] Copying 1 resource
> >> [INFO] Copying 3 resources
> >> [INFO] Copying 3 resources
> >> [INFO]
> >> [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @
> >> org.apache.sling.validation.core --- [INFO] Changes detected -
> >> recompiling the module!
> >> [INFO] Compiling 19 source files to
> >> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >> 1.8/ws/target/classes> [INFO]
> >> [INFO] --- maven-bundle-plugin:3.2.0:manifest (scr-metadata) @
> >> org.apache.sling.validation.core --- [INFO]
> >> [INFO] --- maven-resources-plugin:2.7:testResources
> >> (default-testResources) @ org.apache.sling.validation.core --- [INFO]
> >> Using 'UTF-8' encoding to copy filtered resources.
> >> [INFO] Copying 2 resources
> >> [INFO] Copying 3 resources
> >> [INFO] Copying 3 resources
> >> [INFO]
> >> [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile)
> >> @ org.apache.sling.validation.core --- [INFO] Changes detected -
> >> recompiling the module!
> >> [INFO] Compiling 18 source files to
> >> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >> 1.8/ws/target/test-classes> [INFO]
> >> [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @
> >> org.apache.sling.validation.core --- [INFO] Surefire report directory:
> >> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >> 1.8/ws/target/surefire-reports>
> >> 
> >> -------------------------------------------------------
> >> T E S T S
> >> -------------------------------------------------------
> >> Running org.apache.sling.validation.impl.ValidationServiceImplTest
> >> Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.913
> >> sec - in org.apache.sling.validation.impl.ValidationServiceImplTest
> >> Running
> >> org.apache.sling.validation.impl.resourcemodel.ResourceValidationModelPr
> >> oviderImplTest Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time
> >> elapsed: 0.449 sec - in
> >> org.apache.sling.validation.impl.resourcemodel.ResourceValidationModelPr
> >> oviderImplTest Running
> >> org.apache.sling.validation.impl.model.MergedValidationModelTest Tests
> >> run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec <<<
> >> FAILURE! - in
> >> org.apache.sling.validation.impl.model.MergedValidationModelTest
> >> testOverwritingChildrenAndResourceProperties(org.apache.sling.validation
> >> .impl.model.MergedValidationModelTest)  Time elapsed: 0.003 sec  <<<
> >> FAILURE! java.lang.AssertionError:
> >> Expected: iterable over [<[ResourceProperty with
> >> namePattern=overwrittenNameToOverwrite, ResourceProperty with
> >> namePattern=originalNameNotOverwritten]>] in any order>> 
> >>    but: Not matched: <ResourcePropertyImpl [name=nameNotOverwritten,
> >>    isMultiple=false, isRequired=true, validators=[],
> >>    namePattern=originalNameNotOverwritten]>>> 	
> >> 	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
> >> 	at org.junit.Assert.assertThat(Assert.java:956)
> >> 	at org.junit.Assert.assertThat(Assert.java:923)
> >> 	at
> >> 	
org.apache.sling.validation.impl.model.MergedValidationModelTest.testOv
> >> 	
erwritingChildrenAndResourceProperties(MergedValidationModelTest.java:85
> >> 	)>> 
> >> Running org.apache.sling.validation.impl.util.ValidatorTypeUtilTest
> >> Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec
> >> - in org.apache.sling.validation.impl.util.ValidatorTypeUtilTest Running
> >> org.apache.sling.validation.impl.ValidationModelRetrieverImplTest [main]
> >> INFO org.apache.sling.validation.impl.ValidationModelRetrieverImpl - A
> >> Validator for the same id 'DateValidator' is already registered with
> >> class 'ValidatorWithSeverity
> >> [validator=org.apache.sling.validation.impl.util.examplevalidators.DateV
> >> alidator@492691d7, severity=1]' from bundle 1 and has a higher service
> >> ranking [main] INFO
> >> org.apache.sling.validation.impl.ValidationModelRetrieverImpl -
> >> Overwriting already existing validator ValidatorWithSeverity
> >> [validator=org.apache.sling.validation.impl.util.examplevalidators.DateV
> >> alidator@74589991, severity=1] from bundle 1 with validator
> >> org.apache.sling.validation.impl.util.examplevalidators.StringValidator@
> >> 146dfe6 from bundle 1, because it has the same id 'DateValidator' and a
> >> higher service ranking Tests run: 12, Failures: 0, Errors: 0, Skipped:
> >> 0, Time elapsed: 0.059 sec - in
> >> org.apache.sling.validation.impl.ValidationModelRetrieverImplTest
> >> 
> >> Results :
> >> 
> >> Failed tests:
> >> MergedValidationModelTest.testOverwritingChildrenAndResourceProperties:85
> >> Expected: iterable over [<[ResourceProperty with
> >> namePattern=overwrittenNameToOverwrite, ResourceProperty with
> >> namePattern=originalNameNotOverwritten]>] in any order>> 
> >>    but: Not matched: <ResourcePropertyImpl [name=nameNotOverwritten,
> >>    isMultiple=false, isRequired=true, validators=[],
> >>    namePattern=originalNameNotOverwritten]>>> 
> >> Tests run: 59, Failures: 1, Errors: 0, Skipped: 0
> >> 
> >> [ERROR] There are test failures.
> >> 
> >> Please refer to
> >> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >> 1.8/ws/target/surefire-reports> for the individual test results.
> >> [JENKINS] Recording test results
> >> [INFO]
> >> [INFO] --- animal-sniffer-maven-plugin:1.15:check (default) @
> >> org.apache.sling.validation.core --- [INFO] Checking unresolved
> >> references to org.codehaus.mojo.signature:java18:1.0 [INFO]
> >> [INFO] --- maven-bundle-plugin:3.2.0:bundle (default-bundle) @
> >> org.apache.sling.validation.core --- [INFO]
> >> [INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) >
> >> generate-sources @ org.apache.sling.validation.core >>> [INFO]
> >> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @
> >> org.apache.sling.validation.core --- [INFO]
> >> [INFO] --- maven-antrun-plugin:1.8:run
> >> (set-bundle-required-execution-environment) @
> >> org.apache.sling.validation.core --- [INFO] Executing tasks
> >> 
> >> main:
> >> Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.8 from
> >> sling.java.version=8 [INFO] Executed tasks
> >> [WARNING] Failed to getClass for
> >> org.apache.maven.plugins.source.SourceJarMojo [INFO]
> >> [INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) <
> >> generate-sources @ org.apache.sling.validation.core <<< [INFO]
> >> [INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @
> >> org.apache.sling.validation.core --- [INFO] Building jar:
> >> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >> 1.8/ws/target/org.apache.sling.validation.core-1.0.0-SNAPSHOT-sources.jar
> >> > [INFO]
> >> [INFO] --- maven-site-plugin:3.5.1:attach-descriptor (attach-descriptor)
> >> @ org.apache.sling.validation.core --- [INFO]
> >> [INFO] --- maven-failsafe-plugin:2.18.1:integration-test (default) @
> >> org.apache.sling.validation.core --- [INFO] Failsafe report directory:
> >> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >> 1.8/ws/target/failsafe-reports>
> >> 
> >> -------------------------------------------------------
> >> T E S T S
> >> -------------------------------------------------------
> >> Running org.apache.sling.validation.core.it.tests.ValidationServiceIT
> >> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 21.543
> >> sec - in org.apache.sling.validation.core.it.tests.ValidationServiceIT
> >> 
> >> Results :
> >> 
> >> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
> >> 
> >> [JENKINS] Recording test results
> >> [INFO]
> >> [INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default) @
> >> org.apache.sling.validation.core --- [INFO] Checking legal files in:
> >> org.apache.sling.validation.core-1.0.0-SNAPSHOT.jar [INFO] Checking
> >> legal files in:
> >> org.apache.sling.validation.core-1.0.0-SNAPSHOT-sources.jar [INFO]
> >> [INFO] --- apache-rat-plugin:0.11:check (default) @
> >> org.apache.sling.validation.core --- [INFO] 51 implicit excludes (use
> >> -debug for more details).
> >> [INFO] Exclude: DEPENDENCIES
> >> [INFO] Exclude: src/main/appended-resources/META-INF/*
> >> [INFO] Exclude: velocity.log
> >> [INFO] Exclude: target/*
> >> [INFO] Exclude: README.md
> >> [INFO] Exclude: maven-eclipse.xml
> >> [INFO] Exclude: .*
> >> [INFO] Exclude: .*/**
> >> [INFO] Exclude: **/*.json
> >> [INFO] Exclude: DEPENDENCIES
> >> [INFO] Exclude: **/*.rej
> >> [INFO] Exclude: hs_err_*.log
> >> [INFO] Exclude: **/repository/index/*/index-details.txt
> >> [INFO] 54 resources included (use -debug for more details)
> >> [INFO] Rat check: Summary of files. Unapproved: 4 unknown: 4 generated: 0
> >> approved: 40 licence. [JENKINS] Archiving disabled
> >> [JENKINS] Archiving disabled[INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] BUILD FAILURE
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Total time: 51.740 s
> >> [INFO] Finished at: 2017-03-16T11:11:10+00:00
> >> 
> >> [INFO] Final Memory: 51M/598M
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> Waiting for Jenkins to finish collecting data
> >> [ERROR] Failed to execute goal
> >> org.apache.rat:apache-rat-plugin:0.11:check (default) on project
> >> org.apache.sling.validation.core: Too many files with unapproved
> >> license: 4 See RAT report in:
> >> <https://builds.apache.org/job/sling-bundles-extensions-validation-core-> >> 1.8/ws/target/rat.txt> -> [Help 1] [ERROR]
> >> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> >> -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug
> >> logging. [ERROR]
> >> [ERROR] For more information about the errors and possible solutions,
> >> please read the following articles: [ERROR] [Help 1]
> >> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> >> channel stopped
> >> Recording test results



Re: PaxExam based ITs create folders outside target

Posted by Konrad Windszus <ko...@gmx.de>.
Maybe this is related to https://issues.apache.org/jira/browse/SLING-4649?focusedCommentId=14508857&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14508857.
It seems that the Lucene index relies on a framework property (named repository.home) if this is not explicitly configured.
Seems that Karaf does not support setting that, therefore the Lucene index is created in the wrong directory (and sometime not correctly removed).
I am still failing to reproduce locally though
Konrad


> On 16 Mar 2017, at 13:31, Konrad Windszus <ko...@gmx.de> wrote:
> 
> Hi,
> it seems that PaxExam based ITs may create folders outside the target folder (see https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/)
> For Validation the folder sling/repository/index/lucene-1488547426482/data was obviously created by PaxExam.
> 
> Usually the repository lives below https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/paxexam/ValidationServiceIT/sling/repository/
> 
> I also sometimes have seen this locally but I fail to reproduce it reliably.
> Does anyone have an idea, why the lucene index is there?
> Seems that PaxExam relies on relative paths somehow, which are sometimes relative to target and sometimes to the project root.
> 
> Thanks for any help
> Konrad
> 
>> On 16 Mar 2017, at 12:11, Apache Jenkins Server <je...@builds.apache.org> wrote:
>> 
>> See <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/55/display/redirect?page=changes>
>> 
>> Changes:
>> 
>> [kwin] fix some more warnings
>> 
>> ------------------------------------------
>> Started by an SCM change
>> Started by upstream project "sling-bundles-extensions-validation-test-services-1.8" build number 28
>> originally caused by:
>> Started by upstream project "sling-bundles-extensions-validation-api-1.8" build number 25
>> originally caused by:
>> Started by an SCM change
>> [EnvInject] - Loading node environment variables.
>> Building remotely on H23 (ubuntu) in workspace <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/>
>> Updating https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/validation/core at revision '2017-03-16T11:10:09.674 +0000'
>> U         src/test/java/org/apache/sling/validation/impl/model/MergedValidationModelTest.java
>> U         src/test/java/org/apache/sling/validation/impl/resourcemodel/ResourceValidationModelProviderImplTest.java
>> U         src/test/java/org/apache/sling/validation/impl/ValidationServiceImplTest.java
>> U         src/main/java/org/apache/sling/validation/impl/ValidationServiceImpl.java
>> At revision 1787158
>> 
>> Parsing POMs
>> Established TCP socket on 34822
>> maven33-agent.jar already up to date
>> maven33-interceptor.jar already up to date
>> maven3-interceptor-commons.jar already up to date
>> [sling-bundles-extensions-validation-core-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 34822
>> <===[JENKINS REMOTING CAPACITY]===>   channel started
>> Executing Maven:  -B -f <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/pom.xml> -Dmaven.repo.local=/home/jenkins/jenkins-slave/maven-repositories/0 -U clean deploy
>> [INFO] Scanning for projects...
>> [INFO]                                                                         
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Building Apache Sling Validation Framework Core Implementation 1.0.0-SNAPSHOT
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.api/1.0.0-SNAPSHOT/maven-metadata.xml
>> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.api/1.0.0-SNAPSHOT/maven-metadata.xml (1023 B at 2.2 KB/sec)
>> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20170316.110912-1580.pom
>> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20170316.110912-1580.pom (3 KB at 7.5 KB/sec)
>> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.test-services/1.0.0-SNAPSHOT/maven-metadata.xml
>> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.test-services/1.0.0-SNAPSHOT/maven-metadata.xml (2 KB at 2.7 KB/sec)
>> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test-services-1.0.0-20170316.110958-1573.pom
>> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test-services-1.0.0-20170316.110958-1573.pom (5 KB at 12.2 KB/sec)
>> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.testing.paxexam/0.0.3-SNAPSHOT/maven-metadata.xml
>> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.testing.paxexam/0.0.3-SNAPSHOT/maven-metadata.xml (1016 B at 2.5 KB/sec)
>> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-20170313.172758-24.pom
>> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-20170313.172758-24.pom (6 KB at 13.1 KB/sec)
>> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20170316.110912-1580.jar
>> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test-services-1.0.0-20170316.110958-1573.jar
>> [INFO] Downloading: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-20170313.172758-24.jar
>> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.api/1.0.0-SNAPSHOT/org.apache.sling.validation.api-1.0.0-20170316.110912-1580.jar (22 KB at 47.2 KB/sec)
>> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.validation.test-services/1.0.0-SNAPSHOT/org.apache.sling.validation.test-services-1.0.0-20170316.110958-1573.jar (22 KB at 48.4 KB/sec)
>> [INFO] Downloaded: http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.testing.paxexam/0.0.3-SNAPSHOT/org.apache.sling.testing.paxexam-0.0.3-20170313.172758-24.jar (31 KB at 65.6 KB/sec)
>> [INFO] 
>> [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ org.apache.sling.validation.core ---
>> [INFO] Deleting <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target>
>> [INFO] 
>> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @ org.apache.sling.validation.core ---
>> [INFO] 
>> [INFO] --- maven-antrun-plugin:1.8:run (set-bundle-required-execution-environment) @ org.apache.sling.validation.core ---
>> [INFO] Executing tasks
>> 
>> main:
>> Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.8 from sling.java.version=8
>> [INFO] Executed tasks
>> [INFO] 
>> [INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) @ org.apache.sling.validation.core ---
>> [INFO] 
>> [INFO] --- maven-remote-resources-plugin:1.5:process (default) @ org.apache.sling.validation.core ---
>> [INFO] 
>> [INFO] --- depends-maven-plugin:1.3.1:generate-depends-file (default) @ org.apache.sling.validation.core ---
>> [INFO] Created: <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/classes/META-INF/maven/dependencies.properties>
>> [INFO] 
>> [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ org.apache.sling.validation.core ---
>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> [INFO] Copying 1 resource
>> [INFO] Copying 3 resources
>> [INFO] Copying 3 resources
>> [INFO] 
>> [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ org.apache.sling.validation.core ---
>> [INFO] Changes detected - recompiling the module!
>> [INFO] Compiling 19 source files to <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/classes>
>> [INFO] 
>> [INFO] --- maven-bundle-plugin:3.2.0:manifest (scr-metadata) @ org.apache.sling.validation.core ---
>> [INFO] 
>> [INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ org.apache.sling.validation.core ---
>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> [INFO] Copying 2 resources
>> [INFO] Copying 3 resources
>> [INFO] Copying 3 resources
>> [INFO] 
>> [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ org.apache.sling.validation.core ---
>> [INFO] Changes detected - recompiling the module!
>> [INFO] Compiling 18 source files to <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/test-classes>
>> [INFO] 
>> [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ org.apache.sling.validation.core ---
>> [INFO] Surefire report directory: <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/surefire-reports>
>> 
>> -------------------------------------------------------
>> T E S T S
>> -------------------------------------------------------
>> Running org.apache.sling.validation.impl.ValidationServiceImplTest
>> Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.913 sec - in org.apache.sling.validation.impl.ValidationServiceImplTest
>> Running org.apache.sling.validation.impl.resourcemodel.ResourceValidationModelProviderImplTest
>> Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.449 sec - in org.apache.sling.validation.impl.resourcemodel.ResourceValidationModelProviderImplTest
>> Running org.apache.sling.validation.impl.model.MergedValidationModelTest
>> Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec <<< FAILURE! - in org.apache.sling.validation.impl.model.MergedValidationModelTest
>> testOverwritingChildrenAndResourceProperties(org.apache.sling.validation.impl.model.MergedValidationModelTest)  Time elapsed: 0.003 sec  <<< FAILURE!
>> java.lang.AssertionError: 
>> Expected: iterable over [<[ResourceProperty with namePattern=overwrittenNameToOverwrite, ResourceProperty with namePattern=originalNameNotOverwritten]>] in any order
>>    but: Not matched: <ResourcePropertyImpl [name=nameNotOverwritten, isMultiple=false, isRequired=true, validators=[], namePattern=originalNameNotOverwritten]>
>> 	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
>> 	at org.junit.Assert.assertThat(Assert.java:956)
>> 	at org.junit.Assert.assertThat(Assert.java:923)
>> 	at org.apache.sling.validation.impl.model.MergedValidationModelTest.testOverwritingChildrenAndResourceProperties(MergedValidationModelTest.java:85)
>> 
>> Running org.apache.sling.validation.impl.util.ValidatorTypeUtilTest
>> Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec - in org.apache.sling.validation.impl.util.ValidatorTypeUtilTest
>> Running org.apache.sling.validation.impl.ValidationModelRetrieverImplTest
>> [main] INFO org.apache.sling.validation.impl.ValidationModelRetrieverImpl - A Validator for the same id 'DateValidator' is already registered with class 'ValidatorWithSeverity [validator=org.apache.sling.validation.impl.util.examplevalidators.DateValidator@492691d7, severity=1]' from bundle 1 and has a higher service ranking
>> [main] INFO org.apache.sling.validation.impl.ValidationModelRetrieverImpl - Overwriting already existing validator ValidatorWithSeverity [validator=org.apache.sling.validation.impl.util.examplevalidators.DateValidator@74589991, severity=1] from bundle 1 with validator org.apache.sling.validation.impl.util.examplevalidators.StringValidator@146dfe6 from bundle 1, because it has the same id 'DateValidator' and a higher service ranking
>> Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.059 sec - in org.apache.sling.validation.impl.ValidationModelRetrieverImplTest
>> 
>> Results :
>> 
>> Failed tests: 
>> MergedValidationModelTest.testOverwritingChildrenAndResourceProperties:85 
>> Expected: iterable over [<[ResourceProperty with namePattern=overwrittenNameToOverwrite, ResourceProperty with namePattern=originalNameNotOverwritten]>] in any order
>>    but: Not matched: <ResourcePropertyImpl [name=nameNotOverwritten, isMultiple=false, isRequired=true, validators=[], namePattern=originalNameNotOverwritten]>
>> 
>> Tests run: 59, Failures: 1, Errors: 0, Skipped: 0
>> 
>> [ERROR] There are test failures.
>> 
>> Please refer to <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/surefire-reports> for the individual test results.
>> [JENKINS] Recording test results
>> [INFO] 
>> [INFO] --- animal-sniffer-maven-plugin:1.15:check (default) @ org.apache.sling.validation.core ---
>> [INFO] Checking unresolved references to org.codehaus.mojo.signature:java18:1.0
>> [INFO] 
>> [INFO] --- maven-bundle-plugin:3.2.0:bundle (default-bundle) @ org.apache.sling.validation.core ---
>> [INFO] 
>> [INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) > generate-sources @ org.apache.sling.validation.core >>>
>> [INFO] 
>> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java) @ org.apache.sling.validation.core ---
>> [INFO] 
>> [INFO] --- maven-antrun-plugin:1.8:run (set-bundle-required-execution-environment) @ org.apache.sling.validation.core ---
>> [INFO] Executing tasks
>> 
>> main:
>> Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.8 from sling.java.version=8
>> [INFO] Executed tasks
>> [WARNING] Failed to getClass for org.apache.maven.plugins.source.SourceJarMojo
>> [INFO] 
>> [INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) < generate-sources @ org.apache.sling.validation.core <<<
>> [INFO] 
>> [INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @ org.apache.sling.validation.core ---
>> [INFO] Building jar: <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/org.apache.sling.validation.core-1.0.0-SNAPSHOT-sources.jar>
>> [INFO] 
>> [INFO] --- maven-site-plugin:3.5.1:attach-descriptor (attach-descriptor) @ org.apache.sling.validation.core ---
>> [INFO] 
>> [INFO] --- maven-failsafe-plugin:2.18.1:integration-test (default) @ org.apache.sling.validation.core ---
>> [INFO] Failsafe report directory: <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/failsafe-reports>
>> 
>> -------------------------------------------------------
>> T E S T S
>> -------------------------------------------------------
>> Running org.apache.sling.validation.core.it.tests.ValidationServiceIT
>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 21.543 sec - in org.apache.sling.validation.core.it.tests.ValidationServiceIT
>> 
>> Results :
>> 
>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
>> 
>> [JENKINS] Recording test results
>> [INFO] 
>> [INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default) @ org.apache.sling.validation.core ---
>> [INFO] Checking legal files in: org.apache.sling.validation.core-1.0.0-SNAPSHOT.jar
>> [INFO] Checking legal files in: org.apache.sling.validation.core-1.0.0-SNAPSHOT-sources.jar
>> [INFO] 
>> [INFO] --- apache-rat-plugin:0.11:check (default) @ org.apache.sling.validation.core ---
>> [INFO] 51 implicit excludes (use -debug for more details).
>> [INFO] Exclude: DEPENDENCIES
>> [INFO] Exclude: src/main/appended-resources/META-INF/*
>> [INFO] Exclude: velocity.log
>> [INFO] Exclude: target/*
>> [INFO] Exclude: README.md
>> [INFO] Exclude: maven-eclipse.xml
>> [INFO] Exclude: .*
>> [INFO] Exclude: .*/**
>> [INFO] Exclude: **/*.json
>> [INFO] Exclude: DEPENDENCIES
>> [INFO] Exclude: **/*.rej
>> [INFO] Exclude: hs_err_*.log
>> [INFO] Exclude: **/repository/index/*/index-details.txt
>> [INFO] 54 resources included (use -debug for more details)
>> [INFO] Rat check: Summary of files. Unapproved: 4 unknown: 4 generated: 0 approved: 40 licence.
>> [JENKINS] Archiving disabled
>> [JENKINS] Archiving disabled[INFO] ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Total time: 51.740 s
>> [INFO] Finished at: 2017-03-16T11:11:10+00:00
>> 
>> [INFO] Final Memory: 51M/598M
>> [INFO] ------------------------------------------------------------------------
>> Waiting for Jenkins to finish collecting data
>> [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check (default) on project org.apache.sling.validation.core: Too many files with unapproved license: 4 See RAT report in: <https://builds.apache.org/job/sling-bundles-extensions-validation-core-1.8/ws/target/rat.txt> -> [Help 1]
>> [ERROR] 
>> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>> [ERROR] 
>> [ERROR] For more information about the errors and possible solutions, please read the following articles:
>> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>> channel stopped
>> Recording test results
>