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

Remove domain/catch hook errors #3775

Merged
merged 7 commits into from
Sep 28, 2022
Merged

Conversation

NelsonVides
Copy link
Collaborator

No description provided.

@mongoose-im

This comment was marked as outdated.

@codecov
Copy link

codecov bot commented Sep 23, 2022

Codecov Report

Base: 82.81% // Head: 82.81% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (f875416) compared to base (471d300).
Patch coverage: 74.19% of modified lines in pull request are covered.

Additional details and impacted files
@@                    Coverage Diff                    @@
##           remove_domain/retries    #3775      +/-   ##
=========================================================
- Coverage                  82.81%   82.81%   -0.01%     
=========================================================
  Files                        531      531              
  Lines                      34095    34109      +14     
=========================================================
+ Hits                       28236    28246      +10     
- Misses                      5859     5863       +4     
Impacted Files Coverage Δ
src/mam/mod_mam_rdbms_arch.erl 48.54% <0.00%> (-0.97%) ⬇️
src/mongoose_hooks.erl 95.75% <ø> (ø)
src/domain/mongoose_domain_api.erl 95.65% <75.00%> (-1.28%) ⬇️
src/auth/ejabberd_auth.erl 84.29% <100.00%> (+0.16%) ⬆️
src/inbox/mod_inbox.erl 87.06% <100.00%> (+0.13%) ⬆️
src/mam/mod_mam_muc_rdbms_arch.erl 95.19% <100.00%> (+0.09%) ⬆️
src/muc_light/mod_muc_light.erl 85.71% <100.00%> (+0.10%) ⬆️
src/ejabberd.erl 45.00% <0.00%> (-15.00%) ⬇️
src/elasticsearch/mongoose_elasticsearch.erl 76.92% <0.00%> (-7.70%) ⬇️
src/mam/mod_mam_elasticsearch_arch.erl 86.60% <0.00%> (-1.79%) ⬇️
... and 5 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@NelsonVides NelsonVides force-pushed the remove_domain/catch_hook_errors branch 2 times, most recently from 9ce54b3 to 5c606f7 Compare September 24, 2022 11:45
@mongoose-im

This comment was marked as outdated.

@NelsonVides NelsonVides force-pushed the remove_domain/catch_hook_errors branch 2 times, most recently from 3c1a56f to 6768524 Compare September 24, 2022 12:26
@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 Sep 26, 2022

small_tests_24 / small_tests / f875416
Reports root / small


small_tests_25 / small_tests / f875416
Reports root / small


ldap_mnesia_24 / ldap_mnesia / f875416
Reports root/ big
OK: 1992 / Failed: 0 / User-skipped: 743 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / f875416
Reports root/ big
OK: 3827 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


ldap_mnesia_25 / ldap_mnesia / f875416
Reports root/ big
OK: 1992 / Failed: 0 / User-skipped: 743 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / f875416
Reports root/ big
OK: 3827 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


dynamic_domains_mysql_redis_25 / mysql_redis / f875416
Reports root/ big
OK: 3801 / Failed: 0 / User-skipped: 114 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / f875416
Reports root/ big
OK: 3827 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


internal_mnesia_25 / internal_mnesia / f875416
Reports root/ big
OK: 2113 / Failed: 0 / User-skipped: 622 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / f875416
Reports root/ big
OK: 4201 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / f875416
Reports root/ big
OK: 2453 / Failed: 0 / User-skipped: 617 / Auto-skipped: 0


pgsql_mnesia_25 / pgsql_mnesia / f875416
Reports root/ big
OK: 4201 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


mysql_redis_25 / mysql_redis / f875416
Reports root/ big
OK: 4187 / Failed: 0 / User-skipped: 111 / Auto-skipped: 0


riak_mnesia_24 / riak_mnesia / f875416
Reports root/ big
OK: 2292 / Failed: 0 / User-skipped: 610 / Auto-skipped: 0


mssql_mnesia_25 / odbc_mssql_mnesia / f875416
Reports root/ big
OK: 4201 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0

Base automatically changed from remove_domain/retries to master September 27, 2022 05:55
@NelsonVides NelsonVides marked this pull request as ready for review September 27, 2022 07:16
Copy link
Member

@chrzaszcz chrzaszcz 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 in general, I added minor comments.

@@ -251,3 +258,15 @@ unregister_subdomain(HostType, SubdomainPattern) ->
[mongoose_subdomain_core:subdomain_info()].
get_all_subdomains_for_domain(Domain) ->
mongoose_subdomain_core:get_all_subdomains_for_domain(Domain).

-spec remove_domain_wrapper(remove_domain_acc(), fun(() -> remove_domain_acc()), module()) ->
Copy link
Member

Choose a reason for hiding this comment

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

Maybe it's only me, but I think the name suggests that it removes a domain wrapper. No need to fix.

mongoose_rdbms:execute_successfully(HostType, mam_remove_domain_users, [Domain])
end),
Acc.
F = fun() ->
Copy link
Member

Choose a reason for hiding this comment

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

It is really unexpected that this function is (and most likely was already) untouched by tests. Could you investigate? I thought we had tests for domain removal for MAM.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No idea, I just ran locally with coverage and it is green in the report generated here, I don't know why it wasn't for codecov 😕

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

codecov says that for master is also red: https://app.codecov.io/gh/esl/MongooseIM/blob/master/src/mam/mod_mam_rdbms_arch.erl so well, I'm sure we have a test for it, in

mam_pm_removal(Config) ->
, so it seems like something's off with codecov 😅

Copy link
Member

Choose a reason for hiding this comment

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

Ok, let's leave it for now

@chrzaszcz chrzaszcz merged commit faecc8d into master Sep 28, 2022
@chrzaszcz chrzaszcz deleted the remove_domain/catch_hook_errors branch September 28, 2022 06:10
@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.

None yet

3 participants