Commit Graph

7954 Commits

Author SHA1 Message Date
Whyrusleeping
586dd6565d
Merge pull request #4411 from ipfs/feat/objput-quiet
object: --quiet flag to put
2017-11-21 15:01:36 -08:00
vyzo
e45df729be namesys/pubsub: publisher and resolver
Commits:
namesys: pubsub Publisher and Resolver
namesys/pubsub: pacify code climate.
namesys/pubsub: timeout for rendezvous
namesys/pubsub: filter self in bootstrap connections
namesys/pubsub: Publish to the correct topic

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: unit  test

Commits:
namesys/pubsub: test
namesys/pubsub_test: pacify code climate
namesys/pubsub: update test to use extant mock routing

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: integrate namesys pubsub

namesys: integrate pubsub resolvers
namesys/pubsub_test: tweak delays
- trying to make travis happy.
namesys/pubsub: fix duplicate bootstraps
- subscription key is topic, not ipnskey.
namesys/pubsub: no warning needed on cancellation
namesys/pubsub: warning for receive errors
- and more informative error messages at that.
namesys/pubsub_test: smaller test
- make it work with seemingly low fdlimits in travis/macosx.
  also, more informative test failures.
namesys/pubsub: add delay to let pubsub perform handshake
namesys/pubsub: update gx imports
namesys/pubsub_test: preconnect publisher, reduce delays
- preconnects the publisher to the receivers in order to avoid bootstrap
  flakiness with connectivity problems in travis.
  reduces sleeps to 1s for flood propagation (3s seems excessive with 5 hosts).
namesys/pubsub: drop named return values in resolveOnce
- per review comment.
namesys/pubsub: check errors
namesys/pubsub: store bytes in resolver datastore
namesys/pubsub: resolver Cancel
- for canceling subscriptions, pre whyrusleeping's request.
namesys/pubsub: fix resolution without /ipns prefix
- also improve the logging a bit.
namesys/pubsub: don't resolve own keys through pubsub
namesys/pubsub: signal ErrResolveFailed on resolution failure
namesys/pubsub: use sync datastore, resolver lock only for subs
namesys/pubsub_test: coverage for Cancel

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: parallelize dht and pubsub publishing

Commits:
namesys/pubsub: code cosmetics
namesys: parallelize publishing with dht and pubsub
namesys/pubsub: periodically reprovide topic rendezvous
namesys/pubsub: cancelation for rendezvous goroutine
namesys/pubsub: log ipns record seqno on publish

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: error checking

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: --enable-namesys-pubsub option and management

Commits:
package.json: update go-libp2p-blankhost
namesys: fix stale package imports
update go-testutil
namesys/pubsub: reduce bootstrap provide period to 8hr
namesys/pubsub: try to extract the key from id first
option to enable ipns pubsub: --enable-namesys-pubsub
ipfs name pubsub management subcommands
corehttp/gateway_test: mockNamesys needs to implement GetResolver
pacify code climate

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: pubsub sharness test

test/sharness: test for ipns pubsub
namesys/pubsub: return boolean indicator on Cancel
package.json: remove duplicate entry for go-testutil
update gx deps, testutil to 1.1.12
fix jenkins failure: use tabs in t0183-namesys-pubsub
t0183: use 4 spaces for tabification

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: update for new command interface

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: fix sharness test for broken MacOS echo

echo -n "" should print -n, but hey it's a mac.

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-11-21 14:55:54 -08:00
Łukasz Magiera
697afddbcc object: --quiet flag to put
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-11-21 19:41:00 +01:00
keks
f3a92617f8 core/commands/pubsub.go: flush output before iterating over received messages
License: MIT
Signed-off-by: keks <keks@cryposcope.co>
2017-11-21 10:00:58 -08:00
Whyrusleeping
b18b1e90c2
Merge pull request #4403 from ipfs/feat/secio-update
Update all the things.
2017-11-21 08:51:23 -08:00
Whyrusleeping
d4c54d6858
Merge pull request #4401 from leerspace/docs/config-announce
updating Addresses section
2017-11-21 08:49:32 -08:00
Steven Allen
a94755dbc5 fix deadlock in bitswap sessions
This deadlock would happen when calling SessionsForBlock (holding
bitswap.sessLk) while the session's main loop was trying to deregister the
session (taking bitswap.sessLk).

I've also defensively added selects on contexts for two other channel writes
just in case.

fixes #4394

...well, it fixes *a* deadlock showing up in that issue, there may be more.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-20 22:28:32 -08:00
Steven Allen
bcd25416d9 cmds: rename DefaultVal -> Default, Default -> WithDefault
Propagate change from cmdkit.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-20 22:20:49 -08:00
Steven Allen
76e1da02a8 gx: massive update
Note: This commit is technically broken. However, I need to make a bunch of
cmds changes to make this work and I'd rather not bundle both changes into a
single commit.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-20 22:20:27 -08:00
Whyrusleeping
218b29959e
Merge pull request #4042 from asymmetric/fix/default-false
remove all instances of `Default(false)`
2017-11-20 21:32:07 -08:00
Steven Allen
d89a4b6960 fix concurrent SetError in add command
I believe this also fixes a potential go routine leak (on race).

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-20 20:35:04 -08:00
Steven Allen
65489c1744 fix concurrent SetError in pin command
(segfault)

Also, buffer the response channel. I believe we had a go routine leak here
before.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-20 20:34:58 -08:00
Whyrusleeping
a62eb62d2d
Merge pull request #4400 from djdv/gx-winmount
Fix orphaned gx dependency
2017-11-20 16:57:54 -08:00
John Reed
42a0c14f2a
adding detail on Announce
Clarifying that the Announce array is only used when non-empty
and will override the default inferred announce addresses.

License: MIT
Signed-off-by: John Reed <john@re2d.xyz>
2017-11-20 09:48:19 -06:00
Lorenzo Manacorda
57f544a79c remove all instances of Default(false)
Boolean options always default to false.

License: MIT
Signed-off-by: Lorenzo Manacorda <lorenzo@mailbox.org>
2017-11-20 16:10:15 +01:00
Dominic Della Valle
d15fa176cd Fix orphaned gx dependency
License: MIT
Signed-off-by: Dominic Della Valle <ddvpublic@gmail.com>
2017-11-20 00:13:35 -05:00
John Reed
8391abb06b
updating Addresses section
config.md: updating the Addresses section

Adding documentation on Announce and NoAnnounce.

Fixing typo in API default value.

License: MIT
Signed-off-by: John Reed <john@re2d.xyz>
2017-11-19 20:31:25 -06:00
Whyrusleeping
225159bcd8
Merge pull request #4372 from ipfs/feat/use-sys
switch from syscall to golang.org/x/sys
2017-11-18 15:39:53 -08:00
Whyrusleeping
b967ec4f44
Merge pull request #4365 from adamliesko/fix/cmd/path-parsing-trailing-slash
core: get cmd outPath remove trailing slash - fixes #3729
2017-11-18 14:24:13 -08:00
Steven Allen
63342578d3 switch from syscall to golang.org/x/sys
(mostly)

syscall has been frozen and mostly deprecated. We can't *entirely* switch but
this brings us closer.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-18 12:11:14 -08:00
adamliesko
a09d974652 core: get cmd outPath removes trailing slash - fixes #3729
When using path with trailing slashes, ipfs get command had issues
with trying to store content into '.' folder (as the file part of the path
was empty). Now, it correctly stores the file into desired folder,
thanks to the removal of trailing slash by introducing a
getOutPath function in get command, which does proper parsing
Of the output path.

BEFORE:
 $  .pfs get /ipns/multiformats.io/
Saving file(s) to .

NOW:
$ ./ipfs get /ipns/multiformats.io/
Saving file(s) to multiformats.io

License: MIT
Signed-off-by: adamliesko <adamliesko@gmail.com>
2017-11-18 20:04:18 +01:00
Whyrusleeping
bd0ed9ea5d
Merge pull request #4381 from massino/patch-1
Remove reference to "this PR" in code
2017-11-18 10:35:03 -08:00
Whyrusleeping
b0e4406676
Merge pull request #4368 from ipfs/fix/plugin-typo
small typo in git plugin
2017-11-18 10:27:47 -08:00
Whyrusleeping
b01e48a758
Merge pull request #4392 from ipfs/feat/log/uuid
Feat/log/uuid
2017-11-18 10:25:23 -08:00
Whyrusleeping
d511a00ef7
Merge pull request #4390 from leerspace/docs/update-using-ipfs
adding how to download IPFS with IPFS
2017-11-18 10:24:12 -08:00
Whyrusleeping
c18e13bd74
Merge pull request #4388 from lanzafame/3066
docs: correct StorageMax config desc
2017-11-18 10:19:50 -08:00
Whyrusleeping
83df6769ac
Merge pull request #3856 from ipfs/feat/commands2.0
Extract and rework commands package
2017-11-18 10:10:50 -08:00
Jeromy
b08a674acb bump version to 0.4.14-dev
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-11-18 08:41:27 -08:00
Jeromy
f8eaae329f fix hamt delete issue
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-11-18 08:39:38 -08:00
keks
d95a87cf57 update to go-ipfs-cmds 0.4.9
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-11-17 15:22:42 +01:00
keks
0d9d21875c compatible to js-ipfs-api
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-11-17 15:22:42 +01:00
Jan Winkelmann
f287524949 cmd: use go-ipfs-cmds
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-11-17 15:22:41 +01:00
Whyrusleeping
cc01b7f188
Merge pull request #4395 from ipfs/release-0.4.13
Ipfs v0.4.13
2017-11-16 15:51:27 -06:00
Jeromy
a0a174ed55 Ipfs v0.4.13
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-11-16 09:58:42 -08:00
Forrest Weston
f44cf00342 Add error message to event logs in path resolution
If an error occurs during an event add it to the events metadata

License: MIT
Signed-off-by: Forrest Weston <forrest@protocol.ai>
2017-11-15 12:27:22 -08:00
Forrest Weston
1c3e590c88 Add event logging around path resolution
License: MIT
Signed-off-by: Forrest Weston <forrest@protocol.ai>
2017-11-14 18:02:26 -08:00
Forrest Weston
846c04b131 Added uuid loggable (requestId) to root context
Every log event resulting from a command will have a uuid associated with it

License: MIT
Signed-off-by: Forrest Weston <forrest@protocol.ai>
2017-11-14 18:02:15 -08:00
Whyrusleeping
5d23fd7c45
Merge pull request #4391 from ipfs/release-0.4.13-rc1
Ipfs v0.4.13-rc1
2017-11-14 16:58:14 -06:00
Jeromy
bbf023fb10 Ipfs v0.4.13-rc1
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-11-14 13:46:10 -08:00
John Reed
bbeee1af50
adding how to download IPFS with IPFS
Adding instructions for downloading IPFS builds with IPFS

License: MIT
Signed-off-by: John Reed <john@re2d.xyz>
2017-11-14 13:48:43 -06:00
Adrian Lanzafame
0d2cc04fa7 docs: correct StorageMax config desc
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2017-11-14 12:25:38 +10:00
Whyrusleeping
8f8fdc093d
Merge pull request #4384 from ipfs/fix/badgerds-1.1.3
Update badgerds to 1.1.3
2017-11-13 16:52:27 -06:00
Whyrusleeping
27c4b5c8c9
Merge pull request #4386 from ipfs/fix/session-cancel-deadlock
Buffer response channel to prevent deadlock
2017-11-13 10:51:24 -06:00
Jeromy
332891f7b2 Buffer response channel to prevent deadlock
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-11-12 19:22:42 -08:00
Łukasz Magiera
2ebf8d0482 Update badgerds to 1.1.3
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-11-12 05:34:31 +01:00
Massino Tinovan
36674b9c90 Remove reference to "this PR" in code
License: MIT
Signed-off-by: Massino Tinovan <massino@droppod.io>
2017-11-10 17:28:06 -08:00
Jeromy
40533eda5e bump version to 0.4.13-dev
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-11-10 16:41:42 -08:00
Whyrusleeping
8eb7956622
Merge pull request #4377 from ipfs/release-0.4.12
Ipfs v0.4.12
2017-11-10 17:52:01 -05:00
Jeromy
84e4fe578f Ipfs v0.4.12
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-11-10 14:01:24 -08:00
Whyrusleeping
13ed3f34f7
Merge pull request #4379 from ipfs/gx/badgerds-1.1.2
Update badgerds to 1.1.2
2017-11-10 16:16:52 -05:00