ci/lava: Collapse more log sections

These sections were not collapsed, causing the setup sections to clutter
the job logs.

Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34523>
This commit is contained in:
Valentine Burley
2025-04-15 14:05:44 +02:00
committed by Marge Bot
parent 60a31156b0
commit f7224dd159
2 changed files with 7 additions and 4 deletions
+4 -1
View File
@@ -122,6 +122,7 @@ LOG_SECTIONS = (
section_id="{}",
section_header="test_case {}",
section_type=LogSectionType.TEST_CASE,
collapsed=True,
),
LogSection(
regex=re.compile(r"<?STARTRUN>? ([^>]*ssh.*server.*)"),
@@ -129,6 +130,7 @@ LOG_SECTIONS = (
section_id="{}",
section_header="[dut] test_suite {}",
section_type=LogSectionType.TEST_DUT_SUITE,
collapsed=True,
),
LogSection(
regex=re.compile(r"<?STARTRUN>? ([^>]*)"),
@@ -136,13 +138,14 @@ LOG_SECTIONS = (
section_id="{}",
section_header="[docker] test_suite {}",
section_type=LogSectionType.TEST_SUITE,
collapsed=True,
),
LogSection(
regex=re.compile(r"ENDTC>? ([^>]+)"),
levels=("target", "debug"),
section_id="post-{}",
section_header="Post test_case {}",
collapsed=True,
section_type=LogSectionType.LAVA_POST_PROCESSING,
collapsed=True,
),
)
+3 -3
View File
@@ -118,13 +118,13 @@ def test_gl_sections():
section_types = [s.type for s in lf.section_history]
assert "section_start" in parsed_lines[0]
assert "collapsed=true" not in parsed_lines[0]
assert "collapsed=true" in parsed_lines[0]
assert "section_end" in parsed_lines[1]
assert "section_start" in parsed_lines[2]
assert "collapsed=true" not in parsed_lines[2]
assert "collapsed=true" in parsed_lines[2]
assert "section_end" in parsed_lines[3]
assert "section_start" in parsed_lines[4]
assert "collapsed=true" not in parsed_lines[4]
assert "collapsed=true" in parsed_lines[4]
assert "section_end" in parsed_lines[5]
assert "section_start" in parsed_lines[6]
assert "collapsed=true" in parsed_lines[6]