RedHatQE / tfacon

Test Failure Analysis Classifier Connector
Apache License 2.0
7 stars 6 forks source link

Adding tfacon --rp-log-level=DEBUG option #34

Closed Yarboa closed 2 years ago

Yarboa commented 2 years ago

Is your feature request related to a problem? Please describe. As tfa user I would like to have --rp-log-level=DEBUG option in tfacon

testcase system-out not visible to tfacon by default log level from Polarion

How to reproduce? Reproduced with TestingFarm outputs:

TestingFarm is fedora test service, which generates xml reports, please refer https://docs.testing-farm.io/general/0.1/index.html

Sample output Failed test are generated with the following failure xUnit schema.

# STDOUT: ---v---v---v---v---v---. ... ---^---^---^---^---^---

This uploaded with rp_preproc, to RP Once tfacon client is updating RP portal with its Prediction the MakeDecision does not have enough data for processing

Describe the solution you'd like I would like to parse content as per the log level This way we could override problems not seen by Err level or Info of report portal

Describe alternatives you've considered This could be also fixed by RP portal client

Additional context

Yarboa commented 2 years ago

I am closing it for now We have a workaround which is not related to TFA

We fixed schema according to the following: for index, value in testcases_list: if 'failure' in testcase.keys(): new_value=value new_value['failure']['@message']+=value['system-out'] del new_value['system-out'] data_dict['testsuites']['testsuite']['testcase'][index]=new_value

All visible