You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Andreas Schaefer Sr." <sc...@me.com> on 2017/02/15 20:19:24 UTC

Build Issues

Today I wanted to build Sling from trunk. I ran into two issues

1) Preparing test on Apache Sling Dynamic Class Loader Support 1.3.9-SNAPSHOT is blocked for ever on:

[main] INFO org.ops4j.pax.exam.spi.DefaultExamSystem - Pax Exam System (Version: 4.9.1) created.
[main] INFO org.ops4j.pax.exam.junit.impl.ProbeRunner - creating PaxExam runner for class org.apache.sling.commons.classloader.it.DynamicClassLoaderIT
Running org.apache.sling.commons.classloader.it.DynamicClassLoaderIT
[main] INFO org.ops4j.pax.exam.junit.impl.ProbeRunner - creating PaxExam runner for class org.apache.sling.commons.classloader.it.DynamicClassLoaderIT
[main] INFO org.ops4j.pax.exam.junit.impl.ProbeRunner - running test class org.apache.sling.commons.classloader.it.DynamicClassLoaderIT

2) Rat Check fails for Apache Sling Testing Mocks Modules Reactor 1-SNAPSHOT

[INFO] --- apache-rat-plugin:0.11:check (default) @ org.apache.sling.testing.mocks.reactor ---
[INFO] 58 implicit excludes (use -debug for more details).
[INFO] Exclude: DEPENDENCIES
[INFO] Exclude: **/README.*
[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] 2 resources included (use -debug for more details)
[INFO] Rat check: Summary of files. Unapproved: 1 unknown: 1 generated: 0 approved: 1 licence.

Here are the offending files:

[INFO] 2 resources included (use -debug for more details)
[DEBUG]  - included pom.xml
[DEBUG]  - included sling-mock-jackrabbit/org.apache.sling.testing.sling-mock-jackrabbit.iml


Re: Build Issues

Posted by Robert Munteanu <ro...@apache.org>.
Hi Andy,

On Wed, 2017-02-15 at 15:04 -0800, Andreas Schaefer Sr. wrote:
> Hi Stefan
> 
> Thanks. I am using the git repo and forgot that it can leave spurious
> directories around
> (git clean -df fix it then).
> 
> That said the block in the regular (non -DskipTests) build remains.
> 
> [INFO] --------------------------------------------------------------
> ----------
> [INFO] Building Apache Sling Dynamic Class Loader Support 1.3.9-
> SNAPSHOT
> [INFO] \u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014
> \u2026.
> -------------------------------------------------------
> �T E S T S
> -------------------------------------------------------
> [main] INFO org.ops4j.pax.exam.spi.DefaultExamSystem - Pax Exam
> System (Version: 4.9.1) created.
> [main] INFO org.ops4j.pax.exam.junit.impl.ProbeRunner - creating
> PaxExam runner for class
> org.apache.sling.commons.classloader.it.DynamicClassLoaderIT
> Running org.apache.sling.commons.classloader.it.DynamicClassLoaderIT
> [main] INFO org.ops4j.pax.exam.junit.impl.ProbeRunner - creating
> PaxExam runner for class
> org.apache.sling.commons.classloader.it.DynamicClassLoaderIT
> [main] INFO org.ops4j.pax.exam.junit.impl.ProbeRunner - running test
> class org.apache.sling.commons.classloader.it.DynamicClassLoaderIT

Might be worth getting a thread dump on the blocked pax-exam process.
We don't see such issues on Jenkins and the classloader bundles haven't
changed in some time.

    https://builds.apache.org/view/S-Z/view/Sling/job/sling-bundles-com
mons-classloader-1.7/
    https://builds.apache.org/view/S-Z/view/Sling/job/sling-bundles-com
mons-classloader-1.8/

Robert

> 
> - Andy
> 
> > On Feb 15, 2017, at 1:36 PM, Stefan Seifert <sseifert@pro-vision.de
> > > wrote:
> > 
> > 
> > 
> > > 2) Rat Check fails for Apache Sling Testing Mocks Modules Reactor
> > > 1-
> > > SNAPSHOT
> > 
> > ...
> > > [INFO] 2 resources included (use -debug for more details)
> > > [DEBUG]��- included pom.xml
> > > [DEBUG]��- included sling-mock-
> > > jackrabbit/org.apache.sling.testing.sling-
> > > mock-jackrabbit.iml
> > 
> > i think this happens only on your machine. the folder sling-mock-
> > jackrabbit does no longer exist on sling/trunk, maybe files in it
> > were left from an earlier checkout on your machine. just remove the
> > folders.
> > 
> > stefan
> > 
> > 
> 
> 


Re: Build Issues

Posted by "Andreas Schaefer Sr." <sc...@me.com>.
Hi Stefan

Thanks. I am using the git repo and forgot that it can leave spurious directories around
(git clean -df fix it then).

That said the block in the regular (non -DskipTests) build remains.

[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Sling Dynamic Class Loader Support 1.3.9-SNAPSHOT
[INFO] ————————————————————————————————————
….
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
[main] INFO org.ops4j.pax.exam.spi.DefaultExamSystem - Pax Exam System (Version: 4.9.1) created.
[main] INFO org.ops4j.pax.exam.junit.impl.ProbeRunner - creating PaxExam runner for class org.apache.sling.commons.classloader.it.DynamicClassLoaderIT
Running org.apache.sling.commons.classloader.it.DynamicClassLoaderIT
[main] INFO org.ops4j.pax.exam.junit.impl.ProbeRunner - creating PaxExam runner for class org.apache.sling.commons.classloader.it.DynamicClassLoaderIT
[main] INFO org.ops4j.pax.exam.junit.impl.ProbeRunner - running test class org.apache.sling.commons.classloader.it.DynamicClassLoaderIT

- Andy

> On Feb 15, 2017, at 1:36 PM, Stefan Seifert <ss...@pro-vision.de> wrote:
> 
> 
> 
>> 2) Rat Check fails for Apache Sling Testing Mocks Modules Reactor 1-
>> SNAPSHOT
> ...
>> [INFO] 2 resources included (use -debug for more details)
>> [DEBUG]  - included pom.xml
>> [DEBUG]  - included sling-mock-jackrabbit/org.apache.sling.testing.sling-
>> mock-jackrabbit.iml
> 
> i think this happens only on your machine. the folder sling-mock-jackrabbit does no longer exist on sling/trunk, maybe files in it were left from an earlier checkout on your machine. just remove the folders.
> 
> stefan
> 
> 


RE: Build Issues

Posted by Stefan Seifert <ss...@pro-vision.de>.

>2) Rat Check fails for Apache Sling Testing Mocks Modules Reactor 1-
>SNAPSHOT
...
>[INFO] 2 resources included (use -debug for more details)
>[DEBUG]  - included pom.xml
>[DEBUG]  - included sling-mock-jackrabbit/org.apache.sling.testing.sling-
>mock-jackrabbit.iml

i think this happens only on your machine. the folder sling-mock-jackrabbit does no longer exist on sling/trunk, maybe files in it were left from an earlier checkout on your machine. just remove the folders.

stefan