Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jxblum opened this issue Sep 18, 2021 · 1 comment
Labels
in: build Build issues status: on-hold We cannot start working on this issue yet status: pending-design-work Needs design work before any code can be developed

Comments

@jxblum
Copy link
Contributor

jxblum commented Sep 18, 2021

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 jxblum self-assigned this Sep 18, 2021
@jxblum jxblum added the in: build Build issues label Sep 18, 2021
@jxblum jxblum added this to the 2.6 RC1 (2021.1.0) milestone Sep 18, 2021
jxblum added a commit to jxblum/spring-data-geode that referenced this issue Sep 18, 2021
@jxblum
Copy link
Contributor Author

jxblum commented Sep 18, 2021

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] ------------------------------------------------------------------------

jxblum added a commit to jxblum/spring-data-geode that referenced this issue Sep 20, 2021
jxblum added a commit to jxblum/spring-data-geode that referenced this issue Sep 25, 2021
jxblum added a commit to jxblum/spring-data-geode that referenced this issue Sep 29, 2021
jxblum added a commit to jxblum/spring-data-geode that referenced this issue Oct 26, 2021
jxblum added a commit to jxblum/spring-data-geode that referenced this issue Oct 27, 2021
…pringProperties and Java System properties.

Add default constant value declarations for cache close and the bean phase to the AbstractBasicCacheFactoryBean class.

Resolves spring-projectsgh-537.
jxblum added a commit to jxblum/spring-data-geode that referenced this issue Oct 27, 2021
jxblum added a commit to jxblum/spring-data-geode that referenced this issue Oct 27, 2021
…pringProperties and Java System properties.

Add default constant value declarations for cache close and the bean phase to the AbstractBasicCacheFactoryBean class.

Resolves spring-projectsgh-537.
jxblum added a commit to jxblum/spring-data-geode that referenced this issue Oct 27, 2021
jxblum added a commit to jxblum/spring-data-geode that referenced this issue Oct 27, 2021
jxblum added a commit to jxblum/spring-data-geode that referenced this issue Oct 27, 2021
jxblum added a commit to jxblum/spring-data-geode that referenced this issue Oct 27, 2021
jxblum added a commit to jxblum/spring-data-geode that referenced this issue Oct 27, 2021
jxblum added a commit to jxblum/spring-data-geode that referenced this issue Oct 28, 2021
…work caching.

Add configuration to toggle (enable/disable) the explicit close of the Spring ApplicationContext after test class execution.

Resolves spring-projectsgh-537.
jxblum added a commit to jxblum/spring-data-geode that referenced this issue Oct 28, 2021
…work caching.

Add configuration to toggle (enable/disable) the explicit close of the Spring ApplicationContext after test class execution.

Resolves spring-projectsgh-537.
@jxblum jxblum added status: on-hold We cannot start working on this issue yet status: pending-design-work Needs design work before any code can be developed labels Dec 9, 2021
@jxblum jxblum removed their assignment Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: build Build issues status: on-hold We cannot start working on this issue yet status: pending-design-work Needs design work before any code can be developed
Projects
None yet
Development

No branches or pull requests

1 participant