-
Notifications
You must be signed in to change notification settings - Fork 23
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
Switch to rebar3 and get compatible to erlang 20 #62
Conversation
I have to do some testing too today, so I set this as WiP. |
`gun` has an issue with dialyzer and the documented flags are not working to ignore the issue. Therefore the deps are not dialyzed for now.
To get dialyzer running I set some ignore flags. Also dependencies are not dialyzed for now since gun has an issue which should be fixed upstream. |
As a sidenote: I don't know why dialyzer was integrated with CT here but this is the first thing I would revert in the future. There are already dialyzer targets in the Makefile. |
Hi @GalaxyGorilla, thanks for the effort! We really appreciate your work.
Dialyzer was integrated with CT in order to fail the travis job if there are any errors emitted. We did this to make sure that we keep type and function spec up to date. |
rebar.config
Outdated
@@ -1,25 +1,39 @@ | |||
{erl_opts, [debug_info, | |||
warn_missing_spec, | |||
%warn_missing_spec, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the root cause behind disabling this flag?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess I disabled this to prevent a wall of warnings every time i executed something. I will put it back in place.
@michalwski Is that really something that is not possible with Makefile targets? I have no experience with travis-ci ... but gitlab-ci, go cd etc. have absolutely no problem with this. It should just care about return codes not equal to 0. |
It is possible with travis as well. Currently there is no need to put dialyzer inside CT. If you want to remove dialyzer form CT but still have it fail the job you can add script:
- make test
- ./rebar3 dialyzer |
@michalwski Can we make that in another PR? I can also do this immediately after you merge this (if you are happy about the rest). This PR ist just intended to get amoc ready for erlang 20. |
@GalaxyGorilla sure, this can done in a separate PR |
@GalaxyGorilla did you see pr #50. It's also about switching to rebar3. There are some changes to ansible and docker files which I think would be worth to port to this PR |
@michalwski here you go :) |
Thanks, it looks good to me. I'd like to wait for my colleagues using Amoc in our continuous load testing tool to see the chenges and comment if this will break existing workflows. |
Actually this PR should just have been about erlang 20 but for some reasons (probably local env problems) I couldn't handle the old relx binary. So I thought I just update to rebar3 too and spare me the bug searching.
I hope I did not break anything for esl's toolchains. Can you check?