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

Rename MAM modules #3684

Merged
merged 5 commits into from
Jun 20, 2022
Merged

Rename MAM modules #3684

merged 5 commits into from
Jun 20, 2022

Conversation

chrzaszcz
Copy link
Member

@chrzaszcz chrzaszcz commented Jun 14, 2022

The goal is to make MAM module naming more intuitive.

  • mod_mam is renamed to mod_mam_pm, because it is a PM-specific module, just as mod_mam_muc is a MUC-specific one.
  • mod_mam_meta is renamed to mod_mam, because no other modules have this unexpected suffix, and it is more intuitive when the main module is just named after the functionality.

GitHub does not recognize the renaming because types were left in mod_mam (they affect PM and MUC), but you can look at the individual commits, and see that the changes were quite mechanical - the diff is very straightforward for the first two commits.

There are no functional changes in this PR.

The mod_mam_* backends are not renamed to mod_mam_pm_* in this PR - if needed, we can do it in a separate task.

@mongoose-im

This comment was marked as outdated.

@mongoose-im

This comment was marked as outdated.

@codecov
Copy link

codecov bot commented Jun 14, 2022

Codecov Report

Merging #3684 (70796b8) into master (cbd9928) will increase coverage by 0.01%.
The diff coverage is 90.90%.

@@            Coverage Diff             @@
##           master    #3684      +/-   ##
==========================================
+ Coverage   81.11%   81.12%   +0.01%     
==========================================
  Files         434      434              
  Lines       31884    31884              
==========================================
+ Hits        25863    25867       +4     
+ Misses       6021     6017       -4     
Impacted Files Coverage Δ
src/config/mongoose_config_spec.erl 100.00% <ø> (ø)
src/mam/mod_mam_cassandra_arch.erl 83.49% <ø> (ø)
src/mam/mod_mam_muc.erl 75.23% <ø> (ø)
src/mam/mod_mam_params.erl 100.00% <ø> (ø)
src/mam/mod_mam_rdbms_arch.erl 49.50% <0.00%> (ø)
src/mam/mod_mam_rdbms_arch_async.erl 89.13% <ø> (ø)
src/mam/mod_mam_utils.erl 86.60% <ø> (ø)
src/metrics/mongoose_metrics_mam_hooks.erl 87.87% <ø> (ø)
src/mam/mod_mam_pm.erl 89.11% <89.11%> (ø)
src/mam/mod_mam.erl 97.40% <97.29%> (+8.28%) ⬆️
... and 15 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 cbd9928...70796b8. Read the comment docs.

@chrzaszcz chrzaszcz changed the title Rename mod_mam to mod_mam_pm Rename MAM modules Jun 15, 2022
@mongoose-im

This comment was marked as outdated.

@mongoose-im

This comment was marked as outdated.

@mongoose-im

This comment was marked as outdated.

@mongoose-im

This comment was marked as outdated.

@mongoose-im

This comment was marked as outdated.

@mongoose-im

This comment was marked as outdated.

@mongoose-im
Copy link
Collaborator

mongoose-im commented Jun 15, 2022

small_tests_24 / small_tests / 0b8923a
Reports root / small


small_tests_25 / small_tests / 0b8923a
Reports root / small


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 0b8923a
Reports root/ big
OK: 2825 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 0b8923a
Reports root/ big
OK: 2825 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


dynamic_domains_mysql_redis_25 / mysql_redis / 0b8923a
Reports root/ big
OK: 2808 / Failed: 0 / User-skipped: 105 / Auto-skipped: 0


ldap_mnesia_24 / ldap_mnesia / 0b8923a
Reports root/ big
OK: 1508 / Failed: 0 / User-skipped: 401 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 0b8923a
Reports root/ big
OK: 2825 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


ldap_mnesia_25 / ldap_mnesia / 0b8923a
Reports root/ big
OK: 1508 / Failed: 0 / User-skipped: 401 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / 0b8923a
Reports root/ big
OK: 3199 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


internal_mnesia_25 / internal_mnesia / 0b8923a
Reports root/ big
OK: 1593 / Failed: 0 / User-skipped: 316 / Auto-skipped: 0


elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / 0b8923a
Reports root/ big
OK: 1876 / Failed: 0 / User-skipped: 324 / Auto-skipped: 0


pgsql_mnesia_25 / pgsql_mnesia / 0b8923a
Reports root/ big
OK: 3199 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


mysql_redis_25 / mysql_redis / 0b8923a
Reports root/ big
OK: 3194 / Failed: 0 / User-skipped: 102 / Auto-skipped: 0


riak_mnesia_24 / riak_mnesia / 0b8923a
Reports root/ big
OK: 1731 / Failed: 0 / User-skipped: 323 / Auto-skipped: 0


mssql_mnesia_25 / odbc_mssql_mnesia / 0b8923a
Reports root/ big
OK: 3199 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0

@mongoose-im
Copy link
Collaborator

mongoose-im commented Jun 15, 2022

small_tests_24 / small_tests / e389d71
Reports root / small


small_tests_25 / small_tests / e389d71
Reports root / small


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / e389d71
Reports root/ big
OK: 2825 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


dynamic_domains_mysql_redis_25 / mysql_redis / e389d71
Reports root/ big
OK: 2808 / Failed: 0 / User-skipped: 105 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / e389d71
Reports root/ big
OK: 2825 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


ldap_mnesia_24 / ldap_mnesia / e389d71
Reports root/ big
OK: 1508 / Failed: 0 / User-skipped: 401 / Auto-skipped: 0


ldap_mnesia_25 / ldap_mnesia / e389d71
Reports root/ big
OK: 1508 / Failed: 0 / User-skipped: 401 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / e389d71
Reports root/ big
OK: 3199 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


internal_mnesia_25 / internal_mnesia / e389d71
Reports root/ big
OK: 1593 / Failed: 0 / User-skipped: 316 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / e389d71
Reports root/ big
OK: 2791 / Failed: 1 / User-skipped: 88 / Auto-skipped: 46

muc_SUITE:hibernation:hibernated_room_can_be_queried_for_archive
{error,{{assertion_failed,assert,is_groupchat_message,
              [<<"Restorable message">>],
              undefined,"undefined"},
    [{escalus_new_assert,assert_true,2,
               [{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
                {line,84}]},
     {muc_SUITE,wait_for_mam_result,3,
          [{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
           {line,4383}]},
     {muc_SUITE,'-hibernated_room_can_be_queried_for_archive/1-fun-0-',3,
          [{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
           {line,4124}]},
     {escalus_story,story,4,
            [{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
             {line,72}]},
     {muc_SUITE,hibernated_room_can_be_queried_for_archive,1,
          [{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
           {line,4120}]},
     {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1782}]},
     {test_server,run_test_case_eval1,6,
            [{file,"test_server.erl"},{line,1291}]},
     {test_server,run_test_case_eval,9,
            [{file,"test_server.erl"},{line,1223}]}]}}

Report log

rest_SUITE:roster:end_per_group
{error,
  {{badrpc,
     {'EXIT',
       {timeout,
         {gen_server,call,
           ['wpool_pool-mongoose_wpool$rdbms$global$default-3',
            {sql_cmd,
              {sql_execute,auth_delete_user,
                [<<"domain.example.com">>,<<"alice">>]},
              -576460110083},
            60000]}}}},
   [{escalus_rpc,call_with_cookie_match,
      [mongooseim@localhost,ejabberd_admin,unregister,
       [<<"alicE">>,<<"domain.example.com">>],
       30000,ejabberd],
      [{file,
         "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_rpc.erl"},
       {line,34}]},
    {lists,foreach_1,2,[{file,"lists.erl"},{line,1442}]},
    {escalus_ejabberd,delete_users,2,
      [{file,
         "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_ejabberd.erl"},
       {line,216}]},
    {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1782}]},
    {test_server,run_test_case_eval1,6,
      [{file,"test_server.erl"},{line,1379}]},
    {test_server,run_test_case_eval,9,
      [{file,"test_server.erl"},{line,1223}]}]}}

Report log

rest_client_SUITE:init_per_suite
{'EXIT',{{badrpc,timeout},
     [{distributed_helper,rpc,
                [#{node => mongooseim@localhost},
                 mongoose_modules,replace_modules,
                 [<<"test type">>,[],
                #{mod_muc_light =>
                    #{all_can_configure => false,
                    all_can_invite => false,
                    backend => mnesia,blocking => true,
                    config_schema =>
                      [{<<"roomname">>,<<"Untitled">>,
                        roomname,binary},
                       {<<"subject">>,<<>>,subject,
                        binary}],
                    equal_occupants => false,
                    host => {prefix,<<"muclight.">>},
                    legacy_mode => false,
                    max_occupants => infinity,
                    rooms_in_rosters => true,
                    rooms_per_page => 10,
                    rooms_per_user => infinity}}]],
                [{file,"/home/circleci/project/big_tests/tests/distributed_helper.erl"},
                 {line,117}]},
      {rest_client_SUITE,init_modules,1,
               [{file,"/home/circleci/project/big_tests/tests/rest_client_SUITE.erl"},
                {line,136}]},
      {rest_client_SUITE,init_per_suite,1,
               [{file,"/home/circleci/project/big_tests/tests/rest_client_SUITE.erl"},
                {line,123}]},
      {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1782}]},
      {test_server,run_test_case_eval1,6,
             [{file,...

Report log


mysql_redis_25 / mysql_redis / e389d71
Reports root/ big
OK: 3205 / Failed: 1 / User-skipped: 102 / Auto-skipped: 0

pep_SUITE:pep_tests:unsubscribe_after_presence_unsubscription
{error,{{badmatch,[{xmlel,<<"presence">>,
              [{<<"from">>,
              <<"alice_unsubscribe_after_presence_unsubscription_1895@localhost/res1">>},
               {<<"to">>,
              <<"bob_unsubscribe_after_presence_unsubscription_1895@localhost/res1">>},
               {<<"type">>,<<"unavailable">>}],
              []}]},
    [{pep_SUITE,'-unsubscribe_after_presence_unsubscription/1-fun-0-',2,
          [{file,"/home/circleci/project/big_tests/tests/pep_SUITE.erl"},
           {line,384}]},
     {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_server.erl"},{line,1291}]},
     {test_server,run_test_case_eval,9,
            [{file,"test_server.erl"},{line,1223}]}]}}

Report log


elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / e389d71
Reports root/ big
OK: 1876 / Failed: 0 / User-skipped: 324 / Auto-skipped: 0


pgsql_mnesia_25 / pgsql_mnesia / e389d71
Reports root/ big
OK: 3199 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


riak_mnesia_24 / riak_mnesia / e389d71
Reports root/ big
OK: 1731 / Failed: 0 / User-skipped: 323 / Auto-skipped: 0


mssql_mnesia_25 / odbc_mssql_mnesia / e389d71
Reports root/ big
OK: 3218 / Failed: 2 / User-skipped: 98 / Auto-skipped: 0

muc_SUITE:hibernation:hibernated_room_can_be_queried_for_archive
{error,{{assertion_failed,assert,is_groupchat_message,
              [<<"Restorable message">>],
              undefined,"undefined"},
    [{escalus_new_assert,assert_true,2,
               [{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
                {line,84}]},
     {muc_SUITE,wait_for_mam_result,3,
          [{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
           {line,4383}]},
     {muc_SUITE,'-hibernated_room_can_be_queried_for_archive/1-fun-0-',3,
          [{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
           {line,4124}]},
     {escalus_story,story,4,
            [{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
             {line,72}]},
     {muc_SUITE,hibernated_room_can_be_queried_for_archive,1,
          [{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
           {line,4120}]},
     {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1782}]},
     {test_server,run_test_case_eval1,6,
            [{file,"test_server.erl"},{line,1291}]},
     {test_server,run_test_case_eval,9,
            [{file,"test_server.erl"},{line,1223}]}]}}

Report log

pubsub_SUITE:dag+node_config:send_last_published_item_test
{error,{{badmatch,false},
    [{pubsub_tools,check_response,2,
             [{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
            {line,491}]},
     {pubsub_tools,receive_response,3,
             [{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
            {line,481}]},
     {pubsub_tools,receive_subscribe_response,3,
             [{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
            {line,334}]},
     {pubsub_SUITE,'-send_last_published_item_test/1-fun-0-',2,
             [{file,"/home/circleci/project/big_tests/tests/pubsub_SUITE.erl"},
            {line,937}]},
     {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_server.erl"},{line,1291}]},
     {test_server,run_test_case_eval,9,
            [{file,"test_server.erl"},{line,1223}]}]}}

Report log

@mongoose-im
Copy link
Collaborator

mongoose-im commented Jun 15, 2022

small_tests_24 / small_tests / 70796b8
Reports root / small


small_tests_25 / small_tests / 70796b8
Reports root / small


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 70796b8
Reports root/ big
OK: 2825 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 70796b8
Reports root/ big
OK: 2825 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


ldap_mnesia_24 / ldap_mnesia / 70796b8
Reports root/ big
OK: 1508 / Failed: 0 / User-skipped: 401 / Auto-skipped: 0


dynamic_domains_mysql_redis_25 / mysql_redis / 70796b8
Reports root/ big
OK: 2808 / Failed: 0 / User-skipped: 105 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 70796b8
Reports root/ big
OK: 2825 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


ldap_mnesia_25 / ldap_mnesia / 70796b8
Reports root/ big
OK: 1508 / Failed: 0 / User-skipped: 401 / Auto-skipped: 0


internal_mnesia_25 / internal_mnesia / 70796b8
Reports root/ big
OK: 1593 / Failed: 0 / User-skipped: 316 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / 70796b8
Reports root/ big
OK: 3199 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / 70796b8
Reports root/ big
OK: 1876 / Failed: 0 / User-skipped: 324 / Auto-skipped: 0


pgsql_mnesia_25 / pgsql_mnesia / 70796b8
Reports root/ big
OK: 3199 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


riak_mnesia_24 / riak_mnesia / 70796b8
Reports root/ big
OK: 1731 / Failed: 0 / User-skipped: 323 / Auto-skipped: 0


mysql_redis_25 / mysql_redis / 70796b8
Reports root/ big
OK: 3194 / Failed: 0 / User-skipped: 102 / Auto-skipped: 0


mssql_mnesia_25 / odbc_mssql_mnesia / 70796b8
Reports root/ big
OK: 3199 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0

@chrzaszcz chrzaszcz marked this pull request as ready for review June 15, 2022 14:58
Copy link
Contributor

@Premwoik Premwoik left a comment

Choose a reason for hiding this comment

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

Looks good to me :)

@Premwoik Premwoik merged commit c213d44 into master Jun 20, 2022
@Premwoik Premwoik deleted the mod_mam_pm branch June 20, 2022 10:50
@chrzaszcz chrzaszcz added this to the 6.0.0 milestone Dec 12, 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.

3 participants