Project

General

Profile

action #93324

Updated by livdywan almost 3 years ago

## Observation 

 DISCLAIMER: this ticket is not about bug in parser but about handling exceptions when there is bug in parser 
 http://autobot.qa.suse.de/tests/2436 - this job has state failed , and one of modules has result `Passed` another has result `None`. 
 Actual reason of failure is that log parsing for `External Result` tab has failed because of changes in input log file for parsing . in os-autoinst log you may see following error :  
 ``` 
 [0mUse of uninitialized value $t_name in pattern match (m//) at /usr/share/openqa/lib/OpenQA/Parser/Format/IPA.pm line 42. 
	 OpenQA::Parser::Format::IPA::parse(OpenQA::Parser::Format::IPA=HASH(0x55dc86d92e00), "{\"tests\": [{\"outcome\": \"passed\", \"test_index\": 0, \"nodeid\": \""...) called at /usr/share/openqa/lib/OpenQA/Parser.pm line 68 
	 OpenQA::Parser::load(OpenQA::Parser::Format::IPA=HASH(0x55dc86d92e00), "ulogs/img_proof-20210518103037.results") called at /usr/share/openqa/lib/OpenQA/Parser.pm line 43 
	 OpenQA::Parser::parser("IPA", "ulogs/img_proof-20210518103037.results") called at /usr/lib/os-autoinst/testapi.pm line 2108 
	 eval {...} called at /usr/lib/os-autoinst/testapi.pm line 2105 
	 testapi::parse_extra_log("IPA", "img_proof_results/ec2/ami-0ae7dcf6b1b1188dd/i-06bf1da3a81e2f0"...) called at sle/tests/publiccloud/img_proof.pm line 131 
	 img_proof::run(img_proof=HASH(0x55dc84eecc58)) called at /usr/lib/os-autoinst/basetest.pm line 356 
	 eval {...} called at /usr/lib/os-autoinst/basetest.pm line 350 
	 basetest::runtest(img_proof=HASH(0x55dc84eecc58)) called at /usr/lib/os-autoinst/autotest.pm line 374 
	 eval {...} called at /usr/lib/os-autoinst/autotest.pm line 374 
	 autotest::runalltests() called at /usr/lib/os-autoinst/autotest.pm line 242 
	 eval {...} called at /usr/lib/os-autoinst/autotest.pm line 242 
	 autotest::run_all() called at /usr/lib/os-autoinst/autotest.pm line 298 
	 autotest::__ANON__(Mojo::IOLoop::ReadWriteProcess=HASH(0x55dc858a43a0)) called at /usr/lib/perl5/vendor_perl/5.26.1/Mojo/IOLoop/ReadWriteProcess.pm line 326 
	 eval {...} called at /usr/lib/perl5/vendor_perl/5.26.1/Mojo/IOLoop/ReadWriteProcess.pm line 326 
	 Mojo::IOLoop::ReadWriteProcess::_fork(Mojo::IOLoop::ReadWriteProcess=HASH(0x55dc858a43a0), CODE(0x55dc8563ad20)) called at /usr/lib/perl5/vendor_perl/5.26.1/Mojo/IOLoop/ReadWriteProcess.pm line 477 
 ``` 
 ## Suggestion #Expected :  
 1. Exception needs to be catch earlier.  
 2. Job should have status Incomplete 
 - Check if img-proof 7.3.0 is broken or regressed somehow 
 - See what else may 3. Module should have changed wrt generation of .results 
 - Reproduce with other tests Result = 'Passed/Failed' not 'None'

Back