[ 
https://issues.apache.org/jira/browse/CURATOR-563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jordan Zimmerman updated CURATOR-563:
-------------------------------------
    Description: 
We have some tests that take several minutes. This isn't serving a good purpose 
and makes the entire test suite take a long time to run. E.g. 
{{TestInterProcessSemaphore.testMaxPerSession()}} takes over 2 minutes on my 
new MBP. 

Look at the output from a recent test run and try to update/eliminate/etc. 
tests that take a long time.

Some candidates from a recent Travis run:

{noformat}
[INFO] Running org.apache.curator.framework.imps.TestEnabledSessionExpiredState
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 77.809 s 
- in org.apache.curator.framework.imps.TestEnabledSessionExpiredState

[INFO] Running org.apache.curator.framework.imps.TestWatchesBuilder
[INFO] Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 125.593 
s - in org.apache.curator.framework.imps.TestWatchesBuilder

[INFO] Running org.apache.curator.framework.imps.TestFramework
[INFO] Tests run: 35, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 62.262 
s - in org.apache.curator.framework.imps.TestFramework

[INFO] Running org.apache.curator.framework.recipes.queue.TestDistributedQueue
[INFO] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 72.033 
s - in org.apache.curator.framework.recipes.queue.TestDistributedQueue

[INFO] Running org.apache.curator.framework.recipes.shared.TestSharedCount
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 72.177 s 
- in org.apache.curator.framework.recipes.shared.TestSharedCount

[INFO] Running org.apache.curator.framework.recipes.leader.TestLeaderLatch
[INFO] Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 193.627 
s - in org.apache.curator.framework.recipes.leader.TestLeaderLatch

[INFO] Running 
org.apache.curator.framework.recipes.locks.TestInterProcessSemaphore
[INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 232.355 
s - in org.apache.curator.framework.recipes.locks.TestInterProcessSemaphore

[INFO] Running 
org.apache.curator.framework.recipes.locks.TestInterProcessSemaphoreCluster
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 87.917 s 
- in org.apache.curator.framework.recipes.locks.TestInterProcessSemaphoreCluster

[INFO] Running 
org.apache.curator.framework.recipes.nodes.TestPersistentEphemeralNode
[INFO] Tests run: 23, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 143.867 
s - in org.apache.curator.framework.recipes.nodes.TestPersistentEphemeralNode

[INFO] Running org.apache.curator.x.async.modeled.TestCachedModeledFramework
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 59.803 s 
- in org.apache.curator.x.async.modeled.TestCachedModeledFramework
{noformat}


  was:
We have some tests that take several minutes. This isn't serving a good purpose 
and makes the entire test suite take a long time to run. E.g. 
{{TestInterProcessSemaphore.testMaxPerSession()}} takes over 2 minutes on my 
new MBP. 

Look at the output from a recent test run and try to update/eliminate/etc. 
tests that take a long time.


> Fix tests that take a long time to run
> --------------------------------------
>
>                 Key: CURATOR-563
>                 URL: https://issues.apache.org/jira/browse/CURATOR-563
>             Project: Apache Curator
>          Issue Type: Improvement
>          Components: Tests
>    Affects Versions: 4.3.0
>            Reporter: Jordan Zimmerman
>            Priority: Major
>
> We have some tests that take several minutes. This isn't serving a good 
> purpose and makes the entire test suite take a long time to run. E.g. 
> {{TestInterProcessSemaphore.testMaxPerSession()}} takes over 2 minutes on my 
> new MBP. 
> Look at the output from a recent test run and try to update/eliminate/etc. 
> tests that take a long time.
> Some candidates from a recent Travis run:
> {noformat}
> [INFO] Running 
> org.apache.curator.framework.imps.TestEnabledSessionExpiredState
> [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 77.809 
> s - in org.apache.curator.framework.imps.TestEnabledSessionExpiredState
> [INFO] Running org.apache.curator.framework.imps.TestWatchesBuilder
> [INFO] Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
> 125.593 s - in org.apache.curator.framework.imps.TestWatchesBuilder
> [INFO] Running org.apache.curator.framework.imps.TestFramework
> [INFO] Tests run: 35, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
> 62.262 s - in org.apache.curator.framework.imps.TestFramework
> [INFO] Running org.apache.curator.framework.recipes.queue.TestDistributedQueue
> [INFO] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
> 72.033 s - in org.apache.curator.framework.recipes.queue.TestDistributedQueue
> [INFO] Running org.apache.curator.framework.recipes.shared.TestSharedCount
> [INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 72.177 
> s - in org.apache.curator.framework.recipes.shared.TestSharedCount
> [INFO] Running org.apache.curator.framework.recipes.leader.TestLeaderLatch
> [INFO] Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
> 193.627 s - in org.apache.curator.framework.recipes.leader.TestLeaderLatch
> [INFO] Running 
> org.apache.curator.framework.recipes.locks.TestInterProcessSemaphore
> [INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
> 232.355 s - in 
> org.apache.curator.framework.recipes.locks.TestInterProcessSemaphore
> [INFO] Running 
> org.apache.curator.framework.recipes.locks.TestInterProcessSemaphoreCluster
> [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 87.917 
> s - in 
> org.apache.curator.framework.recipes.locks.TestInterProcessSemaphoreCluster
> [INFO] Running 
> org.apache.curator.framework.recipes.nodes.TestPersistentEphemeralNode
> [INFO] Tests run: 23, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
> 143.867 s - in 
> org.apache.curator.framework.recipes.nodes.TestPersistentEphemeralNode
> [INFO] Running org.apache.curator.x.async.modeled.TestCachedModeledFramework
> [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 59.803 
> s - in org.apache.curator.x.async.modeled.TestCachedModeledFramework
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to