Commit Graph

1239 Commits

Author SHA1 Message Date
Hector Sanjuan
bfdd59735c Fix #240: Add test flags. Remove build tags for logging control.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-01-16 09:28:40 +01:00
Hector Sanjuan
e596c09298
Merge pull request #293 from ipfs/fix/validate-state
Fix: validateState does not detect different state versions
2018-01-16 08:41:24 +01:00
Hector Sanjuan
5b3be2df7f Fix: validateState does not detect different state versions
It was comparing state.GetVersion() against state.Version, which
is the same, instead of against, mapstate.Version, which is the
constant for the current Version.

It was also returning a nil error, as the scope of the variable
assigned was not that of the outer level.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-01-15 20:03:14 +01:00
Hector Sanjuan
2a6f91cd35 Fix #240: Avoid duplicated list of facilities
This puts some sanity in this. It's not super correct (name of facilities
depend of the component and the main cluster component should not hard
code them), but it's clear enough. Imho, better than over-engineering
a more elegant approach.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-01-15 16:50:40 +01:00
ZenGround0
b8014927f6
Merge pull request #256 from ipfs/feat/try-jenkins
Adding Jenkinsfile -- Experiment
2018-01-12 18:17:00 -05:00
Wyatt
fc237b21d4 Feat: Enable Jenkins builds
This enables support for testing in jenkins.

Several minor adjustments have been performed to improve the probability
that the tests pass, but there are still some random
problems appearing with libp2p conections not becoming available or
stopping working (similar to travis, but perhaps more often).

MacOS and Windows builds are broken in worse ways (those issues will
need to be addressed in the future).

Thanks to @zenground0 and @victorbjelkholm for support!

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-01-11 18:11:46 +01:00
ZenGround0
a4d8aac68c
Merge pull request #288 from ipfs/fix/sharness
Harden Sharness
2018-01-10 14:32:09 -05:00
ZenGround0
20442ec406
Merge pull request #268 from ipfs/doc/dag-sharding-rfc
ipfs-cluster dag/file sharding RFC WIP
2018-01-10 13:08:26 -05:00
Wyatt Daviau
ef39203dfa Dag-sharding rfc
This commit adds the dag-sharding-rfc file to the docs directory.
This file outlines the DAG sharding project and currently contains
the draft posted to ipfs/notes for feedback.  As suggestions are
incorporated this document will be reworked to track the consensus
on the project's goals and implementation.

License: MIT
Signed-off-by: Wyatt Daviau <wdaviau@cs.stanford.edu>
2018-01-10 13:06:11 -05:00
Hector Sanjuan
8daf54f8f4 New credentials for pushing snaps
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-01-10 18:33:33 +01:00
Wyatt Daviau
a99b403273 Sharness hardening:
Better error messages in test-lib init functions and ipfshttp
Cleanup functions are now called after every test file

License: MIT
Signed-off-by: Wyatt Daviau <wdaviau@cs.stanford.edu>
2018-01-09 14:17:21 -05:00
Hector Sanjuan
bda2674c4b
Merge pull request #285 from ipfs/fix/snapshot-wait-for-index
Fix #275: Attempt to wait for updates when shutting down
2018-01-09 15:39:37 +01:00
Hector Sanjuan
89b8fe106e Fix #275: Wait for Raft updates before snapshotting on shutdown
Raft will fail to take a snapshot when applied index is
different from the last index. Therefore, we wait for
all updates to be aplied before snapshotting.

If still it doesn't work, we retry a few times.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-01-09 15:02:47 +01:00
ZenGround0
abebe498cb
Merge pull request #282 from ipfs/feat/docker-test
fix/basic-docker-tests
2018-01-05 08:13:19 -05:00
Wyatt Daviau
66606a98c9 Tweaking wait time
License: MIT
Signed-off-by: Wyatt Daviau <wdaviau@cs.stanford.edu>
2018-01-05 07:45:41 -05:00
Hector Sanjuan
0c395e6156
Merge branch 'master' into feat/docker-test 2018-01-05 10:39:15 +01:00
Hector Sanjuan
6d299f9848
Merge pull request #283 from ipfs/feat/migration-framework
Generalize migration process
2018-01-05 10:33:50 +01:00
Wyatt Daviau
652ba567a2 More general migration framework in place
License: MIT
Signed-off-by: Wyatt Daviau <wdaviau@cs.stanford.edu>
2018-01-04 23:07:52 -05:00
Wyatt Daviau
79bc8caddf Bring sleep times within reason
License: MIT
Signed-off-by: Wyatt Daviau <wdaviau@cs.stanford.edu>
2018-01-04 16:51:50 -05:00
Wyatt Daviau
c2c3d6c992 Adjusting timeout to see if that helps
License: MIT
Signed-off-by: Wyatt Daviau <wdaviau@cs.stanford.edu>
2018-01-04 16:04:06 -05:00
Wyatt Daviau
54f34ca36e make docker impl + launched from travis
License: MIT
Signed-off-by: Wyatt Daviau <wdaviau@cs.stanford.edu>
2018-01-04 15:41:16 -05:00
Hector Sanjuan
84cc12c0b7
Merge pull request #276 from ipfs/feat/state-cmds
Feat #253 state import/export/cleanup
2018-01-02 16:39:55 +01:00
Wyatt Daviau
8361b8afe4 Add and refine cli interface for cluster state
Added import, export, cleanup.
Changed state interface.
New sharness tests.

License: MIT
Signed-off-by: Wyatt Daviau <wdaviau@cs.stanford.edu>
2017-12-28 09:06:28 -05:00
Hector Sanjuan
0f3391b015
Merge pull request #274 from ipfs/feat/201-version-subcmd
cluster-service: add version subcommand and change some startup logging
2017-12-13 16:56:42 +01:00
Hector Sanjuan
2b6dfa45cd cluster-service: add version subcommand and change some startup logging
The --version flag is default from our cli library so I left that. The
version subcommand prints only the version number + the short commit
so it's a bit more easy to parse.

I have additionally reduced the amount of output on start up by converting
some messages to debug. I wish there was a level between INFO and DEBUG
though.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2017-12-13 10:25:01 +01:00
Hector Sanjuan
5bc33d7df3
Merge pull request #272 from ipfs/docs/178-ctl-exit-codes
Fix #178: Document exit status for ipfs-cluster-ctl
2017-12-12 17:45:38 +01:00
Hector Sanjuan
8eea4baf3d Fix #178: Document exit status for ipfs-cluster-ctl
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2017-12-12 16:58:56 +01:00
Hector Sanjuan
9bdf581122
Merge pull request #270 from ipfs/feat/state-update-guide
Docs/guide: describe upgrade procedures in more detail
2017-12-12 16:33:52 +01:00
Hector Sanjuan
af3a8cfbf5 docs/guide: specify that folder is not deleted, but backed up
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2017-12-12 10:33:28 +01:00
Hector Sanjuan
10331e2678
gx publish 0.3.1
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2017-12-11 14:11:28 +01:00
Hector Sanjuan
91b3763869
Release 0.3.1
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2017-12-11 14:11:10 +01:00
Hector Sanjuan
620886366d release.sh: clean before releasing
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2017-12-11 14:10:16 +01:00
Hector Sanjuan
847a8a78c4 Do not leave tag annotation file around when releasing
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2017-12-11 14:05:26 +01:00
Hector Sanjuan
5200aadac6 Docs/guide: describe upgrade procedures in more detail
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2017-12-11 13:33:32 +01:00
Hector Sanjuan
e2e2c98eb1 ROADMAP.md: Q4 update. Better late than never.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2017-12-11 13:08:47 +01:00
Hector Sanjuan
313494a2f6 Changelog: v0.3.1
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2017-12-11 13:08:43 +01:00
Hector Sanjuan
7f06c9aed7 # This is a combination of 2 commits.
# This is the 1st commit message:

Captain.log.update

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>

# The commit message #2 will be skipped:

# Captain log
#
# License: MIT
# Signed-off-by: Hector Sanjuan <code@hector.link>
2017-12-11 13:07:12 +01:00
Hector Sanjuan
4409df681b
Merge pull request #267 from ipfs/codeclimate
Adjust some codeclimate settings
2017-12-08 21:08:53 +01:00
Hector Sanjuan
2fa54ff9d7
Merge pull request #266 from ipfs/feat/client_features
Feat/client features
2017-12-08 17:28:41 +01:00
Hector Sanjuan
d6bb5bb538 cluster-ctl: use standard error types
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2017-12-08 17:05:21 +01:00
Hector Sanjuan
b2651b52ea Refactor some stuff to please codeclimate
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2017-12-08 17:05:21 +01:00
Hector Sanjuan
763bd060a5 Increase lines of code per method in codeclimate
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2017-12-08 16:57:44 +01:00
Hector Sanjuan
a0025587eb Adjust some codeclimate settings
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2017-12-08 16:47:15 +01:00
Hector Sanjuan
b21d313547 rest/client: Return regular errors.
We had a problem happening when assigning the returned *api.Error
to default 'error' type.

Things like "if err != nil" would not work even when *api.Error is nil
I'm not sure why this happens, but this is very confusing for the user
integrating on top. It is better that we just return plain go errors.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2017-12-08 15:39:30 +01:00
Hector Sanjuan
62e8a011d0 rest/client: Allow passing Host and Port in the config.
This is easier in many cases and does not make the user
parse a multiaddress.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2017-12-08 15:38:30 +01:00
Hector Sanjuan
146e8672c4
Merge pull request #265 from ipfs/fix/api-client
Fix: client requests and multiaddresses parsing
2017-12-08 12:31:52 +01:00
Hector Sanjuan
faeaf5dc6a api: attempt to trick code climate on dup code
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2017-12-08 01:09:52 +01:00
Hector Sanjuan
6bf24ccca7 migrate.go: gofmt
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2017-12-08 01:05:49 +01:00
Hector Sanjuan
7dc9798894 cluster_config: de-duplicate multiaddress parsing code
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2017-12-08 01:05:49 +01:00
Hector Sanjuan
50859a8954 codeclimate: add .codeclimate.yml
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2017-12-08 01:05:49 +01:00