Project

General

Profile

Actions

action #178855

open

Handle broken unicode in files from wait_serial results

Added by tinita about 1 month ago. Updated 3 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Feature requests
Target version:
Start date:
2025-03-10
Due date:
% Done:

0%

Estimated time:

Description

From #178597#21:

https://openqa.opensuse.org/tests/4912178#step/consoletest_finish/158 now shows: "Unable to decode consoletest_finish-160.txt."
The output in the file seems to be cut off, leading to broken unicode, so we cannot decode it.

The reason for that is the 4096 B ring buffer in serial_screen.pm's read_until. By default, record_output => 0, which means that on a match only 4096 B are returned, which might severe a UTF-8 sequence.

IMO either:

  • Call wait_serial with record_output => 1 in read_until
  • Try to keep UTF-8 intact (can happen on both ends of the buffer)
  • Handle UTF-8 decode errors gracefully by using replacement characters instead of failing to decode everything

The current state means that the output is not visible without digging through the corresponding full serial log.


Files

consoletest_finish-160.txt (3.99 KB) consoletest_finish-160.txt tinita, 2025-03-13 16:45

Related issues 1 (0 open1 closed)

Copied from openQA Project (public) - action #178597: Various job pages do not load due JS errorResolvedtinita2025-03-10

Actions
Actions #1

Updated by tinita about 1 month ago

  • Copied from action #178597: Various job pages do not load due JS error added
Actions #2

Updated by tinita about 1 month ago

Attached file with broken unicode from the test

Actions #3

Updated by okurz about 1 month ago

  • Target version set to future

@favogt @tinita can you please provide more context in the ticket, e.g. steps to reproduce and impact on users

Actions #4

Updated by favogt 3 days ago

okurz wrote in #note-3:

@favogt @tinita can you please provide more context in the ticket,

Can't edit the description myself.

e.g. steps to reproduce

Something like script_run("systemctl status") might already suffice there, with some luck there is a unicode sequence at end-4096B.

and impact on users

Under specific circumstances, the WebUI is unable to show the output of serial matches.

Actions

Also available in: Atom PDF