Commit Graph

701 Commits

Author SHA1 Message Date
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
vyzo 7fadc8e976 update go-libp2p-discovery, go mod tidy 2020-04-21 12:04:29 +03:00
vyzo 7903222907 move validation tests to their own file 2020-04-21 10:57:28 +03:00
vyzo 7c8e7857fa deflake TestValidatorOverload
reguarly fails on travis with successful validation; the timings were just wrong.
2020-04-21 10:57:28 +03:00
dependabot-preview[bot] b35fdc996a Bump github.com/ipfs/go-log from 1.0.2 to 1.0.3
Bumps [github.com/ipfs/go-log](https://github.com/ipfs/go-log) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/ipfs/go-log/releases)
- [Commits](https://github.com/ipfs/go-log/compare/v1.0.2...v1.0.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-20 23:58:53 +03:00
dependabot-preview[bot] 53c709a6ca Bump github.com/libp2p/go-libp2p-core from 0.5.0 to 0.5.1
Bumps [github.com/libp2p/go-libp2p-core](https://github.com/libp2p/go-libp2p-core) from 0.5.0 to 0.5.1.
- [Release notes](https://github.com/libp2p/go-libp2p-core/releases)
- [Commits](https://github.com/libp2p/go-libp2p-core/compare/v0.5.0...v0.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-20 21:55:10 +03:00
dependabot-preview[bot] 428f80c21c Bump github.com/libp2p/go-libp2p-swarm from 0.2.2 to 0.2.3
Bumps [github.com/libp2p/go-libp2p-swarm](https://github.com/libp2p/go-libp2p-swarm) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/libp2p/go-libp2p-swarm/releases)
- [Commits](https://github.com/libp2p/go-libp2p-swarm/compare/v0.2.2...v0.2.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-20 20:58:08 +03:00
vyzo 235c28ff49 truncate per peer message id lists 2020-04-20 19:53:12 +03:00
vyzo 8bc2c5c0f1 log counts in IHAVE flood protection measures 2020-04-20 19:53:12 +03:00
vyzo a645afd1b3 add backoff penalty for GRAFT floods 2020-04-20 19:53:12 +03:00
vyzo 9ab44c5069 make maximum number of IHAVE messages accepted per heartbeat configurable 2020-04-20 19:53:12 +03:00
vyzo 8150843cf3 improve handling of IHAVE floods 2020-04-20 19:53:12 +03:00
vyzo 78bbe13b49 fix data races in spam tests 2020-04-20 19:53:12 +03:00
vyzo 9b28f21a6b rename gossipsub_attack_test to gossipsub_spam_test 2020-04-20 19:53:12 +03:00
vyzo 2b1a63d040 fix GRAFT spam test 2020-04-20 19:53:12 +03:00
vyzo 376b7fa5a0 fix IHAVE spam test 2020-04-20 19:53:12 +03:00
Dirk McCormick 831e7bcbd8 Add IHAVE spam test 2020-04-20 19:53:12 +03:00
Dirk McCormick 45fcb28be8 test: add test for invalid message spam 2020-04-20 19:53:12 +03:00
Dirk McCormick 4e15efdd6f test: GRAFT spam and GRAFT backoff tests 2020-04-20 19:53:12 +03:00
Dirk McCormick a5addee5a0 test: add IWANT spam test 2020-04-20 19:53:12 +03:00
vyzo 34f2295c19 add protections from IHAVE floods 2020-04-20 19:53:12 +03:00
vyzo 1645516276 add protections from GRAFT floods 2020-04-20 19:53:12 +03:00
vyzo ea5d2e6d6d gomod tidy 2020-04-18 11:09:06 +03:00