Lukasz Zimnoch
9a0bd7ad56
Prevent multiple invocations of relay cancel function
2020-05-01 12:22:22 +03:00
Lukasz Zimnoch
9a0d2f5948
Move counter incrementing before announce
2020-05-01 12:22:22 +03:00
Lukasz Zimnoch
f4f8f3ec12
Fix race in the TestTopicRelayReuse
2020-05-01 12:22:22 +03:00
Lukasz Zimnoch
10f5464279
Merge stop announcing conditions
2020-05-01 12:22:22 +03:00
Lukasz Zimnoch
e72d15cc90
Tests for topic relay
2020-05-01 12:22:22 +03:00
Lukasz Zimnoch
3336559a27
Relay incoming messages
...
Added a possibility to
relay incoming messages if
there are existing relays
2020-05-01 12:22:22 +03:00
Lukasz Zimnoch
0d884f3e90
Topic relay discovery
...
Incorporated relays to
exiting discovery logic
and added them to topic
before-remove guard.
2020-05-01 12:22:22 +03:00
Lukasz Zimnoch
af44f7a07d
Topic relay cancelling
...
Implemented relay reference
cancel logic.
2020-05-01 12:22:22 +03:00
Lukasz Zimnoch
750cc66336
Topic relay support
...
Implemented Relay method which
allows to enable message relaying
for the given topic.
2020-05-01 12:22:22 +03:00
vyzo
27b987071d
add defaults for DecayInterval and DecayToZero
2020-04-29 22:40:44 +03:00
vyzo
d9788290f3
add utility function for computing score parameter decays
2020-04-29 22:40:44 +03:00
dependabot-preview[bot]
b7eeaadcb8
Bump github.com/libp2p/go-libp2p-core from 0.5.1 to 0.5.2
...
Bumps [github.com/libp2p/go-libp2p-core](https://github.com/libp2p/go-libp2p-core ) from 0.5.1 to 0.5.2.
- [Release notes](https://github.com/libp2p/go-libp2p-core/releases )
- [Commits](https://github.com/libp2p/go-libp2p-core/compare/v0.5.1...v0.5.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-28 15:56:30 +03:00
vyzo
8b7e7a1103
fix typo
2020-04-27 18:35:25 +03:00
vyzo
027234cdfa
add tests for message rejection paths
2020-04-27 18:35:25 +03:00
vyzo
f742e5439f
fix bug in penalties from message rejection
...
the first source of the invalid message was _not_ penalized!
2020-04-27 18:35:25 +03:00
vyzo
5c1b637dce
add test for peer score inspection
2020-04-27 18:35:25 +03:00
Yusef Napora
ac70e7e738
be less dependent on accurate time calculations in test
...
thanks travis...
2020-04-23 22:00:08 +03:00
vyzo
ae4bc44c12
relax message delivery requirements for randomsub tests
...
travis, travis, why are you so annoying when it comes to test reliability?
2020-04-23 21:36:48 +03:00
vyzo
2c7e59ea03
make randomsub test reliable
2020-04-23 21:36:48 +03:00
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