-
Notifications
You must be signed in to change notification settings - Fork 537
Packaging improvements & upgrade to rebar3.18 #1108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Packaging improvements & upgrade to rebar3.18 #1108
Conversation
works better for non-standard installations of otp
also, add workarounds for self-induced regressions with extended_start_script_extensions, to be fixed later.
Specifically, those in eleveldb submodules # Conflicts: # Makefile
* set DEBEMAIL; * move deb/debian/vars.config to ..; * add missing build dependency on libpam0g-dev; * rm /var/lib/riak on purge.
* add gcc-c++ to BuildRequires; * embrace systemd.
Incidentally, bump riak_kv dep to 3.0.9.2 (does code:load in schema, just for osx)
The `-` option is there primarily for one side effect: it does`cd` to riak user's HOME (/var/lib/riak). Critically, this dir has the erlang cookie file, which is read from the new node started as part of some riak-admin commands (e.g., riak-admin test). It, however, creates a barrier for env vars, which is undesirable. If we cd manually into riak's HOME before the call to `su`, the piggy node now can find the cookie in its cwd, and execution of the command succeeds.
* resuscitate riak-chkconfig; * make `make rel` relocatable again, fix riak-debug for it;
# Conflicts: # rebar.config
# Conflicts: # rebar.config
# Conflicts: # rel/files/riak
…ut, for faster package builds
# Conflicts: # Makefile # rebar.config
# Conflicts: # rebar.config
where erl starts without riak/lib/*/ebin in ERL_LIBS
* drop unused sub_dirs item from rebar.conf; * drop lager from TEST_IGNORE.
# Conflicts: # rel/files/riak-admin
With make devrel we now get full/absolute file paths in riak.conf to all the platform_*_dir entries.
Rather than the relative
When we then install the dev environment into riak_test, the script copies each dev* directory across into the test area ... but now these references are wrong. So the riak_test tests don't work, when they try and change the config, or reset any changes. would it be possible to retain the old behaviour of having relative references to all the platform dirs in |
If I overcome the issue by sed'ing the riak.conf before copying, I still have a problem. riak_test cannot appear to stop the nodes it starts. I think it might also be a path related problem. It doesn't look like the sys.config and vm.args are being created in the correct location off of the riak.conf, so the node is started with a name that isn't in the vm.args (which is unchanged from the default), and so although the riak process is up and running, it can't be stopped/pinged from the command line - as nay other command line requests read the vm.args without the updated name. |
I've checked around, and the folder where riak is built is hard-coded as an absolute path in lots of places. So, as it stands we lose the ability to copy this around, as required by riak_test. This may well have been done for good reason, perhaps it is necessary to make other things work. If we can't change this, it may be possible to change the way we set-up riak_test so that we build directly to the test folder rather than first locally and then copying. |
With 39f0ecf, devrels are relocatable again. |
Going through some riak_test failures.
Can confirm this on both OTP 22 (where the error is slightly different because of nodetool, but it still fails for the same reason), and OTP 24. If I call |
There was a bash issue with preparing an erl_call sommand line with multiple parameters, which is fixed in b2a3a5a. However, it looks like your shell (something other than bash?) has a version of |
I'm running locally on OSX (Mojave): echo $0 returns -bash |
Changes now merged into https://github.com/basho/riak/commits/mas-hmmr-updated-d32, to be refined/supplemented and taken further. Closing. |
Becomes part of #1114. |
This is a remake of #1097 (which see for PR description and testing routine), now against develop, with some improvements and fixups: