1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-28 08:47:42 +08:00

2736 Commits

Author SHA1 Message Date
abd390b892 core/commands: Made add command show streamed output 2015-01-06 15:53:48 -08:00
71838adf49 commands/http: handler: Fixed chunk copier to be able to write response before request is done 2015-01-06 15:53:48 -08:00
5d3bc652cb commands/http: client: Close output channel on decoder EOF 2015-01-06 15:53:48 -08:00
0452a5f75e commands: Made default JSON marshaler support channel output 2015-01-06 15:53:48 -08:00
cf1e770e1e commands/http: Client: decode chunked streaming output 2015-01-06 15:53:48 -08:00
c3c0b248e8 commands/http: Made Handler stream channel output 2015-01-06 15:53:48 -08:00
fd40702f73 commands: Changed Marshaler to return a io.Reader instead of a []byte
core/commands: Refactored command marshalers
2015-01-06 15:53:42 -08:00
0395a7af1e ipfs add output not sorted, cmds files sorted
I made the commands lib dir listing sort the contents
so we get the same sequence of files from it repeatably.
2015-01-06 14:02:49 -08:00
87c561b2cf Makefile: test makes sure it can build 2015-01-06 13:44:11 -08:00
caa7ac0e9a Merge pull request #495 from jbenet/sharness-add-recursive
sharness test: ipfs add -r
2015-01-06 13:18:13 -08:00
3b65f1a507 Add sharness tests for recursive add
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-01-06 13:12:23 -08:00
d490a85706 Make sure ipfs add output is sorted by name
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-01-06 13:12:22 -08:00
cd65ec614b merkledag: keep links sorted by name
May not be necessary to sort when adding each link--
doing so would be unnecessarily expensive O(n^2) when
constructing nodes -- though n wont be big.
2015-01-06 13:12:22 -08:00
e1cde6bc8c Merge pull request #462 from jbenet/feat/indirect
Implement recursive indirect block creation for DAGs
2015-01-06 12:08:28 -08:00
e3cf893616 implement recursive indirect blocks
improve efficiency of multilayered indirect blocks

clean up tests

panic cleanup

clean up logic, improve readability

add final root node to the dagservice upon creation

importer: simplified dag generation

test: updated hashes using latest code

@whyrusleeping this is why the sharness tests
were failing: the hashes are added manually to
make sure our generation doesn't change.

cleanup after CR

fix merkledag tests

fix small block generation (no subblocks!)
2015-01-06 19:43:56 +00:00
64bf493b54 swarm peers print pid.Pretty 2015-01-06 10:13:49 -08:00
fbba7c8f39 bootstrap: only dht bootstrap with live conns 2015-01-06 10:10:20 -08:00
b9fe37801f Merge pull request #498 from jbenet/blockservice-async-has
blockservice async exchange.HasBlock
2015-01-06 09:01:51 -08:00
238035c298 blockservice: async HasBlock with ratelimit 2015-01-06 08:54:04 -08:00
12fd3555a1 added dep github.com/jbenet/goprocess 2015-01-06 08:54:04 -08:00
edf73c8c80 Merge pull request #497 from jbenet/bootstrap-add-default
bootstrap add --default option
2015-01-06 06:08:13 -08:00
9e67acf51a bootstrap add --default option 2015-01-06 04:30:06 -08:00
517d3e99b8 bootstrap addrs: moved parsing around
this commit:
* moves parsing of bootstrap peers into config
* moves location of bootstrap addrs into core/commands
* refactor `*BootstrapPeer -> BootstrapPeer
2015-01-06 00:25:17 -08:00
6eb32aef35 bootstrap err: info 2015-01-05 09:00:58 -08:00
622154397d Merge pull request #494 from jbenet/sharness-bootstrap-rm
sharness bootstrap rm
2015-01-05 08:15:01 -08:00
0ba6bca130 sharness tests: added note re: daemon init 2015-01-05 08:08:56 -08:00
e785ad1d64 sharness: make sure not mounted
if a test is cancelled, unmount may not run. then, must
run umount before mounting, just to make sure.
2015-01-05 08:04:52 -08:00
b372b4879e sharness: init: bootstrap rm -all
sharness tests should not bootstrap to the dht. it
may be useful to test that specifically, but not on
the other tests.
2015-01-05 08:00:16 -08:00
730793e2f7 cmds/bootstrap: rm --all 2015-01-05 07:59:53 -08:00
585e7164f1 Merge pull request #426 from jbenet/feat/dht-bootstrap
feat(dht) Bootstrap
2015-01-05 07:24:46 -08:00
1d9977c850 dht/bootstrap/test: longer timeout, less bias 2015-01-05 07:19:07 -08:00
dfcea4c6f1 bootstrap: not error to not have enough bootstrap peers
use dht bootstrap. there is an edge case where the dht
is tiny (1?) and we have 0 bootstrap peers. we should
probably _inform_ the user, but this may be more a
webui or command thing.
2015-01-05 07:13:51 -08:00
474b74f70b dht/bootstrap: (optional) parallelism + error on peer
This also makes it an Error to find a peer.
2015-01-05 06:51:38 -08:00
59f47cfd34 dht: bootstrap query logging 2015-01-05 06:44:19 -08:00
30eb8f213f adjust const
to test jenkins

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2015-01-05 06:25:56 -08:00
9e4b9714ce feat(core) dht.Bootstrap
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2015-01-05 06:25:25 -08:00
c065bcce55 Merge pull request #490 from jbenet/more-dht-fixes
various fixes
2015-01-05 05:59:17 -08:00
919e9bebee ipns test: is fast republish a timing prob? 2015-01-05 05:48:35 -08:00
1ab9588cba p2p/test: bogus key pair for faster tests 2015-01-05 05:48:15 -08:00
41af4f4ea1 dht test skips 2015-01-05 04:55:02 -08:00
172801712e dht: even more logging. 2015-01-05 04:55:02 -08:00
f25dfb68b9 peer/queue: close fix, and logging 2015-01-05 04:55:02 -08:00
09a2e1f64c testutil: obvious names for seeded key pairs 2015-01-05 04:55:02 -08:00
10072c149d bitswap: log superfluous messages 2015-01-05 04:55:02 -08:00
aeb2e07198 bitswap: remove DialPeer from interface
Bitswap doesn't usually care about dialing. the underlying
network adapter can make sure of that.
2015-01-05 04:55:02 -08:00
f6def11eb3 make test now runs expensive tests.
We use make test as the measure of correctness.
This laxity has let bugs creep into several systems.
This commit changes our target to always run expensive
tests, unless one specifically runs `make test_short`

(we would do well to remove most if not all timing--
that's usually what makes tests take a long time.)
2015-01-05 04:55:02 -08:00
032b35b2ac dht: key without record validator func
This is causing test failures because tests don't usually
have "/-/-" format. we can decide whether or not to allow
keys without validators, but for now removing.

cc @whyrusleeping
2015-01-05 04:55:01 -08:00
9d0736bc3b peer+mocknet: sorting for determinism. 2015-01-05 04:55:01 -08:00
ce367ee76e ext_test: bitten by mocknet ordering
mocknet indeterminism screwed this test up. that's twice
it's bitten us. let's not let it do it a third time.

cc @briantigerchow omg.
2015-01-05 04:55:01 -08:00
b4be7c5986 dht: extend duration of TestGetFailures
TestGetFailures may just be operating very slowly, instead
of completely failing. Right now it gets caught on travis
often. not sure if its actually wrong.
2015-01-05 00:16:54 -08:00