vyzo
6323982964
fix test for behaviour penalty validation
2020-05-06 19:41:53 +03:00
vyzo
972505c7b8
fix typo
2020-05-06 19:41:53 +03:00
vyzo
3cc169362f
incorporate p7 into score
2020-05-06 19:41:53 +03:00
vyzo
ee0aef578c
add p7 configuration to score parameters
2020-05-06 19:41:53 +03:00
Yusef Napora
94015cee77
factor out doSendRPC and doDropRPC methods
2020-05-06 19:01:22 +03:00
Yusef Napora
21a4f8c0c8
only call fragmentRPC if we're over the size limit
2020-05-06 19:01:22 +03:00
Yusef Napora
568fa5a244
close stream in test
2020-05-06 19:01:22 +03:00
Yusef Napora
cb02a50cd8
split large IWANT / IHAVE messages, add unit test
2020-05-06 19:01:22 +03:00
Yusef Napora
4427c3def7
fix prune message in test
2020-05-06 19:01:22 +03:00
Yusef Napora
b1de03b608
try to send control messages in one RPC when fragmenting
2020-05-06 19:01:22 +03:00
Yusef Napora
cb65238a39
fix race condition in rpc fragmentation test
2020-05-06 19:01:22 +03:00
Yusef Napora
8642662340
rewrite test for rpc fragmentation
2020-05-06 19:01:22 +03:00
Yusef Napora
27f009a9c7
fragment large RPCs in sendRPC
2020-05-06 19:01:22 +03:00
vyzo
5bbe37191a
downgrade graylist Warn log to Info
2020-05-05 21:10:14 +03:00
vyzo
438dd9e27e
downgrade tracer Error logs to Warn
2020-05-05 21:10:14 +03:00
vyzo
ce9a0b7edf
use log.Warn instead of Warning
2020-05-05 21:10:14 +03:00
vyzo
ed0d01f92b
add defensive checks for potentially duplicate traces
2020-05-04 19:06:40 +03:00
vyzo
8c96dc4bdb
add some more validator tests
2020-05-04 09:42:20 +03:00
vyzo
63e7ba850c
add comment about validationThrottled suerpseding ValidationIgnore
2020-05-04 09:42:20 +03:00
vyzo
deee35d9b8
fix apparent flakiness in test
2020-05-04 09:42:20 +03:00
vyzo
5a7a4fcf84
fix typo
...
Co-Authored-By: Yusef Napora <yusef@protocol.ai>
2020-05-04 09:42:20 +03:00
vyzo
213da1cf8c
add test exercising score integration with extended validation
2020-05-04 09:42:20 +03:00
vyzo
1ff567c9d2
add test for multitopic validation with extended validation interface
2020-05-04 09:42:20 +03:00
vyzo
ae3a02f553
add test for rejections with ignore validator decision
2020-05-04 09:42:20 +03:00
vyzo
1901383099
implement extended validator support
2020-05-04 09:42:20 +03:00
dependabot-preview[bot]
37ed7a3360
Bump github.com/multiformats/go-multiaddr-net from 0.1.4 to 0.1.5
...
Bumps [github.com/multiformats/go-multiaddr-net](https://github.com/multiformats/go-multiaddr-net ) from 0.1.4 to 0.1.5.
- [Release notes](https://github.com/multiformats/go-multiaddr-net/releases )
- [Commits](https://github.com/multiformats/go-multiaddr-net/compare/v0.1.4...v0.1.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-01 21:06:36 +03:00
dependabot-preview[bot]
b3b7814eb7
Bump github.com/libp2p/go-libp2p-core from 0.5.2 to 0.5.3
...
Bumps [github.com/libp2p/go-libp2p-core](https://github.com/libp2p/go-libp2p-core ) from 0.5.2 to 0.5.3.
- [Release notes](https://github.com/libp2p/go-libp2p-core/releases )
- [Commits](https://github.com/libp2p/go-libp2p-core/compare/v0.5.2...v0.5.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-01 20:20:17 +03:00
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