Skip to content
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

Xmpp services #4442

Draft
wants to merge 7 commits into
base: minor_cleanups
Choose a base branch
from
Draft

Xmpp services #4442

wants to merge 7 commits into from

Conversation

NelsonVides
Copy link
Collaborator

Create a new components engine with gen_statem over ranch, as it was previously done with mongoose_c2s.

@mongoose-im

This comment was marked as outdated.

Copy link

codecov bot commented Dec 17, 2024

Codecov Report

Attention: Patch coverage is 79.42387% with 50 lines in your changes missing coverage. Please review.

Project coverage is 81.82%. Comparing base (08f53a0) to head (475ff12).

Files with missing lines Patch % Lines
src/component/mongoose_component_connection.erl 77.66% 44 Missing ⚠️
src/component/mongoose_component_ranch.erl 85.71% 2 Missing ⚠️
src/listeners/mongoose_listener.erl 71.42% 2 Missing ⚠️
src/component/ejabberd_service.erl 0.00% 1 Missing ⚠️
src/component/mongoose_component_socket.erl 88.88% 1 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                 @@
##           minor_cleanups    #4442      +/-   ##
==================================================
- Coverage           85.37%   81.82%   -3.56%     
==================================================
  Files                 550      555       +5     
  Lines               33883    34040     +157     
==================================================
- Hits                28928    27853    -1075     
- Misses               4955     6187    +1232     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@NelsonVides NelsonVides force-pushed the minor_cleanups branch 5 times, most recently from aca6ad9 to 08f53a0 Compare December 18, 2024 08:54
@mongoose-im
Copy link
Collaborator

mongoose-im commented Dec 18, 2024

elasticsearch_and_cassandra_27 / elasticsearch_and_cassandra_mnesia / 475ff12
Reports root/ big
OK: 472 / Failed: 0 / User-skipped: 49 / Auto-skipped: 0


small_tests_27 / small_tests / 475ff12
Reports root / small


small_tests_26 / small_tests / 475ff12
Reports root / small


small_tests_27_arm64 / small_tests / 475ff12
Reports root / small


ldap_mnesia_26 / ldap_mnesia / 475ff12
Reports root/ big
OK: 2352 / Failed: 0 / User-skipped: 912 / Auto-skipped: 0


ldap_mnesia_27 / ldap_mnesia / 475ff12
Reports root/ big
OK: 2352 / Failed: 0 / User-skipped: 912 / Auto-skipped: 0


dynamic_domains_mysql_redis_27 / mysql_redis / 475ff12
Reports root/ big
OK: 4725 / Failed: 0 / User-skipped: 154 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_26 / pgsql_mnesia / 475ff12
Reports root/ big
OK: 4760 / Failed: 0 / User-skipped: 119 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_27 / odbc_mssql_mnesia / 475ff12
Reports root/ big
OK: 4752 / Failed: 1 / User-skipped: 124 / Auto-skipped: 2

last_SUITE:valid_queries:last_online_user
{error,
  {test_case_failed,
    {has_stanzas_but_shouldnt,
      {client,<<"[email protected]/res1">>,
        escalus_tcp,<0.124502.0>,
        [{event_manager,<0.124501.0>},
         {server,<<"domain.example.com">>},
         {username,<<"alicE_unnamed_3479">>},
         {resource,<<"res1">>}],
        [{event_client,
           [{event_manager,<0.124501.0>},
            {server,<<"domain.example.com">>},
            {username,<<"alicE_unnamed_3479">>},
            {resource,<<"res1">>}]},
         {resource,<<"res1">>},
         {username,<<"alice_unnamed_3479">>},
         {server,<<"domain.example.com">>},
         {host,<<"localhost">>},
         {port,5222},
         {auth,{escalus_auth,auth_plain}},
         {wspath,undefined},
         {username,<<"alicE_unnamed_3479">>},
         {server,<<"domain.example.com">>},
         {host,<<"localhost">>},
         {password,<<"matygrysa">>},
         {stream_id,<<"359de27b62349b57">>}]},
      [{xmlel,<<"presence">>,
         [{<<"from">>,<<"[email protected]/res1">>},
          {<<"to">>,<<"[email protected]/res1">>}],
         []}]}}}

Report log


dynamic_domains_pgsql_mnesia_27 / pgsql_mnesia / 475ff12
Reports root/ big
OK: 4760 / Failed: 0 / User-skipped: 119 / Auto-skipped: 0


internal_mnesia_27 / internal_mnesia / 475ff12
Reports root/ big
OK: 2493 / Failed: 1 / User-skipped: 770 / Auto-skipped: 0

graphql_last_SUITE:admin_cli:admin_last_configured:admin_last:admin_count_active_users
{error,{{assertEqual,[{module,graphql_last_SUITE},
            {line,312},
            {expression,"get_ok_value ( p ( countActiveUsers ) , Res1 )"},
            {expected,2},
            {value,1}]},
    [{graphql_last_SUITE,admin_count_active_users_story,3,
               [{file,"/home/circleci/project/big_tests/tests/graphql_last_SUITE.erl"},
                {line,312}]},
     {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,1794}]},
     {test_server,run_test_case_eval1,6,
            [{file,"test_server.erl"},{line,1303}]},
     {test_server,run_test_case_eval,9,
            [{file,"test_server.erl"},{line,1235}]}]}}

Report log


pgsql_cets_27 / pgsql_cets / 475ff12
Reports root/ big
OK: 4848 / Failed: 1 / User-skipped: 188 / Auto-skipped: 0

tcp_listener_SUITE:s2s_inet_sockname_returns_error
{error,
  {{badrpc,
     {'EXIT',
       {badarg,
         [{persistent_term,get,
            [tcp_listener_helper_result],
            [{error_info,#{module => erl_erts_errors}}]}]}}},
   [{distributed_helper,rpc,
      [#{node => mongooseim@localhost},
       persistent_term,get,
       [tcp_listener_helper_result]],
      [{file,
         "/home/circleci/project/big_tests/../test/common/distributed_helper.erl"},
       {line,140}]},
    {tcp_listener_SUITE,inet_sockname_returns_error,1,
      [{file,
         "/home/circleci/project/big_tests/tests/tcp_listener_SUITE.erl"},
       {line,81}]},
    {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1794}]},
    {test_server,run_test_case_eval1,6,
      [{file,"test_server.erl"},{line,1303}]},
    {test_server,run_test_case_eval,9,
      [{file,"test_server.erl"},{line,1235}]}]}}

Report log


mysql_redis_27 / mysql_redis / 475ff12
Reports root/ big
OK: 5128 / Failed: 1 / User-skipped: 149 / Auto-skipped: 0

tcp_listener_SUITE:s2s_inet_sockname_returns_error
{error,
  {{badrpc,
     {'EXIT',
       {badarg,
         [{persistent_term,get,
            [tcp_listener_helper_result],
            [{error_info,#{module => erl_erts_errors}}]}]}}},
   [{distributed_helper,rpc,
      [#{node => mongooseim@localhost},
       persistent_term,get,
       [tcp_listener_helper_result]],
      [{file,
         "/home/circleci/project/big_tests/../test/common/distributed_helper.erl"},
       {line,140}]},
    {tcp_listener_SUITE,inet_sockname_returns_error,1,
      [{file,
         "/home/circleci/project/big_tests/tests/tcp_listener_SUITE.erl"},
       {line,81}]},
    {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1794}]},
    {test_server,run_test_case_eval1,6,
      [{file,"test_server.erl"},{line,1303}]},
    {test_server,run_test_case_eval,9,
      [{file,"test_server.erl"},{line,1235}]}]}}

Report log


pgsql_mnesia_26 / pgsql_mnesia / 475ff12
Reports root/ big
OK: 5150 / Failed: 0 / User-skipped: 128 / Auto-skipped: 0


cockroachdb_cets_27 / cockroachdb_cets / 475ff12
Reports root/ big
OK: 4858 / Failed: 1 / User-skipped: 189 / Auto-skipped: 0

pubsub_SUITE:dag+node_config:set_configuration_test
{error,
  {timeout_when_waiting_for_stanza,
    [{escalus_client,wait_for_stanza,
       [{client,<<"alice_set_configuration_test_2882@localhost/res1">>,
          escalus_tcp,<0.102244.0>,
          [{event_manager,<0.102154.0>},
           {server,<<"localhost">>},
           {username,<<"alicE_set_configuration_test_2882">>},
           {resource,<<"res1">>}],
          [{event_client,
             [{event_manager,<0.102154.0>},
            {server,<<"localhost">>},
            {username,<<"alicE_set_configuration_test_2882">>},
            {resource,<<"res1">>}]},
           {resource,<<"res1">>},
           {username,<<"alice_set_configuration_test_2882">>},
           {server,<<"localhost">>},
           {host,<<"localhost">>},
           {port,5222},
           {auth,{escalus_auth,auth_plain}},
           {wspath,undefined},
           {username,<<"alicE_set_configuration_test_2882">>},
           {server,<<"localhost">>},
           {password,<<"matygrysa">>},
           {stream_id,<<"a41530bf1225fbdf">>}]},
        5000],
       [{file,
          "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
        {line,136}]},
     {pubsub_tools,receive_response,3,
       [{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
        {line,433}]},
     {pubsub_tools,receive_and_check_response,4,
       [{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
        {line,424}]},
     {pubsub_SUITE,'-set_configuration_...

Report log


pgsql_mnesia_27 / pgsql_mnesia / 475ff12
Reports root/ big
OK: 5150 / Failed: 0 / User-skipped: 128 / Auto-skipped: 0


mssql_mnesia_27 / odbc_mssql_mnesia / 475ff12
Reports root/ big
OK: 5145 / Failed: 0 / User-skipped: 133 / Auto-skipped: 0

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