Brian Tiger Chow
abd971d393
extract initialization
...
refactor(epictest) Core
refactor: extract repo
fix
move core
2014-12-25 04:07:14 -05:00
Brian Tiger Chow
217611c237
use raw primitives
2014-12-25 01:18:01 -05:00
Brian Tiger Chow
589ed37bd7
rename variable
2014-12-25 01:17:52 -05:00
Brian Tiger Chow
b5fd310a31
add todo
2014-12-24 12:48:15 -05:00
Brian Tiger Chow
0172e4f2bb
style(testutil) rename testutil.Peer -> testutil.Identity
...
cc @jbenet
2014-12-24 09:59:24 -05:00
Brian Tiger Chow
2b2ff548e6
rename to dht
2014-12-24 09:38:51 -05:00
Brian Tiger Chow
237e594a8f
don't link when creating network client. rely on caller
2014-12-24 09:31:19 -05:00
Brian Tiger Chow
075841c118
rm print
2014-12-24 09:31:19 -05:00
Brian Tiger Chow
d619e4ada9
cancel on exit
2014-12-24 09:31:19 -05:00
Brian Tiger Chow
35f6ddb8fa
test(integration)
...
It's now possible to produce the DHT issues without process
orchestration.
Test1KBInstantaneous fails
@jbenet @whyrusleeping
2014-12-24 09:31:19 -05:00
Brian Tiger Chow
ad546f935a
feat(integration_test) add make task to perform benchmarks in docker env
...
pprof cannot be used reliably on OS X. This provides two make tasks to
collect and analyze profiling data.
To run profiling in a dockerized linux environment...
```
make // or `make collect`
```
To analyze results on host machine...
```
make analyze
```
@jbenet @whyrusleeping
2014-12-24 09:31:19 -05:00
Brian Tiger Chow
ca32a83394
wip with DHT
...
@whyrusleeping @jbenet this is a WIP with the DHT.
wip
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Conflicts:
epictest/addcat_test.go
exchange/bitswap/testnet/peernet.go
exchange/bitswap/testutils.go
routing/mock/centralized_server.go
routing/mock/centralized_test.go
routing/mock/interface.go
fix(routing/mock) fill in function definition
2014-12-24 09:31:19 -05:00
Brian Tiger Chow
14990bb556
fix(merkledag/test) panic!
...
https://travis-ci.org/jbenet/go-ipfs/jobs/45000756
cc @whyrusleeping @jbenet
lol this is starting to happen pretty often
2014-12-24 09:31:18 -05:00
Brian Tiger Chow
c253590770
refactor(routing/mock) move files
2014-12-24 09:31:18 -05:00
Brian Tiger Chow
6da57c6764
feat(bitswap/testnet) impl a version of bitswap testnet that uses mockpeernet under the hood
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-24 09:31:18 -05:00
Brian Tiger Chow
85ce94c510
refactor(bitswap/testnet) rename to virtual
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-24 09:31:18 -05:00
Brian Tiger Chow
d390e31c11
refactor(bitswap/testnet) extract interface in prep for mockpeernet version
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-24 09:31:18 -05:00
Brian Tiger Chow
d5e936a2c6
ignore log output
2014-12-24 09:31:18 -05:00
Brian Tiger Chow
6cdb4c23b4
pass peer into testnet adapter method
2014-12-24 09:31:18 -05:00
Brian Tiger Chow
e017d6edc6
refactor(bitswap/testnet) slim down interface
...
so it'll be easier to create another implementation using the new
mocknet
2014-12-24 09:31:17 -05:00
Brian Tiger Chow
12b92f03f1
add RandPeerOrFatal test helper
2014-12-24 09:31:17 -05:00
Brian Tiger Chow
b551e45ae9
use testutil peer in sess
2014-12-24 09:31:17 -05:00
Brian Tiger Chow
a85aa9b5da
refactor: rename testutil func
2014-12-24 09:31:17 -05:00
Brian Tiger Chow
81a67338f1
fix(bitswap) remove peerstore
2014-12-24 09:31:17 -05:00
Brian Tiger Chow
b31f728188
feat(testutil) add testutil.Peer shim
2014-12-24 09:31:17 -05:00
Brian Tiger Chow
c933d439b7
misc docs and fmting
2014-12-24 09:31:17 -05:00
Juan Batiz-Benet
8d8a1dc7e1
Merge pull request #473 from jbenet/dht-test-providers
...
dht fixes
2014-12-24 06:17:12 -08:00
Juan Batiz-Benet
0938471d1c
ctxio: fix buffer of 1 so goroutine exits when io completes.
2014-12-24 05:50:05 -08:00
Juan Batiz-Benet
989d3d4ce5
dht/test skip bootstrap test when short
2014-12-24 05:39:48 -08:00
Juan Batiz-Benet
60c869d401
dht/test: providers test id compare
2014-12-24 04:23:15 -08:00
Juan Batiz-Benet
99636b571c
net/id: handle error case
2014-12-24 04:22:51 -08:00
Juan Batiz-Benet
923c082d66
dht: cleaned up dht_test.
...
TestProversMany still fails
2014-12-24 03:48:02 -08:00
Juan Batiz-Benet
57510d2fec
dht/dht_test: bootstrap synchronously. fares better.
2014-12-24 03:46:45 -08:00
Juan Batiz-Benet
618097d80e
dht/query: log when dialing a closerpeer
2014-12-24 03:45:20 -08:00
Juan Batiz-Benet
8adda0fffc
dht: bootstrap query constants
2014-12-24 03:44:03 -08:00
Juan Batiz-Benet
e630ca6078
dht: removing extra newlines
2014-12-24 03:42:43 -08:00
Juan Batiz-Benet
b5cbc8b6fa
dht_test: better bootstrapping logging
2014-12-24 03:41:13 -08:00
Juan Batiz-Benet
900c1fbfa2
net/id: when dup id, wait on it.
2014-12-24 03:38:44 -08:00
Juan Batiz-Benet
ef0c25f463
dht bootstrap test: rounds. do nothing
...
odd behavior: only one dht (the last one) is seeing
changes to its routing table.
2014-12-24 03:24:52 -08:00
Juan Batiz-Benet
ccf6f79aa0
respect don contexteone
2014-12-24 03:24:28 -08:00
Juan Batiz-Benet
f8c523fc3b
bootstrap test
2014-12-24 02:20:11 -08:00
Juan Batiz-Benet
cdb461d2a9
dht: update on every received message
...
i made a separate function because we may want to update our
routing table based on "closer peers". maybe not-- these could
all be lies.
2014-12-24 02:20:11 -08:00
Juan Batiz-Benet
61cdef3570
dht/query: fix important panic
...
Withe queries (particularly providers), it was possible to
exit the query runner's Run BEFORE all its children were done,
because the runner itself only listened to the context. This
introduced the possibility of a panic (you can go check it
out by running the TestProvidersMany test on dht_test in commits
before this one). Thankfully, ctxgroup saved the day with
almost _zero_ changes to the sync flow, and now we have the
guarantee that the query runner will only exit if all its
children are done. ❤️
Conflicts:
routing/dht/query.go
2014-12-24 02:13:38 -08:00
Juan Batiz-Benet
a4021eb433
ctxio -- io with a context.
...
This commit introduces a reader and writer that respect
contexts. Warning: careful how you use them. Returning
leaves a goroutine reading until the read finishes.
2014-12-24 02:10:56 -08:00
Juan Batiz-Benet
0013415db8
net/interface: move more to Dialer
2014-12-24 02:10:56 -08:00
Juan Batiz-Benet
7d7e051101
dht bootstrap err check fix + logging
2014-12-24 02:10:52 -08:00
Juan Batiz-Benet
596602f37f
routing table: better printing (see bkts)
2014-12-24 02:09:06 -08:00
Juan Batiz-Benet
ea2706c698
dht bugfix: unlock on print
2014-12-24 01:50:00 -08:00
Juan Batiz-Benet
04f9805d5d
dht_test large providers test
2014-12-24 01:49:55 -08:00
Juan Batiz-Benet
c43e8fa35b
fixing race in testutil port
2014-12-23 17:59:35 -08:00