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

Introduce wait_helper and remove duplicated coded helper #4418

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

NelsonVides
Copy link
Collaborator

This helper was coded twice in two different helpers, and it was long ago extracted into a dependency we could be using here instead.

@mongoose-im

This comment was marked as outdated.

Copy link

codecov bot commented Dec 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.32%. Comparing base (d8bb43d) to head (85ed24b).
Report is 14 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4418      +/-   ##
==========================================
- Coverage   85.32%   85.32%   -0.01%     
==========================================
  Files         550      550              
  Lines       33905    33905              
==========================================
- Hits        28929    28928       -1     
- Misses       4976     4977       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mongoose-im

This comment was marked as outdated.

@NelsonVides NelsonVides force-pushed the wait_helper branch 2 times, most recently from 3d3daee to a6e28b8 Compare December 5, 2024 12:41
@mongoose-im

This comment was marked as outdated.

@mongoose-im
Copy link
Collaborator

mongoose-im commented Dec 5, 2024

elasticsearch_and_cassandra_27 / elasticsearch_and_cassandra_mnesia / 85ed24b
Reports root/ big
OK: 473 / Failed: 0 / User-skipped: 49 / Auto-skipped: 0


small_tests_26 / small_tests / 85ed24b
Reports root / small


small_tests_27 / small_tests / 85ed24b
Reports root / small


small_tests_27_arm64 / small_tests / 85ed24b
Reports root / small


ldap_mnesia_26 / ldap_mnesia / 85ed24b
Reports root/ big
OK: 2352 / Failed: 0 / User-skipped: 912 / Auto-skipped: 0


ldap_mnesia_27 / ldap_mnesia / 85ed24b
Reports root/ big
OK: 2352 / Failed: 0 / User-skipped: 912 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_27 / pgsql_mnesia / 85ed24b
Reports root/ big
OK: 4759 / Failed: 0 / User-skipped: 119 / Auto-skipped: 0


internal_mnesia_27 / internal_mnesia / 85ed24b
Reports root/ big
OK: 2494 / Failed: 0 / User-skipped: 770 / Auto-skipped: 0


dynamic_domains_mysql_redis_27 / mysql_redis / 85ed24b
Reports root/ big
OK: 4724 / Failed: 0 / User-skipped: 154 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_26 / pgsql_mnesia / 85ed24b
Reports root/ big
OK: 4759 / Failed: 0 / User-skipped: 119 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_27 / odbc_mssql_mnesia / 85ed24b
Reports root/ big
OK: 4753 / Failed: 1 / User-skipped: 124 / Auto-skipped: 0

muc_SUITE:register:user_submits_registration_form
{error,
  {{assertion_failed,assert,is_iq_result,
     [{xmlel,<<"iq">>,
        [{<<"type">>,<<"set">>},
         {<<"id">>,<<"fdb536832f8c90085d12ff120cba619a">>},
         {<<"to">>,<<"groupchats.domain.example.com">>}],
        [{xmlel,<<"query">>,
           [{<<"xmlns">>,<<"jabber:iq:register">>}],
           [{xmlel,<<"x">>,
            [{<<"xmlns">>,<<"jabber:x:data">>},
             {<<"type">>,<<"submit">>}],
            [{xmlel,<<"field">>,
               [{<<"type">>,<<"hidden">>},
                {<<"var">>,<<"FORM_TYPE">>}],
               [{xmlel,<<"value">>,[],
                  [{xmlcdata,<<"jabber:iq:register">>}]}]},
             {xmlel,<<"field">>,
               [{<<"type">>,<<"text-single">>},
                {<<"var">>,<<"nick">>}],
               [{xmlel,<<"value">>,[],
                  [{xmlcdata,
                     <<"thirdwitchroom-3e5a6c7dd3">>}]}]}]}]}]}],
     {xmlel,<<"iq">>,
       [{<<"from">>,<<"groupchats.domain.example.com">>},
        {<<"to">>,
         <<"alice_user_submits_registration_form_2949@domain.example.com/res1">>},
        {<<"type">>,<<"error">>},
        {<<"id">>,<<"fdb536832f8c90085d12ff120cba619a">>}],
       [{xmlel,<<"query">>,
          [{<<"xmlns">>,<<"jabber:iq:register">>}],
          [{xmlel,<<"x">>,
             [{<<"xmlns">>,<<"jabber:x:data">>},
            {<<"type">>,<<"submit">>}],
             [{xmlel,<<"field">>,
              [{<<"type">>,<<"hidden">>},
               {<<"var">>,<<"FORM_TYPE">>}],
      ...

Report log


pgsql_cets_27 / pgsql_cets / 85ed24b
Reports root/ big
OK: 4849 / Failed: 0 / User-skipped: 188 / Auto-skipped: 0


mysql_redis_27 / mysql_redis / 85ed24b
Reports root/ big
OK: 5129 / Failed: 0 / User-skipped: 149 / Auto-skipped: 0


pgsql_mnesia_27 / pgsql_mnesia / 85ed24b
Reports root/ big
OK: 5150 / Failed: 0 / User-skipped: 128 / Auto-skipped: 0


pgsql_mnesia_26 / pgsql_mnesia / 85ed24b
Reports root/ big
OK: 5150 / Failed: 0 / User-skipped: 128 / Auto-skipped: 0


cockroachdb_cets_27 / cockroachdb_cets / 85ed24b
Reports root/ big
OK: 4863 / Failed: 2 / User-skipped: 189 / Auto-skipped: 0

pubsub_SUITE:dag+node_config:disable_payload_test
{error,
  {timeout_when_waiting_for_stanza,
    [{escalus_client,wait_for_stanza,
       [{client,<<"alice_disable_payload_test_3230@localhost/res1">>,
          escalus_tcp,<0.77594.0>,
          [{event_manager,<0.77558.0>},
           {server,<<"localhost">>},
           {username,<<"alicE_disable_payload_test_3230">>},
           {resource,<<"res1">>}],
          [{event_client,
             [{event_manager,<0.77558.0>},
            {server,<<"localhost">>},
            {username,<<"alicE_disable_payload_test_3230">>},
            {resource,<<"res1">>}]},
           {resource,<<"res1">>},
           {username,<<"alice_disable_payload_test_3230">>},
           {server,<<"localhost">>},
           {host,<<"localhost">>},
           {port,5222},
           {auth,{escalus_auth,auth_plain}},
           {wspath,undefined},
           {username,<<"alicE_disable_payload_test_3230">>},
           {server,<<"localhost">>},
           {password,<<"matygrysa">>},
           {stream_id,<<"09f4a32b50c43bac">>}]},
        5000],
       [{file,
          "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
        {line,136}]},
     {pubsub_tools,receive_response,3,
       [{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
        {line,433}]},
     {pubsub_tools,receive_and_check_response,4,
       [{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
        {line,424}]},
     {escalus_story,story,4,
       [{file,
        ...

Report log

pubsub_SUITE:dag+manage_subscriptions:modify_node_subscriptions_test
{error,
  {timeout_when_waiting_for_stanza,
    [{escalus_client,wait_for_stanza,
       [{client,
          <<"alice_modify_node_subscriptions_test_3253@localhost/res1">>,
          escalus_tcp,<0.77908.0>,
          [{event_manager,<0.77897.0>},
           {server,<<"localhost">>},
           {username,<<"alicE_modify_node_subscriptions_test_3253">>},
           {resource,<<"res1">>}],
          [{event_client,
             [{event_manager,<0.77897.0>},
            {server,<<"localhost">>},
            {username,
              <<"alicE_modify_node_subscriptions_test_3253">>},
            {resource,<<"res1">>}]},
           {resource,<<"res1">>},
           {username,<<"alice_modify_node_subscriptions_test_3253">>},
           {server,<<"localhost">>},
           {host,<<"localhost">>},
           {port,5222},
           {auth,{escalus_auth,auth_plain}},
           {wspath,undefined},
           {username,<<"alicE_modify_node_subscriptions_test_3253">>},
           {server,<<"localhost">>},
           {password,<<"matygrysa">>},
           {stream_id,<<"eed6ca6df9ba260e">>}]},
        5000],
       [{file,
          "/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
        {line,136}]},
     {pubsub_tools,receive_response,3,
       [{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
        {line,433}]},
     {pubsub_tools,receive_and_check_response,4,
       [{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"}...

Report log


mssql_mnesia_27 / odbc_mssql_mnesia / 85ed24b
Reports root/ big
OK: 5145 / Failed: 0 / User-skipped: 133 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_27 / odbc_mssql_mnesia / 85ed24b
Reports root/ big
OK: 203 / Failed: 3 / User-skipped: 36 / Auto-skipped: 0

@NelsonVides NelsonVides marked this pull request as ready for review December 5, 2024 13:58
@arcusfelis arcusfelis merged commit ae7aad7 into master Dec 5, 2024
4 checks passed
@arcusfelis arcusfelis deleted the wait_helper branch December 5, 2024 15:32
@jacekwegr jacekwegr added this to the 6.3.1 milestone Dec 23, 2024
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