Commit Graph

723 Commits

Author SHA1 Message Date
vyzo c353348592 add network size argument to randomsub
so that sqrt propagation math actually works
2020-04-23 21:36:48 +03:00
vyzo d25506dd2b add randomsub test 2020-04-23 21:36:48 +03:00
vyzo 63256dbe54 add sqrt behaviour to randomsub 2020-04-23 21:36:48 +03:00
dirkmc b2de9a56fe
Score tests (#288)
* test: score time in mesh

* add TestScoreFirstMessageDeliveries

* rm redundant initialization to zero

* add TestScoreFirstMessageDeliveriesCap

* add TestScoreFirstMessageDeliveriesDecay

* fix comment

* add TestScoreMeshMessageDeliveries

* comments

* add TestScoreMeshFailurePenalty

* add TestScoreInvalidMessageDeliveries

also, TestScoreInvalidMessageDeliveriesDecay

* add TestScoreApplicationScore

* add TestScoreIPColocation

* add TestScoreMeshMessageDeliveriesDecay

* add TestScoreRetention

* try longer interval for TimeInMesh test

we seem to take longer to collect the score on travis,
which causes the score to be outside the expected bounds.
hopefully a longer wait time will give us more wiggle room.

Co-authored-by: Yusef Napora <yusef@protocol.ai>
2020-04-23 13:03:52 -04:00
vyzo fafac41b7e increase travis wait time to 30m
this is madness, but it keeps happening 1 in 10 times.
2020-04-23 18:38:26 +03:00
vyzo ea95ae8975 reify fanoutTTL in the GossipSubRouter struct 2020-04-23 18:38:26 +03:00
vyzo 9c7bc987f7 add test for invalid message author 2020-04-23 18:38:26 +03:00
vyzo 96066d320f increase delay for TestPeerDisconnect
10ms don't seem to be enough for travis
2020-04-23 18:38:26 +03:00
vyzo 8d89949131 increase travis friendliness for new tests 2020-04-23 18:38:26 +03:00
vyzo 741b7e9b41 add test for multi-topic validation 2020-04-23 18:38:26 +03:00
vyzo 957335ba52 add test for assorted validation options that were not covered 2020-04-23 18:38:26 +03:00
vyzo 7fddef3d6f add test for assorted pubsub options that were not covered 2020-04-23 18:38:26 +03:00
vyzo 4f45d455f8 fix broken WithMessageAuthor option 2020-04-23 18:38:26 +03:00
vyzo 1246e80812 add test for announce retry 2020-04-23 18:38:26 +03:00
dependabot-preview[bot] 7f44ecc720 Bump github.com/ipfs/go-log from 1.0.3 to 1.0.4
Bumps [github.com/ipfs/go-log](https://github.com/ipfs/go-log) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/ipfs/go-log/releases)
- [Commits](https://github.com/ipfs/go-log/compare/v1.0.3...v1.0.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-23 14:45:10 +03:00
Adin Schmahmann 4fc98a00af chore: update libp2p discovery 2020-04-23 14:23:22 +03:00
vyzo 01041fa327 improve reliability of star topology tests
Configure the star with 0 D, to act as a proper bootstrapper
2020-04-23 13:40:50 +03:00
vyzo 5397bb5abc pull overlay parameters into the GossipSubRouter struct
pacify the race detector in travis
2020-04-23 13:40:50 +03:00
vyzo caffc3bf2c make star topology tests more reliable
probabilities are such that they occasionally fail
2020-04-23 13:40:50 +03:00
vyzo 1a3695988b import grouping 2020-04-23 13:40:50 +03:00
vyzo 94db23fd41 add signed peer records only in the center of the star for signed peer record test 2020-04-23 13:40:50 +03:00
Yusef Napora 516a32c7ad add test with signed peer records 2020-04-23 13:40:50 +03:00
vyzo ece06b6d34 restore coverage for score_params.go 2020-04-22 22:17:53 +03:00
vyzo 61a13a3ed7 validate that TimeInMeshQuantum is non-zero
otherwise we get a division by zero
2020-04-22 21:52:10 +03:00
vyzo 11ef2a9cf2 fix the global variable mutation races 2020-04-22 21:08:13 +03:00
vyzo a2f6f7b5b5 increase time to disconnect in floodsub disconnection test
somehow it managed to fail on travis
2020-04-22 21:08:13 +03:00
vyzo a50deb04c0 a little bit more time to avoid races with restoring mutated config variables 2020-04-22 21:08:13 +03:00
vyzo 37e1a81100 restore openssl test run in the matrix 2020-04-22 21:08:13 +03:00
vyzo 6a230e711e add a heartbeat's worth of delay before restoring mutated globals
the race detector cries on travis
2020-04-22 21:08:13 +03:00
vyzo 6d24f46a13 reduce prune backoff times for opportunistic grafting test 2020-04-22 21:08:13 +03:00
vyzo 1cf5d645f4 increase travis test timeout to 20m
this things keep hitting the global timeout with all the build time involved
2020-04-22 21:08:13 +03:00
vyzo 7efd666dc4 increase wait time for IWANT spam test to 1s 2020-04-22 21:08:13 +03:00
vyzo bac5d5910c add test for opportunistic grafting 2020-04-22 21:08:13 +03:00
vyzo ca7b1f3dbf make initial delay for direct peer connections a variable 2020-04-22 21:08:13 +03:00
vyzo 2eaa566371 add direct test for gossipsub router's piggybackControl 2020-04-22 21:08:13 +03:00
vyzo a67441be61 rename tests for consistency 2020-04-22 21:08:13 +03:00
vyzo eb1a1561c2 travis: increase test timeout to 15 min 2020-04-22 21:08:13 +03:00
vyzo 57fbd38498 add travis_wait to test job
in an attempt to counter the frequent "no output received" problem
2020-04-22 21:08:13 +03:00
vyzo f7c398087a add test for negative scores below the gossip threshold 2020-04-22 21:08:13 +03:00
vyzo c69e7310b8 remove tags=openssl from the build matrix
It takes forever to build the tests and reguarly fails with no output produced
2020-04-22 21:08:13 +03:00
vyzo 32c3fb325d remove unnecessary length check 2020-04-22 21:08:13 +03:00
vyzo eccded1360 add test for gossipsub enough peers 2020-04-22 21:08:13 +03:00
vyzo 8cffbc4bd6 add test for gossipsub flood publishing 2020-04-22 21:08:13 +03:00
vyzo c00b476fb4 add test for gossipsub direct peers 2020-04-22 21:08:13 +03:00
David Dias f90e3da809
docs: one more badger 2020-04-22 17:58:45 +01:00
David Dias cf92b1bf2d
docs: fix badgers 2020-04-22 10:33:02 +01:00
vyzo 9dfdd0bdf9 close the remote tracer in test 2020-04-21 21:42:11 +03:00
vyzo a613f097ed fix close race in basicTracer 2020-04-21 21:42:11 +03:00
vyzo faf920414d add test for tracers 2020-04-21 21:42:11 +03:00
vyzo 8cf53daab6 add test for peer score parameter validation 2020-04-21 17:33:46 +03:00