ci/lava: Stop printing after the result line
There are some leftovers in the jobs logs after the result log line. Only print until the init-stage2.sh output, to raise the chance to check for the test script results at the first glance in the Gitlab logs. Extra changes: - Add `hung` status for jobs considered hanging in the Gitlab - print them after the retry loop Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16323>
This commit is contained in:

committed by
Marge Bot

parent
f09aab08e9
commit
24f368d652
@@ -259,34 +259,22 @@ def test_log_corruption(mock_sleep, data_sequence, expected_exception, mock_prox
|
||||
LAVA_RESULT_LOG_SCENARIOS = {
|
||||
# the submitter should accept xtrace logs
|
||||
"Bash xtrace echo with kmsg interleaving": (
|
||||
create_lava_yaml_msg(
|
||||
msg="echo hwci: mesa: pass[ 737.673352] <LAVA_SIGNAL_ENDTC mesa-ci>",
|
||||
lvl="target",
|
||||
),
|
||||
"echo hwci: mesa: pass[ 737.673352] <LAVA_SIGNAL_ENDTC mesa-ci>",
|
||||
"pass",
|
||||
),
|
||||
# the submitter should accept xtrace logs
|
||||
"kmsg result print": (
|
||||
create_lava_yaml_msg(
|
||||
msg="[ 737.673352] hwci: mesa: pass",
|
||||
lvl="target",
|
||||
),
|
||||
"[ 737.673352] hwci: mesa: pass",
|
||||
"pass",
|
||||
),
|
||||
# if the job result echo has a very bad luck, it still can be interleaved
|
||||
# with kmsg
|
||||
"echo output with kmsg interleaving": (
|
||||
create_lava_yaml_msg(
|
||||
msg="hwci: mesa: pass[ 737.673352] <LAVA_SIGNAL_ENDTC mesa-ci>",
|
||||
lvl="target",
|
||||
),
|
||||
"hwci: mesa: pass[ 737.673352] <LAVA_SIGNAL_ENDTC mesa-ci>",
|
||||
"pass",
|
||||
),
|
||||
"fail case": (
|
||||
create_lava_yaml_msg(
|
||||
msg="hwci: mesa: fail",
|
||||
lvl="target",
|
||||
),
|
||||
"hwci: mesa: fail",
|
||||
"fail",
|
||||
),
|
||||
}
|
||||
@@ -297,7 +285,7 @@ LAVA_RESULT_LOG_SCENARIOS = {
|
||||
LAVA_RESULT_LOG_SCENARIOS.values(),
|
||||
ids=LAVA_RESULT_LOG_SCENARIOS.keys(),
|
||||
)
|
||||
def test_filter_debug_messages(message, expectation, mock_proxy):
|
||||
def test_parse_job_result_from_log(message, expectation, mock_proxy):
|
||||
job = LAVAJob(mock_proxy(), "")
|
||||
job.parse_job_result_from_log([message])
|
||||
|
||||
|
Reference in New Issue
Block a user