You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2022/10/11 22:48:40 UTC

[couchdb-ioq] branch quiet-ioq-config-tests created (now b8e0270)

This is an automated email from the ASF dual-hosted git repository.

jaydoane pushed a change to branch quiet-ioq-config-tests
in repository https://gitbox.apache.org/repos/asf/couchdb-ioq.git


      at b8e0270  Fix compiler warnings

This branch includes the following new commits:

     new 50aa37a  Git ignore .eunit directory
     new 9bf8b8d  Quiet noisy config tests
     new b8e0270  Fix compiler warnings

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[couchdb-ioq] 01/03: Git ignore .eunit directory

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jaydoane pushed a commit to branch quiet-ioq-config-tests
in repository https://gitbox.apache.org/repos/asf/couchdb-ioq.git

commit 50aa37aa7bdb52c3bc4c994e619ea1d689ae9b45
Author: Jay Doane <ja...@apache.org>
AuthorDate: Tue Oct 11 15:19:31 2022 -0700

    Git ignore .eunit directory
---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitignore b/.gitignore
index 21cf3d3..9faa175 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
+.eunit
 .rebar
 ebin/


[couchdb-ioq] 02/03: Quiet noisy config tests

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jaydoane pushed a commit to branch quiet-ioq-config-tests
in repository https://gitbox.apache.org/repos/asf/couchdb-ioq.git

commit 9bf8b8d17a71d484bca8f0ddd43ccc617914abc5
Author: Jay Doane <ja...@apache.org>
AuthorDate: Tue Oct 11 15:20:21 2022 -0700

    Quiet noisy config tests
    
    These tests are noisy because they start the `couch_log` application
    without also starting `folsom`:
    
    ❯ make check apps=ioq suites=ioq_config_tests
    ==> ioq (eunit)
    Compiled test/ioq_config_tests.erl
    ======================== EUnit ========================
    module 'ioq_config_tests'
      Test config updates
        ioq_config_tests:51: -t_restart_config_listener/1-fun-4-...ok
    [error] 2022-10-11T22:20:45.053540Z nonode@nohost <0.290.0> -------- Supervisor ioq_sup had child config_listener_mon started with config_listener_mon:start_link(ioq_sup, nil) at <0.292.0> exit with reason shutdown in context child_terminated
    [error] 2022-10-11T22:20:45.081876Z nonode@nohost <0.290.0> -------- Supervisor ioq_sup had child config_listener_mon started with config_listener_mon:start_link(ioq_sup, nil) at <0.292.0> exit with reason shutdown in context child_terminated
    [info] 2022-10-11T22:20:45.081889Z nonode@nohost <0.44.0> -------- Application ioq exited with reason: stopped
    [info] 2022-10-11T22:20:45.081892Z nonode@nohost <0.44.0> -------- Application ioq exited with reason: stopped
    [info] 2022-10-11T22:20:45.081899Z nonode@nohost <0.44.0> -------- Application hqueue exited with reason: stopped
    [info] 2022-10-11T22:20:45.081902Z nonode@nohost <0.44.0> -------- Application hqueue exited with reason: stopped
    [info] 2022-10-11T22:20:45.081910Z nonode@nohost <0.44.0> -------- Application couch_stats exited with reason: stopped
    [info] 2022-10-11T22:20:45.081914Z nonode@nohost <0.44.0> -------- Application couch_stats exited with reason: stopped
    [info] 2022-10-11T22:20:45.081917Z nonode@nohost <0.44.0> -------- Application folsom exited with reason: stopped
    [info] 2022-10-11T22:20:45.081920Z nonode@nohost <0.44.0> -------- Application folsom exited with reason: stopped
    [info] 2022-10-11T22:20:45.081945Z nonode@nohost <0.44.0> -------- Application couch_log exited with reason: stopped
    [info] 2022-10-11T22:20:45.081955Z nonode@nohost <0.44.0> -------- Application config exited with reason: stopped
        ioq_config_tests:66: -t_update_ioq_config/1-fun-5-...[notice] 2022-10-11T22:20:45.106776Z nonode@nohost <0.318.0> -------- config: [ioq] concurrency set to 200 for reason nil
    [0.021 s] ok
    [info] 2022-10-11T22:20:45.109593Z nonode@nohost <0.44.0> -------- Application ioq exited with reason: stopped
    [info] 2022-10-11T22:20:45.109600Z nonode@nohost <0.44.0> -------- Application ioq exited with reason: stopped
    [info] 2022-10-11T22:20:45.109605Z nonode@nohost <0.44.0> -------- Application ioq exited with reason: stopped
    [info] 2022-10-11T22:20:45.109615Z nonode@nohost <0.44.0> -------- Application hqueue exited with reason: stopped
    [info] 2022-10-11T22:20:45.109620Z nonode@nohost <0.44.0> -------- Application hqueue exited with reason: stopped
    [info] 2022-10-11T22:20:45.109623Z nonode@nohost <0.44.0> -------- Application hqueue exited with reason: stopped
    [info] 2022-10-11T22:20:45.109833Z nonode@nohost <0.44.0> -------- Application couch_stats exited with reason: stopped
    [info] 2022-10-11T22:20:45.109839Z nonode@nohost <0.44.0> -------- Application couch_stats exited with reason: stopped
    [info] 2022-10-11T22:20:45.109845Z nonode@nohost <0.44.0> -------- Application couch_stats exited with reason: stopped
    [info] 2022-10-11T22:20:45.110157Z nonode@nohost <0.44.0> -------- Application folsom exited with reason: stopped
    [info] 2022-10-11T22:20:45.110162Z nonode@nohost <0.44.0> -------- Application folsom exited with reason: stopped
    [info] 2022-10-11T22:20:45.110165Z nonode@nohost <0.44.0> -------- Application folsom exited with reason: stopped
        ioq_config_tests:103: -t_update_ioq2_config/1-fun-5-...[notice] 2022-10-11T22:20:45.118370Z nonode@nohost <0.385.0> -------- config: [ioq2] concurrency set to 200 for reason nil
    ok
    [info] 2022-10-11T22:20:45.121645Z nonode@nohost <0.44.0> -------- Application ioq exited with reason: stopped
    [info] 2022-10-11T22:20:45.121654Z nonode@nohost <0.44.0> -------- Application ioq exited with reason: stopped
    [info] 2022-10-11T22:20:45.121658Z nonode@nohost <0.44.0> -------- Application ioq exited with reason: stopped
    [info] 2022-10-11T22:20:45.121661Z nonode@nohost <0.44.0> -------- Application ioq exited with reason: stopped
    [info] 2022-10-11T22:20:45.121670Z nonode@nohost <0.44.0> -------- Application hqueue exited with reason: stopped
    [info] 2022-10-11T22:20:45.121673Z nonode@nohost <0.44.0> -------- Application hqueue exited with reason: stopped
    [info] 2022-10-11T22:20:45.121682Z nonode@nohost <0.44.0> -------- Application hqueue exited with reason: stopped
    [info] 2022-10-11T22:20:45.121687Z nonode@nohost <0.44.0> -------- Application hqueue exited with reason: stopped
    [info] 2022-10-11T22:20:45.121926Z nonode@nohost <0.44.0> -------- Application couch_stats exited with reason: stopped
    [info] 2022-10-11T22:20:45.121933Z nonode@nohost <0.44.0> -------- Application couch_stats exited with reason: stopped
    [info] 2022-10-11T22:20:45.121937Z nonode@nohost <0.44.0> -------- Application couch_stats exited with reason: stopped
    [info] 2022-10-11T22:20:45.121941Z nonode@nohost <0.44.0> -------- Application couch_stats exited with reason: stopped
    [info] 2022-10-11T22:20:45.122356Z nonode@nohost <0.44.0> -------- Application folsom exited with reason: stopped
    [info] 2022-10-11T22:20:45.122361Z nonode@nohost <0.44.0> -------- Application folsom exited with reason: stopped
    [info] 2022-10-11T22:20:45.122365Z nonode@nohost <0.44.0> -------- Application folsom exited with reason: stopped
    [info] 2022-10-11T22:20:45.122369Z nonode@nohost <0.44.0> -------- Application folsom exited with reason: stopped
        ioq_config_tests:82: -t_update_ioq_config_on_listener_restart/1-fun-6-...[error] 2022-10-11T22:20:45.128953Z nonode@nohost <0.494.0> -------- Supervisor ioq_sup had child config_listener_mon started with config_listener_mon:start_link(ioq_sup, nil) at <0.496.0> exit with reason shutdown in context child_terminated
    [error] 2022-10-11T22:20:45.128983Z nonode@nohost <0.494.0> -------- Supervisor ioq_sup had child config_listener_mon started with config_listener_mon:start_link(ioq_sup, nil) at <0.496.0> exit with reason shutdown in context child_terminated
    [error] 2022-10-11T22:20:45.128999Z nonode@nohost <0.494.0> -------- Supervisor ioq_sup had child config_listener_mon started with config_listener_mon:start_link(ioq_sup, nil) at <0.496.0> exit with reason shutdown in context child_terminated
    [error] 2022-10-11T22:20:45.129009Z nonode@nohost <0.494.0> -------- Supervisor ioq_sup had child config_listener_mon started with config_listener_mon:start_link(ioq_sup, nil) at <0.496.0> exit with reason shutdown in context child_terminated
    [error] 2022-10-11T22:20:45.129021Z nonode@nohost <0.494.0> -------- Supervisor ioq_sup had child config_listener_mon started with config_listener_mon:start_link(ioq_sup, nil) at <0.496.0> exit with reason shutdown in context child_terminated
    [0.051 s] ok
    [info] 2022-10-11T22:20:45.182979Z nonode@nohost <0.44.0> -------- Application ioq exited with reason: stopped
    [info] 2022-10-11T22:20:45.182995Z nonode@nohost <0.44.0> -------- Application ioq exited with reason: stopped
    [info] 2022-10-11T22:20:45.183002Z nonode@nohost <0.44.0> -------- Application ioq exited with reason: stopped
    [info] 2022-10-11T22:20:45.183009Z nonode@nohost <0.44.0> -------- Application ioq exited with reason: stopped
    [info] 2022-10-11T22:20:45.183031Z nonode@nohost <0.44.0> -------- Application ioq exited with reason: stopped
    [info] 2022-10-11T22:20:45.183055Z nonode@nohost <0.44.0> -------- Application hqueue exited with reason: stopped
    [info] 2022-10-11T22:20:45.183060Z nonode@nohost <0.44.0> -------- Application hqueue exited with reason: stopped
    [info] 2022-10-11T22:20:45.183064Z nonode@nohost <0.44.0> -------- Application hqueue exited with reason: stopped
    [info] 2022-10-11T22:20:45.183068Z nonode@nohost <0.44.0> -------- Application hqueue exited with reason: stopped
    [info] 2022-10-11T22:20:45.183072Z nonode@nohost <0.44.0> -------- Application hqueue exited with reason: stopped
    [info] 2022-10-11T22:20:45.183438Z nonode@nohost <0.44.0> -------- Application couch_stats exited with reason: stopped
    [info] 2022-10-11T22:20:45.183447Z nonode@nohost <0.44.0> -------- Application couch_stats exited with reason: stopped
    [info] 2022-10-11T22:20:45.183454Z nonode@nohost <0.44.0> -------- Application couch_stats exited with reason: stopped
    [info] 2022-10-11T22:20:45.183460Z nonode@nohost <0.44.0> -------- Application couch_stats exited with reason: stopped
    [info] 2022-10-11T22:20:45.183471Z nonode@nohost <0.44.0> -------- Application couch_stats exited with reason: stopped
    [info] 2022-10-11T22:20:45.183880Z nonode@nohost <0.44.0> -------- Application folsom exited with reason: stopped
    [info] 2022-10-11T22:20:45.183892Z nonode@nohost <0.44.0> -------- Application folsom exited with reason: stopped
    [info] 2022-10-11T22:20:45.183896Z nonode@nohost <0.44.0> -------- Application folsom exited with reason: stopped
    [info] 2022-10-11T22:20:45.183901Z nonode@nohost <0.44.0> -------- Application folsom exited with reason: stopped
    [info] 2022-10-11T22:20:45.183910Z nonode@nohost <0.44.0> -------- Application folsom exited with reason: stopped
        ioq_config_tests:119: -t_update_ioq2_config_on_listener_restart/1-fun-6-...[error] 2022-10-11T22:20:45.190997Z nonode@nohost <0.563.0> -------- Supervisor ioq_sup had child config_listener_mon started with config_listener_mon:start_link(ioq_sup, nil) at <0.565.0> exit with reason shutdown in context child_terminated
    [error] 2022-10-11T22:20:45.191027Z nonode@nohost <0.563.0> -------- Supervisor ioq_sup had child config_listener_mon started with config_listener_mon:start_link(ioq_sup, nil) at <0.565.0> exit with reason shutdown in context child_terminated
    [error] 2022-10-11T22:20:45.191064Z nonode@nohost <0.563.0> -------- Supervisor ioq_sup had child config_listener_mon started with config_listener_mon:start_link(ioq_sup, nil) at <0.565.0> exit with reason shutdown in context child_terminated
    [error] 2022-10-11T22:20:45.191087Z nonode@nohost <0.563.0> -------- Supervisor ioq_sup had child config_listener_mon started with config_listener_mon:start_link(ioq_sup, nil) at <0.565.0> exit with reason shutdown in context child_terminated
    [error] 2022-10-11T22:20:45.191101Z nonode@nohost <0.563.0> -------- Supervisor ioq_sup had child config_listener_mon started with config_listener_mon:start_link(ioq_sup, nil) at <0.565.0> exit with reason shutdown in context child_terminated
    [error] 2022-10-11T22:20:45.191114Z nonode@nohost <0.563.0> -------- Supervisor ioq_sup had child config_listener_mon started with config_listener_mon:start_link(ioq_sup, nil) at <0.565.0> exit with reason shutdown in context child_terminated
    [0.051 s] ok
    [info] 2022-10-11T22:20:45.244863Z nonode@nohost <0.44.0> -------- Application ioq exited with reason: stopped
    [info] 2022-10-11T22:20:45.244877Z nonode@nohost <0.44.0> -------- Application ioq exited with reason: stopped
    [info] 2022-10-11T22:20:45.244884Z nonode@nohost <0.44.0> -------- Application ioq exited with reason: stopped
    [info] 2022-10-11T22:20:45.244891Z nonode@nohost <0.44.0> -------- Application ioq exited with reason: stopped
    [info] 2022-10-11T22:20:45.244900Z nonode@nohost <0.44.0> -------- Application ioq exited with reason: stopped
    [info] 2022-10-11T22:20:45.244905Z nonode@nohost <0.44.0> -------- Application ioq exited with reason: stopped
    [info] 2022-10-11T22:20:45.244912Z nonode@nohost <0.44.0> -------- Application hqueue exited with reason: stopped
    [info] 2022-10-11T22:20:45.244916Z nonode@nohost <0.44.0> -------- Application hqueue exited with reason: stopped
    [info] 2022-10-11T22:20:45.244921Z nonode@nohost <0.44.0> -------- Application hqueue exited with reason: stopped
    [info] 2022-10-11T22:20:45.244925Z nonode@nohost <0.44.0> -------- Application hqueue exited with reason: stopped
    [info] 2022-10-11T22:20:45.244929Z nonode@nohost <0.44.0> -------- Application hqueue exited with reason: stopped
    [info] 2022-10-11T22:20:45.244933Z nonode@nohost <0.44.0> -------- Application hqueue exited with reason: stopped
    [info] 2022-10-11T22:20:45.245083Z nonode@nohost <0.44.0> -------- Application couch_stats exited with reason: stopped
    [info] 2022-10-11T22:20:45.245088Z nonode@nohost <0.44.0> -------- Application couch_stats exited with reason: stopped
    [info] 2022-10-11T22:20:45.245093Z nonode@nohost <0.44.0> -------- Application couch_stats exited with reason: stopped
    [info] 2022-10-11T22:20:45.245098Z nonode@nohost <0.44.0> -------- Application couch_stats exited with reason: stopped
    [info] 2022-10-11T22:20:45.245110Z nonode@nohost <0.44.0> -------- Application couch_stats exited with reason: stopped
    [info] 2022-10-11T22:20:45.245115Z nonode@nohost <0.44.0> -------- Application couch_stats exited with reason: stopped
    [info] 2022-10-11T22:20:45.245531Z nonode@nohost <0.44.0> -------- Application folsom exited with reason: stopped
    [info] 2022-10-11T22:20:45.245538Z nonode@nohost <0.44.0> -------- Application folsom exited with reason: stopped
        [done in 0.899 s]
      ioq_config_tests:155: -priorities_test_/0-fun-1-...ok
      ioq_config_tests:155: -priorities_test_/0-fun-1-...ok
      ioq_config_tests:155: -priorities_test_/0-fun-1-...ok
      ioq_config_tests:155: -priorities_test_/0-fun-1-...ok
      ioq_config_tests:155: -priorities_test_/0-fun-1-...ok
      ioq_config_tests:155: -priorities_test_/0-fun-1-...ok
      ioq_config_tests:170: -parse_shard_string_test_/0-fun-1-...ok
      ioq_config_tests:170: -parse_shard_string_test_/0-fun-1-...ok
      ioq_config_tests:170: -parse_shard_string_test_/0-fun-1-...ok
      ioq_config_tests:170: -parse_shard_string_test_/0-fun-1-...ok
      ioq_config_tests:181: -parse_bad_string_test_/0-fun-1-...ok
      ioq_config_tests:199: -to_float_test_/0-fun-2-...ok
      ioq_config_tests:199: -to_float_test_/0-fun-2-...ok
      ioq_config_tests:199: -to_float_test_/0-fun-2-...ok
      ioq_config_tests:199: -to_float_test_/0-fun-2-...ok
      ioq_config_tests:199: -to_float_test_/0-fun-2-...ok
      ioq_config_tests:199: -to_float_test_/0-fun-2-...ok
      ioq_config_tests:199: -to_float_test_/0-fun-2-...ok
      ioq_config_tests:199: -to_float_test_/0-fun-2-...ok
      Test ioq_config setters
    [notice] 2022-10-11T22:20:45.305678Z nonode@nohost <0.609.0> -------- config: [ioq2] concurrency set to 9 for reason "ioq_config_tests"
    [error] 2022-10-11T22:20:45.305681Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305690Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305696Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305704Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [notice] 2022-10-11T22:20:45.305733Z nonode@nohost <0.609.0> -------- config: [ioq2] resize_limit set to 8888 for reason "ioq_config_tests"
    [error] 2022-10-11T22:20:45.305710Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [notice] 2022-10-11T22:20:45.305762Z nonode@nohost <0.609.0> -------- config: [ioq2] dedupe set to false for reason "ioq_config_tests"
    [error] 2022-10-11T22:20:45.305764Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305768Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
        ioq_config_tests:241: -check_simple_configs/1-fun-1-...[error] 2022-10-11T22:20:45.305774Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305779Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305800Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305805Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305809Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305813Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305817Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305837Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [notice] 2022-10-11T22:20:45.305837Z nonode@nohost <0.609.0> -------- config: [ioq2] scale_factor set to 3.14000000000000012434e+00 for reason "ioq_config_tests"
    [error] 2022-10-11T22:20:45.305841Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305850Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305856Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305862Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305879Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [notice] 2022-10-11T22:20:45.305879Z nonode@nohost <0.609.0> -------- config: [ioq2] max_priority set to 9.99999900000000052387e+04 for reason "ioq_config_tests"
    [error] 2022-10-11T22:20:45.305883Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305888Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305893Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305913Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305918Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305921Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305926Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305929Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [notice] 2022-10-11T22:20:45.305930Z nonode@nohost <0.609.0> -------- config: [ioq2] enabled set to true for reason "ioq_config_tests"
    [error] 2022-10-11T22:20:45.305951Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305954Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305961Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305967Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305972Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305991Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305995Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.305999Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [notice] 2022-10-11T22:20:45.305996Z nonode@nohost <0.609.0> -------- config: [ioq2] dispatch_strategy set to fd_hash for reason "ioq_config_tests"
    [error] 2022-10-11T22:20:45.306004Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.306009Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.306013Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.306017Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.306021Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.306024Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.306050Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.306053Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.306060Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.306065Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.306070Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.306080Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.306084Z nonode@nohost <0.609.0> -------- unknown metric: [couch_log,level,notice]
    ok
        ioq_config_tests:241: -check_simple_configs/1-fun-1-...ok
        ioq_config_tests:241: -check_simple_configs/1-fun-1-...ok
        ioq_config_tests:241: -check_simple_configs/1-fun-1-...ok
        ioq_config_tests:241: -check_simple_configs/1-fun-1-...ok
        ioq_config_tests:241: -check_simple_configs/1-fun-1-...ok
        ioq_config_tests:241: -check_simple_configs/1-fun-1-...ok
        ioq_config_tests:249: -check_simple_configs/1-fun-4-...ok
        ioq_config_tests:249: -check_simple_configs/1-fun-4-...ok
        ioq_config_tests:249: -check_simple_configs/1-fun-4-...ok
        ioq_config_tests:249: -check_simple_configs/1-fun-4-...ok
        ioq_config_tests:249: -check_simple_configs/1-fun-4-...ok
        ioq_config_tests:249: -check_simple_configs/1-fun-4-...ok
        ioq_config_tests:249: -check_simple_configs/1-fun-4-...ok
    [notice] 2022-10-11T22:20:45.350387Z nonode@nohost <0.639.0> -------- config: [ioq2.bypass] interactive set to true for reason "Bypassing interactive"
        ioq_config_tests:263: -check_bypass_configs/1-fun-1-...[error] 2022-10-11T22:20:45.350404Z nonode@nohost <0.639.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.350428Z nonode@nohost <0.639.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.350445Z nonode@nohost <0.639.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.350482Z nonode@nohost <0.639.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.350495Z nonode@nohost <0.639.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.350504Z nonode@nohost <0.639.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.350514Z nonode@nohost <0.639.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.350520Z nonode@nohost <0.639.0> -------- unknown metric: [couch_log,level,notice]
    ok
        [done in 0.050 s]
      Test ioq_config is_valid_class logic
        ioq_config_tests:284: -check_default_classes/1-fun-3-...ok
        ioq_config_tests:284: -check_default_classes/1-fun-3-...ok
        ioq_config_tests:284: -check_default_classes/1-fun-3-...ok
        ioq_config_tests:284: -check_default_classes/1-fun-3-...ok
        ioq_config_tests:284: -check_default_classes/1-fun-3-...ok
        ioq_config_tests:284: -check_default_classes/1-fun-3-...ok
        ioq_config_tests:284: -check_default_classes/1-fun-3-...ok
        ioq_config_tests:284: -check_default_classes/1-fun-3-...ok
        ioq_config_tests:284: -check_default_classes/1-fun-3-...ok
        ioq_config_tests:284: -check_default_classes/1-fun-3-...ok
        ioq_config_tests:284: -check_default_classes/1-fun-3-...ok
        ioq_config_tests:284: -check_default_classes/1-fun-3-...ok
        ioq_config_tests:288: -check_undeclared_class/1-fun-1-...ok
    [notice] 2022-10-11T22:20:45.447281Z nonode@nohost <0.701.0> -------- config: [ioq2.classes] search set to 1.0 for reason nil
    [error] 2022-10-11T22:20:45.447295Z nonode@nohost <0.701.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.447301Z nonode@nohost <0.701.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.447304Z nonode@nohost <0.701.0> -------- unknown metric: [couch_log,level,notice]
        [error] 2022-10-11T22:20:45.447307Z nonode@nohost <0.701.0> -------- unknown metric: [couch_log,level,notice]
    ioq_config_tests:293: -check_declared_class/1-fun-1-...[error] 2022-10-11T22:20:45.447311Z nonode@nohost <0.701.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.447420Z nonode@nohost <0.701.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.447430Z nonode@nohost <0.701.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.447436Z nonode@nohost <0.701.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.447442Z nonode@nohost <0.701.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.447452Z nonode@nohost <0.701.0> -------- unknown metric: [couch_log,level,notice]
    [error] 2022-10-11T22:20:45.447455Z nonode@nohost <0.701.0> -------- unknown metric: [couch_log,level,notice]
    ok
        [done in 0.100 s]
      [done in 1.106 s]
    =======================================================
      All 53 tests passed.
    
    This removes `couch_log` from started applications, and instead just
    mocks the single function that was being used, cleaning up test
    output, and speeding up the tests.
---
 test/ioq_config_tests.erl | 30 ++++++++++++++++++++++++------
 1 file changed, 24 insertions(+), 6 deletions(-)

diff --git a/test/ioq_config_tests.erl b/test/ioq_config_tests.erl
index 97b423f..6d02db9 100644
--- a/test/ioq_config_tests.erl
+++ b/test/ioq_config_tests.erl
@@ -35,8 +35,14 @@ config_update_test_() ->
         "Test config updates",
         {
             foreach,
-            fun() -> test_util:start_applications([config, couch_log, ioq]) end,
-            fun test_util:stop_applications/1,
+            fun() ->
+                meck:expect(couch_log, notice, fun(_, _) -> ok end),
+                test_util:start_applications([config, ioq])
+            end,
+            fun(Apps) ->
+                test_util:stop_applications(Apps),
+                meck:unload()
+            end,
             [
                 fun t_restart_config_listener/1,
                 fun t_update_ioq_config/1,
@@ -204,8 +210,14 @@ config_set_test_() ->
         "Test ioq_config setters",
         {
             foreach,
-            fun() -> test_util:start_applications([config, couch_log]) end,
-            fun(_) -> test_util:stop_applications([config, couch_log]) end,
+            fun() ->
+                meck:expect(couch_log, notice, fun(_, _) -> ok end),
+                test_util:start_applications([config])
+            end,
+            fun(_) ->
+                test_util:stop_applications([config]),
+                meck:unload()
+            end,
             [
                 fun check_simple_configs/1,
                 fun check_bypass_configs/1
@@ -268,8 +280,14 @@ valid_classes_test_() ->
         "Test ioq_config is_valid_class logic",
         {
             foreach,
-            fun() -> test_util:start_applications([config, couch_log]) end,
-            fun(_) -> test_util:stop_applications([config, couch_log]) end,
+            fun() ->
+                meck:expect(couch_log, notice, fun(_, _) -> ok end),
+                test_util:start_applications([config])
+            end,
+            fun(_) ->
+                test_util:stop_applications([config]),
+                meck:unload()
+            end,
             [
                 fun check_default_classes/1,
                 fun check_undeclared_class/1,


[couchdb-ioq] 03/03: Fix compiler warnings

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jaydoane pushed a commit to branch quiet-ioq-config-tests
in repository https://gitbox.apache.org/repos/asf/couchdb-ioq.git

commit b8e02705b2618cd56b116ed6bfa6606666a4b80a
Author: Jay Doane <ja...@apache.org>
AuthorDate: Tue Oct 11 15:40:02 2022 -0700

    Fix compiler warnings
    
    - test/ioq_tests.erl:14:2: Warning: export_all flag enabled - all functions will be exported
    - src/ioq/src/ioq_server2.erl:928:52: Warning: variable 'RL' is unused
    - test/ioq_kv_tests.erl:125:14: Warning: random:uniform/1 is deprecated; use the 'rand' module instead
---
 src/ioq_server2.erl   | 2 +-
 test/ioq_kv_tests.erl | 2 +-
 test/ioq_tests.erl    | 1 -
 3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/ioq_server2.erl b/src/ioq_server2.erl
index ea50346..be3bb40 100644
--- a/src/ioq_server2.erl
+++ b/src/ioq_server2.erl
@@ -925,7 +925,7 @@ test_auto_scale(#state{queue=HQ}=St0) ->
     {_, #ioq_request{init_priority=PriorityA2}} = hqueue:extract_max(HQ),
     Tests0 = [?_assertEqual(PriorityA, PriorityA2)],
     {_St, Tests} = lists:foldl(
-        fun(_N, {#state{iterations=I, resize_limit=RL}=StN0, TestsN}) ->
+        fun(_N, {#state{iterations=I}=StN0, TestsN}) ->
             ReqN = BaseReq#ioq_request{ref=make_ref()},
             ExpectedPriority = case I == 1 of
                 false -> PriorityA;
diff --git a/test/ioq_kv_tests.erl b/test/ioq_kv_tests.erl
index 48ee464..1477f46 100644
--- a/test/ioq_kv_tests.erl
+++ b/test/ioq_kv_tests.erl
@@ -122,7 +122,7 @@ random_key(#st{kvs=KVs}) ->
     Keys0 = dict:fetch_keys(KVs),
     Keys = lists:append(Keys0, [foo]),
     NumKeys = erlang:length(Keys),
-    KeyPos = random:uniform(NumKeys),
+    KeyPos = rand:uniform(NumKeys),
     lists:nth(KeyPos, Keys).
 
 cleanup() ->
diff --git a/test/ioq_tests.erl b/test/ioq_tests.erl
index 70eefc2..51bc0d3 100644
--- a/test/ioq_tests.erl
+++ b/test/ioq_tests.erl
@@ -11,7 +11,6 @@
 % the License.
 
 -module(ioq_tests).
--compile(export_all).
 
 -include_lib("eunit/include/eunit.hrl").
 -include_lib("ioq/include/ioq.hrl").