Commit Graph

10437 Commits

Author SHA1 Message Date
Jeromy Johnson
41744ef95e Merge pull request #3526 from ipfs/fix/sharness/init-test
sharness: don't run go-ipfs instance with default config
2016-12-21 11:18:25 -08:00
Jakub Sztandera
abb4d1760b
sharness: don't run go-ipfs instance with default config
It conflicts with already running instance on the Dev's machine so
running this test requires disabling the normal ipfs.

The launch of ipfs here doesn't test much as we compare the config,
after initing from it and we also launch from default config in many
other cases (with few variables changed to not conflict with already
running standalone ipfs instance).

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-21 10:29:38 +01:00
Jeromy Johnson
8b6646310f Merge pull request #3513 from ipfs/fix/coreunix-add-docs
coreunix: fix Add() docs regarding pinning
2016-12-20 14:09:56 -08:00
Jakub Sztandera
591e82618e
commands: fix opt.Description panic when desc was empty
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-20 22:55:47 +01:00
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
Jakub Sztandera
912a9720bd
gateway: remove Suborigins as it conflicts the spec
The Suborigins spec was changed and we have to adjust, the spec is still
unstable and it might change in future. Currently the only browser
supporting it (Chrome) errors out on it as it doesn't confront spec it
uses.

See https://github.com/ipfs/specs/issues/131

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-19 14:41:58 +01:00
Lars Gierth
9f71de8fcc bootstrap: add a few /ip6 nodes
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-12-18 05:52:56 +01:00
Lars Gierth
71a03fe35d coreunix: fix Add() docs regarding pinning
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-12-18 01:09:23 +01: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
Jakub Sztandera
20665fc5e3
Fixes nc on macOS not closing socket when the stdin sends EOF
Uses `-d` option that is supported both by BSD and GNU nc.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-16 21:10:53 +01: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