commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles Sadowski <gil...@harfang.homelinux.org>
Subject Re: [continuum] BUILD FAILURE: Apache Commons - Commons Math - Default Maven 2 Build Definition (Java 1.5)
Date Fri, 13 Jul 2012 08:48:52 GMT
Hi.

Doe someone have an idea how to fix those unit test failures. They prevent
the creation of nightly snapshots.

It should not necessarily be the final fix of the code. Could we maybe
enclose the failing unit test in a "try" clause?


Regards,
Gilles

On Fri, Jul 13, 2012 at 07:28:30AM +0000, Continuum@vmbuild wrote:
> Online report : http://vmbuild.apache.org/continuum/buildResult.action?buildId=23763&projectId=97
> 
> Build statistics:
>   State: Failed
>   Previous State: Failed
>   Started at: Fri 13 Jul 2012 07:23:07 +0000
>   Finished at: Fri 13 Jul 2012 07:28:27 +0000
>   Total time: 5m 19s
>   Build Trigger: Schedule
>   Build Number: 868
>   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: ANSI_X3.4-1968
>           OS name: "linux" version: "2.6.32-31-server" arch: "amd64" Family: "unix"
>     
> ****************************************************************************
> SCM Changes:
> ****************************************************************************
> Changed: erans @ Wed 4 Jul 2012 18:00:02 +0000
> Comment: MATH-798
> Added overridden "fit" method where one can specify the maximum number of
> function evaluations.
> Files changed:
>   /commons/proper/math/trunk/src/changes/changes.xml ( 1357353 )
>   /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/optimization/fitting/PolynomialFitter.java
( 1357353 )
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/optimization/fitting/CurveFitterTest.java
( 1357353 )
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/optimization/fitting/PolynomialFitterTest.java
( 1357353 )
> 
> Changed: celestin @ Fri 6 Jul 2012 03:48:04 +0000
> Comment: MATH-795:  refactored unit tests for double RealVector.cosine(RealVector).
> Files changed:
>   /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/RealVector.java
( 1358033 )
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/ArrayRealVectorTest.java
( 1358033 )
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorAbstractTest.java
( 1358033 )
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/SparseRealVectorTest.java
( 1358033 )
> 
> Changed: celestin @ Fri 6 Jul 2012 05:18:39 +0000
> Comment: MATH-795:
>   - Added default implementation to RealVector RealVector.projection(RealVector)
>   - Removed implementation in concrete classes (to avoid code duplication).
>   - Created unit tests accordingly.
> Files changed:
>   /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/ArrayRealVector.java
( 1358044 )
>   /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/OpenMapRealVector.java
( 1358044 )
>   /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/RealVector.java
( 1358044 )
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/ArrayRealVectorTest.java
( 1358044 )
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorAbstractTest.java
( 1358044 )
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java
( 1358044 )
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/SparseRealVectorTest.java
( 1358044 )
> 
> Changed: celestin @ Fri 6 Jul 2012 05:26:35 +0000
> Comment: MATH-795: removed redundant unit tests.
> Files changed:
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorAbstractTest.java
( 1358046 )
> 
> Changed: celestin @ Fri 6 Jul 2012 05:47:02 +0000
> Comment: MATH-795:
>   - Corrected some build failures caused by changes in r1358046.
>   - Moved javadoc of boolean ArrayRealVector.equals(Object) to RealVector.
>   - In RealVector, default implementations of equals(Object) and hashCode() throw UnsupportedOperationException,
in order to force implementation in subclasses.
> Files changed:
>   /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/ArrayRealVector.java
( 1358048 )
>   /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/RealVector.java
( 1358048 )
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/ArrayRealVectorTest.java
( 1358048 )
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java
( 1358048 )
> 
> Changed: celestin @ Fri 6 Jul 2012 06:23:03 +0000
> Comment: MATH-795: cleanup of RealVectorAbstractTest.
> Removed unused class variables and imports.
> Files changed:
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/ArrayRealVectorTest.java
( 1358049 )
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorAbstractTest.java
( 1358049 )
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/SparseRealVectorTest.java
( 1358049 )
> 
> Changed: celestin @ Fri 6 Jul 2012 17:59:42 +0000
> Comment: MATH-795: in ArrayRealVectorTest, cleaned up the minimal implementation of RealVector,
RealVectorTestImpl. This minimal implementation used to be cluttered with unnecessary method
implementations, which should have been removed when the interface RealVector was changed
into an abstract class.
> Files changed:
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/ArrayRealVectorTest.java
( 1358319 )
> 
> Changed: celestin @ Fri 6 Jul 2012 18:24:50 +0000
> Comment: MATH-795: moved minimal implementation of RealVector, ArrayRealVectorTest.RealVectorTestImpl
to RealVectorAbstractTest.RealVectorTestImpl.
> This minimal implementation is now used by RealVectorTest and ArrayRealVectorTest.
> Files changed:
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/ArrayRealVectorTest.java
( 1358334 )
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorAbstractTest.java
( 1358334 )
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java
( 1358334 )
> 
> Changed: celestin @ Fri 6 Jul 2012 18:29:11 +0000
> Comment: MATH-795: SparseRealVectorTest now uses RealVectorAbstractTest.RealVectorTestImpl
instead of SparseRealVectorTest.
> Files changed:
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/SparseRealVectorTest.java
( 1358338 )
> 
> Changed: celestin @ Fri 6 Jul 2012 18:32:03 +0000
> Comment: MATH-795: default implementation of RealVector RealVectorAbstractTest.createAlien(double[]).
> Files changed:
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/ArrayRealVectorTest.java
( 1358339 )
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorAbstractTest.java
( 1358339 )
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java
( 1358339 )
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/SparseRealVectorTest.java
( 1358339 )
> 
> Changed: celestin @ Fri 6 Jul 2012 18:54:29 +0000
> Comment: MATH-795: in RealVectorTest, cleaned-up testSparseIterator().
> Files changed:
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java
( 1358343 )
> 
> Changed: celestin @ Fri 6 Jul 2012 18:55:49 +0000
> Comment: In RealVectorTest, removed testClone(), which does not test anything.
> Files changed:
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java
( 1358344 )
> 
> Changed: celestin @ Fri 6 Jul 2012 18:59:12 +0000
> Comment: MATH-795: in RealVectorTest, removed
>   - testCombineToSelfPrecondition()
>   - testCombineToSelf()
> which are redundant with other tests already implemented in RealVectorAbstractTest.
> Files changed:
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java
( 1358346 )
> 
> Changed: celestin @ Fri 6 Jul 2012 19:02:16 +0000
> Comment: MATH-795: in RealVectorTest, removed unecessary re-implementation of testAddToEntry.
> Files changed:
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java
( 1358349 )
> 
> Changed: celestin @ Fri 6 Jul 2012 19:05:58 +0000
> Comment: MATH-795: in RealVectorAbstractTest, removed unused method assertClose.
> Files changed:
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorAbstractTest.java
( 1358353 )
> 
> Changed: celestin @ Fri 6 Jul 2012 19:07:07 +0000
> Comment: MATH-795: in RealVectorAbstractTest, removed unused class variables.
> Files changed:
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorAbstractTest.java
( 1358355 )
> 
> Changed: celestin @ Fri 6 Jul 2012 19:12:52 +0000
> Comment: In RealVectorAbstractTest.RealVectorTestImpl, removed
>   - RealVector mapToSelf(UnivariateFunction),
>   - double[] toArray(),
> which override default implementations.
> Files changed:
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorAbstractTest.java
( 1358359 )
> 
> Changed: celestin @ Fri 6 Jul 2012 19:31:00 +0000
> Comment: MATH-795: final clean-up of ArrayRealVectorTest.
> Files changed:
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/ArrayRealVectorTest.java
( 1358366 )
> 
> Changed: celestin @ Sat 7 Jul 2012 05:17:44 +0000
> Comment: MATH-795: made some error messages more explicit.
> Files changed:
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorAbstractTest.java
( 1358502 )
> 
> Changed: erans @ Sat 7 Jul 2012 10:26:33 +0000
> Comment: Typo in userguide.
> Files changed:
>   /commons/proper/math/trunk/src/site/xdoc/userguide/stat.xml ( 1358535 )
> 
> Changed: celestin @ Thu 12 Jul 2012 13:17:08 +0000
> Comment: MATH-812: fixed a bug in RealVector.dotProduct(RealVector). Now loops through
*all* entries of the vectors.
> Files changed:
>   /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/ArrayRealVector.java
( 1360662 )
>   /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/OpenMapRealVector.java
( 1360662 )
>   /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/RealVector.java
( 1360662 )
> 
> Changed: celestin @ Thu 12 Jul 2012 13:31:45 +0000
> Comment: MATH-812: fixed a bug in RealVector.outerProduct(RealVector). Now loops through
*all* entries of the vectors.
> Files changed:
>   /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/RealVector.java
( 1360668 )
> 
> Changed: erans @ Thu 12 Jul 2012 14:43:18 +0000
> Comment: MATH-797
> Initial version for Gauss-Legendre quadrature rules: the integration is
> performed on the whole interval using a single rule. [Whereas the approach
> used in class "analysis.integration.LegendreGaussIntegrator" is to divide
> iteratively into sub-intervals (over which the integration rule is used)
> until some covergence criterion is met.]
> Adapted from an original code donated by S?\195?\169bastien Brisard.
> In the current implementation, the Gauss-Legendre rules are computed in
> double precision in "LegendreRuleFactory" and high precision (using
> "java.math.BigDecimal") in "LegendreHighPrecisionRuleFactory". However,
> the "GaussIntegrator" class performs the integration using "double"s
> whatever the precision of the rule.
> The framework of "BaseRuleFactory" enables the addition of other quadrature
> schemes (by overriding the "computeRule" method). [S?\195?\169bastien's code already
> provides Gauss-Chebyshev and Gauss-Hermite schemes (in double precision).]
> Files changed:
>   /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/gauss
( 1360706 )
>   /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/gauss/BaseRuleFactory.java
( 1360706 )
>   /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/gauss/GaussIntegrator.java
( 1360706 )
>   /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/gauss/GaussIntegratorFactory.java
( 1360706 )
>   /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/gauss/LegendreHighPrecisionRuleFactory.java
( 1360706 )
>   /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/gauss/LegendreRuleFactory.java
( 1360706 )
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/gauss
( 1360706 )
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/gauss/GaussianQuadratureAbstractTest.java
( 1360706 )
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/gauss/LegendreHighPrecisionParametricTest.java
( 1360706 )
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/gauss/LegendreHighPrecisionTest.java
( 1360706 )
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/gauss/LegendreParametricTest.java
( 1360706 )
>   /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/analysis/integration/gauss/LegendreTest.java
( 1360706 )
> 
> ****************************************************************************
> Dependencies Changes:
> ****************************************************************************
> No dependencies changed
> 
> 
> ****************************************************************************
> Build Definition:
> ****************************************************************************
> POM filename: pom.xml
> Goals: clean deploy   
> Arguments: --batch-mode -Pjava-1.5 -Dgpg.skip -Prelease
> 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: 3942
> Failures: 2
> Errors: 0
> Success Rate: 99
> Total time: 266.50018
> 
> ****************************************************************************
> Test Failures:
> ****************************************************************************
> 
> SparseRealVectorTest
>     testMap :
>   java.lang.AssertionError
>   java.lang.AssertionError: Inverse, entry #4 expected:<-Infinity> but was:<Infinity>
> 	at org.junit.Assert.fail(Assert.java:93)
> 	at org.junit.Assert.failNotEquals(Assert.java:647)
> 	at org.junit.Assert.assertEquals(Assert.java:443)
> 	at org.apache.commons.math3.TestUtils.assertEquals(TestUtils.java:260)
> 	at org.apache.commons.math3.linear.RealVectorAbstractTest.doTestMapFunction(RealVectorAbstractTest.java:876)
> 	at org.apache.commons.math3.linear.RealVectorAbstractTest.testMap(RealVectorAbstractTest.java:893)
> 	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:45)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:236)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:134)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:113)
> 	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.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> 	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> 	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
> 
>     testMapToSelf :
>   java.lang.AssertionError
>   java.lang.AssertionError: Inverse, entry #4 expected:<-Infinity> but was:<Infinity>
> 	at org.junit.Assert.fail(Assert.java:93)
> 	at org.junit.Assert.failNotEquals(Assert.java:647)
> 	at org.junit.Assert.assertEquals(Assert.java:443)
> 	at org.apache.commons.math3.TestUtils.assertEquals(TestUtils.java:260)
> 	at org.apache.commons.math3.linear.RealVectorAbstractTest.doTestMapFunction(RealVectorAbstractTest.java:876)
> 	at org.apache.commons.math3.linear.RealVectorAbstractTest.testMapToSelf(RealVectorAbstractTest.java:901)
> 	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:45)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:236)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:134)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:113)
> 	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.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> 	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> 	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
> 
> 
>   
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message