Project

General

Profile

action #110392

Updated by livdywan about 2 years ago

We see the following errors on o3: 
 ``` 
 # /var/log/openqa 
 [2022-04-27T14:10:35.439009Z] [error] [mYElw9YAf65U] Can't open file 
 "/var/lib/openqa/testresults/02319/02319342-opensuse-Tumbleweed-DVD-x86_64-Buildilausuch_os-autoinst-distri-opensuse 
 _14706-containers_host_helm@ilausuch_os-autoinst-distri-opensuse_unify_helm_tests@64bit/vars.json": No such file or 
 directory at /usr/share/openqa/script/../lib/OpenQA/Schema/Result/Jobs.pm line 1871. 
 ``` 

 ## Acceptance criteria 
 * **AC1:** Investigation results doesn't throw any errors (or log any messages) if vars.json doesn't exist 

 ## Suggestions 
 * The problem happens in the code `my @files = map { Mojo::File->new($_->result_dir(), 'vars.json')->slurp } ($prev, $self);` within the "investigate" subroutine. openQA should simply gracefully handle non-existance of vars.json 
 * Handle error gracefully, e.g. catching exception and skip all parts of investigation which requires data from vars.json. Likely as simple as wrapping the line in an eval, same as the next line

Back