Project

General

Profile

action #92746

Updated by okurz almost 3 years ago

## Motivation 
 Log files like autoinst-log.txt are often crucial for reviewing test results. openQA does not yet have a "log viewer", it only provides a download and browsers can choose to show logs verbatim. Compare to gitlab in https://gitlab.suse.de/openqa/auto-review/-/jobs/345765/raw showing the raw log with control codes from both code that comes from us as well as gitlab internal code doing the same in comparison to a nice log viewer https://gitlab.suse.de/openqa/auto-review/-/jobs/345765 that shows color for both parts again, e.g. nice colorful autoinst-log.txt . We also have a separate video viewer since https://github.com/os-autoinst/openQA/pull/2605 so we can try a similar approach for logs now 

 ## Acceptance criteria 
 * **AC1:** autoinst-log.txt accessible over the openQA webUI show colors based on the control characters included in autoinst-log.txt 
 * **AC2:** Raw unaltered logs can still be accessed over the webUI for download 

 ## Suggestions 

 * Research how other programs do log parsing, e.g. gitlab 
 * Read what #65271 does now, e.g. especially https://progress.opensuse.org/issues/65271#note-54 and https://hackweek.suse.com/20/projects/create-a-library-and-demo-application-to-parse-the-openqa-logs-to-beautify-them-and-provide-query-tools and https://github.com/ilausuch/SUSE_Hackweek_2021_openQA_logs_analyzer_proof_of_concept 
 * Implement a log viewer next to a download link, same as for videos, where we have "Video (download)", see https://github.com/os-autoinst/openQA/blob/master/templates/webapi/test/downloads.html.ep#L8

Back