singnet / offernet

Offer Networks simulation framework written in Java/Groovy/Gremlin
https://singnet.github.io/offernet/public/offernet-documentation/index.html
MIT License
8 stars 5 forks source link

pathContainsChainTest fails on Travis #40

Closed kabirkbr closed 6 years ago

kabirkbr commented 6 years ago

The test passes well locally, but on Travis fails with the error:

java.util.concurrent.TimeoutException: Futures timed out after [5 seconds]

Which most probably means that Travis virtual machine is slower than currently used locally; I suppose (or rather hope) that this is not Akka problem but rather DSE Graph problem. The fastest cure would be to increase the timeout -- and see if that helps to pass Travis tests.

kabirkbr commented 6 years ago

Actually this can be due to a different reason -- because DSE used in Travis is a fresh Docker container that is being run for the first time. Back in the days of Titan, graph database had to 'warm up' -- build indexes and perform some queries in order to reach optimal performance. Not sure if this is the same with DSE, but could be -- I observed that even locally, the first test after fresh restart of DSE may fail, while the second run of the same test passes...

kabirkbr commented 6 years ago

It seems that some tests may sporadically fail (or pass) on Travis, because of the asynchronous nature of them. Most of the time it may be artificially synchronized in tests by simulating a kind of bath synchronous algorithm -- i.e. putting Thread.sleep(${time}} in certain places in the code. This is ugly, but works; yet local machine and Travis may need different ${time} values. Anyway, closing the issue for now as in build 102, a decentralizedCycleSearchTest failed, I suppose for similar reasons...