Commit Graph

937 Commits

Author SHA1 Message Date
Hector Sanjuan
b57fa40f47 Add a couple of consensus tests to keep coverage high.
The code path is well tested, but Go does not know about it
in submodules.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-14 13:50:30 +01:00
Hector Sanjuan
8c1bf77287 Fix state interface
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-13 18:44:42 +01:00
Hector Sanjuan
9ac81a8539 gx install no longer verbose
Makes me scroll a lot

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-13 18:40:35 +01:00
Hector Sanjuan
c2faf48177 Issue #18: Move Consensus and PeerMonitor to its own submodules
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-13 18:40:35 +01:00
Hector Sanjuan
e99b7b4f79 [WIP]: Move REST API and IPFS HTTP Connector to its own submodules
Part of Issue #18.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-13 18:39:23 +01:00
Hector Sanjuan
988327a910 Merge pull request #67 from ipfs/migrator
Issue #51: Save a backup on shutdown
2017-03-13 18:15:08 +01:00
Hector Sanjuan
718b2177ce Issue #51: Save a backup on shutdown
This adds snapshot and restore methods to state and uses the snapshot
one to save a copy of the state when shutting down. Right now, this is
not used for anything else.

Some lines performing a migration, but this is only an idea of how it could
work.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-13 17:57:10 +01:00
Hector Sanjuan
a3c705a01d Merge pull request #66 from ipfs/fix-tests
Address randomly failing tests. Improve metrics broadcasts.
2017-03-13 17:51:16 +01:00
Hector Sanjuan
acefb68c8a Only leader broadcasts metrics. The rest sends only to leader
This is a better approach than broadcasting everything all the time
(see 6ee0f3bead). A couple of delays
have been touched in order to make tests less likely to fail randomly.
(Issue #65).

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-13 15:55:52 +01:00
Hector Sanjuan
20b0a3382e ctl: fix some outputs
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-13 11:10:53 +01:00
Hector Sanjuan
1542c47387 Merge pull request #61 from ipfs/readme-docker
Add docker and dist.ipfs.io install methods to README
2017-03-13 11:09:13 +01:00
Hector Sanjuan
9be145319b Increase delays to prevent test from randomly failing
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-10 14:27:03 +01:00
Hector Sanjuan
3572e7454b Add this week's entry to the Captain's Log.
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-10 14:05:40 +01:00
Hector Sanjuan
c01ff6fdb5 Add docker and dist.ipfs.io install methods to README
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-10 13:21:38 +01:00
Hector Sanjuan
ee4102e3e9 gx publish 0.0.10
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-09 15:04:48 +01:00
Hector Sanjuan
7ce5961aba Release 0.0.10
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-09 15:04:42 +01:00
Hector Sanjuan
bfae9bc624 Merge pull request #59 from ipfs/fix-realloc
Fix pin re-allocation when it's already pinned
2017-03-09 15:04:12 +01:00
Hector Sanjuan
a1d31d094b Fix pin re-allocation when it's already pinned
There was a bug in the test for re-allocation which hid another
bug in the re-allocation process where a pin which needs to be
re-allocated would only be assigned to the new destinations and not
anymore to the valid allocations it had previously

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-09 14:49:10 +01:00
Hector Sanjuan
988afe9766 gx publish 0.0.9
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-09 13:15:23 +01:00
Hector Sanjuan
f93538aed1 Release 0.0.9
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-09 13:15:18 +01:00
Hector Sanjuan
09ac792c15 gx publish 0.0.8
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-09 13:15:14 +01:00
Hector Sanjuan
6a4863e623 Release 0.0.8
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-09 13:15:08 +01:00
Hector Sanjuan
1c7d1e0141 Fix release.sh
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-09 13:15:00 +01:00
Hector Sanjuan
25fe269322 gx publish 0.0.7
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-09 12:41:58 +01:00
Hector Sanjuan
b19b3c6882 Release 0.0.7
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-09 12:41:52 +01:00
Hector Sanjuan
ea1ad53df1 Fix tagging
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-09 12:41:43 +01:00
Hector Sanjuan
3dd0c47724 gx publish 0.0.6
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-09 12:24:50 +01:00
Hector Sanjuan
76707d4b9b Release 0.0.6
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-09 12:24:27 +01:00
Hector Sanjuan
9dff76b8da Merge pull request #58 from ipfs/pin-options
Allow specifying a replication factor per pin
2017-03-09 12:21:13 +01:00
Hector Sanjuan
a5275ad02e Merge branch 'small-fixes' into pin-options 2017-03-09 12:04:49 +01:00
Hector Sanjuan
271b6194b7 Merge pull request #56 from ipfs/docker
Add Dockerfile
2017-03-09 12:03:02 +01:00
Hector Sanjuan
e5c5909e42 Support a replication factor flag in "ipfs-cluster-ctl pin add".
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-08 18:51:03 +01:00
Hector Sanjuan
01d65a1595 Support replication factor as a pin parameter
This adds a replication_factor query argument to the API
endpoint which allows to set a replication factor per Pin.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-08 18:50:54 +01:00
Hector Sanjuan
9b652bcfb3 Rename CidArg to Pin.
CidArg used to be an internal name for an argument that carried a Cid.
Now it has surfaced to API level and makes no sense. It is a Pin. It
represents a Pin (Cid, Allocations, Replication Factor)

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-08 16:57:27 +01:00
Hector Sanjuan
e014ba7751 Fix output when global pin info comes with an error
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-08 01:10:24 +01:00
Hector Sanjuan
ee57cf8a36 Add Dockerfile
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-07 17:39:19 +01:00
Hector Sanjuan
9d6121c426 gx publish 0.0.5
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-07 17:39:00 +01:00
Hector Sanjuan
7be6399433 Release 0.0.5
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-07 17:38:53 +01:00
Hector Sanjuan
e5543f3b30 Fix ipfs-cluster-service looping eating lots of CPU (bad select loop)
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-07 17:38:04 +01:00
Hector Sanjuan
101720bd91 gx publish 0.0.4
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-03 18:49:52 +01:00
Hector Sanjuan
135a222301 Release 0.0.4
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-03 18:49:45 +01:00
Hector Sanjuan
d72fc5b317 Correctly replace release number when releasing
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-03 17:57:28 +01:00
Hector Sanjuan
36c12fc297 Put tools README into dist/ folder
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-03 17:52:43 +01:00
Hector Sanjuan
85651ae8cb Issue #55: Move tooling information to it's own README in the subprojects.
Add LICENSE there too, so that the build tool for distributions includes
it in the tar files.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-03 16:13:09 +01:00
Hector Sanjuan
e038ea039a Fix test by adding more delay
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-03 15:38:53 +01:00
Hector Sanjuan
1c16b653a7 gx publish 0.0.3
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-03 15:08:51 +01:00
Hector Sanjuan
df3c190fc8 Release 0.0.3
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-03 15:08:31 +01:00
Hector Sanjuan
d0e2eaf12f Update libp2p and deps
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-02 17:05:21 +01:00
Hector Sanjuan
58d962de4c Update gx version
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-02 17:05:21 +01:00
Hector Sanjuan
31e32b9c8e Update README with latest feature and Captain's log
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-02 15:12:06 +01:00