rabbitmq / credentials-obfuscation

Tiny library/OTP app for credential obfuscation
Other
14 stars 8 forks source link

ct_run fails to run tests #26

Closed matwey closed 1 year ago

matwey commented 1 year ago

Describe the bug

Common Test v1.24 starting (cwd is /home/matwey/temp/credentials-obfuscation)

(ct@localhost)1> ct_run -dir /home/matwey/temp/credentials-obfuscation

(ct@localhost)1> 
Common Test: Running make in test directories...
(ct@localhost)1> 
CWD set to: "/home/matwey/temp/credentials-obfuscation/ct_run.ct@localhost.2023-07-23_13.38.05"
(ct@localhost)1> 
TEST INFO: 1 test(s), 16 case(s) in 2 suite(s)

(ct@localhost)1> Testing temp.credentials-obfuscation: Starting test, 16 test cases
(ct@localhost)1> =INFO REPORT==== 23-Jul-2023::13:38:06.047973 ===
    application: credentials_obfuscation
    exited: stopped
    type: temporary

(ct@localhost)1> =INFO REPORT==== 23-Jul-2023::13:38:06.077433 ===
    application: credentials_obfuscation
    exited: stopped
    type: temporary

(ct@localhost)1> =INFO REPORT==== 23-Jul-2023::13:38:06.106457 ===
    application: credentials_obfuscation
    exited: stopped
    type: temporary

(ct@localhost)1> =INFO REPORT==== 23-Jul-2023::13:38:06.136398 ===
    application: credentials_obfuscation
    exited: stopped
    type: temporary

(ct@localhost)1> 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
credentials_obfuscation_SUITE:use_cookie_as_secret failed on line 123
Reason: {assertEqual,[{module,...},{...}|...]}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(ct@localhost)1> Testing temp.credentials-obfuscation: *** FAILED test case 5 of 16 ***
(ct@localhost)1> =INFO REPORT==== 23-Jul-2023::13:38:06.194583 ===
    application: credentials_obfuscation
    exited: stopped
    type: temporary

(ct@localhost)1> =INFO REPORT==== 23-Jul-2023::13:38:06.219100 ===
    application: credentials_obfuscation
    exited: stopped
    type: temporary

(ct@localhost)1> 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
credentials_obfuscation_SUITE:encryption_happens_only_when_secret_available failed on line 171
Reason: {assertEqual,[{module,...},{...}|...]}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(ct@localhost)1> =INFO REPORT==== 23-Jul-2023::13:38:06.244427 ===
    application: credentials_obfuscation
    exited: stopped
    type: temporary

(ct@localhost)1> Testing temp.credentials-obfuscation: *** FAILED test case 8 of 16 ***
(ct@localhost)1> =INFO REPORT==== 23-Jul-2023::13:38:06.270671 ===
    application: credentials_obfuscation
    exited: stopped
    type: temporary

(ct@localhost)1> =INFO REPORT==== 23-Jul-2023::13:38:06.297430 ===
    application: credentials_obfuscation
    exited: stopped
    type: temporary

(ct@localhost)1> =INFO REPORT==== 23-Jul-2023::13:38:06.323089 ===
    application: credentials_obfuscation
    exited: stopped
    type: temporary

(ct@localhost)1> =INFO REPORT==== 23-Jul-2023::13:38:06.348205 ===
    application: credentials_obfuscation
    exited: stopped
    type: temporary

(ct@localhost)1> =SUPERVISOR REPORT==== 23-Jul-2023::13:38:06.372693 ===
    supervisor: {local,credentials_obfuscation_sup}
    errorContext: start_error
    reason: {badarg,
                [{crypto,cipher_info,1,[{file,"crypto.erl"},{line,831}]},
                 {credentials_obfuscation_pbe,iv_length,1,
                     [{file,"src/credentials_obfuscation_pbe.erl"},
                      {line,126}]},
                 {credentials_obfuscation_pbe,encrypt,5,
                     [{file,"src/credentials_obfuscation_pbe.erl"},{line,76}]},
                 {credentials_obfuscation_svc,check,3,
                     [{file,"src/credentials_obfuscation_svc.erl"},
                      {line,198}]},
                 {credentials_obfuscation_svc,init_state,0,
                     [{file,"src/credentials_obfuscation_svc.erl"},
                      {line,169}]},
                 {gen_server,init_it,2,[{file,"gen_server.erl"},{line,851}]},
                 {gen_server,init_it,6,[{file,"gen_server.erl"},{line,814}]},
                 {proc_lib,init_p_do_apply,3,
                     [{file,"proc_lib.erl"},{line,240}]}]}
    offender: [{pid,undefined},
               {id,credentials_obfuscaton_svc},
               {mfargs,{credentials_obfuscation_svc,start_link,[]}},
               {restart_type,permanent},
               {significant,false},
               {shutdown,5000},
               {child_type,worker}]

(ct@localhost)1> =CRASH REPORT==== 23-Jul-2023::13:38:06.373071 ===
  crasher:
    initial call: application_master:init/4
    pid: <0.295.0>
    registered_name: []
    exception exit: {{shutdown,
                      {failed_to_start_child,credentials_obfuscaton_svc,
                       {badarg,
                        [{crypto,cipher_info,1,
                          [{file,"crypto.erl"},{line,831}]},
                         {credentials_obfuscation_pbe,iv_length,1,
                          [{file,"src/credentials_obfuscation_pbe.erl"},
                           {line,126}]},
                         {credentials_obfuscation_pbe,encrypt,5,
                          [{file,"src/credentials_obfuscation_pbe.erl"},
                           {line,76}]},
                         {credentials_obfuscation_svc,check,3,
                          [{file,"src/credentials_obfuscation_svc.erl"},
                           {line,198}]},
                         {credentials_obfuscation_svc,init_state,0,
                          [{file,"src/credentials_obfuscation_svc.erl"},
                           {line,169}]},
                         {gen_server,init_it,2,
                          [{file,"gen_server.erl"},{line,851}]},
                         {gen_server,init_it,6,
                          [{file,"gen_server.erl"},{line,814}]},
                         {proc_lib,init_p_do_apply,3,
                          [{file,"proc_lib.erl"},{line,240}]}]}}},
                     {credentials_obfuscation_app,start,[normal,[]]}}
      in function  application_master:init/4 (application_master.erl, line 142)
    ancestors: [<0.294.0>]
    message_queue_len: 1
    messages: [{'EXIT',<0.296.0>,normal}]
    links: [<0.294.0>,<0.44.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 610
    stack_size: 28
    reductions: 200
  neighbours:

(ct@localhost)1> =INFO REPORT==== 23-Jul-2023::13:38:06.373718 ===
    application: credentials_obfuscation
    exited: {{shutdown,
                 {failed_to_start_child,credentials_obfuscaton_svc,
                     {badarg,
                         [{crypto,cipher_info,1,
                              [{file,"crypto.erl"},{line,831}]},
                          {credentials_obfuscation_pbe,iv_length,1,
                              [{file,"src/credentials_obfuscation_pbe.erl"},
                               {line,126}]},
                          {credentials_obfuscation_pbe,encrypt,5,
                              [{file,"src/credentials_obfuscation_pbe.erl"},
                               {line,76}]},
                          {credentials_obfuscation_svc,check,3,
                              [{file,"src/credentials_obfuscation_svc.erl"},
                               {line,198}]},
                          {credentials_obfuscation_svc,init_state,0,
                              [{file,"src/credentials_obfuscation_svc.erl"},
                               {line,169}]},
                          {gen_server,init_it,2,
                              [{file,"gen_server.erl"},{line,851}]},
                          {gen_server,init_it,6,
                              [{file,"gen_server.erl"},{line,814}]},
                          {proc_lib,init_p_do_apply,3,
                              [{file,"proc_lib.erl"},{line,240}]}]}}},
             {credentials_obfuscation_app,start,[normal,[]]}}
    type: temporary

(ct@localhost)1> Testing temp.credentials-obfuscation: TEST COMPLETE, 14 ok, 2 failed of 16 test cases

(ct@localhost)1> Updating /home/matwey/temp/credentials-obfuscation/index.html ... (ct@localhost)1> done
(ct@localhost)1> Updating /home/matwey/temp/credentials-obfuscation/all_runs.html ... (ct@localhost)1> done
(ct@localhost)1> 
(ct@localhost)1> 

Reproduction steps

  1. Build the app
  2. Run ct_run -pa path/to/ebin

Expected behavior

Tests are passed successfully.

Additional context

No response