-
Notifications
You must be signed in to change notification settings - Fork 428
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
Test instrumentation for dropped MAM messages #4253
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feature/instrument #4253 +/- ##
======================================================
- Coverage 84.40% 84.29% -0.12%
======================================================
Files 556 556
Lines 33695 33703 +8
======================================================
- Hits 28441 28410 -31
- Misses 5254 5293 +39 ☔ View full report in Codecov by Sentry. |
This comment was marked as outdated.
This comment was marked as outdated.
578ad1e
to
338546f
Compare
This comment was marked as outdated.
This comment was marked as outdated.
338546f
to
7b2de84
Compare
This comment was marked as outdated.
This comment was marked as outdated.
7b2de84
to
0a46514
Compare
This comment was marked as outdated.
This comment was marked as outdated.
0a46514
to
b72bd47
Compare
elasticsearch_and_cassandra_26 / elasticsearch_and_cassandra_mnesia / b72bd47 small_tests_25 / small_tests / b72bd47 small_tests_26 / small_tests / b72bd47 small_tests_26_arm64 / small_tests / b72bd47 ldap_mnesia_25 / ldap_mnesia / b72bd47 dynamic_domains_pgsql_mnesia_26 / pgsql_mnesia / b72bd47 ldap_mnesia_26 / ldap_mnesia / b72bd47 dynamic_domains_mysql_redis_26 / mysql_redis / b72bd47 dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / b72bd47 dynamic_domains_mssql_mnesia_26 / odbc_mssql_mnesia / b72bd47 graphql_muc_light_SUITE:domain_admin:domain_admin_muc_light:admin_create_room_with_unprepped_id{error,
{{badmatch,null},
[{graphql_muc_light_SUITE,admin_create_room_with_unprepped_id,1,
[{file,
"/home/circleci/project/big_tests/tests/graphql_muc_light_SUITE.erl"},
{line,1155}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1793}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1302}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1234}]}]}} pgsql_cets_26 / pgsql_cets / b72bd47 internal_mnesia_26 / internal_mnesia / b72bd47 pgsql_mnesia_26 / pgsql_mnesia / b72bd47 pgsql_mnesia_25 / pgsql_mnesia / b72bd47 mysql_redis_26 / mysql_redis / b72bd47 mssql_mnesia_26 / odbc_mssql_mnesia / b72bd47 small_tests_25 / small_tests / b72bd47 dynamic_domains_mssql_mnesia_26 / odbc_mssql_mnesia / b72bd47 graphql_muc_light_SUITE:admin_cli:admin_muc_light:admin_create_room_with_unprepped_id{error,
{#{what => invalid_response_code,expected_type => ok,
response_code => {exit_status,1}},
[{graphql_helper,assert_response_code,2,
[{file,"/home/circleci/project/big_tests/tests/graphql_helper.erl"},
{line,256}]},
{graphql_helper,get_ok_value,2,
[{file,"/home/circleci/project/big_tests/tests/graphql_helper.erl"},
{line,239}]},
{graphql_muc_light_SUITE,admin_create_room_with_unprepped_id,1,
[{file,
"/home/circleci/project/big_tests/tests/graphql_muc_light_SUITE.erl"},
{line,1156}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1793}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1302}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1234}]}]}} graphql_muc_light_SUITE:domain_admin:domain_admin_muc_light:admin_create_room_with_unprepped_id{error,
{{badmatch,null},
[{graphql_muc_light_SUITE,admin_create_room_with_unprepped_id,1,
[{file,
"/home/circleci/project/big_tests/tests/graphql_muc_light_SUITE.erl"},
{line,1155}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1793}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1302}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1234}]}]}} dynamic_domains_mssql_mnesia_26 / odbc_mssql_mnesia / b72bd47 |
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 to me. We could put Params
in measurements just like for the *_archive_message
events, but it's not necessary, because the tests are not parallel.
This PR adds tests for
mod_mam_pm_dropped
andmod_mam_muc_dropped
events to verify that they occur after a message fails to be saved to the database. It also extends logging to regular writers, rather than only logging such events forasync
writers.