[infinispan-dev] infinispan build process - fresh mvn-repo

Wolf-Dieter Fink wfink at redhat.com
Wed Jan 15 09:58:24 EST 2014


Hi,

I build the git at github.com:infinispan/infinispan.git from scratch and 
follow the documentation/README.

I use the maven-settings.xml
     mvn -s maven-settings.xml -Dmaven.test.skip=true clean install
with that setting the build failed, see error "1.Build"

A build with skipping test will not work due to dependency issues
     mvn -s maven-settings.xml -Dmaven.test.skip=true clean install
see "2.Build"

I found that "-Dmaven.test.skip.exec=true" will build correct. after 
that the test hung forever (or longer than my patience ;)

Test suite progress: tests succeeded: 506, failed: 0, skipped: 7.
[testng-BulkGetSimpleTest] Test 
testBulkGetWithSize(org.infinispan.client.hotrod.BulkGetSimpleTest) 
succeeded.
Test suite progress: tests succeeded: 507, failed: 0, skipped: 7.
[testng-ClientSocketReadTimeoutTest] Test 
testPutTimeout(org.infinispan.client.hotrod.ClientSocketReadTimeoutTest) 
succeeded.
Test suite progress: tests succeeded: 508, failed: 0, skipped: 7.
==>  this test hung a longer time

[testng-DistributionRetryTest] Test 
testRemoveIfUnmodified(org.infinispan.client.hotrod.retry.DistributionRetryTest) 
failed.
Test suite progress: tests succeeded: 508, failed: 1, skipped: 7.
===> this test "never" came back



The main problem is that the first build will have issues and you need 
to bypass it.
Second is that there is a dependency if the tests are skipped, a hint 
within the documentation or readme might be helpful to avoid frustration ;)
And last but not least is there a reason why the 
"[testng-ClientSocketReadTimeoutTest" hung? Would it be an idea to 
rename it if it takes long, i.e. "ClientSocket10MinuteReadTimeoutTest"? 
to show that this test takes a long time, And also a time-limit for the 
test.


- Wolf



------------------------   1. Build 
-------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~ ENVIRONMENT INFO ~~~~~~~~~~~~~~~~~~~~~~~~~~
Tests run: 4044, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 
357.511 sec <<< FAILURE!
testNoEntryInL1GetWithConcurrentReplace(org.infinispan.distribution.DistSyncL1FuncTest) 
Time elapsed: 0.005 sec  <<< FAILURE!
java.lang.AssertionError: Entry for key [key-to-the-cache] should be in 
L1 on cache at [DistSyncL1FuncTest-NodeA-21024]!
     at 
org.infinispan.distribution.DistributionTestHelper.assertIsInL1(DistributionTestHelper.java:31)
     at 
org.infinispan.distribution.BaseDistFunctionalTest.assertIsInL1(BaseDistFunctionalTest.java:183)
     at 
org.infinispan.distribution.DistSyncL1FuncTest.testNoEntryInL1GetWithConcurrentReplace(DistSyncL1FuncTest.java:193)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:606)
     at 
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
     at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
     at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
     at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
     at 
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
     at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
     at org.testng.TestRunner.privateRun(TestRunner.java:767)
     at org.testng.TestRunner.run(TestRunner.java:617)
     at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
     at org.testng.SuiteRunner.access$000(SuiteRunner.java:37)
     at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:368)
     at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64)
     at java.util.concurrent.FutureTask.run(FutureTask.java:262)
     at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
     at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
     at java.lang.Thread.run(Thread.java:744)

testInvokeMapWithReduceExceptionPhaseInRemoteExecution(org.infinispan.distexec.mapreduce.SimpleTwoNodesMapReduceTest) 
Time elapsed: 0.018 sec  <<< FAILURE!
org.testng.TestException:
Method 
SimpleTwoNodesMapReduceTest.testInvokeMapWithReduceExceptionPhaseInRemoteExecution()[pri:0, 
instance:org.infinispan.distexec.mapreduce.SimpleTwoNodesMapReduceTest at 70bd631a] 
should have thrown an exception of class 
org.infinispan.commons.CacheException
     at 
org.testng.internal.Invoker.handleInvocationResults(Invoker.java:1512)
     at org.testng.internal.Invoker.invokeMethod(Invoker.java:754)
     at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
     at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
     at 
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
     at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
     at org.testng.TestRunner.privateRun(TestRunner.java:767)
     at org.testng.TestRunner.run(TestRunner.java:617)
     at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
     at org.testng.SuiteRunner.access$000(SuiteRunner.java:37)
     at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:368)
     at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64)
     at java.util.concurrent.FutureTask.run(FutureTask.java:262)
     at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
     at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
     at java.lang.Thread.run(Thread.java:744)


Results :

Failed tests:
DistSyncL1FuncTest.testNoEntryInL1GetWithConcurrentReplace:193->BaseDistFunctionalTest.assertIsInL1:183 
Entry for key [key-to-the-cache] should be in L1 on cache at 
[DistSyncL1FuncTest-NodeA-21024]!
    » Test
Method SimpleTwoNodesMapReduceTest.testInvokeMapWithReduceExceptionPh...

Tests run: 4044, Failures: 2, Errors: 0, Skipped: 0

[INFO] 
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Infinispan BOM .................................... SUCCESS [0.100s]
[INFO] Infinispan Common Parent .......................... SUCCESS [1.324s]
[INFO] Infinispan Checkstyle Rules ....................... SUCCESS [2.197s]
[INFO] Infinispan Commons ................................ SUCCESS [4.583s]
[INFO] Infinispan Core ................................... FAILURE 
[6:21.850s]
[INFO] Infinispan Extended Statistics .................... SKIPPED
[INFO] Parent pom for server modules ..................... SKIPPED
[INFO] Infinispan Server - Core Components ............... SKIPPED
[INFO] Infinispan Query DSL API .......................... SKIPPED
[INFO] Parent pom for cachestore modules ................. SKIPPED
[INFO] Infinispan JDBC CacheStore ........................ SKIPPED
[INFO] Parent pom for the Lucene integration modules ..... SKIPPED
[INFO] Infinispan integration with Lucene v.3.x .......... SKIPPED
[INFO] Infinispan integration with Lucene v.4.x .......... SKIPPED
[INFO] Infinispan Lucene Directory Implementation ........ SKIPPED
[INFO] Infinispan Query API .............................. SKIPPED
[INFO] Infinispan Tools .................................. SKIPPED
[INFO] Infinispan Remote Query Client .................... SKIPPED
[INFO] Infinispan Remote Query Server .................... SKIPPED
[INFO] Infinispan Tree API ............................... SKIPPED
[INFO] Infinispan Hot Rod Server ......................... SKIPPED
[INFO] Infinispan Hot Rod Client ......................... SKIPPED
[INFO] Parent pom for compatibility modules .............. SKIPPED
[INFO] infinispan-custom52x-store ........................ SKIPPED
[INFO] infinispan-adaptor52x ............................. SKIPPED
[INFO] Infinispan remote CacheStore ...................... SKIPPED
[INFO] Infinispan CLI Client ............................. SKIPPED
[INFO] Infinispan Memcached Server ....................... SKIPPED
[INFO] Infinispan REST Server ............................ SKIPPED
[INFO] Infinispan CLI Server ............................. SKIPPED
[INFO] Infinispan Command Line Interface persistence ..... SKIPPED
[INFO] Infinispan LevelDB CacheStore ..................... SKIPPED
[INFO] Infinispan REST CacheStore ........................ SKIPPED
[INFO] Infinispan WebSocket Server ....................... SKIPPED
[INFO] Infinispan RHQ Plugin ............................. SKIPPED
[INFO] Infinispan Spring Integration ..................... SKIPPED
[INFO] Infinispan GUI Demo ............................... SKIPPED
[INFO] Infinispan EC2 Demo ............................... SKIPPED
[INFO] Infinispan Distributed Executors and Map/Reduce Demo  SKIPPED
[INFO] Infinispan EC2 Demo UI ............................ SKIPPED
[INFO] Infinispan Directory Demo ......................... SKIPPED
[INFO] Infinispan Lucene Directory Demo .................. SKIPPED
[INFO] Infinispan GridFileSystem WebDAV interface ........ SKIPPED
[INFO] Infinispan Near Cache Demo ........................ SKIPPED
[INFO] Infinispan CDI support ............................ SKIPPED
[INFO] Infinispan Near Cache Demo Client ................. SKIPPED
[INFO] Infinispan AS/EAP modules ......................... SKIPPED
[INFO] Integration tests: Lucene Directory with Infinispan Query SKIPPED
[INFO] Infinispan JCACHE (JSR-107) implementation ........ SKIPPED
[INFO] Integration tests: AS Module Integration Tests .... SKIPPED
[INFO] Integration tests: Infinispan compatibility mode .. SKIPPED
[INFO] Integration tests: Infinispan CDI/JCache interactions SKIPPED
[INFO] infinispan-cli-migrator52x ........................ SKIPPED
[INFO] Infinispan Server - BOM ........................... SKIPPED
[INFO] Infinispan Server - JGroups Subsystem ............. SKIPPED
[INFO] Infinispan Server - Infinispan Subsystem .......... SKIPPED
[INFO] Infinispan Server - Security Subsystem ............ SKIPPED
[INFO] Infinispan Server - Endpoints Subsystem ........... SKIPPED
[INFO] Infinispan Server - Build ......................... SKIPPED
[INFO] Infinispan Server - RHQ/JON plugin ................ SKIPPED
[INFO] Infinispan Server - Test Suite .................... SKIPPED
[INFO] Infinispan Server ................................. SKIPPED
[INFO] Infinispan Distribution ........................... SKIPPED
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 6:31.353s
[INFO] Finished at: Wed Jan 15 14:12:40 CET 2014
[INFO] Final Memory: 80M/1337M
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.14.1:test 
(default-test) on project infinispan-core: There are test failures.
[ERROR]
[ERROR] Please refer to 
/data/devel/github/Infinispan/infinispan/core/target/surefire-reports 
for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the 
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, 
please read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the 
command
[ERROR]   mvn <goals> -rf :infinispan-core


---------------------------   2.Build -------------------------------------
  Downloaded: 
http://repo.maven.apache.org/maven2/com/clearspring/analytics/stream/2.2.0/stream-2.2.0.jar 
(73 KB at 1007.9 KB/sec)
[INFO] 
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Infinispan BOM .................................... SUCCESS [8.620s]
[INFO] Infinispan Common Parent .......................... SUCCESS 
[8:48.158s]
[INFO] Infinispan Checkstyle Rules ....................... SUCCESS 
[5:47.825s]
[INFO] Infinispan Commons ................................ SUCCESS [18.225s]
[INFO] Infinispan Core ................................... SUCCESS [34.340s]
[INFO] Infinispan Extended Statistics .................... FAILURE [5.186s]
[INFO] Parent pom for server modules ..................... SKIPPED
[INFO] Infinispan Server - Core Components ............... SKIPPED
[INFO] Infinispan Query DSL API .......................... SKIPPED
[INFO] Parent pom for cachestore modules ................. SKIPPED
[INFO] Infinispan JDBC CacheStore ........................ SKIPPED
[INFO] Parent pom for the Lucene integration modules ..... SKIPPED
[INFO] Infinispan integration with Lucene v.3.x .......... SKIPPED
[INFO] Infinispan integration with Lucene v.4.x .......... SKIPPED
[INFO] Infinispan Lucene Directory Implementation ........ SKIPPED
[INFO] Infinispan Query API .............................. SKIPPED
[INFO] Infinispan Tools .................................. SKIPPED
[INFO] Infinispan Remote Query Client .................... SKIPPED
[INFO] Infinispan Remote Query Server .................... SKIPPED
[INFO] Infinispan Tree API ............................... SKIPPED
[INFO] Infinispan Hot Rod Server ......................... SKIPPED
[INFO] Infinispan Hot Rod Client ......................... SKIPPED
[INFO] Parent pom for compatibility modules .............. SKIPPED
[INFO] infinispan-custom52x-store ........................ SKIPPED
[INFO] infinispan-adaptor52x ............................. SKIPPED
[INFO] Infinispan remote CacheStore ...................... SKIPPED
[INFO] Infinispan CLI Client ............................. SKIPPED
[INFO] Infinispan Memcached Server ....................... SKIPPED
[INFO] Infinispan REST Server ............................ SKIPPED
[INFO] Infinispan CLI Server ............................. SKIPPED
[INFO] Infinispan Command Line Interface persistence ..... SKIPPED
[INFO] Infinispan LevelDB CacheStore ..................... SKIPPED
[INFO] Infinispan REST CacheStore ........................ SKIPPED
[INFO] Infinispan WebSocket Server ....................... SKIPPED
[INFO] Infinispan RHQ Plugin ............................. SKIPPED
[INFO] Infinispan Spring Integration ..................... SKIPPED
[INFO] Infinispan GUI Demo ............................... SKIPPED
[INFO] Infinispan EC2 Demo ............................... SKIPPED
[INFO] Infinispan Distributed Executors and Map/Reduce Demo  SKIPPED
[INFO] Infinispan EC2 Demo UI ............................ SKIPPED
[INFO] Infinispan Directory Demo ......................... SKIPPED
[INFO] Infinispan Lucene Directory Demo .................. SKIPPED
[INFO] Infinispan GridFileSystem WebDAV interface ........ SKIPPED
[INFO] Infinispan Near Cache Demo ........................ SKIPPED
[INFO] Infinispan CDI support ............................ SKIPPED
[INFO] Infinispan Near Cache Demo Client ................. SKIPPED
[INFO] Infinispan AS/EAP modules ......................... SKIPPED
[INFO] Integration tests: Lucene Directory with Infinispan Query SKIPPED
[INFO] Infinispan JCACHE (JSR-107) implementation ........ SKIPPED
[INFO] Integration tests: AS Module Integration Tests .... SKIPPED
[INFO] Integration tests: Infinispan compatibility mode .. SKIPPED
[INFO] Integration tests: Infinispan CDI/JCache interactions SKIPPED
[INFO] infinispan-cli-migrator52x ........................ SKIPPED
[INFO] Infinispan Server - BOM ........................... SKIPPED
[INFO] Infinispan Server - JGroups Subsystem ............. SKIPPED
[INFO] Infinispan Server - Infinispan Subsystem .......... SKIPPED
[INFO] Infinispan Server - Security Subsystem ............ SKIPPED
[INFO] Infinispan Server - Endpoints Subsystem ........... SKIPPED
[INFO] Infinispan Server - Build ......................... SKIPPED
[INFO] Infinispan Server - RHQ/JON plugin ................ SKIPPED
[INFO] Infinispan Server - Test Suite .................... SKIPPED
[INFO] Infinispan Server ................................. SKIPPED
[INFO] Infinispan Distribution ........................... SKIPPED
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 19:44.748s
[INFO] Finished at: Wed Jan 15 13:55:05 CET 2014
[INFO] Final Memory: 64M/384M
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal on project 
infinispan-extended-statistics: Could not resolve dependencies for 
project 
org.infinispan:infinispan-extended-statistics:jar:7.0.0-SNAPSHOT: Could 
not find artifact 
org.infinispan:infinispan-core:jar:tests:7.0.0-SNAPSHOT in 
redhat-earlyaccess-repository-group 
(http://maven.repository.redhat.com/earlyaccess/all/) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the 
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, 
please read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the 
command
[ERROR]   mvn <goals> -rf :infinispan-extended-statistics



More information about the infinispan-dev mailing list