[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
avocado test: log shows initial chunk of terminal output is missing
From: |
Peter Maydell |
Subject: |
avocado test: log shows initial chunk of terminal output is missing |
Date: |
Mon, 17 Jul 2023 16:42:30 +0100 |
I'm looking at an avocado test that's failing intermittently
on s390 host:
machine_aarch64_sbsaref.py:Aarch64SbsarefMachine.test_sbsaref_edk2_firmware
This test looks for various things on the terminal output,
and it's failing because it hasn't seen the first thing it looks
for. The avocado log seems to show that the guest has booted
past that point and has produced a later chunk of the output,
and avocado appears to have simply lost the earlier output that
the test case is trying to match on.
Does this "some of the terminal output is missing"
sound familiar as a bug we already know about ?
2023-07-17 15:16:15,461 protocol L0481 DEBUG| Transitioning
from 'Runstate.CONNECTING' to 'Runstate.RUNNING'.
2023-07-17 15:16:19,897 __init__ L0153 DEBUG| 3h
2023-07-17 15:16:19,929 __init__ L0153 DEBUG|
2023-07-17 15:16:19,936 __init__ L0153 DEBUG| QEMU SBSA-REF
Machinearm-virt2.00 GHz1.01024 MB RAM
2023-07-17 15:16:19,945 __init__ L0153 DEBUG|
2023-07-17 15:16:19,956 __init__ L0153 DEBUG|
2023-07-17 15:16:19,971 __init__ L0153 DEBUG| <Standard
English> Select Language
>Device Manager
>Boot Manager
>Boot Maintenance Manager
Continue
Reset
2023-07-17 15:16:19,974 __init__ L0153 DEBUG|
^v=Move
Highlight <Enter>=Select Entry This
is the option
2023-07-17 15:16:19,975 __init__ L0153 DEBUG| one adjusts to change
2023-07-17 15:16:19,975 __init__ L0153 DEBUG| the language for the
2023-07-17 15:16:19,975 __init__ L0153 DEBUG| current system
2023-07-17 15:16:19,976 __init__ L0153 DEBUG|
2023-07-17 15:16:19,976 __init__ L0153 DEBUG|
2023-07-17 15:16:19,976 __init__ L0153 DEBUG|
2023-07-17 15:16:19,977 __init__ L0153 DEBUG|
2023-07-17 15:16:19,977 __init__ L0153 DEBUG|
2023-07-17 15:16:19,977 __init__ L0153 DEBUG|
2023-07-17 15:16:19,978 __init__ L0153 DEBUG|
2023-07-17 15:16:19,978 __init__ L0153 DEBUG|
2023-07-17 15:19:11,248 stacktrace L0039 ERROR|
2023-07-17 15:19:11,248 stacktrace L0041 ERROR| Reproduced
traceback from:
/home/linux1/qemu/build/all/tests/venv/lib/python3.8/site-packages/avocado/core/test.py:770
2023-07-17 15:19:11,249 stacktrace L0045 ERROR| Traceback (most
recent call last):
2023-07-17 15:19:11,249 stacktrace L0045 ERROR| File
"/home/linux1/qemu/build/all/tests/avocado/machine_aarch64_sbsaref.py",
line 95, in test_sbsaref_edk2_firmware
2023-07-17 15:19:11,249 stacktrace L0045 ERROR|
wait_for_console_pattern(self, "Booting Trusted Firmware")
2023-07-17 15:19:11,249 stacktrace L0045 ERROR| File
"/home/linux1/qemu/build/all/tests/avocado/avocado_qemu/__init__.py",
line 199, in wait_for_console_pattern
2023-07-17 15:19:11,249 stacktrace L0045 ERROR|
_console_interaction(test, success_message, failure_message, None,
vm=vm)
2023-07-17 15:19:11,249 stacktrace L0045 ERROR| File
"/home/linux1/qemu/build/all/tests/avocado/avocado_qemu/__init__.py",
line 148, in _console_interaction
2023-07-17 15:19:11,249 stacktrace L0045 ERROR| msg =
console.readline().decode().strip()
2023-07-17 15:19:11,249 stacktrace L0045 ERROR| File
"/usr/lib/python3.8/socket.py", line 669, in readinto
2023-07-17 15:19:11,249 stacktrace L0045 ERROR| return
self._sock.recv_into(b)
2023-07-17 15:19:11,249 stacktrace L0045 ERROR| File
"/home/linux1/qemu/build/all/tests/venv/lib/python3.8/site-packages/avocado/plugins/runner.py",
line 77, in sigterm_handler
2023-07-17 15:19:11,249 stacktrace L0045 ERROR| raise
RuntimeError("Test interrupted by SIGTERM")
2023-07-17 15:19:11,249 stacktrace L0045 ERROR| RuntimeError:
Test interrupted by SIGTERM
You can tell data has been lost because that '3h' is part
of the trailing end of an ANSI escape sequence, I think.
Full job.log at
https://people.linaro.org/~peter.maydell/job.log
The failure is intermittent: when it works the relevant part
of the job.log looks like this:
2023-07-17 15:37:56,648 protocol L0481 DEBUG| Transitioning
from 'Runstate.CONNECTING' to 'Runstate.RUNNING'.
2023-07-17 15:37:56,650 __init__ L0153 DEBUG| NOTICE: Booting
Trusted Firmware
2023-07-17 15:37:56,650 __init__ L0153 DEBUG| NOTICE: BL1:
v2.9(release):v2.9.0-51-gc0d8ee386
2023-07-17 15:37:56,650 __init__ L0153 DEBUG| NOTICE: BL1:
Built : 16:44:16, May 30 2023
2023-07-17 15:37:56,653 __init__ L0153 DEBUG| NOTICE: BL1: Booting BL2
2023-07-17 15:37:56,656 __init__ L0153 DEBUG| NOTICE: BL2:
v2.9(release):v2.9.0-51-gc0d8ee386
2023-07-17 15:37:56,656 __init__ L0153 DEBUG| NOTICE: BL2:
Built : 16:44:16, May 30 2023
2023-07-17 15:37:56,667 __init__ L0153 DEBUG| NOTICE: BL1: Booting BL31
2023-07-17 15:37:56,668 __init__ L0153 DEBUG| NOTICE: BL31:
v2.9(release):v2.9.0-51-gc0d8ee386
2023-07-17 15:37:56,668 __init__ L0153 DEBUG| NOTICE: BL31:
Built : 16:44:16, May 30 2023
2023-07-17 15:37:56,671 __init__ L0153 DEBUG| UEFI firmware
(version 1.0 built at 17:14:57 on Mar 21 2023)
2023-07-17 15:37:57,593 __init__ L0153 DEBUG|
ESC[2JESC[04DESC[=3hESC[2JESC[09DESC[2JESC[04DESC[0mESC[30mESC[40m
2023-07-17 15:37:57,610 __init__ L0153 DEBUG|
ESC[01;01HESC[0mESC[34mESC[47m
2023-07-17 15:37:57,616 __init__ L0153 DEBUG|
ESC[01;01HESC[02;02HQEMU SBSA-REF MachineESC[03;02Harm-virtESC[44C2.00
GHzESC[04;02H1.0ESC[49C1024 MB RAM
ESC[05;02HESC[52CESC[06;02HESC[52CESC[0mESC[37mESC[40mESC[21;01H
2023-07-17 15:37:57,616 machine L0617 DEBUG| Shutting down VM
appliance; timeout=30
2023-07-17 15:37:57,616 machine L0541 DEBUG| Attempting
graceful termination
2023-07-17 15:37:57,616 machine L0513 DEBUG| Closing console socket
2023-07-17 15:37:57,616 machine L0551 DEBUG| Politely asking
QEMU to terminate
(the test is looking for some of those BL1: BL2: etc lines before it starts
looking for the "QEMU SBSA-REF Machine" text.)
thanks
-- PMM
- avocado test: log shows initial chunk of terminal output is missing,
Peter Maydell <=