esl / MongooseIM

MongooseIM is Erlang Solutions' robust, scalable and efficient XMPP server, aimed at large installations. Specifically designed for enterprise purposes, it is fault-tolerant and can utilise the resources of multiple clustered machines.
Other
1.64k stars 421 forks source link

Support for Erlang 26 #4121

Closed jacekwegr closed 8 months ago

jacekwegr commented 8 months ago

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 and almalinux_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.

mongoose-im commented 8 months ago

elasticsearch_and_cassandra_26 / elasticsearch_and_cassandra_mnesia / d9ac1970bfb0ba6bb2a465b4b3c7fa8725e1a296 Reports root/ big OK: 369 / Failed: 0 / User-skipped: 38 / Auto-skipped: 0


small_tests_25 / small_tests / d9ac1970bfb0ba6bb2a465b4b3c7fa8725e1a296 Reports root / small


small_tests_26_arm64 / small_tests / d9ac1970bfb0ba6bb2a465b4b3c7fa8725e1a296 Reports root / small


small_tests_26 / small_tests / d9ac1970bfb0ba6bb2a465b4b3c7fa8725e1a296 Reports root / small


ldap_mnesia_25 / ldap_mnesia / d9ac1970bfb0ba6bb2a465b4b3c7fa8725e1a296 Reports root/ big OK: 2276 / Failed: 0 / User-skipped: 833 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / d9ac1970bfb0ba6bb2a465b4b3c7fa8725e1a296 Reports root/ big OK: 4237 / Failed: 0 / User-skipped: 84 / Auto-skipped: 0


ldap_mnesia_26 / ldap_mnesia / d9ac1970bfb0ba6bb2a465b4b3c7fa8725e1a296 Reports root/ big OK: 2276 / Failed: 0 / User-skipped: 833 / Auto-skipped: 0


dynamic_domains_mysql_redis_26 / mysql_redis / d9ac1970bfb0ba6bb2a465b4b3c7fa8725e1a296 Reports root/ big OK: 4205 / Failed: 0 / User-skipped: 116 / Auto-skipped: 0


internal_mnesia_26 / internal_mnesia / d9ac1970bfb0ba6bb2a465b4b3c7fa8725e1a296 Reports root/ big OK: 2422 / Failed: 0 / User-skipped: 687 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_26 / pgsql_mnesia / d9ac1970bfb0ba6bb2a465b4b3c7fa8725e1a296 Reports root/ big OK: 4237 / Failed: 0 / User-skipped: 84 / Auto-skipped: 0


pgsql_cets_26 / pgsql_cets / d9ac1970bfb0ba6bb2a465b4b3c7fa8725e1a296 Reports root/ big OK: 4596 / Failed: 0 / User-skipped: 121 / Auto-skipped: 0


mysql_redis_26 / mysql_redis / d9ac1970bfb0ba6bb2a465b4b3c7fa8725e1a296 Reports root/ big OK: 4605 / Failed: 1 / User-skipped: 111 / Auto-skipped: 0

carboncopy_SUITE:one2one:dropped_client_doesnt_create_duplicate_carbons ```erlang {error, {{badmatch, [{xmlel,<<"message">>, [{<<"from">>, <<"alice_dropped_client_doesnt_create_duplicate_carbons_578@localhost">>}, {<<"to">>, <<"alice_dropped_client_doesnt_create_duplicate_carbons_578@localhost/res2">>}, {<<"xmlns">>,<<"jabber:client">>}, {<<"type">>,<<"chat">>}], [{xmlel,<<"sent">>, [{<<"xmlns">>,<<"urn:xmpp:carbons:2">>}], [{xmlel,<<"forwarded">>, [{<<"xmlns">>,<<"urn:xmpp:forward:0">>}], [{xmlel,<<"message">>, [{<<"from">>, <<"alice_dropped_client_doesnt_create_duplicate_carbons_578@localhost/res1">>}, {<<"type">>,<<"chat">>}, {<<"to">>, <<"bob_dropped_client_doesnt_create_duplicate_carbons_578@localhost/res1">>}, {<<"xmlns">>,<<"jabber:client">>}], [{xmlel,<<"body">>,[], [{xmlcdata, <<"And pious action">>}]}]}]}]}]}]}, [{carboncopy_SUITE, '-dropped_client_doesnt_create_duplicate_carbons/1-fun-0-',4, [{file, "/home/circleci/project/big_tests/tests/carboncopy_SUITE.erl"}, {line,189}]}, {escalus_story,story,4, [{file, "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"}, {line,72}]}, {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1782}]}, {test_server,run_test_case_eval1,6, [{file,"test_serv... ``` [Report log](https://circleci-mim-results.s3.eu-central-1.amazonaws.com/PR/4121/194047/mysql_redis.26.0.2-amd64/big/ct_run.test%406b7ce6095c17.2023-10-05_09.49.14/big_tests.tests.carboncopy_SUITE.logs/run.2023-10-05_09.49.56/carboncopy_suite.dropped_client_doesnt_create_duplicate_carbons.12036.html)

dynamic_domains_mssql_mnesia_26 / odbc_mssql_mnesia / d9ac1970bfb0ba6bb2a465b4b3c7fa8725e1a296 Reports root/ big OK: 4234 / Failed: 0 / User-skipped: 87 / Auto-skipped: 0


pgsql_mnesia_26 / pgsql_mnesia / d9ac1970bfb0ba6bb2a465b4b3c7fa8725e1a296 Reports root/ big OK: 4626 / Failed: 0 / User-skipped: 91 / Auto-skipped: 0


pgsql_mnesia_25 / pgsql_mnesia / d9ac1970bfb0ba6bb2a465b4b3c7fa8725e1a296 Reports root/ big OK: 4626 / Failed: 0 / User-skipped: 91 / Auto-skipped: 0


mssql_mnesia_26 / odbc_mssql_mnesia / d9ac1970bfb0ba6bb2a465b4b3c7fa8725e1a296 Reports root/ big OK: 4623 / Failed: 0 / User-skipped: 94 / Auto-skipped: 0


mysql_redis_26 / mysql_redis / d9ac1970bfb0ba6bb2a465b4b3c7fa8725e1a296 Reports root/ big OK: 4606 / Failed: 0 / User-skipped: 111 / Auto-skipped: 0

mongoose-im commented 8 months ago

elasticsearch_and_cassandra_26 / elasticsearch_and_cassandra_mnesia / a19d783d475750d054c10433cc1fb14915084efb Reports root/ big OK: 369 / Failed: 0 / User-skipped: 38 / Auto-skipped: 0


small_tests_25 / small_tests / a19d783d475750d054c10433cc1fb14915084efb Reports root / small


small_tests_26 / small_tests / a19d783d475750d054c10433cc1fb14915084efb Reports root / small


small_tests_26_arm64 / small_tests / a19d783d475750d054c10433cc1fb14915084efb Reports root / small


ldap_mnesia_25 / ldap_mnesia / a19d783d475750d054c10433cc1fb14915084efb Reports root/ big OK: 2276 / Failed: 0 / User-skipped: 833 / Auto-skipped: 0


ldap_mnesia_26 / ldap_mnesia / a19d783d475750d054c10433cc1fb14915084efb Reports root/ big OK: 2276 / Failed: 0 / User-skipped: 833 / Auto-skipped: 0


dynamic_domains_mysql_redis_26 / mysql_redis / a19d783d475750d054c10433cc1fb14915084efb Reports root/ big OK: 4205 / Failed: 0 / User-skipped: 116 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_26 / odbc_mssql_mnesia / a19d783d475750d054c10433cc1fb14915084efb Reports root/ big OK: 4234 / Failed: 0 / User-skipped: 87 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / a19d783d475750d054c10433cc1fb14915084efb Reports root/ big OK: 4237 / Failed: 0 / User-skipped: 84 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_26 / pgsql_mnesia / a19d783d475750d054c10433cc1fb14915084efb Reports root/ big OK: 4237 / Failed: 0 / User-skipped: 84 / Auto-skipped: 0


pgsql_mnesia_25 / pgsql_mnesia / a19d783d475750d054c10433cc1fb14915084efb Reports root/ big OK: 4626 / Failed: 0 / User-skipped: 91 / Auto-skipped: 0


internal_mnesia_26 / internal_mnesia / a19d783d475750d054c10433cc1fb14915084efb Reports root/ big OK: 2422 / Failed: 0 / User-skipped: 687 / Auto-skipped: 0


pgsql_cets_26 / pgsql_cets / a19d783d475750d054c10433cc1fb14915084efb Reports root/ big OK: 4596 / Failed: 0 / User-skipped: 121 / Auto-skipped: 0


mssql_mnesia_26 / odbc_mssql_mnesia / a19d783d475750d054c10433cc1fb14915084efb Reports root/ big OK: 4623 / Failed: 0 / User-skipped: 94 / Auto-skipped: 0


pgsql_mnesia_26 / pgsql_mnesia / a19d783d475750d054c10433cc1fb14915084efb Reports root/ big OK: 4626 / Failed: 0 / User-skipped: 91 / Auto-skipped: 0


mysql_redis_26 / mysql_redis / a19d783d475750d054c10433cc1fb14915084efb Reports root/ big OK: 4606 / Failed: 0 / User-skipped: 111 / Auto-skipped: 0


small_tests_26_arm64 / small_tests / a19d783d475750d054c10433cc1fb14915084efb Reports root / small