Closed AM5800 closed 5 years ago
Interesting, when going to the "Commits" tab of this PR, your name is not clickable.
That's probably because of using an email address in the git commit which is not known to GitHub.
It looks like we're switching from "too optimistic" scenario to "better than nothing" one. There's plenty of numbers in between 1/1 and 1/2, like 2/3 or 3/4. Maybe give them a chance?
@frolosofsky there are 3 options for this test: 1) Flaky 2) Slow 3) Weak check
I am running more experiments, but it seems to me that we are tending to 3 anyway
I intentionally broke test to take a look on it's output in "real" travis. Setting WIP tag for now
Closing in favor of #878
This test failed in graphene branch, but I am 100% certain that the failure is not connected to it.
full log
Main difficulty of this test is to exactly determine this:
assert median(inbound_vote_delays) < median(inbound_delays) / 3
We know that votes should propagate faster, but how much? What threshold should we define in test? It turns out that this /3 is way too optimistic.In an attempt to determine decent value I have created a Monte-Carlo-like synthetic test (I have also did some probability computations, but I think that Monte-Carlo is better/cleaner).
We assume vote propagation time to be constant and equal to 0.2s. (This value I observed on travis and mean seems to be very consistent, so I think it is ok to model it like this). To find regular transaction propagation time we just use original
PoissonNextSend
function (hence generator is in cp)Table shows probability to pass the test given the "/X" multiplier in the check above. generator source(cpp)
Based on results above I am switching to:
assert mean(inbound_vote_delays) < mean(inbound_delays)
Plus I have also added some debug logs.Signed-off-by: Aleksandr Mikhailov aleksandr@thirdhash.com