Cool... subversion en francais. :) I will try that shortly. Tkx! []s, Thiago. On Nov 29, 2013 6:26 AM, "Jean-Louis MONTEIRO" <[email protected]> wrote:
> Hi Thiago, > > I committed 2 possible related changes. > First ... > svn ci -m "Add a salt when initializing the Random" > src/main/java/org/apache/openejb/client/RandomConnectionStrategy.java > svn ci Envoi > src/main/java/org/apache/openejb/client/RandomConnectionStrategy.java > Transmission des données .-m " > Révision 1545643 propagée. > > Second ... > svn ci -m "OPENEJB-2048 Add a DirectConnectionFactory to the client side > for simple cases" > src/main/java/org/apache/openejb/client/ConnectionManager.java > src/main/java/org/apache/openejb/client/DirectConnectionStrategy.java > Envoi > src/main/java/org/apache/openejb/client/ConnectionManager.java > Ajout > src/main/java/org/apache/openejb/client/DirectConnectionStrategy.java > Transmission des données .. > Révision 1545645 propagée. > > The second one does not seem the culprit but the first one maybe is. > I was in my opinion a good idea, but looks like it wasn't or tests are > broken ;-) > > The change is really small so just revert it maybe and let's see what > happens. > The change in RandomConnectionStrategy.java was ... > - private final Random random = new Random(); > + private final Random random = new > Random(System.currentTimeMillis()); > > > Hope that helps > Jean-Louis > > > > > 2013/11/29 Thiago Veronezi <[email protected]> > > > Hi guys, > > Are you guys facing the same problem? Trunk build fails for different > > reasons at different times. > > > > build 753 > > ****************************************************** > > > > > test(org.apache.openejb.arquillian.tests.cdi.ejb.OverloadedEjbObserverMethodsTest) > > Time elapsed: 0.27 sec <<< FAILURE! > > java.lang.AssertionError: expected:<2> but was:<0> > > at org.junit.Assert.fail(Assert.java:88) > > at org.junit.Assert.failNotEquals(Assert.java:743) > > at org.junit.Assert.assertEquals(Assert.java:118) > > at org.junit.Assert.assertEquals(Assert.java:555) > > at org.junit.Assert.assertEquals(Assert.java:542) > > at > > > > > org.apache.openejb.arquillian.tests.cdi.ejb.OverloadedEjbObserverMethodsTest.test(OverloadedEjbObserverMethodsTest.java:68) > > ****************************************************** > > > > build 752 > > ****************************************************** > > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 19.067 > sec > > <<< FAILURE! > > test(org.apache.openejb.itest.failover.RandomConnectionStrategyTest) > Time > > elapsed: 18.996 sec <<< FAILURE! > > java.lang.AssertionError: Bad number of invocations for the bean "blue". > > expected:<2> but was:<1> > > at org.junit.Assert.fail(Assert.java:88) > > at org.junit.Assert.failNotEquals(Assert.java:743) > > at org.junit.Assert.assertEquals(Assert.java:118) > > at org.junit.Assert.assertEquals(Assert.java:555) > > at > > > > > org.apache.openejb.itest.failover.RandomConnectionStrategyTest.assertBalance(RandomConnectionStrategyTest.java:219) > > at > > > > > org.apache.openejb.itest.failover.RandomConnectionStrategyTest.test(RandomConnectionStrategyTest.java:173) > > > > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.234 sec > > <<< FAILURE! > > > > > test(org.apache.openejb.arquillian.tests.cdi.ejb.OverloadedEjbObserverMethodsTest) > > Time elapsed: 0.364 sec <<< FAILURE! > > java.lang.AssertionError: expected:<2> but was:<0> > > at org.junit.Assert.fail(Assert.java:88) > > at org.junit.Assert.failNotEquals(Assert.java:743) > > at org.junit.Assert.assertEquals(Assert.java:118) > > at org.junit.Assert.assertEquals(Assert.java:555) > > at org.junit.Assert.assertEquals(Assert.java:542) > > at > > > > > org.apache.openejb.arquillian.tests.cdi.ejb.OverloadedEjbObserverMethodsTest.test(OverloadedEjbObserverMethodsTest.java:68) > > ****************************************************** > > > > build 751 > > ****************************************************** > > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 19.532 > sec > > <<< FAILURE! > > test(org.apache.openejb.itest.legacy.LegacyServerTest) Time elapsed: > > 19.462 sec <<< FAILURE! > > java.lang.AssertionError: 22 out of 1000 is too low > > at org.junit.Assert.fail(Assert.java:88) > > at org.junit.Assert.assertTrue(Assert.java:41) > > at > > > > > org.apache.openejb.itest.legacy.LegacyServerTest.assertBalance(LegacyServerTest.java:223) > > at > > > > > org.apache.openejb.itest.legacy.LegacyServerTest.test(LegacyServerTest.java:172) > > > > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.132 sec > > <<< FAILURE! > > > > > test(org.apache.openejb.arquillian.tests.cdi.ejb.OverloadedEjbObserverMethodsTest) > > Time elapsed: 0.337 sec <<< FAILURE! > > java.lang.AssertionError: expected:<2> but was:<0> > > at org.junit.Assert.fail(Assert.java:88) > > at org.junit.Assert.failNotEquals(Assert.java:743) > > at org.junit.Assert.assertEquals(Assert.java:118) > > at org.junit.Assert.assertEquals(Assert.java:555) > > at org.junit.Assert.assertEquals(Assert.java:542) > > at > > > > > org.apache.openejb.arquillian.tests.cdi.ejb.OverloadedEjbObserverMethodsTest.test(OverloadedEjbObserverMethodsTest.java:68) > > ****************************************************** > > > > Do you see what may be going on? The funny thing is that if I retry the > > build from the latest failure point, those particular tests pass. > > > > So, imagine I run "mvn clean install" and the "trunk/itests/failover" > > fails. If I run "mvn clean install -rf failover", it will most likely > pass. > > > > Any idea? > > > > []s, > > Thiago. > > > > > > -- > Jean-Louis >
