Le 31/12/2011 09:36, Sébastien Brisard a écrit : > 2011/12/31 Continuum@vmbuild <contin...@apache.org>: >> Online report : >> http://vmbuild.apache.org/continuum/buildResult.action?buildId=16588&projectId=97 >> >> Build statistics: >> State: Failed >> Previous State: Ok >> Started at: Sat 31 Dec 2011 05:40:12 +0000 >> Finished at: Sat 31 Dec 2011 05:43:49 +0000 >> Total time: 3m 36s >> Build Trigger: Schedule >> Build Number: 627 >> Exit code: 1 >> Building machine hostname: vmbuild >> Operating system : Linux(unknown) >> Java Home version : >> java version "1.6.0_30" >> Java(TM) SE Runtime Environment (build 1.6.0_30-b12) >> Java HotSpot(TM) 64-Bit Server VM (build 20.5-b03, mixed mode) >> >> Builder version : >> Apache Maven 2.2.1 (r801777; 2009-08-06 19:16:01+0000) >> Java version: 1.6.0_30 >> Java home: /usr/lib/jvm/jdk1.6.0_30/jre >> Default locale: en_US, platform encoding: UTF-8 >> OS name: "linux" version: "2.6.32-31-server" arch: "amd64" Family: >> "unix" >> >> **************************************************************************** >> SCM Changes: >> **************************************************************************** >> Changed: celestin @ Sat 31 Dec 2011 05:18:48 +0000 >> Comment: Modifications to the hierarchy of distributions, according to >> MATH-692. Patch contributed by Christian Winter. >> Files changed: >> >> /commons/proper/math/trunk/src/main/java/org/apache/commons/math/distribution/AbstractIntegerDistribution.java >> ( 1226041 ) >> >> /commons/proper/math/trunk/src/main/java/org/apache/commons/math/distribution/BinomialDistribution.java >> ( 1226041 ) >> >> /commons/proper/math/trunk/src/main/java/org/apache/commons/math/distribution/HypergeometricDistribution.java >> ( 1226041 ) >> >> /commons/proper/math/trunk/src/main/java/org/apache/commons/math/distribution/IntegerDistribution.java >> ( 1226041 ) >> >> /commons/proper/math/trunk/src/main/java/org/apache/commons/math/distribution/PascalDistribution.java >> ( 1226041 ) >> >> /commons/proper/math/trunk/src/main/java/org/apache/commons/math/distribution/PoissonDistribution.java >> ( 1226041 ) >> >> /commons/proper/math/trunk/src/main/java/org/apache/commons/math/distribution/ZipfDistribution.java >> ( 1226041 ) >> >> /commons/proper/math/trunk/src/main/java/org/apache/commons/math/random/RandomDataImpl.java >> ( 1226041 ) >> >> /commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/AbtractIntegerDistributionTest.java >> ( 1226041 ) >> >> /commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/BinomialDistributionTest.java >> ( 1226041 ) >> >> /commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/HypergeometricDistributionTest.java >> ( 1226041 ) >> >> /commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/IntegerDistributionAbstractTest.java >> ( 1226041 ) >> >> /commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/PascalDistributionTest.java >> ( 1226041 ) >> >> /commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/PoissonDistributionTest.java >> ( 1226041 ) >> >> /commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/ZipfDistributionTest.java >> ( 1226041 ) >> >> /commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/ISAACTest.java >> ( 1226041 ) >> >> /commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/RandomDataTest.java >> ( 1226041 ) >> >> /commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/RandomGeneratorAbstractTest.java >> ( 1226041 ) >> >> /commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/Well1024aTest.java >> ( 1226041 ) >> >> **************************************************************************** >> Dependencies Changes: >> **************************************************************************** >> No dependencies changed >> >> >> **************************************************************************** >> Build Definition: >> **************************************************************************** >> POM filename: pom.xml >> Goals: clean deploy >> Arguments: --batch-mode -Pjava-1.5 >> Build Fresh: false >> Always Build: false >> Default Build Definition: true >> Schedule: COMMONS_SCHEDULE >> Profile Name: Maven 2.2.1 >> Description: Default Maven 2 Build Definition (Java 1.5) >> >> **************************************************************************** >> Test Summary: >> **************************************************************************** >> Tests: 3412 >> Failures: 3 >> Errors: 0 >> Success Rate: 99 >> Total time: 168.78995 >> >> **************************************************************************** >> Test Failures: >> **************************************************************************** >> >> Well1024aTest >> testNextIntPositiveRange : >> java.lang.AssertionError >> java.lang.AssertionError: Chisquare test failed p-value = >> 5.042182294490161E-4 chisquare statistic = 12.1. >> value expected observed >> 1 0.5 445 >> 2 0.5 555 >> This test can fail randomly due to sampling error with probability 0.0010. >> at org.junit.Assert.fail(Assert.java:91) >> at >> org.apache.commons.math.TestUtils.assertChiSquareAccept(TestUtils.java:384) >> at >> org.apache.commons.math.TestUtils.assertChiSquareAccept(TestUtils.java:435) >> at >> org.apache.commons.math.random.RandomDataTest.checkNextIntUniform(RandomDataTest.java:156) >> at >> org.apache.commons.math.random.RandomDataTest.testNextIntPositiveRange(RandomDataTest.java:134) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:592) >> at >> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) >> at >> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) >> at >> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) >> at >> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) >> at org.apache.commons.math.RetryRunner$1.evaluate(RetryRunner.java:60) >> at >> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) >> at >> org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) >> at >> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) >> at >> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) >> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) >> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) >> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) >> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) >> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) >> at org.junit.runners.ParentRunner.run(ParentRunner.java:236) >> at >> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35) >> at >> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115) >> at >> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:592) >> at >> org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103) >> at $Proxy0.invoke(Unknown Source) >> at >> org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150) >> at >> org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91) >> at >> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69) >> >> testNextLongNegativeRange : >> java.lang.AssertionError >> java.lang.AssertionError: Chisquare test failed p-value = >> 0.0015594931985287719 chisquare statistic = 33.25599999999999. >> value expected observed >> 1 0.07 82 >> 2 0.07 95 >> 3 0.07 48 >> 4 0.07 59 >> 5 0.07 82 >> 6 0.07 84 >> 7 0.07 76 >> 8 0.07 76 >> 9 0.07 67 >> 10 0.07 79 >> 11 0.07 64 >> 12 0.07 48 >> 13 0.07 72 >> 14 0.07 68 >> This test can fail randomly due to sampling error with probability 0.01. >> at org.junit.Assert.fail(Assert.java:91) >> at >> org.apache.commons.math.TestUtils.assertChiSquareAccept(TestUtils.java:384) >> at >> org.apache.commons.math.TestUtils.assertChiSquareAccept(TestUtils.java:435) >> at >> org.apache.commons.math.random.RandomDataTest.checkNextLongUniform(RandomDataTest.java:210) >> at >> org.apache.commons.math.random.RandomDataTest.testNextLongNegativeRange(RandomDataTest.java:181) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:592) >> at >> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) >> at >> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) >> at >> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) >> at >> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) >> at org.apache.commons.math.RetryRunner$1.evaluate(RetryRunner.java:60) >> at >> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) >> at >> org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) >> at >> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) >> at >> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) >> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) >> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) >> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) >> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) >> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) >> at org.junit.runners.ParentRunner.run(ParentRunner.java:236) >> at >> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35) >> at >> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115) >> at >> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:592) >> at >> org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103) >> at $Proxy0.invoke(Unknown Source) >> at >> org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150) >> at >> org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91) >> at >> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69) >> >> >> testNextLongPositiveRange : >> java.lang.AssertionError >> java.lang.AssertionError: Chisquare test failed p-value = >> 0.002559186263961011 chisquare statistic = 27.048000000000005. >> value expected observed >> 1 0.09 71 >> 2 0.09 86 >> 3 0.09 86 >> 4 0.09 92 >> 5 0.09 106 >> 6 0.09 86 >> 7 0.09 107 >> 8 0.09 89 >> 9 0.09 62 >> 10 0.09 100 >> 11 0.09 115 >> This test can fail randomly due to sampling error with probability 0.01. >> at org.junit.Assert.fail(Assert.java:91) >> at >> org.apache.commons.math.TestUtils.assertChiSquareAccept(TestUtils.java:384) >> at >> org.apache.commons.math.TestUtils.assertChiSquareAccept(TestUtils.java:435) >> at >> org.apache.commons.math.random.RandomDataTest.checkNextLongUniform(RandomDataTest.java:210) >> at >> org.apache.commons.math.random.RandomDataTest.testNextLongPositiveRange(RandomDataTest.java:189) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:592) >> at >> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) >> at >> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) >> at >> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) >> at >> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) >> at org.apache.commons.math.RetryRunner$1.evaluate(RetryRunner.java:60) >> at >> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) >> at >> org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) >> at >> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) >> at >> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) >> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) >> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) >> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) >> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) >> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) >> at org.junit.runners.ParentRunner.run(ParentRunner.java:236) >> at >> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35) >> at >> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115) >> at >> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:592) >> at >> org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103) >> at $Proxy0.invoke(Unknown Source) >> at >> org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150) >> at >> org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91) >> at >> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69) >> >> >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org >> For additional commands, e-mail: dev-h...@commons.apache.org >> > Hi, > I missed these test failures on the html reports. I have to admit that > I'm not familiar enough with the whole testing architecture for the > random package to judge the changes that Christian performed. > However, it seems to me that Christian's patch is not the (only) > origin of the failure. Indeed, reverting to revision 1221505, it seems > to me that changing > {code} > protected RandomGenerator makeGenerator() { > return new Well1024a(100); > } > {code} > > to > {code} > protected RandomGenerator makeGenerator() { > return new Well1024a(1000); > } > {code} > > in Well1024aTest reproduces the same failures.
I'm not familiar with statistics. Perhaps you could try to isolate the change (which may be the pseudo-random generator seeding) and commit it separately, changing the tests reference value if needed (I'm not sure I am clear here). Luc > > What do you think? > > Sébastien > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org