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

Mongoose Config with persistent terms #3343

Merged
merged 10 commits into from
Oct 25, 2021
Merged

Conversation

chrzaszcz
Copy link
Member

@chrzaszcz chrzaszcz commented Oct 15, 2021

The changeset is extensive as the main intention is to avoid the transitional state with both ejabberd_config and mongoose_config present.

Changes in this PR:

  • New mongoose_config module which replaces ejabberd_config and stores the configuration in persistent terms.
  • Redundant checks like is_integer for already validated config options were removed.
  • Usage of undefined was reduced as it led to some bugs in the past and it is better to:
    • either use mongoose_config:lookup_opt/1, which makes it clear if the option is set or not
    • or use mongoose_config:get_opt/1, which fails when a required option was missing.
  • Small and big tests are now using mongoose_config.
  • New functions in mongoose_helper for big tests that backup, change and restore config options.
  • Removed test for sasl_mechanisms as a global option - it is impossible to get such on option from the config file, it is always per host type.
  • Removed obsolete vcard_update module that was a leftover from a very old version.
  • Removed handlers for the config change hook that no longer exists.

Omitted from this PR:

  • Using the new config option helpers in suites with complicated setup, e.g. s2s tests which restart listeners with custom options, but without changing the listen option in the config.
  • Changes in the internal option format - every config option is moved to a persistent term without any changes.
  • Documentation update - will be done in a subsequent PR.
  • Moving cluster utilities out of mongoose_config
  • Renaming ejabberd_config.hrl to mongoose_config.hrl

@chrzaszcz chrzaszcz marked this pull request as draft October 15, 2021 14:11
@mongoose-im

This comment has been minimized.

@mongoose-im

This comment has been minimized.

@mongoose-im

This comment has been minimized.

@codecov
Copy link

codecov bot commented Oct 19, 2021

Codecov Report

Merging #3343 (397ca5f) into persistent-term-config (a3e0576) will increase coverage by 0.12%.
The diff coverage is 90.54%.

Impacted file tree graph

@@                    Coverage Diff                     @@
##           persistent-term-config    #3343      +/-   ##
==========================================================
+ Coverage                   80.68%   80.80%   +0.12%     
==========================================================
  Files                         397      397              
  Lines                       32375    32287      -88     
==========================================================
- Hits                        26121    26091      -30     
+ Misses                       6254     6196      -58     
Impacted Files Coverage Δ
src/auth/ejabberd_auth_jwt.erl 77.50% <ø> (ø)
src/config/mongoose_config_parser.erl 87.50% <ø> (ø)
src/mod_muc_log.erl 78.11% <ø> (+0.22%) ⬆️
src/mod_shared_roster_ldap.erl 62.50% <ø> (+1.33%) ⬆️
src/mod_vcard.erl 80.21% <ø> (+2.28%) ⬆️
src/auth/ejabberd_auth_anonymous.erl 55.55% <50.00%> (ø)
src/auth/ejabberd_auth_external.erl 29.00% <50.00%> (ø)
...c/global_distrib/mod_global_distrib_server_mgr.erl 77.40% <50.00%> (+2.82%) ⬆️
src/ejabberd_s2s.erl 81.50% <62.50%> (ø)
src/ejabberd_s2s_in.erl 77.02% <75.00%> (-0.10%) ⬇️
... and 52 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bed6476...397ca5f. Read the comment docs.

@mongoose-im

This comment has been minimized.

@mongoose-im

This comment has been minimized.

@mongoose-im

This comment has been minimized.

@mongoose-im

This comment has been minimized.

@mongoose-im

This comment has been minimized.

@mongoose-im

This comment has been minimized.

@mongoose-im

This comment has been minimized.

@mongoose-im

This comment has been minimized.

@mongoose-im

This comment has been minimized.

@mongoose-im

This comment has been minimized.

The config is now stored in persistent terms.

Other changes:
- Removed checks like 'is_integer' for already validated options
- Eliminated the error-prone and ambiguous default value 'undefined'
- Removed obsolete code, e.g. handlers for non-existing hooks
- Do not mock the config as it is easier to just set the values
Also: make the config backup/change/restore helpers more consistent.
This module was handling the old versions of ejabberd
@mongoose-im
Copy link
Collaborator

mongoose-im commented Oct 22, 2021

small_tests_24 / small_tests / f2e2c4a
Reports root / small


internal_mnesia_24 / internal_mnesia / f2e2c4a
Reports root/ big
OK: 1588 / Failed: 0 / User-skipped: 297 / Auto-skipped: 0


small_tests_23 / small_tests / f2e2c4a
Reports root / small


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / f2e2c4a
Reports root/ big
OK: 2700 / Failed: 1 / User-skipped: 184 / Auto-skipped: 0

service_domain_db_SUITE:db:db_keeps_syncing_after_cluster_join
{error,{test_case_failed,{[<<"example1.com">>,<<"example2.com">>,
               <<"example3.com">>],
              [<<"example1.com">>,<<"example2.com">>,
               <<"example3.com">>,<<"example4.com">>]}}}

Report log


ldap_mnesia_24 / ldap_mnesia / f2e2c4a
Reports root/ big
OK: 1485 / Failed: 0 / User-skipped: 400 / Auto-skipped: 0


ldap_mnesia_23 / ldap_mnesia / f2e2c4a
Reports root/ big
OK: 1485 / Failed: 0 / User-skipped: 400 / Auto-skipped: 0


dynamic_domains_mysql_redis_24 / mysql_redis / f2e2c4a
Reports root/ big
OK: 2684 / Failed: 0 / User-skipped: 201 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / f2e2c4a
Reports root/ big
OK: 2701 / Failed: 0 / User-skipped: 184 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / f2e2c4a
Reports root/ big
OK: 2701 / Failed: 0 / User-skipped: 184 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / f2e2c4a
Reports root/ big
OK: 3070 / Failed: 0 / User-skipped: 211 / Auto-skipped: 0


mssql_mnesia_24 / odbc_mssql_mnesia / f2e2c4a
Reports root/ big
OK: 3070 / Failed: 0 / User-skipped: 211 / Auto-skipped: 0


mysql_redis_24 / mysql_redis / f2e2c4a
Reports root/ big
OK: 3053 / Failed: 0 / User-skipped: 228 / Auto-skipped: 0


elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / f2e2c4a
Reports root/ big
OK: 1861 / Failed: 0 / User-skipped: 323 / Auto-skipped: 0


riak_mnesia_24 / riak_mnesia / f2e2c4a
Reports root/ big
OK: 1708 / Failed: 0 / User-skipped: 326 / Auto-skipped: 0


pgsql_mnesia_23 / pgsql_mnesia / f2e2c4a
Reports root/ big
OK: 3070 / Failed: 0 / User-skipped: 211 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / f2e2c4a
Reports root/ big
OK: 2701 / Failed: 0 / User-skipped: 184 / Auto-skipped: 0

@chrzaszcz chrzaszcz marked this pull request as ready for review October 22, 2021 11:05
Copy link
Collaborator

@NelsonVides NelsonVides left a comment

Choose a reason for hiding this comment

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

Just having a look at the source code, didn't check tests/big_tests
Just a few comments, otherwise generally excited to see the direction this is taking 👌🏽

-ignore_xref([config_state/0, config_states/0, all_cluster_nodes/0]).

-include("mongoose.hrl").
-include("ejabberd_config.hrl").
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why don't we make this include also a mongoose_config.hrl?

Copy link
Member Author

@chrzaszcz chrzaszcz Oct 22, 2021

Choose a reason for hiding this comment

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

I didn't do it yet because I wasn't sure whether I should remove the local_config record completely or rename the header file. I was planning to do this later. I added a line about that to the PR description.

src/config/mongoose_config.erl Show resolved Hide resolved
src/ejabberd_s2s_out.erl Show resolved Hide resolved
Copy link
Collaborator

@NelsonVides NelsonVides left a comment

Choose a reason for hiding this comment

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

Just had a look at the small tests. The amount of meck removals is amazing.
New -> https://circleci-mim-results.s3.eu-central-1.amazonaws.com/PR/3343/81744/small_tests.24.0.5/small/ct_run.mongooseim@localhost.2021-10-22_10.30.56/lib.mongooseim.logs/run.2021-10-22_10.30.56/suite.log.html
Old -> https://circleci-mim-results.s3.eu-central-1.amazonaws.com/branch/master/82436/small_tests.24.0.5/small/ct_run.mongooseim@localhost.2021-10-25_12.31.00/lib.mongooseim.logs/run.2021-10-25_12.31.00/suite.log.html
and small tests seem to be quite faster!

test/mongoose_config_SUITE.erl is I guess an in-place replacement for the gone ejabberd equivalent, but it's doing cluster tests in a very dirty way. I guess this one is not the place to change that, but we might want to note that somewhere.

Left to review, big_tests, coming soon.

Copy link
Contributor

@gustawlippa gustawlippa left a comment

Choose a reason for hiding this comment

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

Wow, this looks really nice - many places are simplified and look more sensible. I don't see any issues 👍

@mongoose-im
Copy link
Collaborator

mongoose-im commented Oct 25, 2021

small_tests_24 / small_tests / 397ca5f
Reports root / small


internal_mnesia_24 / internal_mnesia / 397ca5f
Reports root/ big
OK: 1588 / Failed: 0 / User-skipped: 297 / Auto-skipped: 0


small_tests_23 / small_tests / 397ca5f
Reports root / small


ldap_mnesia_24 / ldap_mnesia / 397ca5f
Reports root/ big
OK: 1485 / Failed: 0 / User-skipped: 400 / Auto-skipped: 0


ldap_mnesia_23 / ldap_mnesia / 397ca5f
Reports root/ big
OK: 1485 / Failed: 0 / User-skipped: 400 / Auto-skipped: 0


dynamic_domains_mysql_redis_24 / mysql_redis / 397ca5f
Reports root/ big
OK: 2709 / Failed: 1 / User-skipped: 201 / Auto-skipped: 0

rest_client_SUITE:muc:messages_can_be_paginated_in_room
{error,
  {{assertion_failed,assert,is_chat_message,
     [<<"ec8cfea0">>],
     {xmlel,<<"message">>,
       [{<<"to">>,<<"1635-174664-766219@muclight2.domain.example.com">>},
        {<<"type">>,<<"chat">>}],
       [{xmlel,<<"body">>,[],[{xmlcdata,<<"5be9913a">>}]}]},
     "<message to='1635-174664-766219@muclight2.domain.example.com' type='chat'><body>5be9913a</body></message>"},
   [{escalus_new_assert,assert_true,2,
      [{file,
         "/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
       {line,84}]},
    {rest_client_SUITE,assert_room_messages,2,
      [{file,"/home/circleci/app/big_tests/tests/rest_client_SUITE.erl"},
       {line,772}]},
    {escalus_story,story,4,
      [{file,
         "/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
       {line,72}]},
    {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
    {test_server,run_test_case_eval1,6,
      [{file,"test_server.erl"},{line,1292}]},
    {test_server,run_test_case_eval,9,
      [{file,"test_server.erl"},{line,1224}]}]}}

Report log


dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / 397ca5f
Reports root/ big
OK: 2692 / Failed: 9 / User-skipped: 184 / Auto-skipped: 0

inbox_SUITE:muclight:non_reset_marker_should_not_affect_muclight_inbox
{error,
  {timeout_when_waiting_for_stanza,
    [{escalus_client,wait_for_stanza,
       [{client,
          <<"alicE_non_reset_marker_should_not_affect_muclight_inbox_74.132497@domain.example.com/res1">>,
          escalus_tcp,<0.16465.0>,
          [{event_manager,<0.16406.0>},
           {server,<<"domain.example.com">>},
           {username,
             <<"alicE_non_reset_marker_should_not_affect_muclight_inbox_74.132497">>},
           {resource,<<"res1">>}],
          [{event_client,
             [{event_manager,<0.16406.0>},
            {server,<<"domain.example.com">>},
            {username,
              <<"alicE_non_reset_marker_should_not_affect_muclight_inbox_74.132497">>},
            {resource,<<"res1">>}]},
           {resource,<<"res1">>},
           {username,
             <<"alicE_non_reset_marker_should_not_affect_muclight_inbox_74.132497">>},
           {server,<<"domain.example.com">>},
           {host,<<"localhost">>},
           {port,5222},
           {auth,{escalus_auth,auth_plain}},
           {wspath,undefined},
           {username,
             <<"alicE_non_reset_marker_should_not_affect_muclight_inbox_74.132497">>},
           {server,<<"domain.example.com">>},
           {host,<<"localhost">>},
           {password,<<"matygrysa">>},
           {stream_id,<<"ff15ed02b9ead5c0">>}]},
        5000],
       [{file,
          "/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
        {line,136}]},
     {muc_light_he...

Report log

inbox_SUITE:muclight:groupchat_markers_all_reset_room_created
{error,
  {timeout_when_waiting_for_stanza,
    [{escalus_client,wait_for_stanza,
       [{client,
          <<"alicE_groupchat_markers_all_reset_room_created_74.154994@domain.example.com/res1">>,
          escalus_tcp,<0.16468.0>,
          [{event_manager,<0.16464.0>},
           {server,<<"domain.example.com">>},
           {username,
             <<"alicE_groupchat_markers_all_reset_room_created_74.154994">>},
           {resource,<<"res1">>}],
          [{event_client,
             [{event_manager,<0.16464.0>},
            {server,<<"domain.example.com">>},
            {username,
              <<"alicE_groupchat_markers_all_reset_room_created_74.154994">>},
            {resource,<<"res1">>}]},
           {resource,<<"res1">>},
           {username,
             <<"alicE_groupchat_markers_all_reset_room_created_74.154994">>},
           {server,<<"domain.example.com">>},
           {host,<<"localhost">>},
           {port,5222},
           {auth,{escalus_auth,auth_plain}},
           {wspath,undefined},
           {username,
             <<"alicE_groupchat_markers_all_reset_room_created_74.154994">>},
           {server,<<"domain.example.com">>},
           {host,<<"localhost">>},
           {password,<<"matygrysa">>},
           {stream_id,<<"9407fe1bb771d4b8">>}]},
        5000],
       [{file,
          "/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
        {line,136}]},
     {muc_helper,'-foreach_recipient/2-fun-0-',2,
       [{file...

Report log

inbox_SUITE:muclight:leave_and_remove_conversation
{error,
  {timeout_when_waiting_for_stanza,
    [{escalus_client,wait_for_stanza,
       [{client,
          <<"alicE_leave_and_remove_conversation_74.153784@domain.example.com/res1">>,
          escalus_tcp,<0.16467.0>,
          [{event_manager,<0.16431.0>},
           {server,<<"domain.example.com">>},
           {username,
             <<"alicE_leave_and_remove_conversation_74.153784">>},
           {resource,<<"res1">>}],
          [{event_client,
             [{event_manager,<0.16431.0>},
            {server,<<"domain.example.com">>},
            {username,
              <<"alicE_leave_and_remove_conversation_74.153784">>},
            {resource,<<"res1">>}]},
           {resource,<<"res1">>},
           {username,
             <<"alicE_leave_and_remove_conversation_74.153784">>},
           {server,<<"domain.example.com">>},
           {host,<<"localhost">>},
           {port,5222},
           {auth,{escalus_auth,auth_plain}},
           {wspath,undefined},
           {username,
             <<"alicE_leave_and_remove_conversation_74.153784">>},
           {server,<<"domain.example.com">>},
           {host,<<"localhost">>},
           {password,<<"matygrysa">>},
           {stream_id,<<"1d99ea6049330ec0">>}]},
        5000],
       [{file,
          "/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
        {line,136}]},
     {muc_light_helper,given_muc_light_room,3,
       [{file,"/home/circleci/app/big_tests/tests/muc_light_helper.erl"...

Report log

inbox_SUITE:muclight:groupchat_markers_one_reset_room_created
{error,
  {timeout_when_waiting_for_stanza,
    [{escalus_client,wait_for_stanza,
       [{client,
          <<"alicE_groupchat_markers_one_reset_room_created_74.153584@domain.example.com/res1">>,
          escalus_tcp,<0.16470.0>,
          [{event_manager,<0.16443.0>},
           {server,<<"domain.example.com">>},
           {username,
             <<"alicE_groupchat_markers_one_reset_room_created_74.153584">>},
           {resource,<<"res1">>}],
          [{event_client,
             [{event_manager,<0.16443.0>},
            {server,<<"domain.example.com">>},
            {username,
              <<"alicE_groupchat_markers_one_reset_room_created_74.153584">>},
            {resource,<<"res1">>}]},
           {resource,<<"res1">>},
           {username,
             <<"alicE_groupchat_markers_one_reset_room_created_74.153584">>},
           {server,<<"domain.example.com">>},
           {host,<<"localhost">>},
           {port,5222},
           {auth,{escalus_auth,auth_plain}},
           {wspath,undefined},
           {username,
             <<"alicE_groupchat_markers_one_reset_room_created_74.153584">>},
           {server,<<"domain.example.com">>},
           {host,<<"localhost">>},
           {password,<<"matygrysa">>},
           {stream_id,<<"4299273c5e3a9167">>}]},
        5000],
       [{file,
          "/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
        {line,136}]},
     {muc_helper,'-foreach_recipient/2-fun-0-',2,
       [{file...

Report log

inbox_SUITE:muclight:simple_groupchat_stored_in_all_inbox
{error,
  {timeout_when_waiting_for_stanza,
    [{escalus_client,wait_for_stanza,
       [{client,
          <<"alicE_simple_groupchat_stored_in_all_inbox_74.149013@domain.example.com/res1">>,
          escalus_tcp,<0.16473.0>,
          [{event_manager,<0.16417.0>},
           {server,<<"domain.example.com">>},
           {username,
             <<"alicE_simple_groupchat_stored_in_all_inbox_74.149013">>},
           {resource,<<"res1">>}],
          [{event_client,
             [{event_manager,<0.16417.0>},
            {server,<<"domain.example.com">>},
            {username,
              <<"alicE_simple_groupchat_stored_in_all_inbox_74.149013">>},
            {resource,<<"res1">>}]},
           {resource,<<"res1">>},
           {username,
             <<"alicE_simple_groupchat_stored_in_all_inbox_74.149013">>},
           {server,<<"domain.example.com">>},
           {host,<<"localhost">>},
           {port,5222},
           {auth,{escalus_auth,auth_plain}},
           {wspath,undefined},
           {username,
             <<"alicE_simple_groupchat_stored_in_all_inbox_74.149013">>},
           {server,<<"domain.example.com">>},
           {host,<<"localhost">>},
           {password,<<"matygrysa">>},
           {stream_id,<<"890a322088e515e1">>}]},
        5000],
       [{file,
          "/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
        {line,136}]},
     {muc_light_helper,given_muc_light_room,3,
       [{file,"/home/circleci/app/bi...

Report log

inbox_SUITE:muclight:advanced_groupchat_stored_in_all_inbox
{error,
  {timeout_when_waiting_for_stanza,
    [{escalus_client,wait_for_stanza,
       [{client,
          <<"alicE_advanced_groupchat_stored_in_all_inbox_74.153801@domain.example.com/res1">>,
          escalus_tcp,<0.16471.0>,
          [{event_manager,<0.16452.0>},
           {server,<<"domain.example.com">>},
           {username,
             <<"alicE_advanced_groupchat_stored_in_all_inbox_74.153801">>},
           {resource,<<"res1">>}],
          [{event_client,
             [{event_manager,<0.16452.0>},
            {server,<<"domain.example.com">>},
            {username,
              <<"alicE_advanced_groupchat_stored_in_all_inbox_74.153801">>},
            {resource,<<"res1">>}]},
           {resource,<<"res1">>},
           {username,
             <<"alicE_advanced_groupchat_stored_in_all_inbox_74.153801">>},
           {server,<<"domain.example.com">>},
           {host,<<"localhost">>},
           {port,5222},
           {auth,{escalus_auth,auth_plain}},
           {wspath,undefined},
           {username,
             <<"alicE_advanced_groupchat_stored_in_all_inbox_74.153801">>},
           {server,<<"domain.example.com">>},
           {host,<<"localhost">>},
           {password,<<"matygrysa">>},
           {stream_id,<<"900cafffb2495535">>}]},
        5000],
       [{file,
          "/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
        {line,136}]},
     {muc_light_helper,given_muc_light_room,3,
       [{file,"/home/circl...

Report log

inbox_SUITE:muclight:groupchat_markers_one_reset
{error,
  {timeout_when_waiting_for_stanza,
    [{escalus_client,wait_for_stanza,
       [{client,
          <<"alicE_groupchat_markers_one_reset_74.154153@domain.example.com/res1">>,
          escalus_tcp,<0.16469.0>,
          [{event_manager,<0.16459.0>},
           {server,<<"domain.example.com">>},
           {username,
             <<"alicE_groupchat_markers_one_reset_74.154153">>},
           {resource,<<"res1">>}],
          [{event_client,
             [{event_manager,<0.16459.0>},
            {server,<<"domain.example.com">>},
            {username,
              <<"alicE_groupchat_markers_one_reset_74.154153">>},
            {resource,<<"res1">>}]},
           {resource,<<"res1">>},
           {username,
             <<"alicE_groupchat_markers_one_reset_74.154153">>},
           {server,<<"domain.example.com">>},
           {host,<<"localhost">>},
           {port,5222},
           {auth,{escalus_auth,auth_plain}},
           {wspath,undefined},
           {username,
             <<"alicE_groupchat_markers_one_reset_74.154153">>},
           {server,<<"domain.example.com">>},
           {host,<<"localhost">>},
           {password,<<"matygrysa">>},
           {stream_id,<<"2a516d08d89267ca">>}]},
        5000],
       [{file,
          "/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
        {line,136}]},
     {muc_light_helper,given_muc_light_room,3,
       [{file,"/home/circleci/app/big_tests/tests/muc_light_helper.erl"},
       ...

Report log

inbox_SUITE:muclight:create_groupchat
{error,
  {timeout_when_waiting_for_stanza,
    [{escalus_client,wait_for_stanza,
       [{client,
          <<"bOb_create_groupchat_74.151838@domain.example.com/res1">>,
          escalus_tcp,<0.16482.0>,
          [{event_manager,<0.16438.0>},
           {server,<<"domain.example.com">>},
           {username,<<"bOb_create_groupchat_74.151838">>},
           {resource,<<"res1">>}],
          [{event_client,
             [{event_manager,<0.16438.0>},
            {server,<<"domain.example.com">>},
            {username,<<"bOb_create_groupchat_74.151838">>},
            {resource,<<"res1">>}]},
           {resource,<<"res1">>},
           {username,<<"bOb_create_groupchat_74.151838">>},
           {server,<<"domain.example.com">>},
           {host,<<"localhost">>},
           {port,5222},
           {auth,{escalus_auth,auth_plain}},
           {wspath,undefined},
           {username,<<"bOb_create_groupchat_74.151838">>},
           {server,<<"domain.example.com">>},
           {host,<<"localhost">>},
           {password,<<"makrolika">>},
           {stream_id,<<"771f6fd22d121745">>}]},
        5000],
       [{file,
          "/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
        {line,136}]},
     {muc_helper,'-foreach_recipient/2-fun-0-',2,
       [{file,"/home/circleci/app/big_tests/tests/muc_helper.erl"},
        {line,45}]},
     {lists,foreach,2,[{file,"lists.erl"},{line,1342}]},
     {muc_light_helper,verify_aff_bcast,3,
       [{fi...

Report log

inbox_SUITE:muclight:groupchat_reset_stanza_resets_inbox
{error,
  {timeout_when_waiting_for_stanza,
    [{escalus_client,wait_for_stanza,
       [{client,
          <<"alicE_groupchat_reset_stanza_resets_inbox_74.149410@domain.example.com/res1">>,
          escalus_tcp,<0.16466.0>,
          [{event_manager,<0.16422.0>},
           {server,<<"domain.example.com">>},
           {username,
             <<"alicE_groupchat_reset_stanza_resets_inbox_74.149410">>},
           {resource,<<"res1">>}],
          [{event_client,
             [{event_manager,<0.16422.0>},
            {server,<<"domain.example.com">>},
            {username,
              <<"alicE_groupchat_reset_stanza_resets_inbox_74.149410">>},
            {resource,<<"res1">>}]},
           {resource,<<"res1">>},
           {username,
             <<"alicE_groupchat_reset_stanza_resets_inbox_74.149410">>},
           {server,<<"domain.example.com">>},
           {host,<<"localhost">>},
           {port,5222},
           {auth,{escalus_auth,auth_plain}},
           {wspath,undefined},
           {username,
             <<"alicE_groupchat_reset_stanza_resets_inbox_74.149410">>},
           {server,<<"domain.example.com">>},
           {host,<<"localhost">>},
           {password,<<"matygrysa">>},
           {stream_id,<<"5d9a92171e1bdd9c">>}]},
        5000],
       [{file,
          "/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
        {line,136}]},
     {muc_helper,'-foreach_recipient/2-fun-0-',2,
       [{file,"/home/circleci/app/big_...

Report log

inbox_SUITE:muclight:end_per_group
{error,
  {{badrpc,
     {'EXIT',
       {timeout,
         {gen_server,call,
           ['wpool_pool-mongoose_wpool$rdbms$global$default-3',
            {sql_cmd,
              {sql_execute,muc_light_config_delete_all,[]},
              -576460457487},
            60000]}}}},
   [{distributed_helper,rpc,
      [#{node => mongooseim@localhost,timeout => 15000},
       mod_muc_light,force_clear_from_ct,[]],
      [{file,"/home/circleci/app/big_tests/tests/distributed_helper.erl"},
       {line,117}]},
    {inbox_SUITE,end_per_group,2,
      [{file,"/home/circleci/app/big_tests/tests/inbox_SUITE.erl"},
       {line,240}]},
    {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
    {test_server,run_test_case_eval1,6,
      [{file,"test_server.erl"},{line,1380}]},
    {test_server,run_test_case_eval,9,
      [{file,"test_server.erl"},{line,1224}]}]}}

Report log


dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / 397ca5f
Reports root/ big
OK: 2708 / Failed: 1 / User-skipped: 184 / Auto-skipped: 0

sm_SUITE:parallel_manual_ack_freq_1:resume_session_state_stop_c2s
{error,{thrown,{timeout,msg}}}

Report log


elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / 397ca5f
Reports root/ big
OK: 1861 / Failed: 0 / User-skipped: 323 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / 397ca5f
Reports root/ big
OK: 3070 / Failed: 0 / User-skipped: 211 / Auto-skipped: 0


pgsql_mnesia_23 / pgsql_mnesia / 397ca5f
Reports root/ big
OK: 3070 / Failed: 0 / User-skipped: 211 / Auto-skipped: 0


mysql_redis_24 / mysql_redis / 397ca5f
Reports root/ big
OK: 3053 / Failed: 0 / User-skipped: 228 / Auto-skipped: 0


mssql_mnesia_24 / odbc_mssql_mnesia / 397ca5f
Reports root/ big
OK: 3080 / Failed: 2 / User-skipped: 211 / Auto-skipped: 0

pep_SUITE:pep_tests:delayed_receive_with_sm
{error,{{badmatch,[]},
    [{pep_SUITE,'-delayed_receive_with_sm/1-fun-0-',3,
          [{file,"/home/circleci/app/big_tests/tests/pep_SUITE.erl"},
           {line,295}]},
     {escalus_story,story,4,
            [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
             {line,72}]},
     {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
     {test_server,run_test_case_eval1,6,
            [{file,"test_server.erl"},{line,1292}]},
     {test_server,run_test_case_eval,9,
            [{file,"test_server.erl"},{line,1224}]}]}}

Report log

pep_SUITE:pep_tests:h_ok_after_notify_test
{error,{{assertion_failed,assert_many,false,[is_roster_set],[],[]},
    [{escalus_new_assert,assert_true,2,
               [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
                {line,84}]},
     {escalus_story,'-make_all_clients_friends/1-fun-0-',2,
            [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
             {line,117}]},
     {escalus_utils,'-each_with_index/3-fun-0-',3,
            [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_utils.erl"},
             {line,87}]},
     {lists,foldl,3,[{file,"lists.erl"},{line,1267}]},
     {escalus_utils,'-each_with_index/3-fun-0-',3,
            [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_utils.erl"},
             {line,87}]},
     {lists,foldl,3,[{file,"lists.erl"},{line,1267}]},
     {escalus_utils,distinct_pairs,2,
            [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_utils.erl"},
             {line,60}]},
     {escalus_story,make_all_clients_friends,1,
            [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
             {line,106}]}]}}

Report log


riak_mnesia_24 / riak_mnesia / 397ca5f
Reports root/ big
OK: 1708 / Failed: 0 / User-skipped: 326 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / 397ca5f
Reports root/ big
OK: 2709 / Failed: 4 / User-skipped: 184 / Auto-skipped: 0

carboncopy_SUITE:all:unavailable_resources_dont_get_carbons
{error,{{assertion_failed,assert_many,false,[is_presence,is_presence],[],[]},
    [{escalus_new_assert,assert_true,2,
               [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
                {line,84}]},
     {escalus_story,story,4,
            [{file,"/home/circleci/app/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
             {line,72}]},
     {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
     {test_server,run_test_case_eval1,6,
            [{file,"test_server.erl"},{line,1292}]},
     {test_server,run_test_case_eval,9,
            [{file,"test_server.erl"},{line,1224}]}]}}

Report log

carboncopy_SUITE:all:prop_forward_received_chat_messages
{error,
  {{assertEqual,
     [{module,carboncopy_SUITE},
      {line,278},
      {expression,
        "proper : quickcheck ( proper : conjunction ( [ { PropName , Property } ] ) , [ verbose , long_result , { numtests , 3 } ] )"},
      {expected,true},
      {value,
        [[{forward_received,
          [{4,<<"Now, fair Hippolyta, our nuptial hour">>}]}]]}]},
   [{carboncopy_SUITE,run_prop,2,
      [{file,"/home/circleci/app/big_tests/tests/carboncopy_SUITE.erl"},
       {line,278}]},
    {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
    {test_server,run_test_case_eval1,6,
      [{file,"test_server.erl"},{line,1292}]},
    {test_server,run_test_case_eval,9,
      [{file,"test_server.erl"},{line,1224}]}]}}

Report log

carboncopy_SUITE:all:prop_normal_routing_to_bare_jid
{error,
  {{assertEqual,
     [{module,carboncopy_SUITE},
      {line,278},
      {expression,
        "proper : quickcheck ( proper : conjunction ( [ { PropName , Property } ] ) , [ verbose , long_result , { numtests , 3 } ] )"},
      {expected,true},
      {value,
        [[{normal_routing,
          [{5,<<"Now, fair Hippolyta, our nuptial hour">>}]}]]}]},
   [{carboncopy_SUITE,run_prop,2,
      [{file,"/home/circleci/app/big_tests/tests/carboncopy_SUITE.erl"},
       {line,278}]},
    {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
    {test_server,run_test_case_eval1,6,
      [{file,"test_server.erl"},{line,1292}]},
    {test_server,run_test_case_eval,9,
      [{file,"test_server.erl"},{line,1224}]}]}}

Report log

carboncopy_SUITE:all:prop_forward_sent_chat_messages
{error,
  {{assertEqual,
     [{module,carboncopy_SUITE},
      {line,278},
      {expression,
        "proper : quickcheck ( proper : conjunction ( [ { PropName , Property } ] ) , [ verbose , long_result , { numtests , 3 } ] )"},
      {expected,true},
      {value,
        [[{forward_sent,
          [{5,
            <<"This old moon wanes! she lingers my desires">>}]}]]}]},
   [{carboncopy_SUITE,run_prop,2,
      [{file,"/home/circleci/app/big_tests/tests/carboncopy_SUITE.erl"},
       {line,278}]},
    {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
    {test_server,run_test_case_eval1,6,
      [{file,"test_server.erl"},{line,1292}]},
    {test_server,run_test_case_eval,9,
      [{file,"test_server.erl"},{line,1224}]}]}}

Report log

Copy link
Collaborator

@NelsonVides NelsonVides left a comment

Choose a reason for hiding this comment

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

Brilliant 🎉 🎉 🎉


is_vcard_ldap() ->
ldap == rpc(mim(), gen_mod, get_module_opt,
[ct:get_config({hosts, mim, domain}), mod_vcard, backend, mnesia]).
Copy link
Collaborator

Choose a reason for hiding this comment

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

domain and not host_type? Also, can we use here the helpers from domain_helper instead?

Copy link
Member Author

@chrzaszcz chrzaszcz Oct 26, 2021

Choose a reason for hiding this comment

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

I just moved it as it was from vcard_update... and I missed the domain.

@vkatsuba vkatsuba merged commit dc25c80 into persistent-term-config Oct 25, 2021
@vkatsuba vkatsuba deleted the mongoose_config branch October 25, 2021 22:11
@Premwoik Premwoik added this to the 5.1.0 milestone May 25, 2022
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.

6 participants