spring-projects / spring-data-geode

Spring Data support for Apache Geode
Apache License 2.0
50 stars 38 forks source link

Enable reuse of forked test JVMs in the Maven Surefire Plugin configuration #537

Open jxblum opened 2 years ago

jxblum commented 2 years ago

Enabling the reuse of test JVM forks in the Maven Surefire Build Plugin significantly improves the build time of SDG, from 17 minutes down to ~4 minutes.

jxblum commented 2 years ago

Unfortunately, and currently, there are test conflicts due to stale state in the test JVM, either in Apache Geode or the Spring ApplicationContext.

[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   DurableClientCacheIntegrationTests.durableClientGetsUpdatesFromServerWhileClientWasOffline:278 
expected: 2
 but was: 1
[ERROR]   SnapshotApplicationEventTriggeredImportsExportsIntegrationTests.exportsTriggeringImportsOnSnapshotApplicationEvents:170->assertPeople:117 
expected: 2
 but was: 0
[ERROR] Errors: 
[ERROR]   CacheClusterConfigurationIntegrationTests.localConfigurationTest »  Unexpected...
[ERROR]   CompoundCachePutCacheEvictIntegrationTests.janeDoeUpdateSuccessful:134->assertNoEmployeeInDepartment:99->assertPeopleInDepartment:104 » IllegalState
[ERROR]   CompoundCachePutCacheEvictIntegrationTests.jonDoeUpdateSuccessful:155->assertPeopleInDepartment:104 » IllegalState
[ERROR]   ClientCacheVariableServersIntegrationTests.clientServerConnectionSuccessful:119 » CacheClosed
[ERROR]   ClientSubRegionIntegrationTests.gemFireSubRegionCreationConfigurationIsCorrect:92 » CacheClosed
[ERROR]   ApacheGeodeSecurityManagerSecurityIntegrationTests>AbstractGeodeSecurityIntegrationTests.authorizedUser:135 » ServerOperation
[ERROR]   ApacheShiroIniSecurityIntegrationTests>AbstractGeodeSecurityIntegrationTests.authorizedUser:135 » ServerOperation
[ERROR]   ApacheShiroRealmSecurityIntegrationTests>AbstractGeodeSecurityIntegrationTests.authorizedUser:135 » ServerOperation
[ERROR]   LocatorApplicationIntegrationTests.gemfireCacheCanConnectToLocator:95 » GemFireConfig
[ERROR]   JSONRegionAdviceIntegrationTests.setup:82 » CacheClosed The cache is closed.
[ERROR]   JSONRegionAdviceIntegrationTests.setup:82 » CacheClosed The cache is closed.
[ERROR]   JSONRegionAdviceIntegrationTests.setup:82 » CacheClosed The cache is closed.
[ERROR]   JSONRegionAdviceIntegrationTests.setup:82 » CacheClosed The cache is closed.
[ERROR]   JSONRegionAdviceIntegrationTests.setup:82 » CacheClosed The cache is closed.
[ERROR]   JSONRegionAdviceIntegrationTests.setup:82 » CacheClosed The cache is closed.
[ERROR]   AsyncEventQueueByIdXmlConfigurationIntegrationTests.regionAsyncEventQueuesByIdConfiguredCorrectly » IllegalState
[ERROR]   GatewaySenderByIdXmlConfigurationIntegrationTests.regionGatewaySendersByIdConfiguredCorrectly » IllegalState
[INFO] 
[ERROR] Tests run: 3094, Failures: 2, Errors: 17, Skipped: 2
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Spring Data for Apache Geode Parent 2.6.0-SNAPSHOT:
[INFO] 
[INFO] Spring Data for Apache Geode Parent ................ SUCCESS [  0.793 s]
[INFO] Spring Data for Apache Geode ....................... FAILURE [04:05 min]
[INFO] Distribution of Spring Data Geode .................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  04:06 min
[INFO] Finished at: 2021-09-17T17:36:49-07:00
[INFO] ------------------------------------------------------------------------