1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-01 02:30:39 +08:00

2553 Commits

Author SHA1 Message Date
5372f4c4d4 Merge pull request #475 from jbenet/fix-ctx-frac
frac ctx - skip time tests in travis
2014-12-26 10:43:03 -05:00
5999ae8d0d frac ctx - skip time tests in travis 2014-12-25 14:23:18 -08:00
c1cd27851e Merge pull request #474 from jbenet/hotfix/core-mock
hotfix(core/mock) set Network field
2014-12-25 13:58:50 -08:00
07fa9eecbd hotfix(core/mock) set Network field 2014-12-25 15:20:54 -05:00
95ba056ec3 Merge pull request #470 from jbenet/feat/use-mocknet
use `net/mocknet` in integration tests
2014-12-25 04:11:46 -05:00
513c5687ed rename 2014-12-25 04:07:16 -05:00
1891c8915d feat: test the three-legged cat 2014-12-25 04:07:16 -05:00
abd971d393 extract initialization
refactor(epictest) Core

refactor: extract repo

fix

move core
2014-12-25 04:07:14 -05:00
217611c237 use raw primitives 2014-12-25 01:18:01 -05:00
589ed37bd7 rename variable 2014-12-25 01:17:52 -05:00
b5fd310a31 add todo 2014-12-24 12:48:15 -05:00
0172e4f2bb style(testutil) rename testutil.Peer -> testutil.Identity
cc @jbenet
2014-12-24 09:59:24 -05:00
2b2ff548e6 rename to dht 2014-12-24 09:38:51 -05:00
237e594a8f don't link when creating network client. rely on caller 2014-12-24 09:31:19 -05:00
075841c118 rm print 2014-12-24 09:31:19 -05:00
d619e4ada9 cancel on exit 2014-12-24 09:31:19 -05:00
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
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
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
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
c253590770 refactor(routing/mock) move files 2014-12-24 09:31:18 -05:00
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
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
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
d5e936a2c6 ignore log output 2014-12-24 09:31:18 -05:00
6cdb4c23b4 pass peer into testnet adapter method 2014-12-24 09:31:18 -05:00
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
12b92f03f1 add RandPeerOrFatal test helper 2014-12-24 09:31:17 -05:00
b551e45ae9 use testutil peer in sess 2014-12-24 09:31:17 -05:00
a85aa9b5da refactor: rename testutil func 2014-12-24 09:31:17 -05:00
81a67338f1 fix(bitswap) remove peerstore 2014-12-24 09:31:17 -05:00
b31f728188 feat(testutil) add testutil.Peer shim 2014-12-24 09:31:17 -05:00
c933d439b7 misc docs and fmting 2014-12-24 09:31:17 -05:00
8d8a1dc7e1 Merge pull request #473 from jbenet/dht-test-providers
dht fixes
2014-12-24 06:17:12 -08:00
0938471d1c ctxio: fix buffer of 1 so goroutine exits when io completes. 2014-12-24 05:50:05 -08:00
989d3d4ce5 dht/test skip bootstrap test when short 2014-12-24 05:39:48 -08:00
60c869d401 dht/test: providers test id compare 2014-12-24 04:23:15 -08:00
99636b571c net/id: handle error case 2014-12-24 04:22:51 -08:00
923c082d66 dht: cleaned up dht_test.
TestProversMany still fails
2014-12-24 03:48:02 -08:00
57510d2fec dht/dht_test: bootstrap synchronously. fares better. 2014-12-24 03:46:45 -08:00
618097d80e dht/query: log when dialing a closerpeer 2014-12-24 03:45:20 -08:00
8adda0fffc dht: bootstrap query constants 2014-12-24 03:44:03 -08:00
e630ca6078 dht: removing extra newlines 2014-12-24 03:42:43 -08:00
b5cbc8b6fa dht_test: better bootstrapping logging 2014-12-24 03:41:13 -08:00
900c1fbfa2 net/id: when dup id, wait on it. 2014-12-24 03:38:44 -08:00
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
ccf6f79aa0 respect don contexteone 2014-12-24 03:24:28 -08:00
f8c523fc3b bootstrap test 2014-12-24 02:20:11 -08:00
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
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