Skip to content

Feature/otp 27 upgrade #72

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

Open
wants to merge 37 commits into
base: main
Choose a base branch
from
Open

Feature/otp 27 upgrade #72

wants to merge 37 commits into from

Conversation

yashGojek
Copy link

Proposed Changes

  • Updated OTP version to 27.0
  • Fixed unable to stop application using bin/vernemq stop command( Ref. - Vanilla repo mr
  • Fixed unable to connect client to vernemq (Ref. - Vanilla repo mr

Types of Changes

What types of changes does your code introduce to this project?
Put an x in the boxes that apply

  • [] Bugfix (non-breaking change which fixes issue #XXXX)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation (correction or otherwise)
  • Cosmetics (whitespace, styles...)
  • DevOps (Build scripts, pipelines...)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating
the PR. If you're unsure about any of them, don't hesitate to ask on the
mailing list. We're here to help! This is simply a reminder of what we are
going to look for before merging your code.

  • I have read the CODE_OF_CONDUCT.md document
  • All tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if needed)
  • Any dependent changes have been merged and published in related repositories
  • I have updated changelog (At the bottom of the release version)
  • I have squashed all my commits into one before merging

Further Comments

If this is a relatively large or complex change, kick off the discussion by
explaining why you chose the solution you did and what alternatives you
considered, etc.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this file?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this file?

@@ -20,21 +20,10 @@

-module(vmq_cluster_test_utils).

-export([

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we restore the previous formatting to easily get the actual diff?

@@ -328,4 +329,4 @@ start_listener(Config) ->
ssl_path(File) ->
Path = filename:dirname(
proplists:get_value(source, ?MODULE:module_info(compile))),
filename:join([Path, "ssl", File]).
filename:join([Path, "ssl", File]).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add the EOF line.

@@ -39,4 +39,4 @@ simple_healthcheck_test(_) ->
application:ensure_all_started(inets),
{ok, {_Status, _Headers, Body}} = httpc:request("http://localhost:8888/health"),
JsonResponse = jsx:decode(list_to_binary(Body), [return_maps, {labels, binary}]),
<<"OK">> = maps:get(<<"status">>, JsonResponse).
<<"OK">> = maps:get(<<"status">>, JsonResponse).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add the EOF line.

@@ -235,4 +235,4 @@ histogram_systree_test(_Cfg, Suffix, Val) ->
Publish = packet:gen_publish(PublishTopic, 0, integer_to_binary(Val), []),
ok = packet:expect_packet(SubSocket, "publish", Publish),
gen_tcp:send(SubSocket, packet:gen_disconnect()),
gen_tcp:close(SubSocket).
gen_tcp:close(SubSocket).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add the EOF line.

@@ -136,4 +136,4 @@ seed_rand(Config) ->

rand_bytes(N) ->
L = [ rand:uniform(256)-1 || _ <- lists:seq(1,N)],
list_to_binary(L).
list_to_binary(L).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add the EOF line.

@@ -547,4 +548,4 @@ exp_nothing(Timeout) ->
ok
end.



Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add the EOF line.


RUN apk --no-cache --update --available upgrade && \
apk add --no-cache ncurses-libs openssl libstdc++ jq curl bash snappy-dev && \
apk add --no-cache ncurses openssl libstdc++ jq curl bash snappy libgcc libc6-compat && \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason for updating ncurses-libs and snappy-dev?

(echo -e "\nContents of retry.spec\n" &&
cat $FULLPATH &&
echo -e "\nRetry suites:" &&
echo $(pcregrep -o2 -o3 --om-separator="/" -M "^{(cases|groups),\"(.+)\",[^\w]*(\w+),(.|\n)*?\.$" $FULLPATH | uniq | paste -s -d, -) &&
make db-reset &&
./rebar3 ct --suite=$(pcregrep -o2 -o3 --om-separator="/" -M "^{(cases|groups),\"(.+)\",[^\w]*(\w+),(.|\n)*?\.$" $FULLPATH | uniq | paste -s -d, -))
./rebar3 ct --suite=$(pcregrep -o2 -o3 --om-separator="/" -M "^{(cases|groups),\"(.+)\",[^\w]*(\w+),(.|\n)*?\.$" $FULLPATH | uniq | paste -s -d, -))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add the EOF line.

@VivekPipaliya23
Copy link

Can you include vanilla Vernemq PR or reference alongside the commit link where you made the specified fix/change in this PR description?

- run: make rel
# - run: make db-setup
- run: pwd
- run: sh ./run-tests-with-retry.sh .

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add the EOF line.

@@ -38,16 +36,17 @@
]}.

{deps, [
{recon, "2.5.1"},
{lager, "3.8.0"},

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we removing lager?

@@ -121,7 +119,7 @@
{mkdir, "data/msgstore"},
{mkdir, "log/sasl"},

{copy, "_build/default/bin/psql_migration", "bin/psql_migration"},
% {copy, "_build/default/bin/psql_migration", "bin/psql_migration"},

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is not required, then remove this from the comments as well.

{plumtree, {git, "https://github.com/vernemq/plumtree.git", {branch, "master"}}}
{plumtree,
{git, "https://github.com/vernemq/plumtree.git",
{ref, "e91404882281ea66f40de8bac671a50f44da069b"}}}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we using a specific commit rather than master?
I can see that the commit id used is the same as the master.

@@ -762,7 +762,7 @@
[
{default, "3,4,131"},
{datatype, string},
{commented, "3,4"}
{commented, "3,4,5"}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we adding support for the MQTT 5 protocol?

@@ -637,7 +637,7 @@
%% - listener.wss.default = 127.0.0.1:880
{mapping, "listener.tcp.$name", "vmq_server.listeners", [
{default, { "{{mqtt_default_ip}}", {{mqtt_default_port}} }},
{datatype, ip},
{datatype, [ip]},

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we require this change for the OTP update?

@@ -32,7 +32,7 @@
expect_packet(Socket, Name, Expected) ->
expect_packet(gen_tcp, Socket, Name, Expected).
expect_packet(Transport, Socket, Name, Expected) ->
expect_packet(Transport, Socket, Name, Expected, 5000).
expect_packet(Transport, Socket, Name, Expected, 15000).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this required?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants