ci/lava: Update LogFollower for better section handling and history
authorGuilherme Gallo <guilherme.gallo@collabora.com>
Thu, 6 Apr 2023 04:44:24 +0000 (01:44 -0300)
committerMarge Bot <emma+marge@anholt.net>
Wed, 19 Apr 2023 14:36:37 +0000 (14:36 +0000)
commit41f29c5333372a9aa5e0d6e05476ed529326afa5
tree602721091ad31122e185ecc938dee77ae0205ae9
parentcfe644a9e593a15b84b54ac3b36d1c017335f47e
ci/lava: Update LogFollower for better section handling and history

Update the LogFollower class to improve section handling and provide a
history of sections encountered during log processing:

1. Add section_history attribute to store the history of encountered
   GitlabSections.
2. Make LAVA job submitter use the section history feature to improve
   structural logging.

Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22500>
.gitlab-ci/lava/lava_job_submitter.py
.gitlab-ci/lava/utils/gitlab_section.py
.gitlab-ci/lava/utils/log_follower.py