Skip to content

ci/lava: Improve job healthcheck and logs output

Gitlab supports collapsible sections, so it would be good to create collapsed log sections for the LAVA setup logs. This way, the Mesa developers to see only the execution of the scripts instead of LAVA messages clutter.

This MR also:

  • refactors and moves the LAVA log related functions into a new module.
  • improves job healthcheck
    • kernel messages log lines do not trigger LAVA job heartbeat anymore
    • this will detect a relevant group of current issues, such as #6681 (closed), and eventual ones related to kernel/driver failures
  • highlights important messages with bash text formatting
  • removes LAVA debug messages from the output
  • wraps lengthy parts of the log into collapsed Gitlab sections, such as job definition, final job details, and LAVA booting messages
    • if the user wants to see a collapsed section being fed, one needs to click on the arrow button at the left of the header during the job execution

Differences

gl_sections

All Gitlab sections collapsed

image

More examples
Edited by Guilherme Gallo

Merge request reports