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

Test GraphQL CLI for all categories #3710

Merged
merged 14 commits into from
Jul 22, 2022

Conversation

chrzaszcz
Copy link
Member

@chrzaszcz chrzaszcz commented Jul 15, 2022

Finish testing GraphQL with CLI in a unified way, making use of generated queries.

Categories included in this PR:

  • domain
  • http_upload
  • inbox
  • last
  • muc
  • muc_light
  • offline
  • private
  • roster
  • session
  • stanza

Also: fix a race condition in offline_SUITE, that for some reason started presenting itself in this PR.

@mongoose-im

This comment was marked as outdated.

@codecov
Copy link

codecov bot commented Jul 15, 2022

Codecov Report

Merging #3710 (c4ac2e2) into feature/graphql-cli (a169204) will increase coverage by 0.04%.
The diff coverage is n/a.

@@                   Coverage Diff                   @@
##           feature/graphql-cli    #3710      +/-   ##
=======================================================
+ Coverage                82.15%   82.20%   +0.04%     
=======================================================
  Files                      514      514              
  Lines                    33754    33754              
=======================================================
+ Hits                     27732    27748      +16     
+ Misses                    6022     6006      -16     
Impacted Files Coverage Δ
src/mam/mod_mam_muc_rdbms_arch_async.erl 82.85% <0.00%> (-2.86%) ⬇️
...bal_distrib/mod_global_distrib_hosts_refresher.erl 66.66% <0.00%> (-2.23%) ⬇️
src/mod_muc_log.erl 62.82% <0.00%> (ø)
src/pubsub/mod_pubsub.erl 73.42% <0.00%> (+0.06%) ⬆️
src/mam/mod_mam_pm.erl 89.51% <0.00%> (+0.40%) ⬆️
src/pubsub/mod_pubsub_db_mnesia.erl 92.82% <0.00%> (+0.42%) ⬆️
src/rdbms/mongoose_rdbms.erl 66.31% <0.00%> (+1.05%) ⬆️
src/inbox/mod_inbox_rdbms_async.erl 73.52% <0.00%> (+1.47%) ⬆️
src/mam/mod_mam_elasticsearch_arch.erl 88.39% <0.00%> (+1.78%) ⬆️
src/pubsub/node_pep.erl 81.48% <0.00%> (+1.85%) ⬆️
... and 3 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 a169204...c4ac2e2. Read the comment docs.

Base automatically changed from graphql-user-commands to feature/graphql-cli July 15, 2022 08:48
@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

This comment was marked as outdated.

@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

This comment was marked as outdated.

@mongoose-im

This comment was marked as outdated.

@mongoose-im

This comment was marked as outdated.

@mongoose-im

This comment was marked as outdated.

Also fix the test for old messages - it was actually working, because
the previous test did not clean up the messages, and the new messages
were not old enough. Now the cases are correct and more complete.
@mongoose-im

This comment was marked as outdated.

@mongoose-im

This comment was marked as outdated.

@mongoose-im
Copy link
Collaborator

mongoose-im commented Jul 19, 2022

small_tests_24 / small_tests / c4ac2e2
Reports root / small


small_tests_25 / small_tests / c4ac2e2
Reports root / small


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / c4ac2e2
Reports root/ big
OK: 3313 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


ldap_mnesia_24 / ldap_mnesia / c4ac2e2
Reports root/ big
OK: 1883 / Failed: 0 / User-skipped: 500 / Auto-skipped: 0


dynamic_domains_mysql_redis_25 / mysql_redis / c4ac2e2
Reports root/ big
OK: 3216 / Failed: 0 / User-skipped: 104 / Auto-skipped: 81

mam_SUITE:rdbms_async_cache_mam_all:init_per_group
{'EXIT',
 {{badrpc,
   {'EXIT',
  {{start_child_failed,
    {error,
     {{shutdown,
     {failed_to_start_child,'pm_mam_async_pool_test type',
      {shutdown,
       {failed_to_start_child,
      'wpool_pool-pm_mam_async_pool_test type-process-sup',
      {shutdown,
       {failed_to_start_child,
        'wpool_pool-pm_mam_async_pool_test type-4',
        {already_started,<9139.5192.1>}}}}}}},
    {child,undefined,'pm_mam_sup_async_pool_test type',
     {mongoose_async_pools,start_link,
      [<<"test type">>,pm_mam,
       #{batch_name => insert_mam_messages30,batch_size => 30,
       enabled => true,
       flush_callback => fun mod_mam_rdbms_arch_async:flush/2,
       flush_extra =>
        #{batch_name => insert_mam_messages30,batch_size => 30,
        enabled => true,flush_interval => 1,pool_size => 16},
       flush_interval => 1,pool_size => 16,pool_type => batch}]},
     transient,false,infinity,supervisor,
     [mongoose_async_pools]}}},
    #{id => 'pm_mam_sup_async_pool_test type',restart => transient,
    start =>
     {mongoose_async_pools,start_link,
      [<<"test type">>,pm_mam,
       #{batch_name => insert_mam_messages30,batch_size => 30,
       enabled => true,
       flush_callback => fun mod_mam_rdbms_arch_async:flush/2,
       flush_extra =>
        #{batch_name => insert_mam_messages30,batch_size => 30,
        enabled => true,flush_interval => 1,pool_size => 16},
       flush_interval => 1,pool_size => 16,pool_type => batch}]},
    type => supervisor...

Report log


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / c4ac2e2
Reports root/ big
OK: 3313 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


ldap_mnesia_25 / ldap_mnesia / c4ac2e2
Reports root/ big
OK: 1883 / Failed: 0 / User-skipped: 500 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / c4ac2e2
Reports root/ big
OK: 3313 / Failed: 0 / User-skipped: 88 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / c4ac2e2
Reports root/ big
OK: 3687 / Failed: 0 / User-skipped: 97 / Auto-skipped: 0


internal_mnesia_25 / internal_mnesia / c4ac2e2
Reports root/ big
OK: 2004 / Failed: 0 / User-skipped: 379 / Auto-skipped: 0


elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / c4ac2e2
Reports root/ big
OK: 2300 / Failed: 0 / User-skipped: 374 / Auto-skipped: 0


mysql_redis_25 / mysql_redis / c4ac2e2
Reports root/ big
OK: 3682 / Failed: 0 / User-skipped: 102 / Auto-skipped: 0


riak_mnesia_24 / riak_mnesia / c4ac2e2
Reports root/ big
OK: 2161 / Failed: 0 / User-skipped: 367 / Auto-skipped: 0


dynamic_domains_mysql_redis_25 / mysql_redis / c4ac2e2
Reports root/ big
OK: 3296 / Failed: 0 / User-skipped: 105 / Auto-skipped: 0

@chrzaszcz chrzaszcz marked this pull request as ready for review July 19, 2022 13:41
Copy link
Contributor

@JanuszJakubiec JanuszJakubiec 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

Copy link
Contributor

@Premwoik Premwoik left a comment

Choose a reason for hiding this comment

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

All good 👌🏻 500 lines less of doc definitions

true -> escalus:init_per_suite(init_admin_handler(Config));
false -> {skip, require_rdbms}
true ->
Config1 = ejabberd_node_utils:init(mim(), Config),
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this doing? 😀

Copy link
Member Author

@chrzaszcz chrzaszcz Jul 22, 2022

Choose a reason for hiding this comment

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

It sets up the helpers for calling mongooseimctl

@JanuszJakubiec JanuszJakubiec merged commit 2b58ad3 into feature/graphql-cli Jul 22, 2022
@JanuszJakubiec JanuszJakubiec deleted the graphql-cli-test branch July 22, 2022 12:16
@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.

4 participants