On Tue, 2016-07-12 at 15:23 +0100, Ian Boston wrote:
> Hi,
> 
> After 3 mvn clean install -rf :org.apache.sling.commons.threads it
> passed
> the unit tests.
> 
> x43543:sling ieb$ mvn -version
> Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-
> 02-19
> 13:51:28+0000)
> Maven home: /usr/local/maven
> Java version: 1.7.0_71, vendor: Oracle Corporation
> Java home:
> /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.11.5", arch: "x86_64", family:
> "mac"
> x43543:sling ieb$
> 
> Does maven need to be 3.3 ?

I don't think it's the Maven version, but maybe some tests are
(slightly) time-sensitive. I think that the various combinations of
OS/Memory/Disk speed that we have as developers, plus the fact that
usually the Jenkins setup has lower performance leads to flakiness in
test executions.

Robert

> 
> Best Regards
> 
> Ian
> 
> 
> 
> On 12 July 2016 at 15:13, Carsten Ziegeler <[email protected]>
> wrote:
> 
> > No errors here, Java 7, maven 3.3.9
> > 
> > Carsten
> > 
> > > Hi,
> > > Latest fail.
> > > If I do mvn clean install -rf :org.apache.sling.commons.threads I
> > > get a
> > > different fail.
> > > 
> > > Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed:
> > > 0.212 sec
> > > <<< FAILURE! - in
> > > org.apache.sling.commons.threads.impl.ThreadExpiringThreadPoolTes
> > > t
> > > 
> > > 
> > shouldCreateNewThreadAfterExpiryForFailingTasks(org.apache.sling.co
> > mmons.threads.impl.ThreadExpiringThreadPoolTest)
> > > Time elapsed: 0.035 sec  <<< FAILURE!
> > > 
> > > java.lang.AssertionError:
> > > 
> > > Expected: is <1>
> > > 
> > >      but: was <2>
> > > 
> > > 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.commons.threads.impl.ThreadExpiringThreadPoolTest.
> > shouldCreateNewThreadAfterExpiryForFailingTasks(ThreadExpiringThrea
> > dPoolTest.java:92)
> > > 
> > > 
> > > 
> > > Results :
> > > 
> > > 
> > > Failed tests:
> > > 
> > > 
> > > 
> > ThreadExpiringThreadPoolTest.shouldCreateNewThreadAfterExpiryForFai
> > lingTasks:92
> > > 
> > > Expected: is <1>
> > > 
> > >      but: was <2>
> > > 
> > > 
> > > Tests run: 8, Failures: 1, Errors: 0, Skipped: 0
> > > 
> > > 
> > > 
> > > On 12 July 2016 at 15:02, Ian Boston <[email protected]> wrote:
> > > 
> > > > Hi,
> > > > I am seeing a local build is unstable.
> > > > 
> > > > Been trying for 2 days now. Updating from trunk and recently
> > > > trying to
> > > > take "working" build commits from Jenkins.
> > > > 
> > > > Perhaps something is wrong with my maven/jdk install, but
> > > > normally when
> > a
> > > > build fails in a Unit test, its because the unit tests has
> > > > failed and
> > not a
> > > > maven/JDK fail. maven/JDK fails a generally complete failures
> > > > in
> > starting
> > > > maven or compile.
> > > > Best Regards
> > > > Ian
> > > > 
> > > > 
> > > > On 12 July 2016 at 14:55, Carsten Ziegeler <[email protected]
> > > > g>
> > wrote:
> > > > 
> > > > > I can only speak for myself, but usually everything builds
> > > > > totally fine
> > > > > locally. Too often something on the build infrastructure goes
> > > > > wrong
> > > > > 
> > > > > Carsten
> > > > > > Hi,
> > > > > > 
> > > > > > 
> > > > > > According to jenkins 1 in 10 builds fail, and some times
> > > > > > randomly. For
> > > > > > instance, [2] succeeded but [3] failed, due to [4], a patch
> > > > > > to a
> > > > > README.md
> > > > > > 
> > > > > > According to [1] its not been discussed.
> > > > > > How are others dealing with this ? (-Dmaven.test.skip=true
> > > > > > or not
> > > > > bothering
> > > > > > to build all before committing)
> > > > > > 
> > > > > > I assume only the test methodology is unreliable, and not
> > > > > > the released
> > > > > > artifacts ?
> > > > > > Could the unreliable tests be moved to ITs ?
> > > > > > Could the the long running tests also be moved to ITs ?
> > > > > > 
> > > > > > Best Regards
> > > > > > ian
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 1
> > > > > > 
> > > > > 
> > http://markmail.org/search/?q=sling%20build%20stability#query:sling
> > %20build%20stability%20list%3Aorg.apache.incubator.sling-
> > dev+page:1+state:facets
> > > > > > 2 https://builds.apache.org/job/sling-trunk-1.7/4270/
> > > > > > 3 https://builds.apache.org/job/sling-trunk-1.7/4271/
> > > > > > 4 https://builds.apache.org/job/sling-trunk-1.7/4271/change
> > > > > > s#detail0
> > > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > --
> > > > > Carsten Ziegeler
> > > > > Adobe Research Switzerland
> > > > > [email protected]
> > > > > 
> > > > > 
> > > > 
> > > 
> > 
> > 
> > 
> > 
> > --
> > Carsten Ziegeler
> > Adobe Research Switzerland
> > [email protected]
> > 
> > 

Reply via email to