-
Notifications
You must be signed in to change notification settings - Fork 429
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
Refactored disco_local_features hook to a gen_hook format #3758
Conversation
small_tests_24 / small_tests / 3d55ec5 small_tests_25 / small_tests / 3d55ec5 dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 3d55ec5 ldap_mnesia_24 / ldap_mnesia / 3d55ec5 dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 3d55ec5 ldap_mnesia_25 / ldap_mnesia / 3d55ec5 dynamic_domains_mysql_redis_25 / mysql_redis / 3d55ec5 dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 3d55ec5 internal_mnesia_25 / internal_mnesia / 3d55ec5 pgsql_mnesia_24 / pgsql_mnesia / 3d55ec5 elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / 3d55ec5 pgsql_mnesia_25 / pgsql_mnesia / 3d55ec5 mysql_redis_25 / mysql_redis / 3d55ec5 riak_mnesia_24 / riak_mnesia / 3d55ec5 mssql_mnesia_25 / odbc_mssql_mnesia / 3d55ec5 pep_SUITE:pep_tests:unsubscribe_after_presence_unsubscription{error,
{{badmatch,
[{xmlel,<<"message">>,
[{<<"from">>,
<<"alice_unsubscribe_after_presence_unsubscription_2388@localhost">>},
{<<"to">>,
<<"bob_unsubscribe_after_presence_unsubscription_2388@localhost/res1">>},
{<<"type">>,<<"headline">>}],
[{xmlel,<<"event">>,
[{<<"xmlns">>,
<<"http://jabber.org/protocol/pubsub#event">>}],
[{xmlel,<<"items">>,
[{<<"node">>,<<"PtsED89XiO+TZxl0nkreFg==">>}],
[{xmlel,<<"item">>,
[{<<"id">>,<<"salmon">>}],
[{xmlel,<<"entry">>,
[{<<"xmlns">>,
<<"http://www.w3.org/2005/Atom">>}],
[]}]}]}]},
{xmlel,<<"headers">>,
[{<<"xmlns">>,<<"http://jabber.org/protocol/shim">>}],
[]}]}]},
[{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}]}]}} |
Codecov ReportBase: 82.72% // Head: 82.72% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #3758 +/- ##
==========================================
- Coverage 82.72% 82.72% -0.01%
==========================================
Files 529 529
Lines 33970 34006 +36
==========================================
+ Hits 28102 28130 +28
- Misses 5868 5876 +8
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the renaming of all hooks to legacy_hooks
, make it clear who's leaving here 😛
Only one comment on xref and then this is ready, great job! 👌🏽
Thanks for the PR, it looks fine. I have one note for the future changes, taking into account that some of the hooks are quite generic and used in a lot of modules, you may want to have simultaneous support of the new e.g. the
And it would work for both types (new and legacy) of interfaces, And it would work for both types (new and legacy) of interfaces, allowing changing the corresponding modules in the multiple PRs. And so, organize rework on a per-module basis rather than per-hook. Once all the modules are converted, we can make a finalizing PR which removes |
riak_mnesia_24 / riak_mnesia / ecd29ce small_tests_24 / small_tests / ecd29ce small_tests_25 / small_tests / ecd29ce dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / ecd29ce ldap_mnesia_24 / ldap_mnesia / ecd29ce dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / ecd29ce dynamic_domains_mysql_redis_25 / mysql_redis / ecd29ce ldap_mnesia_25 / ldap_mnesia / ecd29ce dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / ecd29ce pgsql_mnesia_24 / pgsql_mnesia / ecd29ce internal_mnesia_25 / internal_mnesia / ecd29ce elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / ecd29ce pgsql_mnesia_25 / pgsql_mnesia / ecd29ce mysql_redis_25 / mysql_redis / ecd29ce mssql_mnesia_25 / odbc_mssql_mnesia / ecd29ce riak_mnesia_24 / riak_mnesia / ecd29ce sm_SUITE:parallel_unacknowledged_message_hook:unacknowledged_message_hook_bounce{error,
{{assertion_failed,assert,is_chat_message,
[<<"msg-1">>],
{xmlel,<<"message">>,
[{<<"from">>,
<<"bob_unacknowledged_message_hook_bounce_2004@localhost/escalus-default-resource">>},
{<<"to">>,
<<"alice_unacknowledged_message_hook_bounce_2010@localhost">>},
{<<"xml:lang">>,<<"en">>},
{<<"type">>,<<"chat">>}],
[{xmlel,<<"body">>,[],[{xmlcdata,<<"msg-2">>}]},
{xmlel,<<"delay">>,
[{<<"xmlns">>,<<"urn:xmpp:delay">>},
{<<"stamp">>,<<"2022-09-15T08:35:50.634008Z">>},
{<<"from">>,<<"localhost">>}],
[{xmlcdata,<<"SM Storage">>}]}]},
"<message from='bob_unacknowledged_message_hook_bounce_2004@localhost/escalus-default-resource' to='alice_unacknowledged_message_hook_bounce_2010@localhost' xml:lang='en' type='chat'><body>msg-2</body><delay xmlns='urn:xmpp:delay' stamp='2022-09-15T08:35:50.634008Z' from='localhost'>SM Storage</delay></message>"},
[{escalus_new_assert,assert_true,2,
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
{line,84}]},
{sm_SUITE,unacknowledged_message_hook_common,2,
[{file,"/home/circleci/project/big_tests/tests/sm_SUITE.erl"},
{line,857}]},
{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,"tes... riak_mnesia_24 / riak_mnesia / ecd29ce |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👌🏽
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
This PR changes all handlers for
disco_local_features
hook togen_hook
format.