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
> > <jenk...@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

Reply via email to