Commit Graph

1358 Commits

Author SHA1 Message Date
Hector Sanjuan
f9a3d46258 Update gx and gx-go to latest stable
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-31 17:12:12 +01:00
Hector Sanjuan
a7787029cb Fix #600: Remote pins should not error
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-30 16:33:05 +01:00
Hector Sanjuan
54fd4fbf4a
Merge pull request #601 from ipfs/feat/improve-pin-serial
Feat/improve pin serial
2018-10-30 12:41:36 +01:00
Adrian Lanzafame
4f194f52d3
use DecodeCid in log_op
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2018-10-30 21:07:27 +10:00
Adrian Lanzafame
91358e1ed1
only call ToPin when absolutely required
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2018-10-30 21:07:26 +10:00
Adrian Lanzafame
a89a6da45b
use DecodeCid in rpc_api
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2018-10-30 21:07:26 +10:00
Adrian Lanzafame
820df17359
add pinSerial.DecodeCid and benchs
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2018-10-30 21:07:26 +10:00
Hector Sanjuan
a0dc644545
Merge pull request #597 from ipfs/race-fixes-picks
Race fixes picks
2018-10-30 12:05:50 +01:00
Hector Sanjuan
1bc7f5a643 Re-order shutdownLock fields in cluster declaration
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-30 11:54:32 +01:00
Hector Sanjuan
e787773ed4
gx publish 0.7.0-rc1
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-29 18:03:58 +01:00
Hector Sanjuan
7c90e550dc
Release 0.7.0-rc1
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-29 18:03:04 +01:00
Hector Sanjuan
27a9bedd06
Merge pull request #599 from ipfs/update/go-libp2p-pubsub
Update to latest go-libp2p-pubsub (with renames)
2018-10-29 17:59:11 +01:00
Hector Sanjuan
8a045ae2d2 Update to latest go-libp2p-pubsub (with renames)
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-29 17:25:52 +01:00
Hector Sanjuan
1f29abf754
Merge pull request #596 from ipfs/feat/env-cfg
add env config; refactor LoadJSON tests
2018-10-29 16:01:16 +01:00
Hector Sanjuan
0b923f8d49 Set envconfig version (more or less), and move setDefaults down a bit.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-29 14:53:59 +01:00
Hector Sanjuan
4547a79b4b
Merge pull request #598 from ipfs/feat/ipld-bubble
Upgrade ipld-related dependencies. Remove importers DAG forced-Batching.
2018-10-29 13:40:03 +01:00
Hector Sanjuan
de2848fb23 Upgrade ipld-related dependencies. Remove impoters DAG forced-Batching.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-29 12:50:36 +01:00
Hector Sanjuan
ca3fe646b1 Fix race condition when shutting down and watchPeers() run
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-29 12:03:57 +01:00
Hector Sanjuan
d63a5e2667 Fix race on ApplyTo
The FSM tries to decode an operation on top of the
*LogOp. We might still be using the *LogOp.Cid.Allocations
slice. We need to make a deep of *LogOp.Cid before
returning from ApplyTo.

This one was tricky...

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-29 12:03:47 +01:00
Hector Sanjuan
765987ef2c Improvements
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-29 12:03:32 +01:00
Hector Sanjuan
d5fa2cf9f2 fix race with go-libp2p-gorpc
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-29 12:03:15 +01:00
Hector Sanjuan
85a7dc5114 Allocate memory for response rpc types
Might trigger a very weird race when pointing to nil

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-29 12:03:03 +01:00
Hector Sanjuan
2deecf3f8d
Merge pull request #589 from ipfs/fix/health-metrics
Make metrics human
2018-10-26 15:12:10 +02:00
Hector Sanjuan
19b1124999 Make metrics human
Issue #572 exposes metrics but they carry the peer ID in binary.

This was ok with our internal codecs but it doesn't seem to work
very well with json, and makes the output format unusable.

This makes the Metric.Peer field a string.

Additinoally, fixes calling the command without arguments and displaying
the date in the right format.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-26 14:11:30 +02:00
Hector Sanjuan
53a16fba8f
Merge pull request #595 from ipfs/fix/libp2p
Fix tests with latest libp2p
2018-10-26 14:02:53 +02:00
Adrian Lanzafame
3ab3c2afa0
add env config; refactor LoadJSON tests
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2018-10-26 19:38:30 +10:00
Hector Sanjuan
9330ac82e2 Fix tests with latest libp2p
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-25 14:55:01 +02:00
Hector Sanjuan
372b70ada9
Merge pull request #594 from ipfs/workaround-broken-snaps
Fix publishing snaps
2018-10-25 13:53:14 +02:00
Hector Sanjuan
f52a5fd702 Fix publishing snaps
Snaps won't publish with classic confimement or non-edge.
For the moment this works around that so that, at least,
there is releases on 'edge'  with strict confinement.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-25 12:40:33 +02:00
Hector Sanjuan
8e892043e4
Merge pull request #592 from ipfs/libp2p-6.0.23
Upgrade to libp2p 6.0.23
2018-10-25 12:10:31 +02:00
Hector Sanjuan
64bd1cb924 Upgrade to libp2p 6.0.23
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-25 12:08:37 +02:00
Hector Sanjuan
cd30ae603a
Merge pull request #588 from ipfs/docker-compose
Add a docker-compose.yml example with 2 peers and auto-bootstrap.
2018-10-25 10:25:29 +02:00
Hector Sanjuan
0bab730030 Set CLUSTER_SECRET from shell
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-24 21:20:53 +02:00
Hector Sanjuan
2a62edd32a Nitpicks
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-24 13:12:36 +02:00
Hector Sanjuan
5f3ee631f1
Merge pull request #590 from ipfs/update/go-ipfs-files
Files package has been extracted from cmdkit
2018-10-24 12:49:41 +02:00
Hector Sanjuan
b86f3cedb4 Files package has been extracted from cmdkit
Related: https://github.com/ipfs/go-ipfs-cmdkit/pull/31

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-24 01:28:05 +02:00
Hector Sanjuan
ce6ed6ae7a Test docker compose
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-23 18:25:43 +02:00
Hector Sanjuan
e4fddbc4d7 Add a docker-compose.yml example with 2 peers and auto-bootstrap.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-23 18:25:43 +02:00
Hector Sanjuan
2714852827
Merge pull request #586 from ipfs/fix/query-encode-filter
Fix: escape filter parameter query
2018-10-23 13:31:44 +02:00
Hector Sanjuan
79fe5919d2 Fix: escape filter parameter query
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-22 23:45:33 +02:00
Hector Sanjuan
48c89fbe4d
Merge pull request #572 from kishansagathiya/issue_449
Issue #449 API endpoint for Peer Monitor metrics
2018-10-22 23:32:50 +02:00
Hector Sanjuan
50d4876443
Merge pull request #553 from kishansagathiya/issue_532
Issue #532 `ipfs-cluster-service -f init` should clean up state as well
2018-10-22 10:31:33 +02:00
Hector Sanjuan
40e223d845
Merge pull request #581 from ipfs/feat/use-ipfs-to-download-gx
Fix #577: Try downloading gx and gx-go from local ipfs gateway first
2018-10-22 10:21:31 +02:00
Hector Sanjuan
17b3a959d3
Merge pull request #583 from ipfs/fix/add-with-spaces-in-name
Fix: escape the add query parameters correctly in the client
2018-10-22 10:19:35 +02:00
Kishan Sagathiya
ec4588a5ce Issue #449 API endpoint for Peer Monitor metrics
Rename method PeerMonitorLatestMetrics to Metrics
Addressing first round of comment as in
https://github.com/ipfs/ipfs-cluster/pull/572#pullrequestreview-165367171

License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-10-21 13:36:20 +05:30
Kishan Sagathiya
3ac7d6c9cc Issue #449 API endpoint for Peer Monitor metrics
Support the new endpoint for later metrics in `rest/api/client`

Support the new method created in `rest/api/client` in
ipfs-cluster-ctl. i.e. `ipfs-cluster-ctl health metrics <name>` would
show the peers and the last list of metrics logged for each as returned
by the Peer Monitor, in a friendly way.

License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-10-21 12:49:56 +05:30
Kishan Sagathiya
fafbf7b929 Issue #449 API endpoint for Peer Monitor metrics
Opened new endpoint `GET /health/metrics/<name>` which would respond
with metrics of type <name>

License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-10-21 12:49:56 +05:30
Hector Sanjuan
4e3553fb1f Fix: escape the add query parameters correctly in the client
When adding something that has a name with spaces, things fail
very badly.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-19 20:19:52 +02:00
Kishan Sagathiya
c370e86cca Issue #532 -f init should clean up state
Cosmetic changes

License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-10-18 19:06:07 +05:30
Kishan Sagathiya
687f49d1b7 Issue #532 -f init should clean up state
Cosmetic changes

License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-10-18 19:06:07 +05:30