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

Use dynamic_modules in big tests #3481

Merged
merged 9 commits into from
Dec 29, 2021
Merged

Use dynamic_modules in big tests #3481

merged 9 commits into from
Dec 29, 2021

Conversation

chrzaszcz
Copy link
Member

@chrzaszcz chrzaszcz commented Dec 28, 2021

Do not use gen_mod directly to start and stop modules in tests.
Use the dynamic_modules API instead.

These changes make it possible to modify the module management logic without any changes in the test suites - only the dynamic_domains helper will be modified.

@codecov
Copy link

codecov bot commented Dec 28, 2021

Codecov Report

Merging #3481 (8c490cd) into master (65c8565) will increase coverage by 1.61%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3481      +/-   ##
==========================================
+ Coverage   79.25%   80.86%   +1.61%     
==========================================
  Files         415      415              
  Lines       32326    32326              
==========================================
+ Hits        25619    26141     +522     
+ Misses       6707     6185     -522     
Impacted Files Coverage Δ
src/mod_roster_mnesia.erl 72.72% <0.00%> (-21.22%) ⬇️
src/rdbms/mongoose_rdbms.erl 61.75% <0.00%> (-1.20%) ⬇️
src/global_distrib/mod_global_distrib_receiver.erl 80.00% <0.00%> (-1.12%) ⬇️
src/mod_muc_log.erl 78.11% <0.00%> (ø)
src/mod_muc_room.erl 77.26% <0.00%> (+0.17%) ⬆️
src/mod_roster.erl 78.75% <0.00%> (+0.23%) ⬆️
src/pubsub/mod_pubsub_db_mnesia.erl 92.85% <0.00%> (+0.42%) ⬆️
src/domain/mongoose_domain_loader.erl 90.17% <0.00%> (+0.89%) ⬆️
src/mam/mod_mam_utils.erl 86.49% <0.00%> (+0.96%) ⬆️
src/logger/mongoose_log_filter.erl 79.45% <0.00%> (+1.36%) ⬆️
... and 14 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 65c8565...8c490cd. Read the comment docs.

@mongoose-im

This comment has been minimized.

@mongoose-im

This comment has been minimized.

Base automatically changed from print-dots to master December 28, 2021 09:39
@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.

Also: modernise RPC calls to allow setting timeout.

Note: the timeout used in save_modules will be applied again
      in restore_modules.
This argument neither needed nor supported anymore.
Reason: simplicity and consistency.
The other version wasn't called 'save_modules_for_host_type'.
@mongoose-im
Copy link
Collaborator

mongoose-im commented Dec 29, 2021

small_tests_24 / small_tests / 8c490cd
Reports root / small


small_tests_23 / small_tests / 8c490cd
Reports root / small


dynamic_domains_mysql_redis_24 / mysql_redis / 8c490cd
Reports root/ big
OK: 2667 / Failed: 0 / User-skipped: 247 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / 8c490cd
Reports root/ big
OK: 2684 / Failed: 0 / User-skipped: 230 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / 8c490cd
Reports root/ big
OK: 2684 / Failed: 0 / User-skipped: 230 / Auto-skipped: 0


ldap_mnesia_23 / ldap_mnesia / 8c490cd
Reports root/ big
OK: 1501 / Failed: 0 / User-skipped: 388 / Auto-skipped: 0


internal_mnesia_24 / internal_mnesia / 8c490cd
Reports root/ big
OK: 1542 / Failed: 0 / User-skipped: 347 / Auto-skipped: 0


ldap_mnesia_24 / ldap_mnesia / 8c490cd
Reports root/ big
OK: 1501 / Failed: 0 / User-skipped: 388 / Auto-skipped: 0


elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / 8c490cd
Reports root/ big
OK: 1835 / Failed: 0 / User-skipped: 359 / Auto-skipped: 0


mssql_mnesia_24 / odbc_mssql_mnesia / 8c490cd
Reports root/ big
OK: 3071 / Failed: 0 / User-skipped: 239 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / 8c490cd
Reports root/ big
OK: 3071 / Failed: 0 / User-skipped: 239 / Auto-skipped: 0


pgsql_mnesia_23 / pgsql_mnesia / 8c490cd
Reports root/ big
OK: 3071 / Failed: 0 / User-skipped: 239 / Auto-skipped: 0


mysql_redis_24 / mysql_redis / 8c490cd
Reports root/ big
OK: 3066 / Failed: 0 / User-skipped: 244 / Auto-skipped: 0


riak_mnesia_24 / riak_mnesia / 8c490cd
Reports root/ big
OK: 1681 / Failed: 0 / User-skipped: 360 / Auto-skipped: 0

@chrzaszcz chrzaszcz marked this pull request as ready for review December 29, 2021 12:39
@arcusfelis arcusfelis merged commit a7af9d8 into master Dec 29, 2021
@arcusfelis arcusfelis deleted the use-dynamic-modules branch December 29, 2021 13:23
@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.

4 participants