Commit Graph

6875 Commits

Author SHA1 Message Date
Jeromy Johnson
a15360f349 Merge pull request #3517 from ipfs/fix/dag-get-accept-paths
dag/get: accept paths and not just cids
2016-12-20 11:14:38 -08:00
Jeromy
8e23482c7e Add a test for dag get with a path
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-17 13:36:56 -08:00
Jeromy
839adbf48d dag/get: accept paths and not just cids
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-17 12:38:51 -08:00
Jeromy Johnson
548490f558 Merge pull request #3516 from Zanadar/test/routing/offline
Test/routing/offline
2016-12-17 12:30:31 -08:00
Zander Mackie
834f22328c Testing the rest of the interface
License: MIT
Signed-off-by: Zander Mackie <zmackie@gmail.com>
2016-12-17 11:05:36 -05:00
Zander Mackie
058bfc3b54 Testutil to gen random CidV0
License: MIT
Signed-off-by: Zander Mackie <zmackie@gmail.com>
2016-12-17 11:05:36 -05:00
Zander Mackie
695c22a7d1 Tests for OfflineRouting storage and Retrieval
License: MIT
Signed-off-by: Zander Mackie <zmackie@gmail.com>
2016-12-16 07:14:55 -05:00
Jeromy Johnson
e2ba43c12d Merge pull request #3494 from ipfs/fix/gc-timeout
Remove GC timeout, fix GC tests
2016-12-15 20:15:49 -08:00
Jeromy Johnson
56bc19bae8 Merge pull request #3507 from ipfs/fix/pbnode-json
merkledag: fix json marshalling of pbnode
2016-12-15 16:41:43 -08:00
Jeromy Johnson
f6948bbec4 Merge pull request #3509 from ipfs/fix/namesys/dht-cache-panic
namesys: fix case where there is no cache
2016-12-15 16:41:15 -08:00
Jakub Sztandera
c1d5a60b66
namesys: add test for publish with cache size 0
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-15 22:05:23 +01:00
Jakub Sztandera
0864c8e20e
namesys: fix case where there is no cache
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-15 02:17:55 +01:00
Jeromy
7c8a8a81cf Add json unmarshal code and fix panic
A panic would occur when a link was created with a nil cid, this should
be allowable, just catch the potential problem and skip marshaling the
cid.

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-14 16:11:07 -08:00
Jeromy
4373bf9d75 merkledag: fix json marshalling of pbnode
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-14 13:11:49 -08:00
Jeromy Johnson
9e8d108a8c Merge pull request #3499 from ipfs/dag-get-ro
dag get should be a read only command
2016-12-14 13:07:42 -08:00
Jeromy Johnson
a47d1b03b1 Merge pull request #3501 from ipfs/feat/namesys/publish-cache
namesys: add entry to DHT cache after publish
2016-12-14 13:00:40 -08:00
Jakub Sztandera
6a9009b8aa
namesys: fix TYPO, make constant constant
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-14 21:53:10 +01:00
Jeromy Johnson
edeffa558c Merge pull request #3502 from ipfs/deps/go-ds-measure
Update go-ds-measure to 1.1.0
2016-12-14 11:58:53 -08:00
Jakub Sztandera
2d37e60334
namesys: extract DefaultRecortTTL to a variable
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-14 20:50:04 +01:00
Jakub Sztandera
4016f40311
repo: remove nodeid from the metrics
It was there because old collector was using debug env to report metrics
and there keys have to very unique.

As we are reporting it now to prometheus it is better to have it under
the same key as we had before.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-14 20:45:50 +01:00
jbenet
bb85dd9815 dag get should be a read only command
added CmdDagGet to the read only command set.

tried to add a test, but dag get needs tests in general

License: MIT
Signed-off-by: Juan Batiz-Benet
2016-12-14 10:45:54 -08:00
Jakub Sztandera
ab48dee695
Update go-ds-measure to 1.1.0
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-13 22:26:40 +01:00
Jakub Sztandera
b558012d27
namesys: fix length of self resolve cache
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-13 20:58:10 +01:00
Jakub Sztandera
9fe9d9eb53
namesys: add entry to DHT cache after publish
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-13 20:38:05 +01:00
Lars Gierth
2836c64642 gc: remove unneccessary full repo scan
GetStorageUsage() is super expensive as it involves a full repo scan,
and it's already bad enough that we have do it once.

The call that's being removed here is purely for cosmetical purposes:
printing the number of bytes freed by the GC run. Let's drop it.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-12-13 14:50:01 +01:00
Lars Gierth
a6ae8e72bf gc: remove wonky timeout
This timeout was:
- unneccessary
- based on a metric that doesn't make sense

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-12-13 14:50:01 +01:00
Jeromy Johnson
4cb236caa4 Merge pull request #3497 from ipfs/docs/changelog-0.4.4
changelog: add 0.4.4
2016-12-12 09:26:06 -08:00
Lars Gierth
d432f18565 changelog: add 0.4.4
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-12-12 15:33:48 +01:00
Jeromy Johnson
93c90020b2 Merge pull request #3495 from ipfs/fix/fetch-graph-concurrency
merkledag: add a concurrency limit to merkledag fetch graph
2016-12-10 11:21:25 -08:00
Jeromy
0c14b4162e merkledag: add a concurrency limit to merkledag fetch graph
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-09 17:35:22 -08:00
Jeromy Johnson
938f95d72e Merge pull request #3492 from Zanadar/test/unixfs/format
Test: unixfs @ 87% coverage
2016-12-09 15:38:21 -08:00
Jeromy Johnson
e893fb90b7 Merge pull request #3484 from ipfs/fix/pubsub-peers-cmd
cmd/pubsub: fix peers command topic filtering
2016-12-09 12:08:45 -08:00
Jeromy Johnson
477787c7e3 Merge pull request #3491 from ipfs/fix/swarm-peers-0-lat
swarm/peers: print 'n/a' instead of zero latency
2016-12-09 12:06:32 -08:00
Zander Mackie
6622fd0a28 Add Some Comments to unixfs/format
License: MIT
Signed-off-by: Zander Mackie <zmackie@gmail.com>
2016-12-09 08:30:51 -05:00
Zander Mackie
7b16a8daa8 Add test for unixfs/format to reach 87% coverage.
License: MIT
Signed-off-by: Zander Mackie <zmackie@gmail.com>
2016-12-09 08:30:46 -05:00
Jeromy
4f78f40537 swarm/peers: print 'n/a' instead of zero latency
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-08 21:56:47 -08:00
Jeromy
f104b8ae57 cmd/pubsub: fix peers command topic filtering
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-08 21:26:09 -08:00
Jeromy Johnson
2aded6785d Merge pull request #3483 from ipfs/feat/block-put-hash
cmd/block: add selection of multihash parameters to block put command
2016-12-08 13:33:33 -08:00
Jeromy Johnson
e9215a6617 Merge pull request #3482 from ipfs/fix/daemon-routing-opt-chk
cmd/ipfs: error out on invalid routing option
2016-12-08 13:33:16 -08:00
Jeromy
58a2c5f815 cmd/ipfs: error out on invalid routing option
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-07 16:51:40 -08:00
Jeromy
cf6e3219b6 cmd/block: add selection of multihash parameters to block put command
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-07 16:36:00 -08:00
Jeromy Johnson
b6c1155ac8 Merge pull request #3475 from ipfs/deps/go-multiplex-0.2.6
update experimental go-multiplex to 0.2.6
2016-12-07 12:52:39 -08:00
Jeromy Johnson
19353df374 Merge pull request #3477 from ipfs/test/multiple-different
Add multiple small tests
2016-12-07 11:35:34 -08:00
Jeromy Johnson
f43811a750 Merge pull request #3476 from ipfs/docs/bitswap-proto
update message.proto
2016-12-07 10:38:36 -08:00
David Dias
38703a8a7f update message.proto
Add some comments so that I don't forget about these

License: MIT
Signed-off-by: David Dias <daviddias.p@gmail.com>
2016-12-07 09:08:24 -08:00
Jakub Sztandera
a3c38917e2
test: add memkeystore test
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-07 09:02:23 +01:00
Jakub Sztandera
84a9208bce
test: add test for nonexistant key
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-07 08:59:54 +01:00
Jakub Sztandera
cc61e5bb1a
test: Bloom filter, basic filter test
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-07 08:23:59 +01:00
Jeromy Johnson
24d35f3c66 Merge pull request #3474 from ipfs/feat/codecov/skip-ci
Do not require CI to pass for coverage
2016-12-06 17:11:54 -08:00
Jakub Sztandera
70e02cf766
Do not require CI to pass for coverage
If travis fail (or is cancelled) or random build failure happens, or
js-ipfs-api test is down for a long time we still want the coverage.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-07 01:24:18 +01:00