nickva commented on issue #1034: Fix couch index compaction tests
URL: https://github.com/apache/couchdb/pull/1034#issuecomment-348275105
 
 
   make eunit apps=couch_index 
   
   ```
   ==> couch_index (eunit)
   Compiled src/couch_index_sup.erl
   Compiled src/couch_index_util.erl
   Compiled src/couch_index_plugin.erl
   Compiled src/couch_index_updater.erl
   Compiled src/couch_index_epi.erl
   Compiled src/couch_index_app.erl
   Compiled src/couch_index_compactor.erl
   Compiled src/couch_index_server.erl
   Compiled test/couch_index_compaction_tests.erl
   Compiled test/couch_index_ddoc_updated_tests.erl
   Compiled src/couch_index.erl
   ======================== EUnit ========================
   module 'couch_index_util'
   module 'couch_index_updater'
   module 'couch_index_sup'
   module 'couch_index_server'
   module 'couch_index_plugin'
   module 'couch_index_epi'
   module 'couch_index_compactor'
   module 'couch_index_app'
   module 'couch_index'
     Compaction tests
   Application crypto was left running!
       couch_index:576: should_not_call_recompact ([ undefined , undefined , 
disabled ])...ok
       couch_index:576: should_not_call_recompact ([ undefined , disabled , 
undefined ])...[0.001 s] ok
       couch_index:576: should_not_call_recompact ([ undefined , disabled , 
disabled ])...ok
       couch_index:576: should_not_call_recompact ([ undefined , enabled , 
disabled ])...ok
       couch_index:576: should_not_call_recompact ([ true , undefined , 
disabled ])...ok
       couch_index:576: should_not_call_recompact ([ true , disabled , 
undefined ])...ok
       couch_index:576: should_not_call_recompact ([ true , disabled , disabled 
])...ok
       couch_index:576: should_not_call_recompact ([ true , enabled , disabled 
])...ok
       couch_index:576: should_not_call_recompact ([ false , undefined , 
undefined ])...ok
       couch_index:576: should_not_call_recompact ([ false , undefined , 
disabled ])...ok
       couch_index:576: should_not_call_recompact ([ false , disabled , 
undefined ])...[0.001 s] ok
       couch_index:576: should_not_call_recompact ([ false , disabled , 
disabled ])...ok
       couch_index:576: should_not_call_recompact ([ false , enabled , disabled 
])...[0.001 s] ok
       couch_index:570: should_call_recompact ([ undefined , undefined , 
undefined ])...ok
       couch_index:570: should_call_recompact ([ undefined , undefined , 
enabled ])...[0.001 s] ok
       couch_index:570: should_call_recompact ([ undefined , enabled , 
undefined ])...ok
       couch_index:570: should_call_recompact ([ undefined , disabled , enabled 
])...ok
       couch_index:570: should_call_recompact ([ undefined , enabled , enabled 
])...[0.001 s] ok
       couch_index:570: should_call_recompact ([ true , undefined , undefined 
])...ok
       couch_index:570: should_call_recompact ([ true , undefined , enabled 
])...ok
       couch_index:570: should_call_recompact ([ true , disabled , enabled 
])...ok
       couch_index:570: should_call_recompact ([ true , enabled , undefined 
])...ok
       couch_index:570: should_call_recompact ([ true , enabled , enabled 
])...[0.001 s] ok
       couch_index:570: should_call_recompact ([ false , undefined , enabled 
])...ok
       couch_index:570: should_call_recompact ([ false , enabled , undefined 
])...ok
       couch_index:570: should_call_recompact ([ false , disabled , enabled 
])...ok
       couch_index:570: should_call_recompact ([ false , enabled , enabled 
])...[0.001 s] ok
       [done in 2.716 s]
     couch_index:602: t_group_timeout_info_integer...[0.051 s] ok
     couch_index:612: t_group_timeout_info_infinity...[0.054 s] ok
     [done in 3.689 s]
   module 'couch_index_ddoc_updated_tests'
     Check ddoc update actions
       couch_index_ddoc_updated_tests:52: 
check_all_indexers_exit_on_ddoc_change...[0.150 s] ok
       [done in 0.153 s]
     [done in 0.567 s]
   module 'couch_index_compaction_tests'
     Check compaction
       couch_index_compaction_tests:74: hold_db_for_recompaction...[0.001 s] ok
       [done in 0.087 s]
     [done in 0.160 s]
   =======================================================
     All 31 tests passed.
   ```
   
   But travis doesn't seem to pick up and run some of the tests:
   
   https://travis-ci.org/apache/couchdb/jobs/309637426
   
   ```
   module 'couch_index_compaction_tests'
     Check compaction
       couch_index_compaction_tests:74: hold_db_for_recompaction...[0.003 s] ok
   [os_mon] memory supervisor port (memsup): Erlang has closed
   [os_mon] cpu supervisor port (cpu_sup): Erlang has closed
       [done in 0.141 s]
     [done in 0.283 s]
   module 'couch_index_ddoc_updated_tests'
     Check ddoc update actions
       couch_index_ddoc_updated_tests:52: 
check_all_indexers_exit_on_ddoc_change...[0.064 s] ok
   [os_mon] memory supervisor port (memsup): Erlang has closed
   [os_mon] cpu supervisor port (cpu_sup): Erlang has closed
       [done in 0.067 s]
     [done in 0.455 s]
   =======================================================
     2 tests passed.
   ```
   
   Wonder why, eunit / meck shenanigans?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to