1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-16 04:02:05 +08:00

17 Commits

Author SHA1 Message Date
0a6b880bee fix for #1008 and other pinning fixes
This commit adds a new set of sharness tests for pinning, and addresses
bugs that were pointed out by said tests.

test/sharness: added more pinning tests

Pinning is currently broken. See issue #1051. This commit introduces
a few more pinning tests. These are by no means exhaustive, but
definitely surface the present problems going on. I believe these
tests are correct, but not sure. Pushing them as failing so that
pinning is fixed in this PR.

make pinning and merkledag.Get take contexts

improve 'add' commands usage of pinning

FIXUP: fix 'pin lists look good'

ipfs-pin-stat simple script to help check pinning

This is a simple shell script to help check pinning.

We ought to strive towards making adding commands this easy.
The http api is great and powerful, but our setup right now
gets in the way. Perhaps we can clean up that area.

updated t0081-repo-pinning

- fixed a couple bugs with the tests
- made it a bit clearer (still a lot going on)
- the remaining tests are correct and highlight a problem with
  pinning. Namely, that recursive pinning is buggy. At least:
  towards the end of the test, $HASH_DIR4 and $HASH_FILE4 should
  be pinned indirectly, but they're not. And thus get gc-ed out.
  There may be other problems too.

cc @whyrusleeping

fix grep params for context deadline check

fix bugs in pin and pin tests

check for block local before checking recursive pin
2015-04-19 23:40:25 -07:00
bf22aeec0a Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs
- Modified Godeps/Godeps.json by hand
- [TEST] Updated welcome docs hash to sharness
- [TEST] Updated contact doc
- [TEST] disabled breaking test (t0080-repo refs local)
2015-03-31 12:52:25 -07:00
92d08db7a5 rewrote import paths of go.net/context to use golang.org/x/context
- updated go-ctxgroup and goprocess
ctxgroup: AddChildGroup was changed to AddChild. Used in two files:
- p2p/net/mock/mock_net.go
- routing/dht/dht.go

- updated context from hg repo to git
prev. commit in hg was ad01a6fcc8a19d3a4478c836895ffe883bd2ceab. (context: make parentCancelCtx iterative)
represents commit 84f8955a887232b6308d79c68b8db44f64df455c in git repo

- updated context to master (b6fdb7d8a4ccefede406f8fe0f017fb58265054c)

Aaron Jacobs (2):
net/context: Don't accept a context in the DoSomethingSlow example.
context: Be clear that users must cancel the result of WithCancel.

Andrew Gerrand (1):
go.net: use golang.org/x/... import paths

Bryan C. Mills (1):
net/context: Don't leak goroutines in Done example.

Damien Neil (1):
context: fix removal of cancelled timer contexts from parent

David Symonds (2):
context: Fix WithValue example code.
net: add import comments.

Sameer Ajmani (1):
context: fix TestAllocs to account for ints in interfaces
2015-02-25 11:58:19 +01:00
2501a7c7b7 update UI from PR comments 2015-02-04 23:07:13 +00:00
4770c5e142 only expose IpfsNode as param 2015-02-04 23:07:13 +00:00
b79fffc965 implement metadata node for unixfs and other 2015-02-04 23:07:12 +00:00
e5f3ac99c3 core/coreunix: Documented return values 2015-02-02 10:13:33 -08:00
62333521c6 core/coreunix: Created 'AddWrapped' function to add files with a wrapped directory (to preserve filename in path) 2015-02-02 10:07:35 -08:00
9ddfafb40a address concerns about user interface with new Path type 2015-01-30 19:55:38 +00:00
abb3c9c9c4 implement path type 2015-01-29 17:51:08 +00:00
bbce860bd0 remove debug log output 2015-01-27 17:15:56 -08:00
961e3ced43 feat(coreunix): AddR for recursive Adds 2015-01-27 16:24:36 -08:00
26826bd55e implement seeking in the dagreader 2015-01-27 01:33:09 +00:00
f9395b7667 fix: flush the pinner 2015-01-24 12:22:22 -08:00
7f6bd2807d feat(coreunix): AddR for recursive Adds 2015-01-24 12:22:22 -08:00
eb6afd3edc fix interface for coreunix.Cat, now takes a path 2015-01-23 06:39:20 +00:00
b0596cd4ff rename coreio to coreunix 2015-01-18 14:41:43 -08:00