-
Notifications
You must be signed in to change notification settings - Fork 428
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
Support for Erlang 26 #4121
Support for Erlang 26 #4121
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #4121 +/- ##
==========================================
- Coverage 83.92% 83.90% -0.02%
==========================================
Files 552 552
Lines 33630 33633 +3
==========================================
- Hits 28225 28221 -4
- Misses 5405 5412 +7
☔ View full report in Codecov by Sentry. |
This comment was marked as outdated.
This comment was marked as outdated.
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.
Looking very good! Tomorrow I'll run tests locally from this branch to check and continue helping from there, thanks for the effort 😄
@@ -145,7 +146,8 @@ | |||
{transport, escalus_ws}, | |||
{ssl, true}, | |||
{port, 5285}, | |||
{wspath, <<"/ws-xmpp">>}]}, | |||
{wspath, <<"/ws-xmpp">>}, | |||
{ssl_opts, [{verify, verify_none}]}]}, |
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.
Very smart idea 👌🏽
This comment was marked as outdated.
This comment was marked as outdated.
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.
added comments about path_helper
This comment was marked as outdated.
This comment was marked as outdated.
Co-authored-by: Nelson Vides <[email protected]>
ca020d9
to
c724087
Compare
This comment was marked as outdated.
This comment was marked as outdated.
ciphers_available_in_os() -> | ||
CiphersStr = os:cmd("openssl ciphers 'ALL:eNULL'"), | ||
[string:strip(C, both, $\n) || C <- string:tokens(CiphersStr, ":")]. | ||
|
||
ciphers_working_with_ssl_clients(Config) -> | ||
Port = c2s_port(Config), | ||
Path = rpc(get_node(Port), os, getenv, ["PWD"]), |
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.
All right, nice! 👌🏽
This comment was marked as outdated.
This comment was marked as outdated.
a298fa7
to
9f1d4cd
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
28d83ac
to
9f1d4cd
Compare
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.
Looks good ❤️ So much effort put into this one. I left one question.
test/mongooseim_metrics_SUITE.erl
Outdated
queued_messages_increase(_C) -> | ||
Fun = fun(Value) -> | ||
case Value of | ||
[{fsm, 5}, {regular, 5}, {total, 10}] -> true; | ||
[{fsm, 5}, {regular, 6}, {total, 11}] -> true; | ||
_ -> false | ||
end | ||
end, | ||
async_helper:wait_until( | ||
fun() -> | ||
{ok, L} = mongoose_metrics:get_metric_value(global, processQueueLengths), | ||
lists:sort(L) | ||
end, | ||
[{fsm, 5}, {regular, 5}, {total, 10}] | ||
). | ||
end, Fun). |
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.
Were you able to investigate why the return value was non-deterministic?
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.
No, I forgot about it, but I should probably look into that. Thanks for pointing that out!
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.
Thanks 🙂 I'd be better if we found the cause and fix it in the module/test setup instead of assertion.
@@ -65,7 +65,7 @@ add_deps(HostType, Modules) -> | |||
%% @end | |||
-spec resolve_deps(mongooseim:host_type(), module_map() | module_list()) -> module_map(). | |||
resolve_deps(HostType, Modules) when is_map(Modules) -> | |||
resolve_deps(HostType, maps:to_list(Modules)); | |||
resolve_deps(HostType, lists:sort(maps:to_list(Modules))); |
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.
WOW, that was it 🤯
This comment was marked as outdated.
This comment was marked as outdated.
6f6d763
to
d87a11f
Compare
This comment was marked as outdated.
This comment was marked as outdated.
d87a11f
to
b0d9879
Compare
This comment was marked as outdated.
This comment was marked as outdated.
b0d9879
to
446b0b6
Compare
This comment was marked as outdated.
This comment was marked as outdated.
446b0b6
to
eb0f722
Compare
This comment was marked as outdated.
This comment was marked as outdated.
eb0f722
to
45fdee8
Compare
This comment was marked as outdated.
This comment was marked as outdated.
45fdee8
to
d9ac197
Compare
This comment was marked as outdated.
This comment was marked as outdated.
d9ac197
to
a19d783
Compare
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.
LGTM 👍
elasticsearch_and_cassandra_26 / elasticsearch_and_cassandra_mnesia / a19d783 small_tests_25 / small_tests / a19d783 small_tests_26 / small_tests / a19d783 small_tests_26_arm64 / small_tests / a19d783 ldap_mnesia_25 / ldap_mnesia / a19d783 ldap_mnesia_26 / ldap_mnesia / a19d783 dynamic_domains_mysql_redis_26 / mysql_redis / a19d783 dynamic_domains_mssql_mnesia_26 / odbc_mssql_mnesia / a19d783 dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / a19d783 dynamic_domains_pgsql_mnesia_26 / pgsql_mnesia / a19d783 pgsql_mnesia_25 / pgsql_mnesia / a19d783 internal_mnesia_26 / internal_mnesia / a19d783 pgsql_cets_26 / pgsql_cets / a19d783 mssql_mnesia_26 / odbc_mssql_mnesia / a19d783 pgsql_mnesia_26 / pgsql_mnesia / a19d783 mysql_redis_26 / mysql_redis / a19d783 small_tests_26_arm64 / small_tests / a19d783 |
This PR updates the some parts of the code to work with the latest Erlang version.
Most of the adjustments are connected to this modification, but there are also a few small tweaks in tests and the source code.
Jobs
rockylinux_8
andalmalinux_8
on CircleCI continue to utilize OTP24 as there are no updates available for these platforms.OTP version 26.0.2 is used instead of 26.1 because the
gun
library has a very long compilation time (exceeding 10 minutes) on the latter version.