Commit Graph

7954 Commits

Author SHA1 Message Date
Thomas Gardner
2ad63fd0df commands: improve test coverage for FileArg parsing
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-06-26 12:28:55 +10:00
Thomas Gardner
ddc8d0c60c commands: remove EnableStdin support for StringArg
With verbose flag:
* remove EnableStdin() flags on all StringArg,

* remove all unneeded parsing code for StringArg, and print an
* informative message if `ipfs` begins reading from a CharDevice,

* remove broken go tests for EnableStdin cli parsing, and add some
* trivial test cases for reading FileArg from stdin,

* add a panic to prevent EnableStdin from being set on
* StringArg in the future.

Resolves: #2877, #2870
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-06-26 12:28:55 +10:00
Jeromy
8f91069e50 Write providers to disk to avoid memory leaks
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-25 09:53:59 -07:00
Jeromy Johnson
cb85b0c2c5 Merge pull request #2909 from yuvallanger/fix-documentation-typo
Fix typo
2016-06-25 09:45:49 -07:00
Yuval Langer
5089dafc9c Fix typo
License: MIT
Signed-off-by: Yuval Langer <yuval.langer@gmail.com>
2016-06-25 19:12:17 +03:00
Christian Couder
434503d427 ISSUE_TEMPLATE: update link to issue guide
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-06-25 09:44:22 +02:00
Jeromy Johnson
2a4bbb712f Merge pull request #2905 from ipfs/fix/log-message
fix argument placement on log message
2016-06-24 23:25:43 -07:00
Jeromy
a68f9d090a fix argument placement on log message
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-24 16:54:33 -07:00
Jakub Sztandera
174ab12c67 config: Add explicit default value for HashOnRead
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-24 22:38:07 +02:00
Jakub Sztandera
0f3dc1e84a core: Add config option for datastore read rehashing
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-24 22:38:01 +02:00
Jakub Sztandera
f2686965ac tests: Add test to RuntimeHashing option of blockstore
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-24 22:21:01 +02:00
Jakub Sztandera
989e91b1c4 blockstore: add fetch rehashing
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-24 22:20:58 +02:00
Jakub Sztandera
ce8c8a7a71 Update go-log in whole dependency tree (#2898)
* Update golog in go-ipfs

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update go-libp2p for go-log

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update go-libp2p-secio for go-log

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update go-libp2p-crypto for go-log

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update go-libp2p-peer for go-log

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Import peersore, it wasn't imported

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update peerstore

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update peer

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update secio

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update go-libp2p

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-24 09:38:07 -07:00
Jeromy Johnson
cefe872488 Merge pull request #2901 from ipfs/feature/docker-update
docker: update to go 1.6.2 and alpine 3.4
2016-06-24 09:04:03 -07:00
Jeromy Johnson
c85eec28d5 Merge pull request #2896 from ipfs/feature/no-travis-notification
Disable Travis Email notifications
2016-06-24 09:03:35 -07:00
Lars Gierth
a04570df73 docker: update to go 1.6.2 and alpine 3.4
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-06-24 02:24:20 +02:00
Jakub Sztandera
de8939771f Disable Travis Email notifications
There are so many of them that they are just annoyting
and for some reason there isn't feature of telling
Travis not to send notifications to me.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-23 17:11:47 +02:00
Jeromy Johnson
a72feedec6 Merge pull request #2893 from ipfs/fix/add-progress-bar
fix progress bar in add
2016-06-22 22:30:21 -07:00
Jeromy Johnson
6e45e9d5c5 Merge pull request #2891 from ipfs/feat/ulimit-raise-tests
add a test for auto-raising ulimit
2016-06-22 19:56:51 -07:00
Jeromy Johnson
0ac81dae2e Merge pull request #2786 from ipfs/issue-template
Add ISSUE_TEMPLATE.md
2016-06-22 17:56:44 -07:00
Jeromy
f26d8c7b46 respect context cancellation in add
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-22 17:16:34 -07:00
Jeromy
8e505f291f fix progress bar in add
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-22 17:09:35 -07:00
Jeromy Johnson
b305bd5243 Merge pull request #2886 from ipfs/feat/not-object-error
return a better error if the ref is not an object
2016-06-22 12:28:50 -07:00
Jeromy Johnson
d15dcf980f Merge pull request #2889 from ipfs/feature/github-issues-guide
Added a How To File GitHub Issues guide
2016-06-22 12:28:17 -07:00
Richard Littauer
715b6145bb Added a How To File GitHub Issues guide
See https://github.com/ipfs/go-ipfs/pull/2786

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-06-22 20:21:12 +01:00
Jeromy
3d5e015876 add a test for auto-raising ulimit
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-22 11:17:16 -07:00
Jeromy
306f766bb3 add a little bit more verbosity to the error
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-22 10:41:37 -07:00
Jeromy Johnson
6e5420e5e0 Merge pull request #2887 from ipfs/deps/lock
use locking lib at go4.org
2016-06-21 21:09:46 -07:00
Jeromy Johnson
472deb0e96 Merge pull request #2872 from ipfs-filestore/best-effort-pins
Add Files API root as best-effort pin
2016-06-21 20:42:19 -07:00
Jeromy Johnson
30ef23a1dc Merge pull request #2883 from ipfs/feature/standardize-readme
Standardized Readme
2016-06-21 15:25:28 -07:00
Jeromy
1fc8ffb769 use locking lib at go4.org
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-21 15:11:55 -07:00
Jeromy
e8fcd19969 return a better error if the ref is not an object
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-21 13:59:18 -07:00
Jeromy Johnson
c98bf9a164 Merge pull request #2884 from ipfs/feat/default-fd-bump
raise file descriptor limit to 1024 by default
2016-06-21 12:32:36 -07:00
Jeromy
deecc5dd7f raise file descriptor limit to 1024 by default
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-21 11:31:14 -07:00
Jeromy Johnson
7d18f74879 Merge pull request #2880 from yuvallanger/swarm-filters-save-config
Swarm filters save config (fix #2878)
2016-06-21 10:42:19 -07:00
Richard Littauer
eb955dff71 Standardized Readme
See https://github.com/ipfs/community/issues/124

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-06-21 18:31:25 +01:00
Yuval Langer
d608f32916 Add ipfs config Swarm.AddrFilters test
License: MIT
Signed-off-by: Yuval Langer <yuval.langer@gmail.com>
2016-06-21 09:03:40 +03:00
Kevin Atkinson
466d70993f Enhance tests and fix tests copyright for files API root best-effort pin.
License: MIT
Signed-off-by:  <k@kevina.org>
2016-06-20 21:19:08 -04:00
Yuval Langer
20b6499102 Move no arguments check to before opening fsrepo.
License: MIT
Signed-off-by: Yuval Langer <yuval.langer@gmail.com>
2016-06-21 00:41:08 +03:00
Yuval Langer
42468d0ebe Add filtersRemove() and the swarmFiltersRmCmd.Run() parts that call it.
Also added types and marshalers to the swarmFiltersAddCmd and
swarmFiltersRmCmd structs.

License: MIT
Signed-off-by: Yuval Langer <yuval.langer@gmail.com>
2016-06-21 00:26:17 +03:00
Yuval Langer
bd9b312039 Add filtersAdd() and the code that uses it to swarmFiltersAddCmd.Run()
License: MIT
Signed-off-by: Yuval Langer <yuval.langer@gmail.com>
2016-06-21 00:26:14 +03:00
Kevin Atkinson
714f2debea Add Files API root as best-effort pin.
Closes #2697.  Closes #2698.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-06-20 17:09:56 -04:00
Jeromy Johnson
c6443fd933 Merge pull request #2874 from ipfs/extract-gateway
gateway: clean up its surface, and remove BlockList
2016-06-20 12:34:29 -07:00
Jeromy Johnson
30f2c1f367 Merge pull request #2871 from rikonor/master
Added variable latency delay, normal and uniform based
2016-06-20 09:57:14 -07:00
Jeromy Johnson
720fa80dd7 Merge pull request #2863 from ipfs/fix/dht-timeouts
implement some simple dht request read timeouts
2016-06-20 09:50:39 -07:00
Or Rikon
cd7010f7bf Added variable latency delay, normal and uniform based
- Allow providing new delays with your own rng / use shared rng

License: MIT
Signed-off-by: Or Rikon <rikonor@gmail.com>
2016-06-19 08:59:09 -04:00
Jeromy Johnson
a6fb581371 Merge pull request #2867 from ipfs/feature/api-offline
Add way to check if node is online or offline
2016-06-18 23:00:57 -07:00
Lars Gierth
1afebc21f3 gateway: clean up its surface, and remove BlockList
This patch is in preparation for the gateway's extraction.

It's interesting to trace technical debt back to its
origin, understanding the circumstances in which it
was introduced and built up, and then cutting it back
at exactly the right places.

- Clean up the gateway's surface
  The option builder GatewayOption() now takes only
  arguments which are relevant for HTTP handler muxing,
  i.e. the paths where the gateway should be mounted.
  All other configuration happens through the
  GatewayConfig object.

- Remove BlockList
  I know why this was introduced in the first place,
  but it never ended up fulfilling that purpose.
  Somehow it was only ever used by the API server,
  not the gateway, which really doesn't make sense.
  It was also never wired up with CLI nor fs-repo.
  Eventually @krl started punching holes into it
  to make the Web UI accessible.

- Remove --unrestricted-api
  This was holes being punched into BlockList too,
  for accessing /ipfs and /ipn on the API server.
  With BlockList removed and /ipfs and /ipns freely
  accessible, putting this option out of action
  is safe. With the next major release,
  the option can be removed for good.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-06-19 00:52:35 +02:00
Jakub Sztandera
c10ed855a5 Add test for online field in diag sys
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-18 19:15:04 +02:00
Jakub Sztandera
e67a21ed6a Add net.online to diag sys command
Currently there was no sure way to check if node is in online
or offline mode.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-18 12:39:13 +02:00