ci/lava: Flexibilize section marker regexes
authorGuilherme Gallo <guilherme.gallo@collabora.com>
Mon, 4 Jul 2022 20:34:17 +0000 (17:34 -0300)
committerMarge Bot <emma+marge@anholt.net>
Thu, 7 Jul 2022 00:28:53 +0000 (00:28 +0000)
commit6ba2b33a8c66f8deb94f9df0a4f240b48083722c
tree7a031538cc45614ff47f4106f8cd5f96966554b1
parent24f368d652d93abec3b0e3ddcf1ea83f1214f199
ci/lava: Flexibilize section marker regexes

In some jobs, such as
https://gitlab.freedesktop.org/gallo/mesa/-/jobs/24904100, the kmsg is
interleaved with stderr/stdout in serial console, making it difficult to
confidently find the log messages to detect when the DUT is booting,
when the DUT is running etc.

Luckily, LAVA sends redundant messages about their signals. We can use
them to mitigate the chance of missing an interleaved message by being
more open to different messages, using the regex on both `debug` and
`target` LAVA log levels.

Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16323>
.gitlab-ci/lava/utils/lava_log.py
.gitlab-ci/tests/utils/test_lava_log.py